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
This sort order keeps the brand css files unchanged from the existing commited files when running yarn build:tokens. But is there a reason for this exact ordering? The old sorting function would be equivalent to this:
That is to say, these two would always come first, and then the rest in an unspecified — but usually the same — order.
However, wouldn't it make more sense for the things that are added to :root -- color-mode/light, typography/primary, and semantic, to be first, and then other color modes, then typography/secondary?
The text was updated successfully, but these errors were encountered:
In #2560 I found this sorting function used when concatenating the different generated css files into one entry file per theme.
The PR changed this to a deterministic order:
This sort order keeps the brand css files unchanged from the existing commited files when running
yarn build:tokens
. But is there a reason for this exact ordering? The old sorting function would be equivalent to this:That is to say, these two would always come first, and then the rest in an unspecified — but usually the same — order.
However, wouldn't it make more sense for the things that are added to
:root
--color-mode/light
,typography/primary
, andsemantic
, to be first, and then other color modes, thentypography/secondary
?The text was updated successfully, but these errors were encountered: