mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-03 18:48:06 +09:00
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).
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.