github vanilla-extract-css/vanilla-extract @vanilla-extract/sprinkles@1.0.0

latest releases: @vanilla-extract/integration@7.1.4, @vanilla-extract/vite-plugin@4.0.9, @vanilla-extract/webpack-plugin@2.3.8...
2 years ago

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

Don't miss a new vanilla-extract release

NewReleases is sending notifications on new releases.