Skip to content

Releases: vanilla-extract-css/vanilla-extract

@vanilla-extract/css@1.4.1

07 Sep 04:56
d101b43
Compare
Choose a tag to compare

Patch Changes

@vanilla-extract/sprinkles@1.1.3

02 Sep 02:09
8a25cda
Compare
Choose a tag to compare

Patch Changes

@vanilla-extract/vite-plugin@2.0.1

01 Sep 05:07
63a88e1
Compare
Choose a tag to compare

Patch Changes

  • #327 73b55f8 Thanks @benjervis! - Fix bug where precompiled .css.ts files (.css.js) were treated differently in SSR mode.

@vanilla-extract/sprinkles@1.1.2

01 Sep 11:59
14bba09
Compare
Choose a tag to compare

Patch Changes

@vanilla-extract/css@1.4.0

01 Sep 11:59
14bba09
Compare
Choose a tag to compare

Minor Changes

  • #326 2d9b4c3 Thanks @mattcompiles! - Support passing arrays of styles to style and styleVariants

    Multiple styles can now be composed into a single rule by providing an array of styles.

    import { style } from '@vanilla-extract/css';
    
    const base = style({ padding: 12 });
    
    export const primary = style([base, { background: 'blue' }]);
    
    export const secondary = style([base, { background: 'aqua' }]);

    When composed styles are used in selectors, they are assigned an additional class if required so they can be uniquely identified. When selectors are processed internally, the composed classes are removed, only leaving behind the unique identifier classes. This allows you to treat them as if they were a single class within vanilla-extract selectors.

    import { style, globalStyle } from '@vanilla-extract/css';
    
    const background = style({ background: 'mintcream' });
    const padding = style({ padding: 12 });
    
    export const container = style([background, padding]);
    
    globalStyle(`${container} *`, {
      boxSizing: 'border-box',
    });

    This feature is a replacement for the standalone composeStyles function which is now marked as deprecated. You can use style with an array as a drop-in replacement.

    -export const container = composeStyles(background, padding);
    +export const container = style([background, padding]);

@vanilla-extract/webpack-plugin@2.0.0

27 Aug 04:36
a25cb16
Compare
Choose a tag to compare

Major Changes

  • #323 1e7d647 Thanks @mattcompiles! - Formatting of identifiers (e.g. class names, keyframes, CSS Vars, etc) can now be configured via the identifiers option which accepts either short or debug.

    • short identifiers are a 7+ character hash. e.g. hnw5tz3
    • debug identifiers contain human readable prefixes representing the owning filename and a potential rule level debug name. e.g. somefile_mystyle_hnw5tz3
    import { vanillaExtractPlugin } from '@vanilla-extract/webpack-plugin';
    
    vanillaExtractPlugin({ identifiers: 'short' });

    BREAKING CHANGE

    Previously identifiers were formatted as short when process.env.NODE_ENV was set to "production". By default, they will now be formatted according to webpack's mode config.

Patch Changes

  • Updated dependencies [1e7d647]:
    • @vanilla-extract/integration@1.2.0

@vanilla-extract/vite-plugin@2.0.0

27 Aug 04:36
a25cb16
Compare
Choose a tag to compare

Major Changes

  • #323 1e7d647 Thanks @mattcompiles! - Formatting of identifiers (e.g. class names, keyframes, CSS Vars, etc) can now be configured via the identifiers option which accepts either short or debug.

    • short identifiers are a 7+ character hash. e.g. hnw5tz3
    • debug identifiers contain human readable prefixes representing the owning filename and a potential rule level debug name. e.g. somefile_mystyle_hnw5tz3
    import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
    
    vanillaExtractPlugin({ identifiers: 'short' });

    BREAKING CHANGE

    Previously identifiers were formatted as short when process.env.NODE_ENV was set to "production". By default, they will now be formatted according to Vite's mode config.

Patch Changes

  • Updated dependencies [1e7d647]:
    • @vanilla-extract/integration@1.2.0

@vanilla-extract/snowpack-plugin@2.0.0

27 Aug 04:36
a25cb16
Compare
Choose a tag to compare

Major Changes

  • #323 1e7d647 Thanks @mattcompiles! - Formatting of identifiers (e.g. class names, keyframes, CSS Vars, etc) can now be configured via the identifiers option which accepts either short or debug.

    • short identifiers are a 7+ character hash. e.g. hnw5tz3
    • debug identifiers contain human readable prefixes representing the owning filename and a potential rule level debug name. e.g. somefile_mystyle_hnw5tz3
    import { vanillaExtractPlugin } from '@vanilla-extract/snowpack-plugin';
    
    const snowpackConfig = {
      plugins: [['@vanilla-extract/snowpack-plugin', { identifiers: 'short' }]],
    };

    BREAKING CHANGE

    Previously identifiers were formatted as short when process.env.NODE_ENV was set to "production". By default, they will now be formatted according to Snowpacks's mode config.

Patch Changes

  • Updated dependencies [1e7d647]:
    • @vanilla-extract/integration@1.2.0

@vanilla-extract/integration@1.2.0

27 Aug 04:36
a25cb16
Compare
Choose a tag to compare

Minor Changes

Patch Changes

@vanilla-extract/esbuild-plugin@2.0.0

27 Aug 04:36
a25cb16
Compare
Choose a tag to compare

Major Changes

  • #323 1e7d647 Thanks @mattcompiles! - Formatting of identifiers (e.g. class names, keyframes, CSS Vars, etc) can now be configured via the identifiers option which accepts either short or debug.

    • short identifiers are a 7+ character hash. e.g. hnw5tz3
    • debug identifiers contain human readable prefixes representing the owning filename and a potential rule level debug name. e.g. somefile_mystyle_hnw5tz3
    import { vanillaExtractPlugin } from '@vanilla-extract/esbuild-plugin';
    
    vanillaExtractPlugin({ identifiers: 'short' });

    BREAKING CHANGE

    Previously identifiers were formatted as short when process.env.NODE_ENV was set to "production". By default, they will now be formatted according to esbuild's minify config.

Patch Changes

  • Updated dependencies [1e7d647]:
    • @vanilla-extract/integration@1.2.0