Change the font to a serif font ? #1712
manjunaths
started this conversation in
General
Replies: 2 comments 1 reply
-
Bump! Sorry for being insistent. Any answers to this question ? I want to use the source serif font and unfortunately whatever is said in the documentation of on the forums are not working for me. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Here is how I did it, and it works well: @font-face {
font-family: 'YourFont';
font-style: normal;
font-weight: 400;
src: url('/fonts/YourFont.ttf');
}
@font-face {
font-family: 'YourFont';
font-style: italic;
font-weight: 700;
src: url('/fonts/YourFont-BoldItalic.ttf');
}
/*
Change the url according to the file names.
Add as many font face tags as you have font files, adapting the variants in font-style and font-weight
*/
html {
font-family: 'YourFont', sans-serif;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to change the default font to a serif font and the article body to be serif. Is this possible ? I added a custom.css as given in the documentation and nothing changes. I think I need to change this somewhere in the tailwind configuration perhaps ? How do I do this ?
Beta Was this translation helpful? Give feedback.
All reactions