Releases: wayfair/rainbow-sprinkles
Releases · wayfair/rainbow-sprinkles
[email protected]
Patch Changes
- bf7d842: Replaced Array.at() to improve browser support
[email protected]
[email protected]
Patch Changes
- ce5d3ab: Updated CSS type for Line Width to support strings
[email protected]
Patch Changes
- 9818127: Fixed stringification of number values
[email protected]
Patch Changes
- 9835d49: Fixes errors when using Numbers as values
[email protected]
Minor Changes
- 5030301: Attached
properties
to rainbowSprinkles method to access all configured property names
[email protected]
[email protected]
Patch Changes
- 0db3335: Prevents assigning a variable if the value of a property matches a static value.
[email protected]
Minor Changes
- a1cc5b9: Add support for no conditions
[email protected]
Minor Changes
-
e9f8620: This is a big refactor to support composing multiple instances of properties. AKA, this makes the API match closer to
@vanilla-extract/sprinkles
, where you usedefineProperties
to create one or more sets of properties, then compose them withcreateRainbowSprinkles
.Before:
// rainbow-sprinkles.css.ts import {createRainbowSprinkles} from 'rainbow-sprinkles'; export const rainbowSprinkles = createRainbowSprinkles({ ... })
After:
// rainbow-sprinkles.css.ts import {defineProperties, createRainbowSprinkles} from 'rainbow-sprinkles'; const properties = defineProperties({ ... }) export const rainbowSprinkles = createRainbowSprinkles(properties) ```tx