Releases: vanilla-extract-css/vanilla-extract
@vanilla-extract/[email protected]
Patch Changes
- #95
f9ca82bThanks @mattcompiles! - Fix fallbackVar type defintion
@vanilla-extract/[email protected]
Patch Changes
-
#84
0bc4e0aThanks @mattcompiles! - Validate tokens match corresponding theme contracts -
Updated dependencies [
0bc4e0a]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Minor Changes
-
#81
717ad60Thanks @markdalgleish! - Add staticpropertiesset 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
63c01adThanks @mattcompiles! - Improve runtime errorsSprinkles will now validate your
atomscalls at runtime for a better developer experience. The validation code should be stripped from production bundles via aprocess.env.NODE_ENVcheck.Example Error
SprinklesError: "paddingTop" has no value "xlarge". Possible values are "small", "medium", "large"
@vanilla-extract/[email protected]
Patch Changes
-
#63
2cecc8aThanks @fnky! - Allow theme vars to be passed to atomic properties -
#64
5bee64fThanks @michaeltaranto! - Support resolving falsey values for conditional atomsFixes bug where falsey values such as
opacity: 0would 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
e999308Thanks @markdalgleish! - Fix types for numbers as values -
Updated dependencies [
2cecc8a]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
- #68
0cfd17dThanks @jahredhope! - Fix errors occurring when using TypeScript in .css.ts files
@vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Minor Changes
- #53
58e4f8aThanks @mattcompiles! - Support exporting functions from.css.tsfiles 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
58e4f8aThanks @mattcompiles! - Support exporting functions from.css.tsfiles via recipes
Patch Changes
- Updated dependencies [
48c4a78,2d98bcc]:- @vanilla-extract/[email protected]