🏠 New in Low Baseline Support: Relative colors
September 16, 2024
The from keyword for color functions (color(), hsl(), oklch(), etc.) creates a new color based on a given color by modifying the values of the input color. Also known as relative color syntax (RCS).
Source features
css.types.calc.color_component[mdn]css.types.color.lab.relative_syntax[mdn]css.types.color.oklab.relative_syntax[mdn]css.types.color.color.relative_syntax[mdn]css.types.color.lch.relative_syntax[mdn]css.types.color.oklch.relative_syntax[mdn]css.types.color.rgb.relative_syntax[mdn]css.types.color.hsl.relative_syntax[mdn]css.types.color.hwb.relative_syntax[mdn]