|
| 1 | +/* Base styles */ |
1 | 2 | :root { |
| 3 | + /* Layout variables */ |
2 | 4 | --border-radius: 0.188rem; |
3 | | - --box-shadow: 0 0.5rem 1rem 0 rgb(0 0 0 / 0.25); |
4 | | - --color-bg-primary: #323639; |
5 | | - --color-bg-secondary: #2f3337; |
6 | | - --color-script-highlighted: #364049; /* rgba(116, 178, 235, 0.1); */ |
7 | | - --color-black: #1d2023; |
8 | | - --color-blue: #74b1eb; |
9 | | - --color-green: #60f36c; |
10 | | - --color-grey: rgb(255 255 255 / 0.15); |
11 | | - --color-red: #ff453a; |
12 | | - --color-yellow: #e4f360; |
13 | | - --letter-spacing-large: -0.031rem; |
| 5 | + --font-family: -apple-system, "Helvetica Neue", "Helvetica", sans-serif; |
14 | 6 | --letter-spacing-default: -0.029rem; |
| 7 | + --letter-spacing-large: -0.031rem; |
15 | 8 | --letter-spacing-medium: -0.018rem; |
16 | 9 | --letter-spacing-small: -0.008rem; |
17 | 10 | --opacity-disabled: 0.3; |
18 | | - --text-color-primary: rgb(255 255 255); |
19 | | - --text-color-secondary: rgb(255 255 255 / 0.65); |
20 | | - --text-color-disabled: rgb(255 255 255 / 0.4); |
21 | | - --font-family: -apple-system, "Helvetica Neue", "Helvetica", sans-serif; |
22 | 11 | --text-default: 1rem/1.5rem var(--font-family); |
23 | 12 | --text-large: 1.25rem/1.5rem var(--font-family); |
24 | 13 | --text-medium: 0.875rem/1.313rem var(--font-family); |
25 | 14 | --text-small: 0.719rem/1rem var(--font-family); |
26 | 15 |
|
27 | | - /* editor variables */ |
| 16 | + /* Editor layout variables */ |
28 | 17 | --editor-font: monaco, monospace; |
29 | 18 | --editor-font-size: 14px; |
30 | 19 | --editor-line-height: 24px; |
31 | | - --editor-invisible: rgb(255 255 255 / 0.15); |
32 | 20 | --editor-active-line: var(--color-bg-secondary); |
| 21 | + --editor-error: var(--color-red); |
| 22 | + --editor-non-matching-bracket: var(--editor-error); |
33 | 23 | --editor-selected-bg: rgb(116 178 235 / 0.35); |
34 | 24 | --editor-matched-highlight: rgb(116 178 235 / 0.2); |
35 | 25 | --editor-search-highlight: rgb(255 166 0 / 0.3); |
| 26 | +} |
| 27 | + |
| 28 | +/* Dark theme (default) */ |
| 29 | +body { |
| 30 | + --color-bg-primary: #323639; |
| 31 | + --color-bg-secondary: #2f3337; |
| 32 | + --color-script-highlighted: #364049; |
| 33 | + --color-black: #1d2023; |
| 34 | + --color-blue: #74b1eb; |
| 35 | + --color-green: #60f36c; |
| 36 | + --color-grey: rgb(255 255 255 / 0.15); |
| 37 | + --color-red: #ff453a; |
| 38 | + --color-yellow: #e4f360; |
| 39 | + --text-color-primary: rgb(255 255 255); |
| 40 | + --text-color-secondary: rgb(255 255 255 / 0.65); |
| 41 | + --text-color-disabled: rgb(255 255 255 / 0.4); |
| 42 | + --box-shadow: 0 0.5rem 1rem 0 rgb(0 0 0 / 0.25); |
| 43 | + |
| 44 | + /* Editor dark theme colors */ |
| 45 | + --editor-invisible: rgb(255 255 255 / 0.15); |
36 | 46 | --editor-number: #77e26a; |
37 | 47 | --editor-comment: rgb(255 255 255 / 0.35); |
38 | 48 | --editor-def: #efc371; |
|
43 | 53 | --editor-property: #e86c8a; |
44 | 54 | --editor-string: #f5eea2; |
45 | 55 | --editor-string-2: #cdabff; |
46 | | - --editor-error: var(--color-red); |
47 | 56 | --editor-cursor: #e3e7eb; |
48 | 57 | --editor-matching-bracket-color: #fff; |
49 | 58 | --editor-matching-bracket-border: var(--editor-number); |
50 | | - --editor-non-matching-bracket: var(--editor-error); |
| 59 | + --editor-blurred-background: rgba(50 54 57 / 0.65); |
| 60 | +} |
| 61 | + |
| 62 | +/* Light theme */ |
| 63 | +body.light-theme { |
| 64 | + --color-bg-primary: #fafafa; |
| 65 | + --color-bg-secondary: #f1f1f1; |
| 66 | + --color-script-highlighted: #e2ebf3; |
| 67 | + --color-black: #fff; |
| 68 | + --color-blue: #317eff; |
| 69 | + --color-green: #2bb239; |
| 70 | + --color-grey: rgb(51 51 51 / 0.15); |
| 71 | + --color-red: #ff453a; |
| 72 | + --color-yellow: #b8722c; |
| 73 | + --text-color-primary: rgb(51 51 51); |
| 74 | + --text-color-secondary: rgb(51 51 51 / 0.65); |
| 75 | + --text-color-disabled: rgb(51 51 51 / 0.35); |
| 76 | + |
| 77 | + /* Editor light theme colors */ |
| 78 | + --editor-invisible: rgb(51 51 51 / 0.15); |
| 79 | + --editor-number: var(--color-green); |
| 80 | + --editor-comment: var(--text-color-disabled); |
| 81 | + --editor-def: #b86d17; |
| 82 | + --editor-default: #777; |
| 83 | + --editor-keyword: #3a68ff; |
| 84 | + --editor-atom: #00adad; |
| 85 | + --editor-operator: #8c99a7; |
| 86 | + --editor-property: #ff453a; |
| 87 | + --editor-string: var(--editor-atom); |
| 88 | + --editor-string-2: #a34fe6; |
| 89 | + --editor-cursor: #7e7e7f; |
| 90 | + --editor-matching-bracket-color: var(--text-color-primary); |
| 91 | + --editor-matching-bracket-border: #ff00ea; |
| 92 | + --editor-blurred-background: rgba(255 255 255 / 0.65); /* eeeeeea6 */ |
51 | 93 | } |
0 commit comments