-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvariables.css
More file actions
269 lines (184 loc) · 8.92 KB
/
variables.css
File metadata and controls
269 lines (184 loc) · 8.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
/* ============================================================
* JAAMD — Default Variables & Full CSS Variable Reference
* ============================================================
*
* This file serves a dual purpose:
*
* 1. FALLBACK THEME:
* it is automatically imported by the integration so all
* --jaamd-* vars have sensible values even if you never
* set any yourself. You can opt out with `noDefault: true`
* in jaamd({…}).
*
* All defaults live inside @layer jaamd.defaults, so any
* :root rule you write outside a layer always wins — no
* matter the load order.
*
* 2. DOCUMENTATION:
* every --jaamd-* property is listed here with a comment
* describing its role. Copy any variable you want to override
* into your own :root block (no layer needed).
*
* Importable as: import "jaamd/default";
* @import "jaamd/default.css";
* ============================================================ */
/* Establish the layer so its priority is always below unlayered CSS. */
@layer jaamd.defaults;
@layer jaamd.defaults {
:root {
/* ── Typography ─────────────────────────────────────────── */
/** Sans-serif font stack for body text */
--jaamd-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
/** Serif font stack (used when --jaamd-font-sans is overridden to a serif) */
--jaamd-font-serif: Georgia, "Times New Roman", Times, serif;
/** Monospace font stack for code */
--jaamd-font-mono: "SF Mono", Consolas, "Liberation Mono", Menlo, Courier, monospace;
/** Base font size for all scaled elements */
--jaamd-font-size: 1.125rem;
/** Line height for body text, lists and code blocks */
--jaamd-line-height: 1.6;
/* ── Core colors ────────────────────────────────────────── */
/** Default body/paragraph text color */
--jaamd-color-fg: #3a3a3a;
/** Headings, strong, table headers, summary — brighter than fg */
--jaamd-color-fg-bright: #1a1a1a;
/** Accent / primary color (links, active tab label, summary arrow) */
--jaamd-color-primary: #2d2d2d;
/** Slightly lighter accent (link :hover, blockquote text) */
--jaamd-color-primary-light: #4a4a4a;
/* ── Headings ───────────────────────────────────────────── */
/** Border-bottom color of h2 */
--jaamd-heading-border-color: rgb(from var(--jaamd-color-primary) r g b / 0.4);
/* ── Inline code (<code> outside a <pre>) ───────────────── */
/** Background of inline code */
--jaamd-code-bg: #e8e4df;
/** Border of inline code */
--jaamd-code-border: #d0cbc6;
/** Text color of inline code */
--jaamd-code-fg: #1a1a1a;
/* ── Fenced code blocks (<pre>) ─────────────────────────── */
/** Background of code blocks (overrides Shiki when not using a Shiki theme) */
--jaamd-pre-bg: #eeeae5;
/** Border of code blocks */
--jaamd-pre-border: #c8c4bf;
/** Fallback text color inside code blocks */
--jaamd-pre-fg: #2d2d2d;
/* ── Copy-to-clipboard button ───────────────────────────── */
/** Copy button background (idle) */
--jaamd-copy-btn-bg: #d8d4cf;
/** Copy button border (idle) */
--jaamd-copy-btn-border: #a8a39e;
/** Copy button icon color (idle) */
--jaamd-copy-btn-fg: #2d2d2d;
/** Copy button background on hover */
--jaamd-copy-btn-hover-bg: #c8c4bf;
/** Copy button border on hover */
--jaamd-copy-btn-hover-border: #9a958f;
/** Copy button icon color on hover */
--jaamd-copy-btn-hover-fg: #1a1a1a;
/* ── Blockquote ─────────────────────────────────────────── */
/** Blockquote background fill */
--jaamd-blockquote-bg: #eeeae5;
/** Blockquote left-border accent color */
--jaamd-blockquote-border: #5a5a5a;
/** Blockquote paragraph text color */
--jaamd-blockquote-fg: #4a4a4a;
/* ── Emphasis ───────────────────────────────────────────── */
/** Color of <em> / italic text */
--jaamd-em-fg: #4a4a4a;
/* ── Horizontal rule (<hr>) ─────────────────────────────── */
/** Color of the hr border line */
--jaamd-hr-color: rgb(from var(--jaamd-color-primary) r g b / 0.4);
/* ── Tables ─────────────────────────────────────────────── */
/** Table cell border color (also used for box-shadow outline) */
--jaamd-table-border: #b8b3ae;
/** <th> header row background */
--jaamd-table-header-bg: #eeeae5;
/** <tr>:hover background */
--jaamd-table-hover-bg: #e0dcd7;
/* ── Code tabs (.code-tabs) ───────────────────────────────── */
/** Outer border and tab-strip bottom border */
--jaamd-tabs-border: #c8c4bf;
/** Tab strip header background */
--jaamd-tabs-header-bg: #e0dcd7;
/** Inactive tab button :hover background */
--jaamd-tabs-btn-hover-bg: #d0cbc6;
/** Active tab button background (matches the panel below it) */
--jaamd-tabs-btn-active-bg: #eeeae5;
/* ── Details / Summary ───────────────────────────────────── */
/** <details> block background */
--jaamd-details-bg: #eeeae5;
/** <details> block border */
--jaamd-details-border: #c8c4bf;
/* ── Spoiler ─────────────────────────────────────────────── */
/** Hidden spoiler text+background color (same value hides text) */
--jaamd-spoiler-hidden-color: #1a1a1a;
/** Revealed spoiler background */
--jaamd-spoiler-revealed-bg: #eeeae5;
/** Revealed spoiler text color */
--jaamd-spoiler-revealed-fg: #3a3a3a;
/* ── Alert blocks (.markdown-alert) ────────────────────── */
/* Note */
--jaamd-alert-note-color: #0969da;
--jaamd-alert-note-bg: #dff0fd;
/* Tip */
--jaamd-alert-tip-color: #1a7f37;
--jaamd-alert-tip-bg: #dafbe1;
/* Important */
--jaamd-alert-important-color: #8250df;
--jaamd-alert-important-bg: #fbefff;
/* Warning */
--jaamd-alert-warning-color: #9a6700;
--jaamd-alert-warning-bg: #fff8c5;
/* Caution */
--jaamd-alert-caution-color: #cf222e;
--jaamd-alert-caution-bg: #ffebe9;
}
/* ── Dark mode overrides ─────────────────────────────────── */
html.dark {
--jaamd-color-fg: #c9d1d9;
--jaamd-color-fg-bright: #e6edf3;
--jaamd-color-primary: #c9d1d9;
--jaamd-color-primary-light: #8b949e;
--jaamd-heading-border-color: rgb(from var(--jaamd-color-primary) r g b / 0.3);
--jaamd-code-bg: #161b22;
--jaamd-code-border: #30363d;
--jaamd-code-fg: #e6edf3;
--jaamd-pre-bg: #161b22;
--jaamd-pre-border: #30363d;
--jaamd-pre-fg: #c9d1d9;
--jaamd-copy-btn-bg: #21262d;
--jaamd-copy-btn-border: #30363d;
--jaamd-copy-btn-fg: #c9d1d9;
--jaamd-copy-btn-hover-bg: #30363d;
--jaamd-copy-btn-hover-border: #484f58;
--jaamd-copy-btn-hover-fg: #e6edf3;
--jaamd-blockquote-bg: #161b22;
--jaamd-blockquote-border: #484f58;
--jaamd-blockquote-fg: #8b949e;
--jaamd-em-fg: #8b949e;
--jaamd-hr-color: rgb(from var(--jaamd-color-primary) r g b / 0.3);
--jaamd-table-border: #30363d;
--jaamd-table-header-bg: #161b22;
--jaamd-table-hover-bg: #1c2128;
--jaamd-tabs-border: #30363d;
--jaamd-tabs-header-bg: #1c2128;
--jaamd-tabs-btn-hover-bg: #21262d;
--jaamd-tabs-btn-active-bg: #161b22;
--jaamd-details-bg: #161b22;
--jaamd-details-border: #30363d;
--jaamd-spoiler-hidden-color: #e6edf3;
--jaamd-spoiler-revealed-bg: #161b22;
--jaamd-spoiler-revealed-fg: #c9d1d9;
--jaamd-alert-note-color: #58a6ff;
--jaamd-alert-note-bg: rgba(56, 139, 253, 0.1);
--jaamd-alert-tip-color: #3fb950;
--jaamd-alert-tip-bg: rgba(46, 160, 67, 0.1);
--jaamd-alert-important-color: #a371f7;
--jaamd-alert-important-bg: rgba(163, 113, 247, 0.1);
--jaamd-alert-warning-color: #d29922;
--jaamd-alert-warning-bg: rgba(187, 128, 9, 0.1);
--jaamd-alert-caution-color: #f85149;
--jaamd-alert-caution-bg: rgba(248, 81, 73, 0.1);
}
}