-
Notifications
You must be signed in to change notification settings - Fork 474
/
_themes.scss
592 lines (532 loc) · 27.3 KB
/
_themes.scss
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
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
@use "sass:color";
@use "../vars.scss" as *;
@use "../color-palette" as *;
@mixin light-theme {
--text-primary: #{$mdn-theme-light-text-primary};
--text-secondary: #{$mdn-theme-light-text-secondary};
--text-active: #{$mdn-theme-light-text-active};
--text-inactive: #{$mdn-theme-light-text-inactive};
--text-link: #{$mdn-theme-light-text-link};
--text-visited: #551a8b; // Source: https://searchfox.org/mozilla-central/rev/02841791400cf7cf5760c0cfaf31f5d772624253/modules/libpref/init/StaticPrefList.yaml#1787-1790
--text-invert: #{$mdn-theme-light-text-invert};
--text-muted: #{$mdn-theme-light-text-muted};
--background-primary: #{$mdn-theme-light-background-primary};
--background-secondary: #{$mdn-theme-light-background-secondary};
--background-tertiary: #{$mdn-theme-light-background-tertiary};
--background-toc-active: #{$mdn-theme-light-background-toc-active};
--background-mark-yellow: #{color.adjust(
$mdn-color-light-theme-yellow-30,
$alpha: -0.6
)};
--background-mark-green: #{color.adjust(
$mdn-color-light-theme-green-30,
$alpha: -0.6
)};
--background-information: #{color.adjust(
$mdn-theme-light-icon-information,
$alpha: -0.9
)};
--background-warning: #{color.adjust(
$mdn-theme-light-icon-warning,
$alpha: -0.9
)};
--background-critical: #{color.adjust(
$mdn-theme-light-icon-critical,
$alpha: -0.9
)};
--background-success: #{color.adjust(
$mdn-theme-light-icon-success,
$alpha: -0.9
)};
--background-del: #{color.adjust($mdn-theme-light-icon-critical, $alpha: -0.5)};
--background-ins: #{color.adjust($mdn-theme-light-icon-success, $alpha: -0.5)};
--border-primary: #{$mdn-theme-light-border-primary};
--border-secondary: #{$mdn-theme-light-border-secondary};
--button-primary-default: #{$mdn-theme-light-button-primary-default};
--button-primary-hover: #{$mdn-theme-light-button-primary-hover};
--button-primary-active: #{$mdn-theme-light-button-primary-active};
--button-primary-inactive: #{$mdn-theme-light-button-primary-inactive};
--button-secondary-default: #{$mdn-theme-light-button-secondary-default};
--button-secondary-hover: #{$mdn-theme-light-button-secondary-hover};
--button-secondary-active: #{$mdn-theme-light-button-secondary-active};
--button-secondary-inactive: #{$mdn-theme-light-button-secondary-inactive};
--button-secondary-border-focus: #{$mdn-theme-light-button-secondary-border-focus};
--button-secondary-border-red: #{$mdn-theme-light-button-secondary-border-red};
--button-secondary-border-red-focus: #{$mdn-theme-light-button-secondary-border-red-focus};
--icon-primary: #{$mdn-theme-light-icon-primary};
--icon-secondary: #{$mdn-theme-light-icon-secondary};
--icon-information: #{$mdn-theme-light-icon-information};
--icon-warning: #{$mdn-theme-light-icon-warning};
--icon-critical: #{$mdn-theme-light-icon-critical};
--icon-success: #{$mdn-theme-light-icon-success};
--accent-primary: #{$mdn-theme-light-accent-primary};
--accent-primary-engage: #{color.adjust(
$mdn-theme-light-accent-primary,
$alpha: -0.9
)};
--accent-secondary: #{$mdn-theme-light-accent-secondary};
--accent-tertiary: #{color.adjust(
$mdn-color-light-theme-blue-50,
$alpha: -0.9
)};
--shadow-01: #{$mdn-theme-light-shadow-01};
--shadow-02: #{$mdn-theme-light-shadow-02};
--focus-01: #{$mdn-theme-light-focus-01};
--field-focus-border: #{$mdn-theme-light-field-focus-border};
--code-token-tag: #{$mdn-theme-light-code-token-tag};
--code-token-punctuation: #{$mdn-theme-light-code-token-punctuation};
--code-token-attribute-name: #{$mdn-theme-light-code-token-attribute-name};
--code-token-attribute-value: #{$mdn-theme-light-code-token-attribute-value};
--code-token-comment: #{$mdn-theme-light-code-token-comment};
--code-token-default: #{$mdn-theme-light-code-token-default};
--code-token-selector: #{$mdn-theme-light-code-token-selector};
--code-background-inline: #{$mdn-theme-light-code-background-inline};
--code-background-block: #{$mdn-theme-light-code-background-block};
--notecard-link-color: #{$mdn-color-neutral-80};
--scrollbar-bg: transparent;
--scrollbar-color: rgba(0, 0, 0, 0.25);
--category-color: #{$mdn-color-light-theme-blue-50};
--category-color-background: #{$mdn-color-light-theme-blue-50}10;
--code-color: #{$mdn-color-light-theme-blue-40};
--mark-color: #{$mdn-color-light-theme-blue-10};
--plus-accent-color: #{$mdn-color-dark-theme-red-60};
--html-accent-color: #{$mdn-color-light-theme-red-60};
--css-accent-color: #{$mdn-color-light-theme-blue-60};
--js-accent-color: #{$mdn-color-light-theme-yellow-40};
--http-accent-color: #{$mdn-color-light-theme-green-60};
--apis-accent-color: #{$mdn-color-light-theme-violet-60};
--learn-accent-color: #{$mdn-color-light-theme-pink-60};
--plus-code-color: #{$mdn-color-light-theme-blue-60};
--html-code-color: #{$mdn-color-light-theme-red-70};
--css-code-color: #{$mdn-color-light-theme-blue-60};
--js-code-color: #{$mdn-color-light-theme-yellow-60};
--http-code-color: #{$mdn-color-light-theme-green-60};
--apis-code-color: #{$mdn-color-light-theme-violet-60};
--learn-code-color: #{$mdn-color-light-theme-pink-60};
--plus-mark-color: #{$mdn-color-light-theme-red-10};
--html-mark-color: #{$mdn-color-light-theme-red-10};
--css-mark-color: #{$mdn-color-light-theme-blue-10};
--js-mark-color: #{$mdn-color-light-theme-yellow-10};
--http-mark-color: #{$mdn-color-light-theme-green-10};
--apis-mark-color: #{$mdn-color-light-theme-violet-10};
--learn-mark-color: #{$mdn-color-light-theme-pink-10};
--plus-accent-background-color: #{$mdn-color-light-theme-red-50}30;
--html-accent-background-color: #{$mdn-color-light-theme-red-50}30;
--css-accent-background-color: #{$mdn-color-light-theme-blue-50}30;
--js-accent-background-color: #{$mdn-color-light-theme-yellow-50}30;
--http-accent-background-color: #{$mdn-color-light-theme-green-50}30;
--apis-accent-background-color: #{$mdn-color-light-theme-violet-50}30;
--learn-accent-background-color: #{$mdn-color-light-theme-pink-50}30;
--plus-accent-engage: #{color.adjust(
$mdn-color-light-theme-red-50,
$alpha: -0.3
)};
--html-accent-engage: #{color.adjust(
$mdn-color-light-theme-red-50,
$alpha: -0.3
)};
--css-accent-engage: #{color.adjust(
$mdn-color-light-theme-blue-50,
$alpha: -0.3
)};
--js-accent-engage: #{color.adjust(
$mdn-color-light-theme-yellow-50,
$alpha: -0.3
)};
--http-accent-engage: #{color.adjust(
$mdn-color-light-theme-green-50,
$alpha: -0.3
)};
--apis-accent-engage: #{color.adjust(
$mdn-color-light-theme-violet-50,
$alpha: -0.3
)};
--learn-accent-engage: #{color.adjust(
$mdn-color-light-theme-pink-50,
$alpha: -0.3
)};
--modal-backdrop-color: #{rgba($mdn-theme-dark-background-primary, 0.1)};
--blend-color: #{$mdn-color-white}80;
--text-primary-red: #{$mdn-color-light-theme-red-60};
--text-primary-green: #{$mdn-color-light-theme-green-60};
--text-primary-blue: #{$mdn-color-light-theme-blue-60};
--text-primary-yellow: #{$mdn-color-light-theme-yellow-60};
--collections-link: #{$mdn-color-light-theme-red-70};
--collections-header: #{$mdn-color-light-theme-red-10};
--collections-mandala: #{$mdn-color-light-theme-red-30};
--collections-icon: #{$mdn-color-light-theme-red-50};
--updates-link: #{$mdn-color-light-theme-blue-60};
--updates-header: #{$mdn-color-neutral-light-70};
--updates-mandala: #{$mdn-color-light-theme-blue-30};
--updates-icon: #{$mdn-color-light-theme-blue-50};
--ai-help-link: #{$mdn-color-light-theme-green-60};
--ai-help-header: #{$mdn-color-neutral-light-70};
--ai-help-mandala: #{$mdn-color-light-theme-green-30};
--ai-help-icon: #{$mdn-color-light-theme-green-50};
--ai-help-accent-background-color: #{$mdn-color-light-theme-green-50}10;
--form-limit-color: #{$mdn-color-neutral-60};
--form-limit-color-emphasis: #{$mdn-color-neutral-70};
--form-invalid-color: #{$mdn-color-light-theme-red-60};
--form-invalid-focus-color: #{$mdn-color-light-theme-red-50};
--form-invalid-focus-effect-color: #{rgba($mdn-color-light-theme-red-50, 0.2)};
--baseline-high-bg: #e6f4ea;
--baseline-high-engine-bg: #ceead6;
--baseline-high-img: url("../../assets/icons/baseline/high.svg");
--baseline-high-check: #099949;
--baseline-low-bg: #e8f0fe;
--baseline-low-engine-bg: #d2e3fc;
--baseline-low-check: #1a73e8;
--baseline-low-img: url("../../assets/icons/baseline/low.svg");
--baseline-low-pill-bg: #3367d6;
--baseline-low-pill-color: #f1f3f4;
--baseline-limited-bg: #f1f3f4;
--baseline-limited-engine-bg: #e3e6e8;
--baseline-limited-img: url("../../assets/icons/baseline/limited.svg");
--baseline-limited-check: #1e8e3e;
--baseline-limited-cross: #ea8600;
--curriculum-bg-color: #fcefe2;
--curriculum-bg-color-note: rgba(252, 239, 226, 0.5);
--curriculum-bg-large-color: #fcefe2;
--curriculum-bg-color-topic-standards: #{$mdn-color-light-theme-red-50}30;
--curriculum-bg-color-topic-styling: #{$mdn-color-light-theme-blue-50}30;
--curriculum-bg-color-topic-scripting: #{$mdn-color-light-theme-yellow-50}30;
--curriculum-bg-color-topic-tooling: #{$mdn-color-light-theme-green-50}30;
--curriculum-bg-color-topic-practices: #{$mdn-color-light-theme-violet-50}30;
--curriculum-bg-color-landing: #fff;
--curriculum-bg-color-landing-about-ul: #fff;
--curriculum-bg-color-landing-top-icon: #fcefe2;
--curriculum-bg-color-landing-stairway-floor: #fcefe2;
--curriculum-category-color: #e3642a;
--curriculum-color: #d47d55;
--curriculum-module-label-color: #b34d1f;
--curriculum-module-label-bg-color: #faf0e3;
--curriculum-color-topic-standards: #{$mdn-color-light-theme-red-60};
--curriculum-color-topic-styling: #{$mdn-color-light-theme-blue-60};
--curriculum-color-topic-scripting: #{$mdn-color-light-theme-yellow-60};
--curriculum-color-topic-tooling: #{$mdn-color-light-theme-green-60};
--curriculum-color-topic-practices: #{$mdn-color-light-theme-violet-60};
--curriculum-color-landing-laptop: #e3642a;
--curriculum-border-color-list-item: #f2f1f1;
--curriculum-border-color-list-item-hover: rgba(227, 100, 42, 0.7);
--curriculum-bg-color-list-item-body: #fff;
--curriculum-color-list-item-icon-topic-standards: #{$mdn-color-light-theme-red-60};
--curriculum-color-list-item-icon-topic-styling: #{$mdn-color-light-theme-blue-60};
--curriculum-color-list-item-icon-topic-scripting: #{$mdn-color-light-theme-yellow-60};
--curriculum-color-list-item-icon-topic-tooling: #{$mdn-color-light-theme-green-60};
--curriculum-color-list-item-icon-topic-practices: #{$mdn-color-light-theme-violet-60};
--curriculum-bg-color-list-item-icon-topic-standards: #fff;
--curriculum-bg-color-list-item-icon-topic-styling: #fff;
--curriculum-bg-color-list-item-icon-topic-scripting: #fff;
--curriculum-bg-color-list-item-icon-topic-tooling: #fff;
--curriculum-bg-color-list-item-icon-topic-practices: #fff;
--curriculum-bg-color-list-item-topic-standards: #{$mdn-color-light-theme-red-50}30;
--curriculum-bg-color-list-item-topic-styling: #{$mdn-color-light-theme-blue-50}30;
--curriculum-bg-color-list-item-topic-scripting: #{$mdn-color-light-theme-yellow-50}30;
--curriculum-bg-color-list-item-topic-tooling: #{$mdn-color-light-theme-green-50}30;
--curriculum-bg-color-list-item-topic-practices: #{$mdn-color-light-theme-violet-50}30;
--curriculum-shadow: 4px 4px 8px 0 rgba(179, 179, 179, 0.18),
-4px 4px 8px 0 rgba(179, 179, 179, 0.15);
--curriculum-shadow-landing-about-ul: 0 4px 10px 0 rgba(227, 100, 42, 0.06),
0 -2px 4px 0 rgba(178, 92, 53, 0.06);
--curriculum-landing-about-beginner: url("../../assets/icons/curriculum-landing-about-beginner.svg#light");
--curriculum-landing-about-pace: url("../../assets/icons/curriculum-landing-about-pace.svg#light");
--curriculum-landing-about-free: url("../../assets/icons/curriculum-landing-about-free.svg#light");
--curriculum-landing-about-bullet: url("../../assets/icons/curriculum-landing-about-bullet.svg#light");
--curriculum-landing-started-beginner: url("../../assets/icons/curriculum-landing-started-beginner.svg#small-light");
--curriculum-landing-started-advanced: url("../../assets/icons/curriculum-landing-started-advanced.svg#small-light");
--curriculum-landing-started-employment: url("../../assets/icons/curriculum-landing-started-employment.svg#small-light");
--curriculum-landing-started-educator: url("../../assets/icons/curriculum-landing-started-educator.svg#small-light");
@media screen and (min-width: $screen-md) {
--curriculum-landing-started-beginner: url("../../assets/icons/curriculum-landing-started-beginner.svg#light");
--curriculum-landing-started-advanced: url("../../assets/icons/curriculum-landing-started-advanced.svg#light");
--curriculum-landing-started-employment: url("../../assets/icons/curriculum-landing-started-employment.svg#light");
--curriculum-landing-started-educator: url("../../assets/icons/curriculum-landing-started-educator.svg#light");
--curriculum-module-mdn-resource: url("../../assets/icons/curriculum-mdn-resource.svg#light");
--curriculum-bullet: url("../../assets/icons/curriculum-bullet.svg#light");
--curriculum-about-covered: url("../../assets/icons/curriculum-about-covered.svg#light");
--curriculum-about-detail: url("../../assets/icons/curriculum-about-detail.svg#light");
--curriculum-about-educators: url("../../assets/icons/curriculum-about-educators.svg#light");
--curriculum-about-not: url("../../assets/icons/curriculum-about-not.svg#light");
--curriculum-about-students: url("../../assets/icons/curriculum-about-students.svg#light");
}
color-scheme: light;
}
@mixin dark-theme {
--text-primary: #{$mdn-theme-dark-text-primary};
--text-secondary: #{$mdn-theme-dark-text-secondary};
--text-active: #{$mdn-theme-dark-text-active};
--text-inactive: #{$mdn-theme-dark-text-inactive};
--text-link: #{$mdn-theme-dark-text-link};
--text-visited: #ffadff; // Source: https://searchfox.org/mozilla-central/rev/02841791400cf7cf5760c0cfaf31f5d772624253/modules/libpref/init/StaticPrefList.yaml#1794-1797
--text-invert: #{$mdn-theme-dark-text-invert};
--text-muted: #{$mdn-theme-dark-text-muted};
--background-primary: #{$mdn-theme-dark-background-primary};
--background-secondary: #{$mdn-theme-dark-background-secondary};
--background-tertiary: #{$mdn-theme-dark-background-tertiary};
--background-toc-active: #{$mdn-theme-dark-background-toc-active};
--background-mark-yellow: #{color.adjust(
$mdn-color-dark-theme-yellow-30,
$alpha: -0.6
)};
--background-mark-green: #{color.adjust(
$mdn-color-light-theme-green-30,
$alpha: -0.6
)};
--background-information: #{color.adjust(
$mdn-theme-light-icon-information,
$alpha: -0.9
)};
--background-warning: #{color.adjust(
$mdn-theme-light-icon-warning,
$alpha: -0.9
)};
--background-critical: #{color.adjust(
$mdn-theme-light-icon-critical,
$alpha: -0.9
)};
--background-success: #{color.adjust(
$mdn-theme-light-icon-success,
$alpha: -0.9
)};
--background-del: #{color.adjust($mdn-theme-light-icon-critical, $alpha: -0.5)};
--background-ins: #{color.adjust($mdn-theme-light-icon-success, $alpha: -0.5)};
--border-primary: #{$mdn-theme-dark-border-primary};
--border-secondary: #{$mdn-theme-dark-border-secondary};
--button-primary-default: #{$mdn-theme-dark-button-primary-default};
--button-primary-hover: #{$mdn-theme-dark-button-primary-hover};
--button-primary-active: #{$mdn-theme-dark-button-primary-active};
--button-primary-inactive: #{$mdn-theme-dark-button-primary-inactive};
--button-secondary-default: #{$mdn-theme-dark-button-secondary-default};
--button-secondary-hover: #{$mdn-theme-dark-button-secondary-hover};
--button-secondary-active: #{$mdn-theme-dark-button-secondary-active};
--button-secondary-inactive: #{$mdn-theme-dark-button-secondary-inactive};
--button-secondary-border-focus: #{$mdn-theme-light-button-secondary-border-focus};
--button-secondary-border-red: #{$mdn-theme-light-button-secondary-border-red};
--button-secondary-border-red-focus: #{$mdn-theme-light-button-secondary-border-red-focus};
--icon-primary: #{$mdn-theme-dark-icon-primary};
--icon-secondary: #{$mdn-theme-dark-icon-secondary};
--icon-information: #{$mdn-theme-dark-icon-information};
--icon-warning: #{$mdn-theme-dark-icon-warning};
--icon-critical: #{$mdn-theme-dark-icon-critical};
--icon-success: #{$mdn-theme-dark-icon-success};
--accent-primary: #{$mdn-theme-dark-accent-primary};
--accent-primary-engage: #{color.adjust(
$mdn-theme-dark-accent-primary,
$alpha: -0.9
)};
--accent-secondary: #{$mdn-theme-dark-accent-secondary};
--accent-tertiary: #{color.adjust(
$mdn-color-light-theme-blue-50,
$alpha: -0.9
)};
--shadow-01: #{$mdn-theme-dark-shadow-01};
--shadow-02: #{$mdn-theme-dark-shadow-02};
--focus-01: #{$mdn-theme-dark-focus-01};
--field-focus-border: #{$mdn-theme-dark-field-focus-border};
--code-token-tag: #{$mdn-theme-dark-code-token-tag};
--code-token-punctuation: #{$mdn-theme-dark-code-token-punctuation};
--code-token-attribute-name: #{$mdn-theme-dark-code-token-attribute-name};
--code-token-attribute-value: #{$mdn-theme-dark-code-token-attribute-value};
--code-token-comment: #{$mdn-theme-dark-code-token-comment};
--code-token-default: #{$mdn-theme-dark-code-token-default};
--code-token-selector: #{$mdn-theme-dark-code-token-selector};
--code-background-inline: #{$mdn-theme-dark-code-background-inline};
--code-background-block: #{$mdn-theme-dark-code-background-block};
--notecard-link-color: #{$mdn-color-neutral-10};
--scrollbar-bg: transparent;
--scrollbar-color: rgba(255, 255, 255, 0.25);
--category-color: #{$mdn-color-dark-theme-blue-30};
--category-color-background: #{$mdn-color-dark-theme-blue-30}70;
--code-color: #{$mdn-color-dark-theme-blue-20};
--mark-color: #{$mdn-color-dark-theme-blue-70};
--plus-accent-color: #{$mdn-color-dark-theme-red-30};
--html-accent-color: #{$mdn-color-dark-theme-red-40};
--css-accent-color: #{$mdn-color-dark-theme-blue-30};
--js-accent-color: #{$mdn-color-dark-theme-yellow-40};
--http-accent-color: #{$mdn-color-dark-theme-green-40};
--apis-accent-color: #{$mdn-color-dark-theme-violet-40};
--learn-accent-color: #{$mdn-color-dark-theme-pink-40};
--plus-code-color: #{$mdn-color-dark-theme-blue-20};
--html-code-color: #{$mdn-color-neutral-light-70};
--css-code-color: #{$mdn-color-dark-theme-blue-20};
--js-code-color: #{$mdn-color-dark-theme-yellow-30};
--http-code-color: #{$mdn-color-dark-theme-green-30};
--apis-code-color: #{$mdn-color-dark-theme-violet-30};
--learn-code-color: #{$mdn-color-dark-theme-pink-30};
--plus-mark-color: #{$mdn-color-dark-theme-red-70};
--html-mark-color: #{$mdn-color-dark-theme-red-70};
--css-mark-color: #{$mdn-color-dark-theme-blue-70};
--js-mark-color: #{$mdn-color-dark-theme-yellow-70};
--http-mark-color: #{$mdn-color-dark-theme-green-70};
--apis-mark-color: #{$mdn-color-dark-theme-violet-70};
--learn-mark-color: #{$mdn-color-dark-theme-pink-70};
--plus-accent-background-color: #{$mdn-color-light-theme-red-50}30;
--html-accent-background-color: #{$mdn-color-light-theme-red-50}30;
--css-accent-background-color: #{$mdn-color-light-theme-blue-50}30;
--js-accent-background-color: #{$mdn-color-light-theme-yellow-50}30;
--http-accent-background-color: #{$mdn-color-light-theme-green-50}30;
--apis-accent-background-color: #{$mdn-color-light-theme-violet-50}30;
--learn-accent-background-color: #{$mdn-color-light-theme-pink-50}30;
--plus-accent-engage: #{color.adjust(
$mdn-color-dark-theme-red-40,
$alpha: -0.3
)};
--html-accent-engage: #{color.adjust(
$mdn-color-dark-theme-red-40,
$alpha: -0.3
)};
--css-accent-engage: #{color.adjust(
$mdn-color-dark-theme-blue-30,
$alpha: -0.3
)};
--js-accent-engage: #{color.adjust(
$mdn-color-dark-theme-yellow-40,
$alpha: -0.3
)};
--http-accent-engage: #{color.adjust(
$mdn-color-dark-theme-green-40,
$alpha: -0.3
)};
--apis-accent-engage: #{color.adjust(
$mdn-color-dark-theme-violet-40,
$alpha: -0.3
)};
--learn-accent-engage: #{color.adjust(
$mdn-color-dark-theme-pink-40,
$alpha: -0.3
)};
--modal-backdrop-color: #{rgba($mdn-theme-dark-background-primary, 0.7)};
--blend-color: #{$mdn-color-black}80;
--text-primary-red: #{$mdn-color-dark-theme-red-30};
--text-primary-green: #{$mdn-color-dark-theme-green-30};
--text-primary-blue: #{$mdn-color-dark-theme-blue-30};
--text-primary-yellow: #{$mdn-color-dark-theme-yellow-30};
--collections-link: #{$mdn-color-dark-theme-red-30};
--collections-header: #{$mdn-color-dark-theme-red-90};
--collections-mandala: #{$mdn-color-dark-theme-red-70};
--collections-icon: #{$mdn-color-dark-theme-red-60};
--updates-link: #{$mdn-color-dark-theme-blue-30};
--updates-header: #{$mdn-color-black};
--updates-mandala: #{$mdn-color-dark-theme-blue-20};
--updates-icon: #{$mdn-color-dark-theme-blue-30};
--ai-help-link: #{$mdn-color-dark-theme-green-30};
--ai-help-header: #{$mdn-color-black};
--ai-help-mandala: #{$mdn-color-dark-theme-green-20};
--ai-help-icon: #{$mdn-color-dark-theme-green-30};
--ai-help-accent-background-color: #{$mdn-color-light-theme-green-50}30;
--form-limit-color: #{$mdn-color-neutral-40};
--form-limit-color-emphasis: #{$mdn-color-neutral-30};
--form-invalid-color: #{$mdn-color-light-theme-red-30};
--form-invalid-focus-color: #{$mdn-color-light-theme-red-40};
--form-invalid-focus-effect-color: #{rgba($mdn-color-light-theme-red-40, 0.2)};
--baseline-high-bg: #0e2a10;
--baseline-high-engine-bg: #031b05;
--baseline-high-img: url("../../assets/icons/baseline/high-dark.svg");
--baseline-high-check: #099949;
--baseline-low-bg: #041e49;
--baseline-low-engine-bg: #020d20;
--baseline-low-check: #1a73e8;
--baseline-low-img: url("../../assets/icons/baseline/low-dark.svg");
--baseline-low-pill-bg: #3367d6;
--baseline-low-pill-color: #f1f3f4;
--baseline-limited-bg: #282a2c;
--baseline-limited-engine-bg: #1d1e1f;
--baseline-limited-img: url("../../assets/icons/baseline/limited-dark.svg");
--baseline-limited-check: #1e8e3e;
--baseline-limited-cross: #ea8600;
--curriculum-color: #e3642a;
--curriculum-color-topic-standards: #f2919c;
--curriculum-color-topic-styling: #91a6f2;
--curriculum-color-topic-scripting: #f2cf8f;
--curriculum-color-topic-tooling: #8ff2a4;
--curriculum-color-topic-practices: #c891f2;
--curriculum-bg-color: #664b33;
--curriculum-bg-color-note: #321d13;
--curriculum-bg-large-color: #343434;
--curriculum-bg-color-topic-standards: #994b53;
--curriculum-bg-color-topic-styling: #4e609e;
--curriculum-bg-color-topic-scripting: #7d683d;
--curriculum-bg-color-topic-tooling: #3d7c4b;
--curriculum-bg-color-topic-practices: #584280;
--curriculum-bg-color-landing: #0e0b0a;
--curriculum-bg-color-landing-about-ul: #000;
--curriculum-bg-color-landing-top-icon: #321d13;
--curriculum-bg-color-landing-stairway-floor: rgba(137, 91, 51, 1);
--curriculum-category-color: #e3642a;
--curriculum-bg-color-grey: #1f1c1a;
--curriculum-bg-color-orange: #b25c35;
--curriculum-color-landing-laptop: #b25c35;
--curriculum-bg-color-list-item-body: #000;
--curriculum-border-color-list-item: #4e4e4e;
--curriculum-border-color-list-item-hover: rgba(227, 100, 42, 0.7);
--curriculum-module-label-color: #e3642a;
--curriculum-module-label-bg-color: #321d13;
--curriculum-bg-color-list-item-topic-standards: #343434;
--curriculum-bg-color-list-item-topic-styling: #343434;
--curriculum-bg-color-list-item-topic-scripting: #343434;
--curriculum-bg-color-list-item-topic-tooling: #343434;
--curriculum-bg-color-list-item-topic-practices: #343434;
--curriculum-color-list-item-icon-topic-standards: #f2919c;
--curriculum-color-list-item-icon-topic-styling: #91a6f2;
--curriculum-color-list-item-icon-topic-scripting: #f2cf8f;
--curriculum-color-list-item-icon-topic-tooling: #8ff2a4;
--curriculum-color-list-item-icon-topic-practices: #c891f2;
--curriculum-bg-color-list-item-icon-topic-standards: #804248;
--curriculum-bg-color-list-item-icon-topic-styling: #425080;
--curriculum-bg-color-list-item-icon-topic-scripting: #806a42;
--curriculum-bg-color-list-item-icon-topic-tooling: #428050;
--curriculum-bg-color-list-item-icon-topic-practices: #584280;
--curriculum-shadow: 2px 2px 5px 0 rgba(36, 36, 36, 0.15),
-2px 2px 8px 0 rgba(87, 87, 87, 0.15);
--curriculum-shadow-landing-about-ul: 0 4px 10px 0 rgba(227, 100, 42, 0.06),
0 -2px 4px 0 rgba(178, 92, 53, 0.06);
--curriculum-landing-about-beginner: url("../../assets/icons/curriculum-landing-about-beginner.svg#dark");
--curriculum-landing-about-pace: url("../../assets/icons/curriculum-landing-about-pace.svg#dark");
--curriculum-landing-about-free: url("../../assets/icons/curriculum-landing-about-free.svg#dark");
--curriculum-landing-about-bullet: url("../../assets/icons/curriculum-landing-about-bullet.svg#dark");
--curriculum-landing-started-beginner: url("../../assets/icons/curriculum-landing-started-beginner.svg#small-dark");
--curriculum-landing-started-advanced: url("../../assets/icons/curriculum-landing-started-advanced.svg#small-dark");
--curriculum-landing-started-employment: url("../../assets/icons/curriculum-landing-started-employment.svg#small-dark");
--curriculum-landing-started-educator: url("../../assets/icons/curriculum-landing-started-educator.svg#small-dark");
@media screen and (min-width: $screen-md) {
--curriculum-landing-started-beginner: url("../../assets/icons/curriculum-landing-started-beginner.svg#dark");
--curriculum-landing-started-advanced: url("../../assets/icons/curriculum-landing-started-advanced.svg#dark");
--curriculum-landing-started-employment: url("../../assets/icons/curriculum-landing-started-employment.svg#dark");
--curriculum-landing-started-educator: url("../../assets/icons/curriculum-landing-started-educator.svg#dark");
--curriculum-module-mdn-resource: url("../../assets/icons/curriculum-mdn-resource.svg#dark");
--curriculum-bullet: url("../../assets/icons/curriculum-bullet.svg#dark");
--curriculum-about-covered: url("../../assets/icons/curriculum-about-covered.svg#dark");
--curriculum-about-detail: url("../../assets/icons/curriculum-about-detail.svg#dark");
--curriculum-about-educators: url("../../assets/icons/curriculum-about-educators.svg#dark");
--curriculum-about-not: url("../../assets/icons/curriculum-about-not.svg#dark");
--curriculum-about-students: url("../../assets/icons/curriculum-about-students.svg#dark");
}
color-scheme: dark;
}
body,
:root {
--mdn-color-white: #{$mdn-color-white};
--mdn-color-black: #{$mdn-color-black};
--mdn-color-ads: #{$mdn-color-ads};
--mdn-color-background-highlight: #{$mdn-color-light-theme-yellow-10};
--mdn-color-dark-grey: #{$mdn-color-neutral-70};
--mdn-background-dark: #{$mdn-theme-dark-background-primary};
--mdn-background-light: #{$mdn-theme-light-background-primary};
--mdn-background-light-grey: #{$mdn-color-neutral-10};
--color-announcement-banner-accent: #{$mdn-color-light-theme-pink-40};
}
.light {
@include light-theme;
}
.dark {
@include dark-theme;
}
// OS Default.
:root:not(.light):not(.dark) {
@media (prefers-color-scheme: light) {
@include light-theme;
}
@media (prefers-color-scheme: dark) {
@include dark-theme;
}
}