[x] stylex.defineVars and stylex.createTheme will now correctly handle arbitrarily nested at rules within value. It previously accepted only a flat object.
[x] stylex.createTheme should generate a unique class name given all given values. Previously it only accounted for the default values of styles when creating the hash.
[x] Add additional tests for new behaviour
[x] Add tests for multiple levels of nested at-rules. (Combine @media and @supports)
[x] Add tests for two themes with the same default values but different values within at-rules.
[x] Add support for using stylex.types.* functions within stylex.defineVars and stylex.createTheme.
[x] Fix TypeScript issues. It's too permissive at the moment.
What changed / motivation ?
stylex.defineVars
andstylex.createTheme
will now correctly handle arbitrarily nested at rules within value. It previously accepted only a flat object.stylex.createTheme
should generate a unique class name given all given values. Previously it only accounted for thedefault
values of styles when creating the hash.@media
and@supports
)stylex.types.*
functions withinstylex.defineVars
andstylex.createTheme
.