Releases: vanilla-extract-css/vanilla-extract
@vanilla-extract/[email protected]
Patch Changes
- #95
f9ca82b
Thanks @mattcompiles! - Fix fallbackVar type defintion
@vanilla-extract/[email protected]
Patch Changes
-
#84
0bc4e0a
Thanks @mattcompiles! - Validate tokens match corresponding theme contracts -
Updated dependencies [
0bc4e0a
]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Minor Changes
-
#81
717ad60
Thanks @markdalgleish! - Add staticproperties
set to atoms functionThis allows runtime code to detect whether a given property can be handled by the atoms function or not.
This is useful when building a Box component with atoms available at the top level (e.g.
<Box padding="small">
) since you'll need some way to filter atom props from non-atom props.
@vanilla-extract/[email protected]
Patch Changes
-
#77
63c01ad
Thanks @mattcompiles! - Improve runtime errorsSprinkles will now validate your
atoms
calls at runtime for a better developer experience. The validation code should be stripped from production bundles via aprocess.env.NODE_ENV
check.Example Error
SprinklesError: "paddingTop" has no value "xlarge". Possible values are "small", "medium", "large"
@vanilla-extract/[email protected]
Patch Changes
-
#63
2cecc8a
Thanks @fnky! - Allow theme vars to be passed to atomic properties -
#64
5bee64f
Thanks @michaeltaranto! - Support resolving falsey values for conditional atomsFixes bug where falsey values such as
opacity: 0
would not resolve classes via the conditional object or responsive array syntax.export const atoms = createAtomicStyles({ defaultCondition: 'mobile', conditions: { mobile: {}, desktop: { '@media': 'screen and (min-width: 786px)', }, }, responsiveArray: ['mobile', 'desktop'], properties: { opacity: [0, 1], }, });
-
#59
e999308
Thanks @markdalgleish! - Fix types for numbers as values -
Updated dependencies [
2cecc8a
]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
- #68
0cfd17d
Thanks @jahredhope! - Fix errors occurring when using TypeScript in .css.ts files
@vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Minor Changes
- #53
58e4f8a
Thanks @mattcompiles! - Support exporting functions from.css.ts
files via recipes
Patch Changes
- Updated dependencies [
48c4a78
,2d98bcc
]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
- Updated dependencies [
48c4a78
,2d98bcc
]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Minor Changes
- #53
58e4f8a
Thanks @mattcompiles! - Support exporting functions from.css.ts
files via recipes
Patch Changes
- Updated dependencies [
48c4a78
,2d98bcc
]:- @vanilla-extract/[email protected]