From 459f625e35b351bdd2861adb5ca4e1c10b159cb5 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Sun, 12 Feb 2023 00:54:42 +0100 Subject: [PATCH] fix: themes with wrong dark / light property (#458) --- themes/atomone/src/index.ts | 2 +- themes/darcula/src/index.ts | 2 +- themes/dracula/src/index.ts | 2 +- themes/duotone/src/index.ts | 2 +- themes/gruvbox/src/index.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/themes/atomone/src/index.ts b/themes/atomone/src/index.ts index 5aacbec0c..cb6ce87cd 100644 --- a/themes/atomone/src/index.ts +++ b/themes/atomone/src/index.ts @@ -20,7 +20,7 @@ export const defaultSettingsAtomone: CreateThemeOptions['settings'] = { }; export const atomoneInit = (options?: Partial) => { - const { theme = 'light', settings = {}, styles = [] } = options || {}; + const { theme = 'dark', settings = {}, styles = [] } = options || {}; return createTheme({ theme: theme, settings: { diff --git a/themes/darcula/src/index.ts b/themes/darcula/src/index.ts index d32bf9d84..0954f5f6a 100644 --- a/themes/darcula/src/index.ts +++ b/themes/darcula/src/index.ts @@ -20,7 +20,7 @@ export const defaultSettingsDarcula: CreateThemeOptions['settings'] = { }; export const darculaInit = (options?: Partial) => { - const { theme = 'light', settings = {}, styles = [] } = options || {}; + const { theme = 'dark', settings = {}, styles = [] } = options || {}; return createTheme({ theme: theme, settings: { diff --git a/themes/dracula/src/index.ts b/themes/dracula/src/index.ts index b107bcfca..e74ca85c5 100644 --- a/themes/dracula/src/index.ts +++ b/themes/dracula/src/index.ts @@ -20,7 +20,7 @@ export const defaultSettingsDracula: CreateThemeOptions['settings'] = { }; export const draculaInit = (options?: Partial) => { - const { theme = 'light', settings = {}, styles = [] } = options || {}; + const { theme = 'dark', settings = {}, styles = [] } = options || {}; return createTheme({ theme: theme, settings: { diff --git a/themes/duotone/src/index.ts b/themes/duotone/src/index.ts index 98a5ed933..a3531f0df 100644 --- a/themes/duotone/src/index.ts +++ b/themes/duotone/src/index.ts @@ -52,7 +52,7 @@ export const defaultSettingsDuotoneDark: CreateThemeOptions['settings'] = { }; export const duotoneDarkInit = (options?: Partial) => { - const { theme = 'light', settings = {}, styles = [] } = options || {}; + const { theme = 'dark', settings = {}, styles = [] } = options || {}; return createTheme({ theme: theme, settings: { diff --git a/themes/gruvbox/src/index.ts b/themes/gruvbox/src/index.ts index b4fa425f2..5ad1bc43b 100644 --- a/themes/gruvbox/src/index.ts +++ b/themes/gruvbox/src/index.ts @@ -139,7 +139,7 @@ export const defaultSettingsGruvboxLight: CreateThemeOptions['settings'] = { }; export const gruvboxLightInit = (options?: Partial) => { - const { theme = 'dark', settings = {}, styles = [] } = options || {}; + const { theme = 'light', settings = {}, styles = [] } = options || {}; return createTheme({ theme: theme, settings: {