docs/ext/themeRepos/defaults.ts

33 lines · 867 bytes

3 symbols in this file
 1import type { ManaTheme } from './types'
 2
 3export const DEFAULT_THEME: ManaTheme = {
 4  name: 'Default',
 5  colors: {
 6    accent: '#1782FFFF',
 7    background: '#131313FF',
 8    contentTileOverlay: '#0F0F0FEB',
 9    foregroundOnAccent: '#FFFFFFFF',
10    label: '#FFFFFFFF',
11    secondaryBackground: '#181818FF',
12    secondaryLabel: '#929292FF',
13    separator: '#EBEBF52E',
14    separatorSubtle: '#EBEBF52E',
15    shadow: '#000000FF',
16    statusDestructive: '#B82A1BFF',
17    statusInfo: '#1A6BAFFF',
18    statusPositive: '#15780CFF',
19    statusWarning: '#A07D10FF',
20    tertiaryBackground: '#282828FF'
21  }
22}
23
24export const IDENTITY_COLORS = [
25  'accent',
26  'background',
27  'secondaryBackground',
28  'tertiaryBackground'
29] as const
30
31export const resolveThemeColors = (
32  colors?: Record<string, string>
33): Record<string, string> => ({ ...DEFAULT_THEME.colors, ...(colors ?? {}) })