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
In eds-tokens, create a new eds-2-overrides.css file (maybe with a better name). Paste in the color variables from the old tokens.css in the root of eds-tokens (but skip the infographic ones) and make sure to rename the ones that are different in the js output overrides.
example
looks like --eds_text_static_icons__default: rgba(61, 61, 61, 1);
in tokens.css, so there is an underscore missing between text and static that needs to be added. Not sure if this is the case in all or just some variables.
next each of the variables must be given a value from the new eds 2.0 semantic variables.
I think only
are missing on account of secondary button being removed, so in this case i guess we'll leave it, or use the values that had been intended for 2.0
Once tokens are published, people can import this file after variables.css and they should have 2.0 colors + dark theme out of the box in the eds-core-react components. We also need to make sure if there are hardcoded colors anywhere in the components that these are overridden too.
The text was updated successfully, but these errors were encountered:
oddvernes
changed the title
✨Create eds-2-overrides.css
✨Create legacy-colors-override.css
Jun 13, 2024
I ended up getting the color variables from (src/base) typography.ts and colors.ts instead to make sure i got everything and with the correct names, and named the new file legacy-color-override.css
In eds-tokens, create a new
eds-2-overrides.css
file (maybe with a better name). Paste in the color variables from the oldtokens.css
in the root of eds-tokens (but skip the infographic ones) and make sure to rename the ones that are different in the js output overrides.example
looks like
--eds_text_static_icons__default: rgba(61, 61, 61, 1);
in
tokens.css
, so there is an underscore missing between text and static that needs to be added. Not sure if this is the case in all or just some variables.next each of the variables must be given a value from the new eds 2.0 semantic variables.
I think only
are missing on account of secondary button being removed, so in this case i guess we'll leave it, or use the values that had been intended for 2.0
Once tokens are published, people can import this file after variables.css and they should have 2.0 colors + dark theme out of the box in the eds-core-react components. We also need to make sure if there are hardcoded colors anywhere in the components that these are overridden too.
The text was updated successfully, but these errors were encountered: