Commit fc01cec
committed
refactor: route ThemeContext color-scheme through isLightThemeMode
Replace the inline `theme === "light" || theme === "flexoki-light"` check in
`getColorScheme` with the shared `isLightThemeMode` helper from
`shiki-shared.ts`, so the `-light` suffix convention has a single source of
truth and stays consistent with the syntax-highlighting call sites that
already use it.1 parent d2e53f6 commit fc01cec
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | | - | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
0 commit comments