You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I could probably just do the "classic" font-family: 'Josefin Sans' here instead of using @apply but that feels kind of hacky - and I want to use the automatic font loading slidev provides me. Edit: Using font-family directly does not work because the font is not loaded.
I've never used windicss before but am really comfortable using tailwind.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I'm trying to use a different font for my headings and text. In my custom theme, I have this in the
package.json
defined:I then tried to set the font to josefin sans for all headings via the
layout.css
:I think I could probably just do the "classic"
font-family: 'Josefin Sans'
here instead of using@apply
but that feels kind of hacky - and I want to use the automatic font loading slidev provides me.Edit: Using
font-family
directly does not work because the font is not loaded.I've never used windicss before but am really comfortable using tailwind.
Beta Was this translation helpful? Give feedback.
All reactions