Skip to content

Releases: vanilla-extract-css/vanilla-extract

@vanilla-extract/webpack-plugin@2.3.16

20 Dec 04:26
9e5438d
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @vanilla-extract/integration@7.1.12

@vanilla-extract/vite-plugin@4.0.19

20 Dec 04:26
9e5438d
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @vanilla-extract/integration@7.1.12

@vanilla-extract/rollup-plugin@1.3.12

20 Dec 04:26
9e5438d
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @vanilla-extract/integration@7.1.12

@vanilla-extract/parcel-transformer@1.0.12

20 Dec 04:26
9e5438d
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @vanilla-extract/integration@7.1.12

@vanilla-extract/next-plugin@2.4.8

20 Dec 04:26
9e5438d
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @vanilla-extract/webpack-plugin@2.3.16

@vanilla-extract/jest-transform@1.1.12

20 Dec 04:26
9e5438d
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @vanilla-extract/integration@7.1.12

@vanilla-extract/integration@7.1.12

20 Dec 04:26
9e5438d
Compare
Choose a tag to compare

Patch Changes

@vanilla-extract/esbuild-plugin@2.3.13

20 Dec 04:26
9e5438d
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @vanilla-extract/integration@7.1.12

@vanilla-extract/css@1.17.0

20 Dec 04:26
9e5438d
Compare
Choose a tag to compare

Minor Changes

  • #1092 fd673f6 Thanks @z4o4z! - keyframes: Add support for a vars property to steps within keyframes declarations

    Example 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 layer

    Themes 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 rules

    Example 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;
    }

@vanilla-extract/babel-plugin-debug-ids@1.2.0

20 Dec 04:26
9e5438d
Compare
Choose a tag to compare

Minor Changes

  • #1092 fd673f6 Thanks @z4o4z! - Add support for createVar calls that declare @property rules