fix sandpack theme handle

This commit is contained in:
DefectingCat
2023-11-10 10:54:47 +08:00
parent 6f6f24a050
commit 072498779b
4 changed files with 36 additions and 14 deletions

9
lib/consts.ts Normal file
View File

@ -0,0 +1,9 @@
export const MEDIA = '(prefers-color-scheme: dark)';
export const THEME_CATPUCCIN_MAP = {
latte: 'light' as const,
mocha: 'dark' as const,
};
export const THEME_MAP = {
light: 'latte' as const,
dark: 'mocha' as const,
};