I want to increase all font's sizes
I'm new to Filament, I'm trying to increase all fonts because it looks small, I tried modifying
tailwind.config.js
but it not affecting
What I'm doing wrong here?Solution:Jump to solution
https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
if you create a custom theme, you can edit the sizes
```js...
9 Replies
Did you create a custom theme?
https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
By the way: it’s probably easier to just adjust the font size on
html
element.but, If I want to edit whole texts size, will I add it on every html element?
I didn't create a new theme, except it's required to change fonts size.
There is only one
html
element in the Dom 😅
And yes you need to create a theme because otherwise your config isn’t applied to anything.but when I put font size in HTML tag, this will unify all fonts sizes, isn't? I don't want this, but I will try to make a new theme, I was searching for a shorter way to do this. Thank you.
---
In new theme, will I edit the css of .sm .lg ...etc, right?
Ah okay. Thought you wanted to increase overall. Then just do your approach and make sure you have a theme
You can just go own using the Tailwind config. But you need a CSS file that get compiled with your new settings and register it with Filament
Solution
https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
if you create a custom theme, you can edit the sizes
Uh, thanks, now I understand that new theme cmd:
The command will create a CSS file and Tailwind Configuration file in the /resources/css/filament directoryThen, I put the my edits in this new tailwind config file, I did that, it works good, thanks for your patient, I didn't notice this line before in documentation, it's my bad.
You're welcome. Glad you got it working