designsystemet icon indicating copy to clipboard operation
designsystemet copied to clipboard

issue with typography layer order

Open Barsnes opened this issue 4 months ago • 0 comments

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 for ds.theme.typography.* (in my generated theme.css) to be higher than the ds.base.typography (from designsystemet/css):

@layer ds.base, ds.theme;

Barsnes avatar Oct 08 '24 12:10 Barsnes