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

6 hours ago

Minor Changes

  • #1720 7bbe189 Thanks @cahnory! - Add support for @scope to conditions

    EXAMPLE USAGE:

    import { style } from '@vanilla-extract/css';
    import { defineProperties } from '@vanilla-extract/sprinkles';
    
    const scopeRoot = style();
    
    const scopedProperties = defineProperties({
      defaultCondition: 'unscoped',
      conditions: {
        unscoped: {},
        document: {
          '@scope': `(${scopeRoot})`
        }
      },
      responsiveArray: ['unscoped', 'scoped'],
      properties: {
        flexDirection: ['row', 'column'],
        order: {
          first: '1',
          second: '2'
        }
      }
    });

Don't miss a new vanilla-extract release

NewReleases is sending notifications on new releases.