Open salbeira opened 8 months ago
Around middle 2023 the css function "color-mix" is now available everywhere.
Currently our CSS rules for accent0-fg etc. get generated during compile time. The resulting values are equal to the srgb-linear color-mix function.
accent0-fg
srgb-linear
We can now change the export of the palette to just the shade and accent colors and insert static rules for the -bg, -bbg, -fg and -ffg modifiers:
-bg, -bbg, -fg
-ffg
:root { --contrast: 40%; --accent0-bg: color-mix(in srgb-linear, var(--accent0), var(--background-color) var(--contrast)); --accent0-bbg: color-mix(in srgb-linear, var(--accent0), var(--background-color) calc(2 * var(--contrast))); }
Hauer baut das CSS. Henrik schmeisst dann den Haskell Kram weg.
Around middle 2023 the css function "color-mix" is now available everywhere.
Currently our CSS rules for
accent0-fg
etc. get generated during compile time. The resulting values are equal to thesrgb-linear
color-mix function.We can now change the export of the palette to just the shade and accent colors and insert static rules for the
-bg, -bbg, -fg
and-ffg
modifiers: