Skip to content

@vanilla-extract/sprinkles@1.7.0

Latest

Choose a tag to compare

@vanilla-extract-ci vanilla-extract-ci released this 23 Jun 11:00
· 2 commits to master since this release
bc8b51c

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'
        }
      }
    });