Files
webstudio/packages/css-engine
Oleg Isonen 2665e4ce2b fix: use valid CSS color space names in toValue()
colorjs uses internal short names (p3, a98rgb, prophoto) that don't
match the CSS predefined color space identifiers required by the spec:
  - p3      → display-p3
  - a98rgb  → a98-rgb
  - prophoto → prophoto-rgb

This caused toValue() to emit invalid CSS like `color(p3 ...)`, which
the css-tree lexer rejects when re-validating the value in the CSS value
input (e.g. after a round-trip through the style panel).
2026-04-12 20:45:03 +01:00
..
2023-02-14 11:15:24 +01:00

CSS Engine

This package is designed to render effectively CSS in the format produced by Webstudio Builder. It is using CSS variables for all dynamic parts and can render at runtime as for usage on Live Canvas in the Builder as well as for extracting a fully static style sheet for production.