This is a Ruby port of cva.style JS library. The CVA (Class Variance Authority) pattern is based on the idea that there's a limited number of states (variants) your CSS component can hold. Each state is described with a CSS class or a set of classes. You then provide a set of variants as an input, and get back a final list of CSS classes.
Required Ruby Version
>= 3.2.0
Authors
Andrii Malyshko
Versions
-
0.1.0
-
source
- 0.1.0 source October 28, 2026 (13 KB)
-