forked from steveseguin/vdo.ninja
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloop-tokens.css
More file actions
55 lines (49 loc) · 1.92 KB
/
Copy pathloop-tokens.css
File metadata and controls
55 lines (49 loc) · 1.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
/* Loop Cam design tokens — isolated from upstream VDO.Ninja refresh variables */
:root {
--loop-accent: #64c04d;
--loop-accent-hover: #72cc58;
--loop-accent-active: #58a843;
--loop-accent-ink: #111;
--loop-ui-bg: #171717;
--loop-ui-surface: var(--discord-grey-7, #404249);
--loop-ui-surface-raised: var(--discord-grey-5, #313338);
--loop-ui-border: #4a4d55;
--loop-ui-text: var(--discord-text, #e8eaed);
--loop-ui-muted: #a8b0bd;
--loop-ui-accent: var(--loop-accent);
--loop-ui-radius-sm: 8px;
--loop-ui-radius-md: 12px;
--loop-ui-radius-lg: 16px;
--loop-ui-radius-pill: 999px;
--loop-ui-panel-width: min(480px, calc(100vw - 32px));
--loop-ui-expanded-max: 560px;
--loop-ui-close-size: 44px;
--loop-ui-transition: 160ms cubic-bezier(0.22, 1, 0.36, 1);
--loop-toolbar-cell: 45px;
--loop-toolbar-gap: 5px;
--loop-z-dropdown: 10;
--loop-z-sticky: 20;
--loop-z-modal-backdrop: 40;
--loop-z-modal: 50;
--loop-z-toast: 60;
}
/*
* Dark-theme surface pin. DESIGN.md canonicalizes the Loop dark theme's
* Surface (#404249, --discord-grey-7) and Surface Raised (#313338,
* --discord-grey-5). Under prefers-color-scheme:dark, main.css softens those
* shared greys to #3a3d45/#2f3237 ("soften Discord greys slightly"). The home
* cards style their dark background as `.darktheme .card { background:
* var(--discord-grey-7) }`, and the --loop-ui-* surface tokens fall back through
* the same greys, so that softening drags every dark Loop surface off-spec.
* Re-pin the two greys to canonical in the dark scheme so the cards and the
* --loop-ui-* tokens resolve to the documented Surface values. This file loads
* after main.css, so the override wins. Scope is the dark theme only: the
* upstream light theme (.card -> --lighttheme-3) and main.css's other dark
* softening (text, link, accent colors) are left untouched.
*/
@media (prefers-color-scheme: dark) {
:root {
--discord-grey-5: #313338;
--discord-grey-7: #404249;
}
}