Repository navigation
Expand file tree
/
Copy pathtoken_dark.css
More file actions
249 lines (221 loc) · 8.05 KB
/
Copy pathtoken_dark.css
File metadata and controls
249 lines (221 loc) · 8.05 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
/* ====================================================================
TOKEN_DARK.CSS — Desaturated Grayish-Blue Dark Theme for Iframe & Embeds
Base Background: #0e1012 (body, menu, sidebar, content area)
==================================================================== */
:root,
html[data-theme="dark"],
html[data-theme="dark-iframe"] {
/* ── Primary Accent — Desaturated Grayish Blue ── */
--palette-primary-0: #000000;
--palette-primary-10: #0d1522;
--palette-primary-20: #182436;
--palette-primary-30: #25354e;
--palette-primary-40: #344868;
--palette-primary-50: #475d82;
--palette-primary-60: #5c749d;
--palette-primary-70: #748cb9;
--palette-primary-80: #8fa5d4; /* Main accent light grayish blue */
--palette-primary-90: #c8d6f0;
--palette-primary-95: #e5edfb;
--palette-primary-100: #ffffff;
/* ── Neutral Palette — Seeded from #0e1012 ── */
--palette-neutral-0: #000000;
--palette-neutral-4: #090a0c; /* Deepest container lowest */
--palette-neutral-6: #0e1012; /* Base surface background #0e1012 */
--palette-neutral-10: #121417; /* Container low */
--palette-neutral-12: #15181c; /* Container */
--palette-neutral-17: #1a1e23; /* Container high */
--palette-neutral-22: #20242b; /* Container highest */
--palette-neutral-24: #242931; /* Surface bright */
--palette-neutral-30: #2c323c;
--palette-neutral-40: #414856;
--palette-neutral-50: #596171;
--palette-neutral-60: #737b8c;
--palette-neutral-70: #8f97a8; /* Muted text */
--palette-neutral-80: #abb3c4;
--palette-neutral-87: #c2c9d8;
--palette-neutral-90: #dcdfe8; /* Main body text */
--palette-neutral-92: #e2e5ee;
--palette-neutral-94: #e8ebf4;
--palette-neutral-96: #eeeffa;
--palette-neutral-98: #f5f6fc;
--palette-neutral-100: #ffffff;
/* ── Neutral Variant — Grayish Blue Tones ── */
--palette-neutral-var-10: #111622;
--palette-neutral-var-20: #1f2636;
--palette-neutral-var-28: #222733; /* Muted hairline borders */
--palette-neutral-var-30: #2a3243;
--palette-neutral-var-40: #404a5e;
--palette-neutral-var-50: #586379;
--palette-neutral-var-60: #727e96;
--palette-neutral-var-70: #8b94a5; /* Secondary muted grayish text */
--palette-neutral-var-80: #a8b2c4;
--palette-neutral-var-90: #c8d1e2;
--palette-neutral-var-95: #e4e9f5;
/* ── Material System Roles — Desaturated Dark ── */
--md-sys-color-primary: #8fa5d4;
--md-sys-color-on-primary: #121d2e;
--md-sys-color-primary-container: #25354e;
--md-sys-color-on-primary-container: #c8d6f0;
--md-sys-color-inverse-primary: #344868;
--md-sys-color-secondary: #a8b2c4;
--md-sys-color-on-secondary: #1b2332;
--md-sys-color-secondary-container: #2a3243;
--md-sys-color-on-secondary-container:#c8d1e2;
--md-sys-color-tertiary: #8b9dbe;
--md-sys-color-on-tertiary: #141c2b;
--md-sys-color-tertiary-container: #243046;
--md-sys-color-on-tertiary-container: #d2dcf0;
/* ── Surface / Background — Forced to #0e1012 ── */
--md-sys-color-background: #0e1012;
--md-sys-color-on-background: #dcdfe8;
--md-sys-color-surface: #0e1012;
--md-sys-color-surface-dim: #090a0c;
--md-sys-color-surface-bright: #242931;
--md-sys-color-surface-container-lowest: #090a0c;
--md-sys-color-surface-container-low: #121417;
--md-sys-color-surface-container: #15181c;
--md-sys-color-surface-container-high: #1a1e23;
--md-sys-color-surface-container-highest: #20242b;
--md-sys-color-on-surface: #dcdfe8;
--md-sys-color-on-surface-variant: #8b94a5;
--md-sys-color-surface-variant: #2a3243;
--md-sys-color-surface-tint: #8fa5d4;
/* ── Outline / Hairline Borders ── */
--md-sys-color-outline: #404a5e;
--md-sys-color-outline-variant: #222733;
/* ── Inverse ── */
--md-sys-color-inverse-surface: #dcdfe8;
--md-sys-color-inverse-on-surface: #1a1e23;
/* ── Scrim / Shadow ── */
--md-sys-color-scrim: #000000;
--md-sys-color-shadow: #000000;
}
/* ─────────────────────────────────────────────────────────────────────
EXPLICIT BACKGROUND OVERRIDES FOR #0e1012
Ensures Body, Topbar Menu, Sidebar Drawer, and Main Content Area
share the sleek #0e1012 background.
───────────────────────────────────────────────────────────────────── */
body,
html,
.app-bar,
.drawer,
.content-area,
.site-footer {
background-color: #0e1012 !important;
}
/* Sidebar nav drawer background & borders — no borders/shadows in iframe mode (open or closed) */
.drawer,
.drawer.collapsed {
background: #0e1012 !important;
border: none !important;
border-right: none !important;
border-left: none !important;
border-top: none !important;
border-bottom: none !important;
box-shadow: none !important;
outline: none !important;
}
/* Header / App Bar menu — no bottom border or shadow in iframe mode */
.app-bar,
.app-bar.scrolled {
background: #0e1012 !important;
border: none !important;
border-bottom: none !important;
border-top: none !important;
border-left: none !important;
border-right: none !important;
box-shadow: none !important;
outline: none !important;
}
/* Hide dark/light mode toggle in iframe mode */
#theme-toggle {
display: none !important;
}
/* Remove left, top, right, bottom borders & shadows from all main layout containers */
.layout-body,
.content-area,
.content-wrapper,
.markdown-body,
.toc-sidebar,
.dynamic-title {
border: none !important;
border-left: none !important;
border-right: none !important;
border-top: none !important;
border-bottom: none !important;
box-shadow: none !important;
outline: none !important;
}
/* Prevent height feedback loops & prevent drawer from stretching markdown-body height */
.layout-body {
align-items: flex-start !important;
}
.content-wrapper {
min-height: auto !important;
height: auto !important;
}
.content-area {
height: auto !important;
overflow-y: visible !important;
}
.markdown-body {
padding-top: var(--space-4) !important;
padding-bottom: var(--space-4) !important;
}
.content-wrapper:has(.custom-loader-wrapper) {
max-width: 100% !important;
width: 100% !important;
margin: 0 auto !important;
justify-content: center !important;
min-height: calc(100vh - var(--topbar-h, 72px)) !important;
}
.markdown-body:has(.custom-loader-wrapper) {
padding-top: 0 !important;
padding-bottom: 0 !important;
margin: 0 auto !important;
max-width: 100% !important;
width: 100% !important;
min-height: calc(100vh - var(--topbar-h, 72px)) !important;
display: flex !important;
flex-direction: column !important;
justify-content: center !important;
align-items: center !important;
}
/* Header search button */
.header-search-trigger {
background: #15181c !important;
border: 1px solid #222733 !important;
color: #8b94a5 !important;
}
.header-search-trigger:hover {
background: #1a1e23 !important;
color: #dcdfe8 !important;
border-color: #344868 !important;
}
/* Navigation items in sidebar */
md-list-item {
--md-list-item-label-text-color: #abb3c4;
--md-list-item-container-color: transparent;
}
md-list-item:hover {
--md-list-item-container-color: #15181c;
}
md-list-item.active {
--md-list-item-label-text-color: #8fa5d4;
--md-list-item-container-color: #1c2535;
}
/* Markdown cards and container blocks */
.home-doc-item,
.recent-doc-item,
.feature-card,
.code-block-wrapper pre {
background: #121417 !important;
border: 1px solid #222733 !important;
}
.home-doc-item:hover,
.recent-doc-item:hover,
.feature-card:hover {
background: #181c22 !important;
border-color: #344868 !important;
}