Theming system
How do you support multiple themes without remapping each variable?
When we worked on dark mode, we designed its color palette to be uniform in contrast. Each color scale is based on the same tone curve which therefore defines the overall character of the theme.
Instead of changing the mapping for each theme, we thought why not replace the whole palette and apply a different tone curve to create a new theme. This way a variable only needs to be mapped for light and dark.
More by GitHub View profile
Like