|
| 1 | +import { mix } from '../../utils/theme'; |
| 2 | +import type { HighContrastDarkTheme } from '../themes.interfaces'; |
| 3 | + |
| 4 | +const colors = { |
| 5 | + primary: '#7cabff', |
| 6 | + secondary: '#62bdff', |
| 7 | + tertiary: '#b6b9f9', |
| 8 | + success: '#4ada71', |
| 9 | + warning: '#ffce31', |
| 10 | + danger: '#fc9aa2', |
| 11 | + light: '#222428', |
| 12 | + medium: '#a8aab3', |
| 13 | + dark: '#f4f5f8', |
| 14 | +}; |
| 15 | + |
| 16 | +export const highContrastDarkTheme: HighContrastDarkTheme = { |
| 17 | + enabled: 'never', |
| 18 | + color: { |
| 19 | + primary: { |
| 20 | + bold: { |
| 21 | + base: colors.primary, |
| 22 | + contrast: '#000', |
| 23 | + foreground: colors.primary, |
| 24 | + shade: mix(colors.primary, '#000', '12%'), |
| 25 | + tint: mix(colors.primary, '#fff', '10%'), |
| 26 | + }, |
| 27 | + subtle: { |
| 28 | + base: mix('#fff', colors.primary, '8%'), |
| 29 | + contrast: colors.primary, |
| 30 | + foreground: mix(colors.primary, '#000', '12%'), |
| 31 | + shade: mix('#fff', colors.primary, '12%'), |
| 32 | + tint: mix('#fff', colors.primary, '4%'), |
| 33 | + }, |
| 34 | + }, |
| 35 | + secondary: { |
| 36 | + bold: { |
| 37 | + base: colors.secondary, |
| 38 | + contrast: '#000', |
| 39 | + foreground: colors.secondary, |
| 40 | + shade: mix(colors.secondary, '#000', '12%'), |
| 41 | + tint: mix(colors.secondary, '#fff', '10%'), |
| 42 | + }, |
| 43 | + subtle: { |
| 44 | + base: mix('#fff', colors.secondary, '8%'), |
| 45 | + contrast: colors.secondary, |
| 46 | + foreground: mix(colors.secondary, '#000', '12%'), |
| 47 | + shade: mix('#fff', colors.secondary, '12%'), |
| 48 | + tint: mix('#fff', colors.secondary, '4%'), |
| 49 | + }, |
| 50 | + }, |
| 51 | + tertiary: { |
| 52 | + bold: { |
| 53 | + base: colors.tertiary, |
| 54 | + contrast: '#000', |
| 55 | + foreground: colors.tertiary, |
| 56 | + shade: mix(colors.tertiary, '#000', '12%'), |
| 57 | + tint: mix(colors.tertiary, '#fff', '10%'), |
| 58 | + }, |
| 59 | + subtle: { |
| 60 | + base: mix('#fff', colors.tertiary, '8%'), |
| 61 | + contrast: colors.tertiary, |
| 62 | + foreground: mix(colors.tertiary, '#000', '12%'), |
| 63 | + shade: mix('#fff', colors.tertiary, '12%'), |
| 64 | + tint: mix('#fff', colors.tertiary, '4%'), |
| 65 | + }, |
| 66 | + }, |
| 67 | + success: { |
| 68 | + bold: { |
| 69 | + base: colors.success, |
| 70 | + contrast: '#000', |
| 71 | + foreground: colors.success, |
| 72 | + shade: mix(colors.success, '#000', '12%'), |
| 73 | + tint: mix(colors.success, '#fff', '10%'), |
| 74 | + }, |
| 75 | + subtle: { |
| 76 | + base: mix('#fff', colors.success, '8%'), |
| 77 | + contrast: colors.success, |
| 78 | + foreground: mix(colors.success, '#000', '12%'), |
| 79 | + shade: mix('#fff', colors.success, '12%'), |
| 80 | + tint: mix('#fff', colors.success, '4%'), |
| 81 | + }, |
| 82 | + }, |
| 83 | + warning: { |
| 84 | + bold: { |
| 85 | + base: colors.warning, |
| 86 | + contrast: '#000', |
| 87 | + foreground: colors.warning, |
| 88 | + shade: mix(colors.warning, '#000', '12%'), |
| 89 | + tint: mix(colors.warning, '#fff', '10%'), |
| 90 | + }, |
| 91 | + subtle: { |
| 92 | + base: mix('#fff', colors.warning, '8%'), |
| 93 | + contrast: colors.warning, |
| 94 | + foreground: mix(colors.warning, '#000', '12%'), |
| 95 | + shade: mix('#fff', colors.warning, '12%'), |
| 96 | + tint: mix('#fff', colors.warning, '4%'), |
| 97 | + }, |
| 98 | + }, |
| 99 | + danger: { |
| 100 | + bold: { |
| 101 | + base: colors.danger, |
| 102 | + contrast: '#000', |
| 103 | + foreground: colors.danger, |
| 104 | + shade: mix(colors.danger, '#000', '12%'), |
| 105 | + tint: mix(colors.danger, '#fff', '10%'), |
| 106 | + }, |
| 107 | + subtle: { |
| 108 | + base: mix('#fff', colors.danger, '8%'), |
| 109 | + contrast: colors.danger, |
| 110 | + foreground: mix(colors.danger, '#000', '12%'), |
| 111 | + shade: mix('#fff', colors.danger, '12%'), |
| 112 | + tint: mix('#fff', colors.danger, '4%'), |
| 113 | + }, |
| 114 | + }, |
| 115 | + light: { |
| 116 | + bold: { |
| 117 | + base: colors.light, |
| 118 | + contrast: '#fff', |
| 119 | + foreground: colors.light, |
| 120 | + shade: mix(colors.light, '#000', '12%'), |
| 121 | + tint: mix(colors.light, '#fff', '10%'), |
| 122 | + }, |
| 123 | + subtle: { |
| 124 | + base: mix('#fff', colors.light, '8%'), |
| 125 | + contrast: colors.light, |
| 126 | + foreground: mix(colors.light, '#000', '12%'), |
| 127 | + shade: mix('#fff', colors.light, '12%'), |
| 128 | + tint: mix('#fff', colors.light, '4%'), |
| 129 | + }, |
| 130 | + }, |
| 131 | + medium: { |
| 132 | + bold: { |
| 133 | + base: colors.medium, |
| 134 | + contrast: '#000', |
| 135 | + foreground: colors.medium, |
| 136 | + shade: mix(colors.medium, '#000', '12%'), |
| 137 | + tint: mix(colors.medium, '#fff', '10%'), |
| 138 | + }, |
| 139 | + subtle: { |
| 140 | + base: mix('#fff', colors.medium, '8%'), |
| 141 | + contrast: colors.medium, |
| 142 | + foreground: mix(colors.medium, '#000', '12%'), |
| 143 | + shade: mix('#fff', colors.medium, '12%'), |
| 144 | + tint: mix('#fff', colors.medium, '4%'), |
| 145 | + }, |
| 146 | + }, |
| 147 | + dark: { |
| 148 | + bold: { |
| 149 | + base: colors.dark, |
| 150 | + contrast: '#000', |
| 151 | + foreground: colors.dark, |
| 152 | + shade: mix(colors.dark, '#000', '12%'), |
| 153 | + tint: mix(colors.dark, '#fff', '10%'), |
| 154 | + }, |
| 155 | + subtle: { |
| 156 | + base: mix('#fff', colors.dark, '8%'), |
| 157 | + contrast: colors.dark, |
| 158 | + foreground: mix(colors.dark, '#000', '12%'), |
| 159 | + shade: mix('#fff', colors.dark, '12%'), |
| 160 | + tint: mix('#fff', colors.dark, '4%'), |
| 161 | + }, |
| 162 | + }, |
| 163 | + }, |
| 164 | + |
| 165 | + backgroundColor: '#000000', |
| 166 | + backgroundColorRgb: '0, 0, 0', |
| 167 | + textColor: '#ffffff', |
| 168 | + textColorRgb: '255, 255, 255', |
| 169 | + |
| 170 | + backgroundColorStep: { |
| 171 | + 50: '#0d0d0d', |
| 172 | + 100: '#1a1a1a', |
| 173 | + 150: '#262626', |
| 174 | + 200: '#333333', |
| 175 | + 250: '#404040', |
| 176 | + 300: '#4d4d4d', |
| 177 | + 350: '#595959', |
| 178 | + 400: '#666666', |
| 179 | + 450: '#737373', |
| 180 | + 500: '#808080', |
| 181 | + 550: '#8c8c8c', |
| 182 | + 600: '#999999', |
| 183 | + 650: '#a6a6a6', |
| 184 | + 700: '#b3b3b3', |
| 185 | + 750: '#bfbfbf', |
| 186 | + 800: '#cccccc', |
| 187 | + 850: '#d9d9d9', |
| 188 | + 900: '#e6e6e6', |
| 189 | + 950: '#f2f2f2', |
| 190 | + }, |
| 191 | + |
| 192 | + textColorStep: { |
| 193 | + 50: '#f9f9f9', |
| 194 | + 100: '#f3f3f3', |
| 195 | + 150: '#ededed', |
| 196 | + 200: '#e7e7e7', |
| 197 | + 250: '#e1e1e1', |
| 198 | + 300: '#dbdbdb', |
| 199 | + 350: '#d5d5d5', |
| 200 | + 400: '#cfcfcf', |
| 201 | + 450: '#c9c9c9', |
| 202 | + 500: '#c4c4c4', |
| 203 | + 550: '#bebebe', |
| 204 | + 600: '#b8b8b8', |
| 205 | + 650: '#b2b2b2', |
| 206 | + 700: '#acacac', |
| 207 | + 750: '#a6a6a6', |
| 208 | + 800: '#a0a0a0', |
| 209 | + 850: '#9a9a9a', |
| 210 | + 900: '#949494', |
| 211 | + 950: '#8e8e8e', |
| 212 | + }, |
| 213 | +}; |
0 commit comments