Files
webstudio/apps/builder/app/shared
Oleg Isonen 44a5c5f265 feat: Parse color functions with CSS variable alpha channel (#5660)
ref
https://github.com/webstudio-is/webstudio/issues/3574#issuecomment-4116312483

 (e.g. Taillwind's rgb(r g b / var(--tw-opacity)))

- css-engine/schema: extend ColorValue.alpha to number | VarValue
- css-engine/to-value: serialize VarValue alpha using toValue()
- css-data/parse-css-value: add parseColorWithVarAlpha using css-tree
AST substitution (no fragile string replacement); inject fallback: 1
when var has no explicit CSS fallback
- style-object-model: resolve VarValue alpha in substituteVars so the
color picker receives a number when the custom property is defined
- color-control: use VarValue.fallback for the picker when alpha is
still unresolved, falling back to 1 only as a last resort
2026-03-24 14:48:18 +01:00
..
2023-05-03 00:00:16 +02:00
2026-03-08 10:52:21 +01:00
2026-02-10 23:13:43 +01:00
2026-03-20 21:09:47 +01:00
2026-02-10 23:13:43 +01:00
2026-03-08 10:52:21 +01:00
2023-05-13 11:52:03 +04:00
2026-02-10 23:13:43 +01:00
2024-08-24 08:58:54 +03:00
2024-02-13 20:12:09 +01:00
2025-08-09 15:14:22 +02:00