Releases: vanilla-extract-css/vanilla-extract
@vanilla-extract/[email protected]
Minor Changes
-
#52
2d98bccThanks @markdalgleish! - RenamecreateThemeVarstocreateThemeContractBREAKING CHANGE
import { - createThemeVars, + createThemeContract, createTheme } from '@vanilla-extract/css'; -export const vars = createThemeVars({ +export const vars = createThemeContract({ color: { brand: null }, font: { body: null } });
Patch Changes
- #50
48c4a78Thanks @mattcompiles! - Allow vars to be passed as values to all style properties
@vanilla-extract/[email protected]
Minor Changes
-
#52
2d98bccThanks @markdalgleish! - RenamecreateThemeVarstocreateThemeContractBREAKING CHANGE
import { - createThemeVars, + createThemeContract, createTheme } from '@vanilla-extract/css'; -export const vars = createThemeVars({ +export const vars = createThemeContract({ color: { brand: null }, font: { body: null } });
@vanilla-extract/[email protected]
Patch Changes
- #45
e154028Thanks @mattcompiles! - FixcreateThemeVarswhen using null values
@vanilla-extract/[email protected]
Patch Changes
-
#47
a18bc03Thanks @mattcompiles! - Improve dev prefixes on generated class names- Add file name to class names even if no debug id is present
- If file is the index file use directory name instead
-
#49
2ae4db3Thanks @michaeltaranto! - Update the unit-less property mapThe original list was borrowed from the postcss-js parser, but decided to reverse engineer an updated list from csstype for more thorough coverage.
@vanilla-extract/[email protected]
Patch Changes
-
#45
e154028Thanks @mattcompiles! - FixcreateThemeVarswhen using null values -
Updated dependencies [
e154028]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
- Updated dependencies [
156b491,ae9864c,756d9b0]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
- Updated dependencies [
156b491,ae9864c,756d9b0]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Minor Changes
-
#38
156b491Thanks @markdalgleish! - AddcomposeStylesfunction -
#37
ae9864cThanks @markdalgleish! - RenamemapToStylestostyleVariantsBREAKING CHANGE
-import { mapToStyles } from '@vanilla-extract/css'; +import { styleVariants } from '@vanilla-extract/css'; -export const variant = mapToStyles({ +export const variant = styleVariants({ primary: { background: 'blue' }, secondary: { background: 'aqua' }, });
Patch Changes
- #34
756d9b0Thanks @mattcompiles! - Reduce CSS var and identifier lengths
@vanilla-extract/[email protected]
Patch Changes
- #41
3e7d861Thanks @mattcompiles! - Fix issue where babel-plugin would cause other babel plugins to exit early
@vanilla-extract/[email protected]
Minor Changes
-
#37
ae9864cThanks @markdalgleish! - RenamemapToStylestostyleVariantsBREAKING CHANGE
-import { mapToStyles } from '@vanilla-extract/css'; +import { styleVariants } from '@vanilla-extract/css'; -export const variant = mapToStyles({ +export const variant = styleVariants({ primary: { background: 'blue' }, secondary: { background: 'aqua' }, });