Releases: vanilla-extract-css/vanilla-extract
@vanilla-extract/[email protected]
Minor Changes
-
#827
9cfb9a1Thanks @mattcompiles! - Add automatic debug IDsAutomatic debug IDs allow your styles and other identifiers (e.g. CSS Vars, keyframes, etc) to have names that more closely reflect your source code when in development. This makes it easier to understand how the CSS output links to your source code.
// styles.css.ts // redBox ~= 'styles_redBox_asdfgj' const redBox = style({ background: 'red', });
Patch Changes
- Updated dependencies [
9cfb9a1,9cfb9a1,9cfb9a1]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Minor Changes
-
#827
9cfb9a1Thanks @mattcompiles! - Remove requirement for@vanilla-extract/babel-pluginPreviously, to get automatic debug IDs you needed to use Babel with the
@vanilla-extract/babel-pluginin your config. As this is no longer the case, the@vanilla-extract/babel-pluginshould be removed completely from your project.
Patch Changes
- Updated dependencies [
9cfb9a1]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
- Updated dependencies [
9cfb9a1,9cfb9a1,9cfb9a1]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Major Changes
-
#827
9cfb9a1Thanks @mattcompiles! -vanillaExtractFilescopePluginhas been renamed tovanillaExtractTransformPlugin -
#827
9cfb9a1Thanks @mattcompiles! -compilenow expects a valididentOptionparameter
Minor Changes
-
#827
9cfb9a1Thanks @mattcompiles! - AddtransformandtransformSyncfunctionsThe transform APIs can be used to append filescopes and automatic debug IDs to
.css.tsfiles.
@vanilla-extract/[email protected]
Minor Changes
-
#827
9cfb9a1Thanks @mattcompiles! - Add automatic debug IDsAutomatic debug IDs allow your styles and other identifiers (e.g. CSS Vars, keyframes, etc) to have names that more closely reflect your source code when in development. This makes it easier to understand how the CSS output links to your source code.
// styles.css.ts // redBox ~= 'styles_redBox_asdfgj' const redBox = style({ background: 'red', });
Patch Changes
- Updated dependencies [
9cfb9a1,9cfb9a1,9cfb9a1]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
-
#837
9191d5aThanks @mattcompiles! - Improve performance of selector transformsThis issue occured on M1 Macs due to performance issues with large regex patterns.
-
#833
b53558aThanks @mattcompiles! - Fix entrypoint resolving in Vitest
@vanilla-extract/[email protected]
Minor Changes
- #825
ef905c3Thanks @markdalgleish! - Add experimental support for SolidStart
@vanilla-extract/[email protected]
Minor Changes
- #796
ee83020Thanks @mechairoi! - Add experimental support for Astro
@vanilla-extract/[email protected]
Minor Changes
-
#812
009e122Thanks @markdalgleish! - Add support for container query conditionsExample usage
import { createContainer, style } from '@vanilla-extract/css'; import { defineProperties } from '@vanilla-extract/sprinkles'; const containerName = createContainer(); export const container = style({ containerName, containerType: 'size', }); const containerProperties = defineProperties({ conditions: { small: {}, medium: { '@container': `${containerName} (min-width: 768px)`, }, large: { '@container': `${containerName} (min-width: 1024px)`, }, }, defaultCondition: 'small', // etc. });
@vanilla-extract/[email protected]
Minor Changes
-
#810
c38b152Thanks @markdalgleish! - Support excluding file names fromgenerateIdentifieroutput. This is available by passing a newly-added options object rather than a string.Example usage
import { generateIdentifier } from '@vanilla-extract/css'; const identifier = generateIdentifier({ debugId, debugFileName: false, });
Patch Changes
-
#810
c38b152Thanks @markdalgleish! - Fix spaces in debug IDs for variable names. -
#810
c38b152Thanks @markdalgleish! - Fix file name prefix in debug names when file extension is.cjsor.mjs.