-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with nuxt + vuestic + tailwind, can't change font #4213
Comments
Have you tried to set |
how to do that? i have a imported font in my default.css:
and imported this in nuxt.config:
|
Yes, I have the same problem. Found what the issue is. Will make a PR soon. |
Vuestic's option "css" accepts an array of css modules as an input. The default value of that option is ['smart-helpers', 'typography']. The problem is that nuxt won't override the default array with an array passed by user (it's a known issue). Instaed two arrays will be concatenated. For example, I want to use only a typography css module, so I set the css option to ['typography']. In that case useVuesticCSS method wil receive ['smart-helpers', 'typography', 'typography'] and not just ['typography']
@lokize, Add to your default.css body {
--va-font-family: Inter;
} Even if typography css module is disabled, components still will try to use Source Sans Pro if it is available. This is why you still need to override |
Vuestic-ui version: 1.9.8
Description
i cant change font of my application, when i use this config:
in nuxt.config.ts my font still is sans-serif, i cant import and use another font in my application when i using Vuestic, if i disabled Vuestic the import of another font works good.
The text was updated successfully, but these errors were encountered: