|
| 1 | +interface ReactotronTheme { |
| 2 | + fontFamily: string |
| 3 | + background: string |
| 4 | + backgroundDarker: string |
| 5 | + backgroundHighlight: string |
| 6 | + backgroundLight: string |
| 7 | + backgroundLighter: string |
| 8 | + backgroundSubtleDark: string |
| 9 | + backgroundSubtleLight: string |
| 10 | + bold: string |
| 11 | + chrome: string |
| 12 | + chromeLine: string |
| 13 | + constant: string |
| 14 | + foreground: string |
| 15 | + foregroundDark: string |
| 16 | + foregroundLight: string |
| 17 | + glow: string |
| 18 | + heading: string |
| 19 | + highlight: string |
| 20 | + keyword: string |
| 21 | + line: string |
| 22 | + modalOverlay: string |
| 23 | + string: string |
| 24 | + subtleLine: string |
| 25 | + support: string |
| 26 | + tag: string |
| 27 | + tagComplement: string |
| 28 | + warning: string |
| 29 | +} |
| 30 | + |
| 31 | +const colorSchemes = ["dark", "light"] as const |
| 32 | + |
| 33 | +type ColorScheme = (typeof colorSchemes)[number] |
| 34 | + |
| 35 | +const themes: Record<ColorScheme, ReactotronTheme> = { |
| 36 | + dark: { |
| 37 | + fontFamily: |
| 38 | + '"Fira Code", "SF Mono", "Consolas", "Segoe UI", "Roboto", "-apple-system", "Helvetica Neue", sans-serif', |
| 39 | + background: "#1e1e1e", |
| 40 | + backgroundDarker: "hsl(0, 0%, 10.6%)", |
| 41 | + backgroundHighlight: "#464b50", |
| 42 | + backgroundLight: "#ffffff", |
| 43 | + backgroundLighter: "#323537", |
| 44 | + backgroundSubtleDark: "hsl(0, 0%, 8.2%)", |
| 45 | + backgroundSubtleLight: "hsl(0, 0%, 12.4%)", |
| 46 | + bold: "#f9ee98", |
| 47 | + chrome: "hsl(0, 0%, 12.9%)", |
| 48 | + chromeLine: "hsl(0, 0%, 14.7%)", |
| 49 | + constant: "#cda869", |
| 50 | + foreground: "#a7a7a7", |
| 51 | + foregroundDark: "#838184", |
| 52 | + foregroundLight: "#c3c3c3", |
| 53 | + glow: "hsla(0, 0%, 9.4%, 0.8)", |
| 54 | + heading: "#7587a6", |
| 55 | + highlight: "hsl(290, 3.2%, 47.4%)", |
| 56 | + keyword: "#9b859d", |
| 57 | + line: "hsl(204, 4.8%, 18.5%)", |
| 58 | + modalOverlay: "hsla(0, 0%, 7.1%, 0.95)", |
| 59 | + string: "#8f9d6a", |
| 60 | + subtleLine: "hsl(204, 4.8%, 16.5%)", |
| 61 | + support: "#afc4db", |
| 62 | + tag: "#cf6a4c", |
| 63 | + tagComplement: "hsl(13.699999999999989, 57.7%, 91.6%)", |
| 64 | + warning: "#9b703f", |
| 65 | + }, |
| 66 | + light: { |
| 67 | + fontFamily: |
| 68 | + '"Fira Code", "SF Mono", "Consolas", "Segoe UI", "Roboto", "-apple-system", "Helvetica Neue", sans-serif', |
| 69 | + background: "#ffffff", |
| 70 | + backgroundDarker: "hsl(0, 0%, 90%)", |
| 71 | + backgroundHighlight: "#f0f0f0", |
| 72 | + backgroundLight: "#f9f9f9", |
| 73 | + backgroundLighter: "#e6e6e6", |
| 74 | + backgroundSubtleDark: "hsl(0, 0%, 95%)", |
| 75 | + backgroundSubtleLight: "hsl(0, 0%, 97%)", |
| 76 | + bold: "#222222", |
| 77 | + chrome: "hsl(0, 0%, 90%)", |
| 78 | + chromeLine: "hsl(0, 0%, 85%)", |
| 79 | + constant: "#d17d00", |
| 80 | + foreground: "#333333", |
| 81 | + foregroundDark: "#555555", |
| 82 | + foregroundLight: "#666666", |
| 83 | + glow: "hsla(0, 0%, 90%, 0.8)", |
| 84 | + heading: "#4b5f85", |
| 85 | + highlight: "hsl(210, 10%, 70%)", |
| 86 | + keyword: "#9b0000", |
| 87 | + line: "hsl(204, 4.8%, 95%)", |
| 88 | + modalOverlay: "hsla(0, 0%, 100%, 0.95)", |
| 89 | + string: "#718c00", |
| 90 | + subtleLine: "hsl(204, 4.8%, 90%)", |
| 91 | + support: "#597ab8", |
| 92 | + tag: "#d9484f", |
| 93 | + tagComplement: "hsl(13.7, 57.7%, 45%)", |
| 94 | + warning: "#b35900", |
| 95 | + }, |
| 96 | +} |
| 97 | + |
| 98 | +export { themes } |
| 99 | +export type { ColorScheme, ReactotronTheme } |
0 commit comments