Skip to content

@vanilla-extract/sprinkles@1.0.0

Compare
Choose a tag to compare
@seek-oss-ci seek-oss-ci released this 30 Jul 05:10
· 419 commits to master since this release
8e9b0c4

Major Changes

Minor Changes

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

    Sprinkles now uses vanilla-extract’s updated composeStyles function internally, which means that atomic styles can be treated as if they were a single class within vanilla-extract selectors.

    // styles.css.ts
    import { globalStyle } from '@vanilla-extract/css';
    import { atoms } from './sprinkles.css.ts';
    
    export const container = atoms({
      padding: 'small',
    });
    
    globalStyle(`${container} *`, {
      boxSizing: 'border-box',
    });

Patch Changes

  • Updated dependencies [b8a6441]:
    • @vanilla-extract/css@1.2.0