Skip to content

Commit 9a09c7e

Browse files
committed
fix: rename to black to avoid confusion with perfers-contrast settings
1 parent f158419 commit 9a09c7e

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/assets/main.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
--fg-muted: oklch(0.709 0 0);
1818
--fg-subtle: oklch(0.633 0 0);
1919

20-
/* border, seperator colors */
20+
/* border, separator colors */
2121
--border: oklch(0.269 0 0);
2222
--border-subtle: oklch(0.239 0 0);
2323
--border-hover: oklch(0.371 0 0);
@@ -64,7 +64,7 @@
6464
--bg-elevated: oklch(0.252 0.007 34.298);
6565
}
6666

67-
:root[data-theme='dark'][data-bg-theme='contrast'] {
67+
:root[data-theme='dark'][data-bg-theme='black'] {
6868
--bg: oklch(0 0 0);
6969
--bg-subtle: oklch(0.148 0 0);
7070
--bg-muted: oklch(0.204 0 0);

shared/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ export const BACKGROUND_THEMES = {
4545
stone: 'oklch(0.555 0.013 58.123)',
4646
zinc: 'oklch(0.555 0.016 285.931)',
4747
slate: 'oklch(0.555 0.046 257.407)',
48-
contrast: 'oklch(0.4 0 0)',
48+
black: 'oklch(0.4 0 0)',
4949
} as const

test/nuxt/a11y.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,8 +1848,8 @@ describe('background theme accessibility', () => {
18481848
['dark', 'zinc'],
18491849
['light', 'slate'],
18501850
['dark', 'slate'],
1851-
['light', 'contrast'],
1852-
['dark', 'contrast'],
1851+
['light', 'black'],
1852+
['dark', 'black'],
18531853
] as const
18541854

18551855
function applyTheme(colorMode: string, bgTheme: string | null) {

0 commit comments

Comments
 (0)