There are already multiple ways to utilize CCSS in your codebase,
however currently only CSS-in-JS solutions covered. Please
note you can also use
emotion or any other
Styled-components + JSX
Simply replace any divs with this one component:
You can also replace
out-of-the-box support for CCSS.
~44%text and code size reduction.
Special props and values
Add any child CSS/pseudo definition.
Pseudo definitions are also having shorthands, always starting with
Use it to pass raw CSS string / Style object.
Properties waiting for numeric values with a unit can accept
pure numbers for built-in automatic
If not a number given, the value will be used as-is.
Shorthand properties awaiting numeric values with unit can accept an array as an input.