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

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

Patch Changes

  • #63 2cecc8a Thanks @fnky! - Allow theme vars to be passed to atomic properties

  • #64 5bee64f Thanks @michaeltaranto! - Support resolving falsey values for conditional atoms

    Fixes bug where falsey values such as opacity: 0 would not resolve classes via the conditional object or responsive array syntax.

    export const atoms = createAtomicStyles({
      defaultCondition: 'mobile',
      conditions: {
        mobile: {},
        desktop: {
          '@media': 'screen and (min-width: 786px)',
        },
      },
      responsiveArray: ['mobile', 'desktop'],
      properties: {
        opacity: [0, 1],
      },
    });
  • #59 e999308 Thanks @markdalgleish! - Fix types for numbers as values

  • Updated dependencies [2cecc8a]:

    • @vanilla-extract/css@0.4.1

Don't miss a new vanilla-extract release

NewReleases is sending notifications on new releases.