Skip to content

Commit a797834

Browse files
committed
Add accentColor to css properties
1 parent fae894d commit a797834

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

packages/css/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export const multiples = {
112112
export const scales = {
113113
color: 'colors',
114114
background: 'colors',
115+
accentColor: 'colors',
115116
backgroundColor: 'colors',
116117
borderColor: 'colors',
117118
caretColor: 'colors',

packages/css/test/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,16 +577,18 @@ test('flexBasis uses theme.sizes', () => {
577577
})
578578
})
579579

580-
test('fill and stroke and caretColor use theme.colors', () => {
580+
test('fill, stroke, caretColor, and accentColor use theme.colors', () => {
581581
const style = css({
582582
fill: 'primary',
583583
stroke: 'secondary',
584584
caretColor: 'primary',
585+
accentColor: 'secondary',
585586
})(theme)
586587
expect(style).toEqual({
587588
fill: 'tomato',
588589
stroke: 'cyan',
589590
caretColor: 'tomato',
591+
accentColor: 'cyan',
590592
})
591593
})
592594

packages/docs/src/pages/sx-prop.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ available.
6060
| `letterSpacing` | `letterSpacings` |
6161
| `color` | `colors` |
6262
| `bg`, `backgroundColor` | `colors` |
63+
| `accentColor` | `colors` |
6364
| `borderColor` | `colors` |
6465
| `caretColor` | `colors` |
6566
| `outlineColor` | `colors` |

0 commit comments

Comments
 (0)