Skip to content

Releases: vanilla-extract-css/vanilla-extract

@vanilla-extract/[email protected]

30 Jul 05:10
8e9b0c4

Choose a tag to compare

Minor Changes

  • #259 b8a6441 Thanks @markdalgleish! - Allow the result of composeStyles to be used in selectors

    When style compositions are used in selectors, they are now assigned an additional class 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, composeStyles } from '@vanilla-extract/css';
    
    const background = style({ background: 'mintcream' });
    const padding = style({ padding: 12 });
    
    export const container = composeStyles(background, padding);
    
    globalStyle(`${container} *`, {
      boxSizing: 'border-box',
    });

Patch Changes

@vanilla-extract/[email protected]

30 Jul 05:10
8e9b0c4

Choose a tag to compare

Minor Changes

  • #259 b8a6441 Thanks @markdalgleish! - Allow the result of composeStyles to be used in selectors

    When style compositions are used in selectors, they are now assigned an additional class 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, composeStyles } from '@vanilla-extract/css';
    
    const background = style({ background: 'mintcream' });
    const padding = style({ padding: 12 });
    
    export const container = composeStyles(background, padding);
    
    globalStyle(`${container} *`, {
      boxSizing: 'border-box',
    });

Patch Changes

@vanilla-extract/[email protected]

30 Jul 11:17
ce255bb

Choose a tag to compare

Patch Changes

@vanilla-extract/[email protected]

30 Jul 05:10
8e9b0c4

Choose a tag to compare

Minor Changes

  • #259 b8a6441 Thanks @markdalgleish! - Allow the result of composeStyles to be used in selectors

    When style compositions are used in selectors, they are now assigned an additional class 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, composeStyles } from '@vanilla-extract/css';
    
    const background = style({ background: 'mintcream' });
    const padding = style({ padding: 12 });
    
    export const container = composeStyles(background, padding);
    
    globalStyle(`${container} *`, {
      boxSizing: 'border-box',
    });

@vanilla-extract/[email protected]

27 Jul 13:35
edae615

Choose a tag to compare

Patch Changes

  • #252 b9b3451 Thanks @graup! - Fix Exported variable 'Box' has or is using name 'ResponsiveArray' from external module error (#250)

@vanilla-extract/[email protected]

21 Jul 04:51
35af8d1

Choose a tag to compare

Patch Changes

@vanilla-extract/[email protected]

18 Jul 23:11
9ecfd78

Choose a tag to compare

Patch Changes

@vanilla-extract/[email protected]

16 Jul 05:46
c62b53c

Choose a tag to compare

Patch Changes

@vanilla-extract/[email protected]

16 Jul 05:46
c62b53c

Choose a tag to compare

Patch Changes

@vanilla-extract/[email protected]

25 Jun 01:24
cfb0c89

Choose a tag to compare

Patch Changes