-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.css
More file actions
358 lines (309 loc) · 8.14 KB
/
Copy paththeme.css
File metadata and controls
358 lines (309 loc) · 8.14 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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
/**
* Theme Name: CodeAzur Dark
* Author: orvpagadua
* Version: 1.0.0
* Based on: https://notes.kodekloud.com/
*/
.theme-dark {
/* Color Palette - Based on Slate & Sky Tailwind colors extracted from KodeKloud */
--color-slate-950: #020617;
--color-slate-900: #0F172A;
--color-slate-800: #1E293B;
--color-slate-700: #334155;
--color-slate-400: #94A3B8;
--color-slate-300: #CBD5E1;
--color-slate-200: #E2E8F0;
--color-slate-text-custom: #90a1b9;
--color-slate-50: #F8FAFC;
--color-sky-500: #0EA5E9;
--color-sky-400: #38BDF8;
--color-night-owl-bg: #011627;
--color-night-owl-fg: #D6DEEB;
/* Backgrounds */
--background-primary: var(--color-slate-900);
--background-primary-alt: var(--color-slate-950);
--background-secondary: var(--color-slate-900);
/* Keeping it flat like the site */
--background-secondary-alt: var(--color-slate-950);
--background-modifier-border: var(--color-slate-800);
--background-modifier-form-field: var(--color-slate-800);
/* Text */
--text-normal: var(--color-slate-text-custom);
--text-muted: var(--color-slate-400);
--text-faint: var(--color-slate-700);
--text-on-accent: #FFFFFF;
--text-bold: #FFFFFF;
/* Accents */
--text-accent: var(--color-sky-500);
--text-accent-hover: var(--color-sky-400);
--interactive-accent: var(--color-sky-500);
--interactive-accent-hover: var(--color-sky-400);
/* Headers */
--h1-color: #FFFFFF;
--h2-color: #FFFFFF;
--h3-color: #FFFFFF;
--h4-color: #FFFFFF;
/* Fenced Code Blocks (VS Code Dark+ Style) */
--code-background: #1E1E1E;
/* VS Code dark bg */
--code-normal: #D4D4D4;
/* Base text */
--code-comment: #6A9955;
/* Green */
--code-function: #DCDCAA;
/* Yellow */
--code-keyword: #C586C0;
/* Purple/Pink */
--code-value: #CE9178;
/* Orange (Strings) */
--code-string: #CE9178;
--code-number: #B5CEA8;
--code-operator: #D4D4D4;
--code-property: #9CDCFE;
/* Light Blue */
--code-tag: #569CD6;
/* Blue */
--code-variable: #9CDCFE;
/* Inline Code Specifics */
--code-inline-color: #00bcff;
/* UI Elements */
--tab-outline-color: var(--color-slate-800);
--tab-text-color-focused: var(--text-normal);
--tab-text-color: var(--text-muted);
/* Typography */
--font-text-theme: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
--font-interface-theme: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
--font-headers-theme: 'Lexend', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
/* Global Font Smoothing */
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 300;
/* Lighter body text */
}
/* Enhancements for a "Premium" feel */
/* Glassy headers maybe? No, let's stick to clean flat design first but add nice spacing */
/* Apply Lexend font to all headers */
.markdown-preview-view h1,
.cm-header-1,
.markdown-preview-view h2,
.cm-header-2,
.markdown-preview-view h3,
.cm-header-3,
.markdown-preview-view h4,
.cm-header-4,
.markdown-preview-view h5,
.cm-header-5,
.markdown-preview-view h6,
.cm-header-6 {
font-family: var(--font-headers-theme);
font-weight: 500;
/* Smoother, lighter headers (was 600-700) */
}
.markdown-preview-view h1,
.cm-header-1 {
font-weight: 600;
/* Slight distinction for H1 */
letter-spacing: -0.025em;
margin-bottom: 1rem;
}
.markdown-preview-view h2,
.cm-header-2 {
font-weight: 600;
letter-spacing: -0.025em;
margin-top: 1.5em;
}
/* Links */
a,
.cm-link,
.cm-hmd-internal-link,
a.internal-link {
color: #00bcff !important;
text-decoration: none;
font-weight: 400;
/* Lighter links (was 500) */
transition: color 0.15s ease-in-out;
}
a:hover,
.cm-link:hover,
.cm-hmd-internal-link:hover {
text-decoration: underline;
}
/* Blockquotes */
blockquote {
border-left-color: var(--interactive-accent);
background-color: rgba(14, 165, 233, 0.1);
/* Sky-500 with opacity */
padding: 0.5em 1em;
border-radius: 0 4px 4px 0;
}
/* Code blocks rounded corners */
pre,
code {
border-radius: 6px;
font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
/* Inline Code Styling */
:not(pre)>code,
.cm-s-obsidian span.cm-inline-code {
color: var(--code-inline-color) !important;
background-color: rgba(0, 188, 255, 0.1);
/* Subtle background tint */
}
/* Bold Text */
strong,
.cm-strong {
color: var(--text-bold) !important;
font-weight: 600;
/* Reduced from 700 */
}
/* Table Styling - Horizontal Dividers Only + White Headers */
.markdown-preview-view table,
.markdown-source-view.mod-cm6 .cm-content table,
/* Target Live Preview */
.cm-table-widget,
/* Target Live Preview Widget */
table {
border-collapse: collapse;
border: none;
table-layout: auto !important;
/* Columns size to content */
width: 100% !important;
/* Table spans full width */
}
.markdown-preview-view th,
.markdown-preview-view td,
th,
td {
border: none !important;
border-bottom: 1px solid var(--background-modifier-border) !important;
padding: 8px 16px;
}
/* Remove bottom border from last row to be cleaner */
.markdown-preview-view tr:last-child td {
border-bottom: none !important;
}
.markdown-preview-view th,
th {
color: #FFFFFF !important;
font-weight: 600;
background-color: transparent !important;
/* Optional: Cleaner look */
text-align: left;
}
/* Callouts - mimicking the nice info boxes often seen on documentation sites */
.callout {
border-radius: 24px;
}
/* Sidebar adjustments */
.workspace-leaf-header-title {
font-weight: 600;
color: var(--text-muted);
}
/* Sidebar File Explorer Styling */
/* Folders - White */
.nav-folder-title-content {
color: #FFFFFF !important;
font-weight: 400;
/* Lighter folders (was 500) */
}
/* Files - Muted Slate */
.nav-file-title-content {
color: #90a1b9 !important;
}
/* Active File / Selected Item - Bright Cyan */
.nav-file-title.is-active .nav-file-title-content,
.nav-folder-title.is-active .nav-folder-title-content,
.tree-item-self.is-active {
color: #00a6f4 !important;
font-weight: 600;
/* Optional: Add a subtle background to the active row for better visibility */
background-color: rgba(0, 166, 244, 0.1);
}
/* -----------------------------------------------------
FORCE VS CODE DARK+ SYNTAX HIGHLIGHTING (PRETTIER)
----------------------------------------------------- */
/* Editor (CodeMirror) & Preview (Prism/Obsidian) Mapping */
/* Keywords (pink/purple) */
.cm-keyword,
.token.keyword,
.cm-variable-2,
.token.selector,
.token.important,
.token.atrule {
color: #C586C0 !important;
}
/* Control flow / Operators */
.cm-operator,
.token.operator {
color: #D4D4D4 !important;
}
/* Functions (yellow) */
.cm-function,
.token.function,
.cm-def {
color: #DCDCAA !important;
}
/* Strings (orange/brown) */
.cm-string,
.token.string,
.token.char,
.token.attr-value {
color: #CE9178 !important;
}
/* Numbers (light green) */
.cm-number,
.token.number {
color: #B5CEA8 !important;
}
/* Comments (green) */
.cm-comment,
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: #6A9955 !important;
}
/* Variables / Properties (light blue) */
.cm-property,
.token.property,
.cm-variable,
.token.variable {
color: #9CDCFE !important;
}
/* Class names / Types (teal) */
.cm-type,
.token.class-name,
.cm-builtin {
color: #4EC9B0 !important;
}
/* Tags (blue) */
.cm-tag,
.token.tag {
color: #569CD6 !important;
}
/* HTML Attributes (light blue) */
.cm-attribute,
.token.attr-name {
color: #9CDCFE !important;
}
/* Punctuation */
.cm-punctuation,
.token.punctuation {
color: #D4D4D4 !important;
}
/* Code Block Background - Preview Mode */
.markdown-preview-view pre code {
background-color: #1E1E1E !important;
}
/* Code Block Background - Live Preview (Source Mode) */
/* Only target the code block lines, not the whole scroller */
.markdown-source-view.mod-cm6 .cm-content .cm-line.HyperMD-codeblock {
background-color: #1E1E1E !important;
/* Optional: Add padding if needed for block look, though LP handles this line-by-line */
}
/* Ensure the main editor background stays transparent (inherits from theme) */
.markdown-source-view.mod-cm6 .cm-scroller {
background-color: transparent !important;
}