visuals now adhere to theme by default
This commit is contained in:
parent
6a2486d9f2
commit
c400deac74
6 changed files with 34 additions and 13 deletions
2
packages/codemirror/themes.mjs
vendored
2
packages/codemirror/themes.mjs
vendored
|
|
@ -37,6 +37,7 @@ import whitescreen, { settings as whitescreenSettings } from './themes/whitescre
|
|||
import teletext, { settings as teletextSettings } from './themes/teletext';
|
||||
import algoboy, { settings as algoboySettings } from './themes/algoboy';
|
||||
import terminal, { settings as terminalSettings } from './themes/terminal';
|
||||
import { setTheme } from '@strudel/draw';
|
||||
|
||||
export const themes = {
|
||||
strudelTheme,
|
||||
|
|
@ -513,6 +514,7 @@ export function activateTheme(name) {
|
|||
.map(([key, value]) => `--${key}: ${value} !important;`)
|
||||
.join('\n')}
|
||||
}`;
|
||||
setTheme(themeSettings);
|
||||
// tailwind dark mode
|
||||
if (themeSettings.light) {
|
||||
document.documentElement.classList.remove('dark');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue