Skip to content

Commit

Permalink
Merge pull request #2472 from jhbell/develop
Browse files Browse the repository at this point in the history
Add accentColor to css properties
  • Loading branch information
hasparus authored Jan 5, 2024
2 parents fae894d + a797834 commit b55b6b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/css/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export const multiples = {
export const scales = {
color: 'colors',
background: 'colors',
accentColor: 'colors',
backgroundColor: 'colors',
borderColor: 'colors',
caretColor: 'colors',
Expand Down
4 changes: 3 additions & 1 deletion packages/css/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,16 +577,18 @@ test('flexBasis uses theme.sizes', () => {
})
})

test('fill and stroke and caretColor use theme.colors', () => {
test('fill, stroke, caretColor, and accentColor use theme.colors', () => {
const style = css({
fill: 'primary',
stroke: 'secondary',
caretColor: 'primary',
accentColor: 'secondary',
})(theme)
expect(style).toEqual({
fill: 'tomato',
stroke: 'cyan',
caretColor: 'tomato',
accentColor: 'cyan',
})
})

Expand Down
1 change: 1 addition & 0 deletions packages/docs/src/pages/sx-prop.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ available.
| `letterSpacing` | `letterSpacings` |
| `color` | `colors` |
| `bg`, `backgroundColor` | `colors` |
| `accentColor` | `colors` |
| `borderColor` | `colors` |
| `caretColor` | `colors` |
| `outlineColor` | `colors` |
Expand Down

0 comments on commit b55b6b5

Please sign in to comment.