Skip to content
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

fontFamily extension not working #183

Open
qucode1 opened this issue Sep 19, 2022 · 0 comments
Open

fontFamily extension not working #183

qucode1 opened this issue Sep 19, 2022 · 0 comments

Comments

@qucode1
Copy link

qucode1 commented Sep 19, 2022

Describe the bug
Extending the fontFamily in windicss config does not work.
The expected classes are not generated at all or incorrectly.

The font-family does not show up in the class, only the font-weight. Using font-roboto-regular does not have any styles at all.

I have described the issue a while ago in the windicss repo, but it is still a problem with these package versions:

...
nuxt-windicss 2.5.2
nuxt3 3.0.0-rc.10
typescript 4.8.3
vite 3.1.2
vue 3.2.39
webpack 5.74.0
...

To Reproduce
Steps to reproduce the behavior:

  1. Add fonts to assets
  2. Add fonts.css with @font-face rules
  3. Extend windi config
  theme: {
    extend: {
      fontFamily: {
        'roboto-regular': ['Roboto Regular', 'sans-serif'],
        'roboto-light': ['Roboto Light', 'sans-serif'],
        'roboto-bold': ['Roboto Bold', 'sans-serif'],
      }
    }
  },
  1. Try to use font family classes, e.g. font-roboto-regular

Expected behavior
Font classes should have been generated correctly and available to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant