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