diff --git a/src/theme/createTheme.ts b/src/theme/createTheme.ts index d9666bb..bd74390 100644 --- a/src/theme/createTheme.ts +++ b/src/theme/createTheme.ts @@ -8,9 +8,8 @@ import { createSettings } from '../settings/createSettings'; import type { Settings, Setting } from '../settings/types'; import KeyValueStore from '../stores/KeyValueStore'; import { useColorScheme as useSystemColorScheme } from 'react-native'; -import type { Theme, ThemeColors, ThemeDefinition } from './types'; +import type { ColorScheme, Theme, ThemeColors, ThemeDefinition } from './types'; -type ColorScheme = 'light' | 'dark' | 'system'; const COLOR_SCHEMES = ['light', 'dark', 'system'] as const; const DEFAULT_COLOR_SCHEME = 'system'; const DEFAULT_SYSTEM_COLOR_SCHEME = 'light'; diff --git a/src/theme/index.ts b/src/theme/index.ts index 633acdf..f8e7780 100644 --- a/src/theme/index.ts +++ b/src/theme/index.ts @@ -4,7 +4,7 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. -export type { Theme, ThemeColors, ThemeDefinition } from './types'; +export type { ColorScheme, Theme, ThemeColors, ThemeDefinition } from './types'; export { createTheme } from './createTheme'; export * from './fonts'; diff --git a/src/theme/types.ts b/src/theme/types.ts index cd21141..75c7fae 100644 --- a/src/theme/types.ts +++ b/src/theme/types.ts @@ -6,6 +6,8 @@ import type { ThemeFonts } from './fonts/types'; +export type ColorScheme = 'light' | 'dark' | 'system'; + export interface ThemeColors extends Record {} export type Theme = {