| 
 | 1 | +import { mix } from '../../utils/theme';  | 
 | 2 | +import type { DarkTheme } from '../themes.interfaces';  | 
 | 3 | + | 
 | 4 | +const colors = {  | 
 | 5 | +  primary: '#4d8dff',  | 
 | 6 | +  secondary: '#46b1ff',  | 
 | 7 | +  tertiary: '#8482fb',  | 
 | 8 | +  success: '#2dd55b',  | 
 | 9 | +  warning: '#ffce31',  | 
 | 10 | +  danger: '#f24c58',  | 
 | 11 | +  light: '#222428',  | 
 | 12 | +  medium: '#989aa2',  | 
 | 13 | +  dark: '#f4f5f8',  | 
 | 14 | +};  | 
 | 15 | + | 
 | 16 | +export const darkTheme: DarkTheme = {  | 
 | 17 | +  enabled: 'never',  | 
 | 18 | +  color: {  | 
 | 19 | +    primary: {  | 
 | 20 | +      bold: {  | 
 | 21 | +        base: colors.primary,  | 
 | 22 | +        contrast: '#fff',  | 
 | 23 | +        foreground: mix(colors.primary, '#000', '4%'),  | 
 | 24 | +        shade: mix(colors.primary, '#000', '4%'),  | 
 | 25 | +        tint: mix(colors.primary, '#fff', '12%'),  | 
 | 26 | +      },  | 
 | 27 | +      subtle: {  | 
 | 28 | +        base: mix('#000', colors.primary, '8%'),  | 
 | 29 | +        contrast: colors.primary,  | 
 | 30 | +        foreground: mix(colors.primary, '#000', '4%'),  | 
 | 31 | +        shade: mix('#000', colors.primary, '4%'),  | 
 | 32 | +        tint: mix('#000', colors.primary, '12%'),  | 
 | 33 | +      },  | 
 | 34 | +    },  | 
 | 35 | +    secondary: {  | 
 | 36 | +      bold: {  | 
 | 37 | +        base: colors.secondary,  | 
 | 38 | +        contrast: '#fff',  | 
 | 39 | +        foreground: mix(colors.secondary, '#000', '4%'),  | 
 | 40 | +        shade: mix(colors.secondary, '#000', '4%'),  | 
 | 41 | +        tint: mix(colors.secondary, '#fff', '12%'),  | 
 | 42 | +      },  | 
 | 43 | +      subtle: {  | 
 | 44 | +        base: mix('#000', colors.secondary, '8%'),  | 
 | 45 | +        contrast: colors.secondary,  | 
 | 46 | +        foreground: mix(colors.secondary, '#000', '4%'),  | 
 | 47 | +        shade: mix('#000', colors.secondary, '4%'),  | 
 | 48 | +        tint: mix('#000', colors.secondary, '12%'),  | 
 | 49 | +      },  | 
 | 50 | +    },  | 
 | 51 | +    tertiary: {  | 
 | 52 | +      bold: {  | 
 | 53 | +        base: colors.tertiary,  | 
 | 54 | +        contrast: '#fff',  | 
 | 55 | +        foreground: mix(colors.tertiary, '#000', '4%'),  | 
 | 56 | +        shade: mix(colors.tertiary, '#000', '4%'),  | 
 | 57 | +        tint: mix(colors.tertiary, '#fff', '12%'),  | 
 | 58 | +      },  | 
 | 59 | +      subtle: {  | 
 | 60 | +        base: mix('#000', colors.tertiary, '8%'),  | 
 | 61 | +        contrast: colors.tertiary,  | 
 | 62 | +        foreground: mix(colors.tertiary, '#000', '4%'),  | 
 | 63 | +        shade: mix('#000', colors.tertiary, '4%'),  | 
 | 64 | +        tint: mix('#000', colors.tertiary, '12%'),  | 
 | 65 | +      },  | 
 | 66 | +    },  | 
 | 67 | +    success: {  | 
 | 68 | +      bold: {  | 
 | 69 | +        base: colors.success,  | 
 | 70 | +        contrast: '#fff',  | 
 | 71 | +        foreground: mix(colors.success, '#000', '4%'),  | 
 | 72 | +        shade: mix(colors.success, '#000', '4%'),  | 
 | 73 | +        tint: mix(colors.success, '#fff', '12%'),  | 
 | 74 | +      },  | 
 | 75 | +      subtle: {  | 
 | 76 | +        base: mix('#000', colors.success, '8%'),  | 
 | 77 | +        contrast: colors.success,  | 
 | 78 | +        foreground: mix(colors.success, '#000', '4%'),  | 
 | 79 | +        shade: mix('#000', colors.success, '4%'),  | 
 | 80 | +        tint: mix('#000', colors.success, '12%'),  | 
 | 81 | +      },  | 
 | 82 | +    },  | 
 | 83 | +    warning: {  | 
 | 84 | +      bold: {  | 
 | 85 | +        base: colors.warning,  | 
 | 86 | +        contrast: '#fff',  | 
 | 87 | +        foreground: mix(colors.warning, '#000', '4%'),  | 
 | 88 | +        shade: mix(colors.warning, '#000', '4%'),  | 
 | 89 | +        tint: mix(colors.warning, '#fff', '12%'),  | 
 | 90 | +      },  | 
 | 91 | +      subtle: {  | 
 | 92 | +        base: mix('#000', colors.warning, '8%'),  | 
 | 93 | +        contrast: colors.warning,  | 
 | 94 | +        foreground: mix(colors.warning, '#000', '4%'),  | 
 | 95 | +        shade: mix('#000', colors.warning, '4%'),  | 
 | 96 | +        tint: mix('#000', colors.warning, '12%'),  | 
 | 97 | +      },  | 
 | 98 | +    },  | 
 | 99 | +    danger: {  | 
 | 100 | +      bold: {  | 
 | 101 | +        base: colors.danger,  | 
 | 102 | +        contrast: '#fff',  | 
 | 103 | +        foreground: mix(colors.danger, '#000', '4%'),  | 
 | 104 | +        shade: mix(colors.danger, '#000', '4%'),  | 
 | 105 | +        tint: mix(colors.danger, '#fff', '12%'),  | 
 | 106 | +      },  | 
 | 107 | +      subtle: {  | 
 | 108 | +        base: mix('#000', colors.danger, '8%'),  | 
 | 109 | +        contrast: colors.danger,  | 
 | 110 | +        foreground: mix(colors.danger, '#000', '4%'),  | 
 | 111 | +        shade: mix('#000', colors.danger, '4%'),  | 
 | 112 | +        tint: mix('#000', colors.danger, '12%'),  | 
 | 113 | +      },  | 
 | 114 | +    },  | 
 | 115 | +    light: {  | 
 | 116 | +      bold: {  | 
 | 117 | +        base: colors.light,  | 
 | 118 | +        contrast: '#000',  | 
 | 119 | +        foreground: mix(colors.light, '#000', '4%'),  | 
 | 120 | +        shade: mix(colors.light, '#000', '4%'),  | 
 | 121 | +        tint: mix(colors.light, '#fff', '12%'),  | 
 | 122 | +      },  | 
 | 123 | +      subtle: {  | 
 | 124 | +        base: mix('#000', colors.light, '8%'),  | 
 | 125 | +        contrast: colors.light,  | 
 | 126 | +        foreground: mix(colors.light, '#000', '4%'),  | 
 | 127 | +        shade: mix('#000', colors.light, '4%'),  | 
 | 128 | +        tint: mix('#000', colors.light, '12%'),  | 
 | 129 | +      },  | 
 | 130 | +    },  | 
 | 131 | +    medium: {  | 
 | 132 | +      bold: {  | 
 | 133 | +        base: colors.medium,  | 
 | 134 | +        contrast: '#fff',  | 
 | 135 | +        foreground: mix(colors.medium, '#000', '4%'),  | 
 | 136 | +        shade: mix(colors.medium, '#000', '4%'),  | 
 | 137 | +        tint: mix(colors.medium, '#fff', '12%'),  | 
 | 138 | +      },  | 
 | 139 | +      subtle: {  | 
 | 140 | +        base: mix('#000', colors.medium, '8%'),  | 
 | 141 | +        contrast: colors.medium,  | 
 | 142 | +        foreground: mix(colors.medium, '#000', '4%'),  | 
 | 143 | +        shade: mix('#000', colors.medium, '4%'),  | 
 | 144 | +        tint: mix('#000', colors.medium, '12%'),  | 
 | 145 | +      },  | 
 | 146 | +    },  | 
 | 147 | +    dark: {  | 
 | 148 | +      bold: {  | 
 | 149 | +        base: colors.dark,  | 
 | 150 | +        contrast: '#fff',  | 
 | 151 | +        foreground: mix(colors.dark, '#000', '4%'),  | 
 | 152 | +        shade: mix(colors.dark, '#000', '4%'),  | 
 | 153 | +        tint: mix(colors.dark, '#fff', '12%'),  | 
 | 154 | +      },  | 
 | 155 | +      subtle: {  | 
 | 156 | +        base: mix('#000', colors.dark, '8%'),  | 
 | 157 | +        contrast: colors.dark,  | 
 | 158 | +        foreground: mix(colors.dark, '#000', '4%'),  | 
 | 159 | +        shade: mix('#000', colors.dark, '4%'),  | 
 | 160 | +        tint: mix('#000', colors.dark, '12%'),  | 
 | 161 | +      },  | 
 | 162 | +    },  | 
 | 163 | +  },  | 
 | 164 | +};  | 
0 commit comments