Created
January 31, 2022 13:57
-
-
Save mherchel/540d079f445bbe44880421a44f0e9941 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
https://css-tricks.com/theming-with-variables-globals-and-locals/ | |
https://medium.com/eightshapes-llc/tokens-in-design-systems-25dd82d58421 | |
https://bradfrost.com/blog/post/creating-themeable-design-systems/ | |
*/ | |
.root-frontend { | |
--color-primary: xxx; | |
--color-neutral: #777; | |
--color-highlight: xxx; | |
--notification-background: xxx; | |
--notification-color-error: xxx; | |
--notification-color-success: xxx; | |
--notification-color-warning: xxx; | |
--color-canvas: xxx; | |
--color-canvas-text: xxx; | |
--spacing-05: calc(0.5 * var(--spacing-1)); | |
--spacing-1: 10px; | |
--spacing-2: calc(2 * var(--spacing-1)); | |
--spacing-3: calc(3 * var(--spacing-1)); | |
--spacing-4: calc(4 * var(--spacing-1)); | |
--spacing-5: calc(5 * var(--spacing-1)); | |
--text-on-light: xxx; | |
--text-on-dark: xxx; | |
--text-on-gray: xxx; | |
--font-family: sans; | |
--font-size-xs: 13px; | |
--font-size-s: 14px; | |
--font-size-m: 16px; | |
--font-size-l: 18px; | |
--font-size-xl: 20px; | |
--font-size-2xl: 23px; | |
--font-size-3xl: 26px; | |
--font-size-4xl: 29px; | |
--font-size-5xl: 32px; | |
--line-height-xs: 13px; | |
--line-height-s: 14px; | |
--line-height-m: 16px; | |
--line-height-l: 18px; | |
--line-height-xl: 20px; | |
--line-height-2xl: 23px; | |
--line-height-3xl: 26px; | |
--line-height-4xl: 29px; | |
--line-height-5xl: 32px; | |
/* form colors? */ | |
/* focus-ring colors? */ | |
/* Button colors? | |
--button-primary-bg | |
--button-action-bg | |
*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment