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
feat: allow themes to use any srgb color for definitions (#1756)
Themes were previously limited to HSL raw value colors such that
transparency could be created using HSLA. This made theme creation
somewhat annoying and limiting. This change adopts color-mix (requires
chrome 111, firefox 113 -- both older than 6 months) to create any
necessary transparency.
- replaces hsl raw values with hex (allows skipping color normalization)
- replace hsla usage with color-mix
- fix miss-named legend-color
- created utils that use color-mix for easier specification
- move utils.scss to be auto-imported with custom.scss
- re-wrote color normilzation and resolving to resolve color-mix based
colors
- changed iris grid theme context to not accept a paritial
Style changes:
- style console input to match other inputs, add hover state to border
- fix input border hover color to use correct variable
- darken water color in dark theme maps]
- adjust disabled button color in light theme]
- fix selection background and selection hover color to be more subtle.
(No idea why I made it so opaque, it used to be 0.09 pre-spectrum)
BREAKING CHANGE:
- IrisGridThemeContext no longer accepts a paritial theme. By
guaranteeing the provider is a full theme we can resolve the CSS
variables and normailze the colors only once per theme load globally,
rather than having to do it once per grid.
- Themes must be defined using valid srgb CSS colors, and not hsl raw
component values
0 commit comments