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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: more precisions in readme #131

Closed
Barbapapazes opened this issue Dec 21, 2022 · 2 comments 路 Fixed by #344
Closed

docs: more precisions in readme #131

Barbapapazes opened this issue Dec 21, 2022 · 2 comments 路 Fixed by #344
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@Barbapapazes
Copy link
Contributor

馃摎 Is your documentation request related to a problem?

I use Tailwind for my CSS. With it, you can have custom class to handle font-family.

So, in my CSS file, I write:

html {
  @apply font-<font-name>;
}

But this will not resolve in

html {
  font-family: <font-name>, "<font-name> override";
}

But in

html {
  font-family: <font-name>;
}

馃攳 Where should you find it?

In the README, you say:

If you are using a Google font or you don't have a @font-face declaration
for a font you're using, you can declare them here.

But maybe, you can add something about using @apply !

鈩癸笍 Additional context

No response

@Barbapapazes Barbapapazes added the documentation Improvements or additions to documentation label Dec 21, 2022
@mickaelchanrion
Copy link

You can specify the override in your tailwindcss config instead.
Example with Roboto:

fontFamily: {
   roboto: ['Roboto', 'Roboto override', 'sans-serif']
}

@Barbapapazes
Copy link
Contributor Author

Yes, thank you!

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

Successfully merging a pull request may close this issue.

3 participants