Skip to content

Commit f707db6

Browse files
committed
chore: prep major changelog
1 parent 6b941b7 commit f707db6

File tree

1 file changed

+109
-0
lines changed

1 file changed

+109
-0
lines changed

CHANGELOG.md

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,115 @@ See the [Changesets](./.changeset) for the latest changes.
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- Fix issue where `rtl` and `ltr` variants does not work with `[dir=auto]`
12+
- Fix issue where `@property` fallbacks does not work correctly when global vars are used in no `initial-value`
13+
- Sort `fieldSizing` property properly
14+
15+
### Changed
16+
17+
- Add `::-webkit-details-marker` to `marker` condition
18+
- Add new `inset-2xs`, `inset-xs` and `inset-sm` shadows
19+
- Add new `noscript` and `inverted-colors` conditions
20+
- Add `:popover-open` to `open` condition
21+
- Removed `inner` shadow in favor of `inset-sm`
22+
- Remap blur tokens:
23+
- `blurs.sm` -> `blurs.xs`
24+
- `blurs.base` -> `blurs.sm`
25+
26+
### Added
27+
28+
- Add support for `bgLinear`, `bgRadial` and `bgConic` properties.
29+
30+
```tsx
31+
<div
32+
className={css({
33+
bgLinear: 'to-r',
34+
gradientFrom: 'cyan.500',
35+
gradientTo: 'blue.500',
36+
})}
37+
/>
38+
```
39+
40+
```tsx
41+
<div
42+
className={css({
43+
bgRadial: 'in srgb',
44+
gradientFrom: 'pink.400',
45+
gradientFromPosition: '40%',
46+
gradientTo: 'fuchsia.700',
47+
})}
48+
/>
49+
```
50+
51+
```tsx
52+
<div
53+
className={css({
54+
bgConic: 'in srgb',
55+
gradientFrom: 'blue.600',
56+
gradientTo: 'sky.400',
57+
gradientToPosition: '50%',
58+
})}
59+
/>
60+
```
61+
62+
- Add support for `boxSize` property that maps to `width` and `height` properties.
63+
64+
```tsx
65+
<div className={css({ boxSize: '24' })} />
66+
```
67+
68+
- Add `createStyleContext` function to framework artifacts for React, Preact, Solid, and Vue frameworks
69+
70+
```tsx
71+
import { sva } from 'styled-system/css'
72+
import { createStyleContext } from 'styled-system/jsx'
73+
74+
const card = sva({
75+
slots: ['root', 'label'],
76+
base: {
77+
root: {
78+
color: 'red',
79+
bg: 'red.300',
80+
},
81+
label: {
82+
fontWeight: 'medium',
83+
},
84+
},
85+
variants: {
86+
size: {
87+
sm: {
88+
root: {
89+
padding: '10px',
90+
},
91+
},
92+
md: {
93+
root: {
94+
padding: '20px',
95+
},
96+
},
97+
},
98+
},
99+
defaultVariants: {
100+
size: 'sm',
101+
},
102+
})
103+
104+
const { withProvider, withContext } = createStyleContext(card)
105+
106+
const CardRoot = withProvider('div', 'root')
107+
const CardLabel = withContext('label', 'label')
108+
```
109+
110+
Then, use like this:
111+
112+
```tsx
113+
<CardRoot size="sm">
114+
<CardLabel>Hello</CardLabel>
115+
</CardRoot>
116+
```
117+
9118
## [0.54.0] - 2025-06-12
10119

11120
### Fixed

0 commit comments

Comments
 (0)