designsystemet
designsystemet copied to clipboard
issue with typography layer order
First reported in #2580, and moved here to keep issues focused to one thing.
From @vaarvik:
However, I also experienced a bug with the typography styles when adding my own theme. Basically the issue was that typography got the wrong font size. I had to add the following
@layer
styles to change the the priority fords.theme.typography.*
(in my generatedtheme.css
) to be higher than theds.base.typography
(fromdesignsystemet/css
):@layer ds.base, ds.theme;