Skip to content

Commit fd9b3e2

Browse files
committed
chore: add changeset and use uppercase keys for COLOR_SCHEMES
1 parent c67988f commit fd9b3e2

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@strapi/design-system": minor
3+
---
4+
5+
Add CSS `color-scheme` property to improve dark theme support for native browser elements (scrollbars, form controls)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const COLOR_SCHEMES = {
2-
light: 'light',
3-
dark: 'dark',
2+
LIGHT: 'light',
3+
DARK: 'dark',
44
} as const;
55

66
export type ColorScheme = (typeof COLOR_SCHEMES)[keyof typeof COLOR_SCHEMES];

packages/design-system/src/themes/darkTheme/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { darkColorTokenObject } from './dark-colors';
77
import { darkShadowTokenObject } from './dark-shadows';
88

99
export const darkTheme: DefaultTheme = {
10-
colorScheme: COLOR_SCHEMES.dark,
10+
colorScheme: COLOR_SCHEMES.DARK,
1111
colors: darkColorTokenObject.color,
1212
shadows: darkShadowTokenObject.shadow,
1313
...commonTheme,

packages/design-system/src/themes/lightTheme/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { lightColorTokenObject } from './light-colors';
77
import { lightShadowTokenObject } from './light-shadows';
88

99
export const lightTheme: DefaultTheme = {
10-
colorScheme: COLOR_SCHEMES.light,
10+
colorScheme: COLOR_SCHEMES.LIGHT,
1111
colors: lightColorTokenObject.color,
1212
shadows: lightShadowTokenObject.shadow,
1313
...commonTheme,

0 commit comments

Comments
 (0)