Skip to content

Releases: vanilla-extract-css/vanilla-extract

@vanilla-extract/[email protected]

21 Sep 01:20
58f3ca2

Choose a tag to compare

Minor Changes

  • #827 9cfb9a1 Thanks @mattcompiles! - Add automatic debug IDs

    Automatic 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

@vanilla-extract/[email protected]

21 Sep 01:20
58f3ca2

Choose a tag to compare

Minor Changes

  • #827 9cfb9a1 Thanks @mattcompiles! - Remove requirement for @vanilla-extract/babel-plugin

    Previously, to get automatic debug IDs you needed to use Babel with the @vanilla-extract/babel-plugin in your config. As this is no longer the case, the @vanilla-extract/babel-plugin should be removed completely from your project.

Patch Changes

@vanilla-extract/[email protected]

21 Sep 01:20
58f3ca2

Choose a tag to compare

Patch Changes

@vanilla-extract/[email protected]

21 Sep 01:20
58f3ca2

Choose a tag to compare

Major Changes

Minor Changes

  • #827 9cfb9a1 Thanks @mattcompiles! - Add transform and transformSync functions

    The transform APIs can be used to append filescopes and automatic debug IDs to .css.ts files.

@vanilla-extract/[email protected]

21 Sep 01:20
58f3ca2

Choose a tag to compare

Minor Changes

  • #827 9cfb9a1 Thanks @mattcompiles! - Add automatic debug IDs

    Automatic 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

@vanilla-extract/[email protected]

21 Sep 01:20
58f3ca2

Choose a tag to compare

Patch Changes

@vanilla-extract/[email protected]

13 Sep 21:31
6e20b87

Choose a tag to compare

Minor Changes

@vanilla-extract/[email protected]

09 Sep 10:28
ce12171

Choose a tag to compare

Minor Changes

@vanilla-extract/[email protected]

07 Sep 19:55
d115695

Choose a tag to compare

Minor Changes

  • #812 009e122 Thanks @markdalgleish! - Add support for container query conditions

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

06 Sep 02:26
2a23ce4

Choose a tag to compare

Minor Changes

  • #810 c38b152 Thanks @markdalgleish! - Support excluding file names from generateIdentifier output. 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