Releases: vanilla-extract-css/vanilla-extract
@vanilla-extract/[email protected]
Minor Changes
-
#348
c6cd1f2Thanks @mattcompiles! - AddaddFunctionSerializerfunctionThis also marks
addRecipeas deprecated.
Patch Changes
- Updated dependencies [
c6cd1f2]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Minor Changes
-
#348
c6cd1f2Thanks @mattcompiles! - AddaddFunctionSerializerfunctionThis also marks
addRecipeas deprecated.
@vanilla-extract/[email protected]
Minor Changes
- #348
c6cd1f2Thanks @mattcompiles! - Add debug IDs torecipefunction
Patch Changes
- Updated dependencies [
c6cd1f2]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Minor Changes
-
#341
0b743e7Thanks @mattcompiles! - No longer require Babel to be run on .css.ts filesPreviously, the
@vanilla-extract/webpack-pluginrequired the@vanilla-extract/babel-pluginto be run over .css.ts files. In order to bring webpack inline with the other integrations, the@vanilla-extract/webpack-plugincan now be used without Babel.Note: Automatic debug IDs still require the
@vanilla-extract/babel-plugin.
Patch Changes
- Updated dependencies [
50bae14,0b743e7]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
-
#341
0b743e7Thanks @mattcompiles! - Refactor SSR file scoping to use centralisedaddFileScopeimplementation -
Updated dependencies [
50bae14,0b743e7]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Minor Changes
-
#334
0d8efe2Thanks @markdalgleish! - Support multiple default conditionsIf your conditions are mutually exclusive (e.g. light mode and dark mode), you can now provide an array of default conditions. For example, the following configuration would automatically expand
atoms({ background: 'white' })to the equivalent ofatoms({ background: { lightMode: 'white', darkMode: 'white' }}).import { createAtomicStyles } from '@vanilla-extract/sprinkles'; const responsiveStyles = createAtomicStyles({ conditions: { lightMode: { '@media': '(prefers-color-scheme: light)' }, darkMode: { '@media': '(prefers-color-scheme: dark)' }, }, defaultCondition: ['lightMode', 'darkMode'], // etc. });
@vanilla-extract/[email protected]
Minor Changes
- #341
0b743e7Thanks @mattcompiles! - AddaddFileScopeAPI
Patch Changes
-
#343
50bae14Thanks @mattcompiles! - Cleanup adapter after processing styles -
Updated dependencies [
50bae14]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
- #343
50bae14Thanks @mattcompiles! - Cleanup adapter after processing styles
@vanilla-extract/[email protected]
Patch Changes
- #331
30f3ba3Thanks @markdalgleish! -createMapValueFn: Support mapping values toboolean,nullandundefined
@vanilla-extract/[email protected]
Patch Changes
- #327
73b55f8Thanks @benjervis! - Fix bug where precompiled .css.ts files (.css.js) were treated differently in SSR mode.