Skip to content

Reference ​

Complete description of the ECSS language, build configuration, and adapters.

Language ​

  • Directives — @block, @param, @enum, @if, and the rest of the ECSS constructs.
  • Data Types — types for parameters and constants (boolean, unit, color, enums, and more).

Build and integration ​

  • Configuration — the ecss.config file and its options.
  • Adapters — generating components for React, Vue, Svelte, SolidJS, Astro, and plain DOM.

Runtime ​

  • Core API: blocks — the low-level blocks object. Needed for a custom renderer or to understand what happens under the hood; when working with a framework, use adapters.

ECSS has no separate CLI — it works as a bundler plugin (Vite and others). Setup is covered in the Configuration section.