Skip to content

Releases: vanilla-extract-css/vanilla-extract

@vanilla-extract/[email protected]

05 May 23:49
fce9695
Compare
Choose a tag to compare

Patch Changes

@vanilla-extract/[email protected]

05 May 04:59
b8fb2e9
Compare
Choose a tag to compare

Patch Changes

@vanilla-extract/[email protected]

04 May 01:54
64bd243
Compare
Choose a tag to compare

Minor Changes

  • #81 717ad60 Thanks @markdalgleish! - Add static properties set to atoms function

    This allows runtime code to detect whether a given property can be handled by the atoms function or not.

    This is useful when building a Box component with atoms available at the top level (e.g. <Box padding="small">) since you'll need some way to filter atom props from non-atom props.

@vanilla-extract/[email protected]

04 May 01:02
edce7d2
Compare
Choose a tag to compare

Patch Changes

  • #77 63c01ad Thanks @mattcompiles! - Improve runtime errors

    Sprinkles will now validate your atoms calls at runtime for a better developer experience. The validation code should be stripped from production bundles via a process.env.NODE_ENV check.

    Example Error

    SprinklesError: "paddingTop" has no value "xlarge". Possible values are "small", "medium", "large"

@vanilla-extract/[email protected]

30 Apr 03:58
80341cb
Compare
Choose a tag to compare

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/[email protected]

30 Apr 12:38
cea2bd9
Compare
Choose a tag to compare

Patch Changes

@vanilla-extract/[email protected]

30 Apr 03:58
80341cb
Compare
Choose a tag to compare

Patch Changes

@vanilla-extract/[email protected]

28 Apr 06:23
d1973ea
Compare
Choose a tag to compare

Minor Changes

Patch Changes

@vanilla-extract/[email protected]

28 Apr 06:23
d1973ea
Compare
Choose a tag to compare

Patch Changes

@vanilla-extract/[email protected]

28 Apr 06:23
d1973ea
Compare
Choose a tag to compare

Minor Changes

Patch Changes