Skip to content
Discussion options

You must be logged in to vote

There could be a number of reasons for this, but it might be because of this line:

@layer base {
	html {
		@apply font-primary;
	}
}

The wanted fonts are applied in a CSS layer, which will have a lower specificity than Storybook's fonts because they are unlayered. Unlayered styles always takes priority over layered styles, even though we've done a lot to give those style very low specificity (using :where).

A fix here would be to apply the font unlayered in preview-head.html.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@hoonweiting
Comment options

@polRk
Comment options

Comment options

You must be logged in to vote
1 reply
@MartinaMilisic
Comment options

Comment options

You must be logged in to vote
1 reply
@MartinaMilisic
Comment options

Answer selected by MartinaMilisic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
6 participants