From a797834f7e75e49d52f8fd7467d7ac161710f549 Mon Sep 17 00:00:00 2001 From: Jeff Bell Date: Tue, 2 Jan 2024 10:30:45 -0600 Subject: [PATCH] Add accentColor to css properties --- packages/css/src/index.ts | 1 + packages/css/test/index.ts | 4 +++- packages/docs/src/pages/sx-prop.mdx | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/css/src/index.ts b/packages/css/src/index.ts index 3bacc0a0f..01baaf454 100644 --- a/packages/css/src/index.ts +++ b/packages/css/src/index.ts @@ -112,6 +112,7 @@ export const multiples = { export const scales = { color: 'colors', background: 'colors', + accentColor: 'colors', backgroundColor: 'colors', borderColor: 'colors', caretColor: 'colors', diff --git a/packages/css/test/index.ts b/packages/css/test/index.ts index 069a59a8f..3eb4b73cc 100644 --- a/packages/css/test/index.ts +++ b/packages/css/test/index.ts @@ -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', }) }) diff --git a/packages/docs/src/pages/sx-prop.mdx b/packages/docs/src/pages/sx-prop.mdx index 13cb4d06b..ea34a05a9 100644 --- a/packages/docs/src/pages/sx-prop.mdx +++ b/packages/docs/src/pages/sx-prop.mdx @@ -60,6 +60,7 @@ available. | `letterSpacing` | `letterSpacings` | | `color` | `colors` | | `bg`, `backgroundColor` | `colors` | +| `accentColor` | `colors` | | `borderColor` | `colors` | | `caretColor` | `colors` | | `outlineColor` | `colors` |