Releases: vanilla-extract-css/vanilla-extract
Releases · vanilla-extract-css/vanilla-extract
@vanilla-extract/webpack-plugin@2.3.16
Patch Changes
- Updated dependencies []:
- @vanilla-extract/integration@7.1.12
@vanilla-extract/vite-plugin@4.0.19
Patch Changes
- Updated dependencies []:
- @vanilla-extract/integration@7.1.12
@vanilla-extract/rollup-plugin@1.3.12
Patch Changes
- Updated dependencies []:
- @vanilla-extract/integration@7.1.12
@vanilla-extract/parcel-transformer@1.0.12
Patch Changes
- Updated dependencies []:
- @vanilla-extract/integration@7.1.12
@vanilla-extract/next-plugin@2.4.8
Patch Changes
- Updated dependencies []:
- @vanilla-extract/webpack-plugin@2.3.16
@vanilla-extract/jest-transform@1.1.12
Patch Changes
- Updated dependencies []:
- @vanilla-extract/integration@7.1.12
@vanilla-extract/integration@7.1.12
@vanilla-extract/esbuild-plugin@2.3.13
Patch Changes
- Updated dependencies []:
- @vanilla-extract/integration@7.1.12
@vanilla-extract/css@1.17.0
Minor Changes
-
#1092
fd673f6
Thanks @z4o4z! -keyframes
: Add support for avars
property to steps withinkeyframes
declarationsExample usage:
import { createVar, keyframes } from '@vanilla-extract/css'; const angle = createVar({ syntax: '<angle>', inherits: false, initialValue: '0deg' }); export const angleKeyframes = keyframes({ '0%': { vars: { [angle]: '0deg' } }, '100%': { vars: { [angle]: '360deg' } } });
-
#1512
4abfc0b
Thanks @askoufis! -createTheme
,createGlobalTheme
: Add support for assigning themes to a layerThemes can now be assigned to a layer by name using the
@layer
key at the top-level of the theme definition.EXAMPLE USAGE:
// themes.css.ts import { createTheme, createGlobalTheme, layer } from '@vanilla-extract/css'; export const themeLayer = layer(); export const [themeA, vars] = createTheme({ '@layer': themeLayer, color: { brand: 'blue' }, font: { body: 'arial' } }); export const vars2 = createGlobalTheme(':root', { '@layer': themeLayer, space: { small: '10px', large: '20px' } });
This will generate the following CSS:
@layer themes_themeLayer__1k6oxph0; @layer themes_themeLayer__1k6oxph0 { .themes_themeA__1k6oxph1 { --color-brand__1k6oxph2: blue; --font-body__1k6oxph3: arial; } :root { --space-small__z05zdf1: 10px; --space-large__z05zdf2: 20px; } }
-
#1092
fd673f6
Thanks @z4o4z! -createVar
: Add support for defining@property
rulesExample usage:
import { createVar } from '@vanilla-extract/css'; export const myVar = createVar({ syntax: '<number>', inherits: false, initialValue: '0.5' });
This will generate the following CSS:
@property --myVar__jteyb14 { syntax: '<number>'; inherits: false; initial-value: 0.5; }