@crewlethq/tokens 0.48.2 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +54 -1
- package/dist/brand.d.ts +68 -0
- package/dist/brand.js +174 -0
- package/dist/color.d.ts +61 -0
- package/dist/color.js +81 -0
- package/dist/css/brand-scope.css +316 -0
- package/dist/css/brand.css +133 -0
- package/dist/css/themes/abyss.css +12 -0
- package/dist/css/themes/all.css +108 -0
- package/dist/css/themes/dusk.css +12 -0
- package/dist/css/themes/high-contrast.css +12 -0
- package/dist/css/themes/iris.css +12 -0
- package/dist/css/themes/ledger.css +12 -0
- package/dist/css/themes/nightshade.css +12 -0
- package/dist/css/themes/nocturne.css +12 -0
- package/dist/css/themes/origin.css +12 -0
- package/dist/css/themes/violet.css +12 -0
- package/dist/css/themes.css +12 -0
- package/dist/css/tokens.css +4 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +7 -1
- package/dist/themes.d.ts +16 -0
- package/dist/themes.js +16 -0
- package/package.json +3 -1
- package/test/color.mjs +16 -53
- package/test/palette.d.mts +10 -0
- package/test/palette.mjs +77 -0
- package/test/palette.test.mjs +34 -0
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
/* Generated by @crewlethq/tokens from stylesheets/brand.css (src/brand.ts). Do not edit. */
|
|
2
|
+
|
|
3
|
+
/* The page's own values, one element above the mapping. */
|
|
4
|
+
.crewlet-brand-scope {
|
|
5
|
+
--crewlet-theme-color-border-selected: var(--color-border-selected);
|
|
6
|
+
--crewlet-theme-color-brand-accent: var(--color-brand-accent);
|
|
7
|
+
--crewlet-theme-color-brand-accent-active: var(--color-brand-accent-active);
|
|
8
|
+
--crewlet-theme-color-brand-accent-deep: var(--color-brand-accent-deep);
|
|
9
|
+
--crewlet-theme-color-brand-accent-hover: var(--color-brand-accent-hover);
|
|
10
|
+
--crewlet-theme-color-brand-accent-ink: var(--color-brand-accent-ink);
|
|
11
|
+
--crewlet-theme-color-brand-accent-soft: var(--color-brand-accent-soft);
|
|
12
|
+
--crewlet-theme-color-brand-accent-soft-strong: var(--color-brand-accent-soft-strong);
|
|
13
|
+
--crewlet-theme-color-brand-gradient: var(--color-brand-gradient);
|
|
14
|
+
--crewlet-theme-color-brand-highlight: var(--color-brand-highlight);
|
|
15
|
+
--crewlet-theme-color-brand-mark: var(--color-brand-mark);
|
|
16
|
+
--crewlet-theme-color-surface-background: var(--color-surface-background);
|
|
17
|
+
--crewlet-theme-color-surface-frame: var(--color-surface-frame);
|
|
18
|
+
--crewlet-theme-color-text-link-quiet: var(--color-text-link-quiet);
|
|
19
|
+
--crewlet-theme-color-text-on-accent: var(--color-text-on-accent);
|
|
20
|
+
--crewlet-theme-color-text-primary: var(--color-text-primary);
|
|
21
|
+
--crewlet-theme-font-family-display: var(--font-family-display);
|
|
22
|
+
--crewlet-theme-font-family-sans: var(--font-family-sans);
|
|
23
|
+
--crewlet-theme-shadow-glow: var(--shadow-glow);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.crewlet-brand-scope__layer {
|
|
27
|
+
--crewlet-brand-accent: var(--brand-primary-on-dark, var(--brand-primary));
|
|
28
|
+
--crewlet-brand-ink: color-mix(in oklab, var(--crewlet-brand-accent) 55%, white);
|
|
29
|
+
--crewlet-brand-soft: color-mix(in srgb, var(--crewlet-brand-accent) 16%, transparent);
|
|
30
|
+
--crewlet-brand-ground: var(--brand-dark-ground);
|
|
31
|
+
--crewlet-brand-text: initial;
|
|
32
|
+
--crewlet-brand-hover: color-mix(in oklab, var(--crewlet-brand-accent) 90%, black);
|
|
33
|
+
--crewlet-brand-active: color-mix(in oklab, var(--crewlet-brand-accent) 80%, black);
|
|
34
|
+
--crewlet-brand-deep: color-mix(in oklab, var(--crewlet-brand-accent) 70%, black);
|
|
35
|
+
--crewlet-brand-soft-strong: color-mix(in srgb, var(--crewlet-brand-accent) 32%, transparent);
|
|
36
|
+
--crewlet-brand-selected: color-mix(in srgb, var(--crewlet-brand-accent) 60%, transparent);
|
|
37
|
+
--crewlet-brand-glow: 0 4px 24px color-mix(in srgb, var(--crewlet-brand-accent) 30%, transparent);
|
|
38
|
+
--crewlet-brand-link: color-mix(in oklab, var(--crewlet-brand-ink) 65%, var(--color-text-secondary));
|
|
39
|
+
--crewlet-brand-on-accent: color( from var(--crewlet-brand-accent) srgb-linear calc((0.179 - (0.2126 * r + 0.7152 * g + 0.0722 * b)) * 100000) calc((0.179 - (0.2126 * r + 0.7152 * g + 0.0722 * b)) * 100000) calc((0.179 - (0.2126 * r + 0.7152 * g + 0.0722 * b)) * 100000) );
|
|
40
|
+
--crewlet-brand-gradient: linear-gradient( 90deg, var(--brand-primary) 0%, var(--brand-secondary, color-mix(in oklab, var(--brand-primary) 70%, black)) 100% );
|
|
41
|
+
--color-brand-accent: var(--crewlet-brand-accent, var(--crewlet-theme-color-brand-accent));
|
|
42
|
+
--color-brand-accent-hover: var(--crewlet-brand-hover, var(--crewlet-theme-color-brand-accent-hover));
|
|
43
|
+
--color-brand-accent-active: var(--crewlet-brand-active, var(--crewlet-theme-color-brand-accent-active));
|
|
44
|
+
--color-brand-accent-ink: var(--crewlet-brand-ink, var(--crewlet-theme-color-brand-accent-ink));
|
|
45
|
+
--color-brand-accent-soft: var(--crewlet-brand-soft, var(--crewlet-theme-color-brand-accent-soft));
|
|
46
|
+
--color-brand-accent-soft-strong: var(--crewlet-brand-soft-strong, var(--crewlet-theme-color-brand-accent-soft-strong));
|
|
47
|
+
--color-brand-accent-deep: var(--crewlet-brand-deep, var(--crewlet-theme-color-brand-accent-deep));
|
|
48
|
+
--color-brand-mark: var(--brand-primary, var(--crewlet-theme-color-brand-mark));
|
|
49
|
+
--color-brand-highlight: var(--brand-secondary, var(--crewlet-theme-color-brand-highlight));
|
|
50
|
+
--color-brand-gradient: var(--crewlet-brand-gradient, var(--crewlet-theme-color-brand-gradient));
|
|
51
|
+
--color-border-selected: var(--crewlet-brand-selected, var(--crewlet-theme-color-border-selected));
|
|
52
|
+
--color-text-on-accent: var(--crewlet-brand-on-accent, var(--crewlet-theme-color-text-on-accent));
|
|
53
|
+
--color-text-link-quiet: var(--crewlet-brand-link, var(--crewlet-theme-color-text-link-quiet));
|
|
54
|
+
--color-text-primary: var(--crewlet-brand-text, var(--crewlet-theme-color-text-primary));
|
|
55
|
+
--color-surface-frame: var(--crewlet-brand-ground, var(--crewlet-theme-color-surface-frame));
|
|
56
|
+
--color-surface-background: var(--crewlet-brand-ground, var(--crewlet-theme-color-surface-background));
|
|
57
|
+
--shadow-glow: var(--crewlet-brand-glow, var(--crewlet-theme-shadow-glow));
|
|
58
|
+
--font-family-sans: var(--brand-font-body, var(--crewlet-theme-font-family-sans));
|
|
59
|
+
--font-family-display: var(--brand-font-heading, var(--brand-font-body, var(--crewlet-theme-font-family-display)));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media (prefers-color-scheme: light) {
|
|
63
|
+
:root:not([data-theme="dark"]) .crewlet-brand-scope__layer {
|
|
64
|
+
--crewlet-brand-accent: var(--brand-primary);
|
|
65
|
+
--crewlet-brand-ink: color-mix(in oklab, var(--crewlet-brand-accent) 70%, black);
|
|
66
|
+
--crewlet-brand-soft: color-mix(in srgb, var(--crewlet-brand-accent) 12.5%, transparent);
|
|
67
|
+
--crewlet-brand-ground: var(--brand-light-ground);
|
|
68
|
+
--crewlet-brand-text: var(--brand-text);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:root[data-theme="light"] .crewlet-brand-scope__layer,
|
|
73
|
+
.crewlet-brand-scope[data-mode="light"] > .crewlet-brand-scope__layer {
|
|
74
|
+
--crewlet-brand-accent: var(--brand-primary);
|
|
75
|
+
--crewlet-brand-ink: color-mix(in oklab, var(--crewlet-brand-accent) 70%, black);
|
|
76
|
+
--crewlet-brand-soft: color-mix(in srgb, var(--crewlet-brand-accent) 12.5%, transparent);
|
|
77
|
+
--crewlet-brand-ground: var(--brand-light-ground);
|
|
78
|
+
--crewlet-brand-text: var(--brand-text);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* A pinned mode: the default theme's values for it, its own steps and the rest of its palette. */
|
|
82
|
+
.crewlet-brand-scope[data-mode="light"] {
|
|
83
|
+
--crewlet-theme-color-border-selected: rgba(115, 90, 242, 0.6);
|
|
84
|
+
--crewlet-theme-color-brand-accent: #735af2;
|
|
85
|
+
--crewlet-theme-color-brand-accent-active: #5b3dc7;
|
|
86
|
+
--crewlet-theme-color-brand-accent-hover: #674ee4;
|
|
87
|
+
--crewlet-theme-color-brand-accent-ink: #4f51bd;
|
|
88
|
+
--crewlet-theme-color-brand-accent-soft: rgba(115, 90, 242, 0.125);
|
|
89
|
+
--crewlet-theme-color-brand-accent-soft-strong: rgba(115, 90, 242, 0.32);
|
|
90
|
+
--crewlet-theme-color-surface-background: #f6f7fb;
|
|
91
|
+
--crewlet-theme-color-surface-frame: #e9ecf3;
|
|
92
|
+
--crewlet-theme-color-text-link-quiet: #484e99;
|
|
93
|
+
--crewlet-theme-color-text-on-accent: #ffffff;
|
|
94
|
+
--crewlet-theme-color-text-primary: #121625;
|
|
95
|
+
--crewlet-theme-shadow-glow: 0 4px 24px rgba(var(--color-brand-accent-rgb), 0.22);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.crewlet-brand-scope[data-mode="dark"] {
|
|
99
|
+
--crewlet-theme-color-border-selected: rgba(114, 91, 230, 0.6);
|
|
100
|
+
--crewlet-theme-color-brand-accent: #725be6;
|
|
101
|
+
--crewlet-theme-color-brand-accent-active: #5b3dc7;
|
|
102
|
+
--crewlet-theme-color-brand-accent-hover: #674ee4;
|
|
103
|
+
--crewlet-theme-color-brand-accent-ink: #a9b0ff;
|
|
104
|
+
--crewlet-theme-color-brand-accent-soft: rgba(114, 91, 230, 0.16);
|
|
105
|
+
--crewlet-theme-color-brand-accent-soft-strong: rgba(114, 91, 230, 0.32);
|
|
106
|
+
--crewlet-theme-color-surface-background: #0c0e16;
|
|
107
|
+
--crewlet-theme-color-surface-frame: #07080d;
|
|
108
|
+
--crewlet-theme-color-text-link-quiet: #a9b0ea;
|
|
109
|
+
--crewlet-theme-color-text-on-accent: #ffffff;
|
|
110
|
+
--crewlet-theme-color-text-primary: #e7eaf3;
|
|
111
|
+
--crewlet-theme-shadow-glow: 0 4px 24px rgba(var(--color-brand-accent-rgb), 0.3);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.crewlet-brand-scope[data-mode="dark"] > .crewlet-brand-scope__layer {
|
|
115
|
+
--crewlet-brand-accent: var(--brand-primary-on-dark, var(--brand-primary));
|
|
116
|
+
--crewlet-brand-ink: color-mix(in oklab, var(--crewlet-brand-accent) 55%, white);
|
|
117
|
+
--crewlet-brand-soft: color-mix(in srgb, var(--crewlet-brand-accent) 16%, transparent);
|
|
118
|
+
--crewlet-brand-ground: var(--brand-dark-ground);
|
|
119
|
+
--crewlet-brand-text: initial;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.crewlet-brand-scope[data-mode="light"] > .crewlet-brand-scope__layer {
|
|
123
|
+
--color-surface-subtle: #fcfcfc;
|
|
124
|
+
--color-surface-elevated: #f1f2f6;
|
|
125
|
+
--color-surface-hover: rgba(7, 8, 13, 0.044);
|
|
126
|
+
--color-surface-pressed: rgba(7, 8, 13, 0.088);
|
|
127
|
+
--color-surface-inset: rgba(7, 8, 13, 0.026);
|
|
128
|
+
--color-surface-glass: rgba(252, 252, 252, 0.90);
|
|
129
|
+
--color-surface-scrim: rgba(0, 0, 0, 0.6);
|
|
130
|
+
--color-surface-veil: rgba(233, 236, 243, 0.65);
|
|
131
|
+
--color-surface-inverse: #07080d;
|
|
132
|
+
--color-text-secondary: #3e4459;
|
|
133
|
+
--color-text-tertiary: #585e73;
|
|
134
|
+
--color-text-muted: #878d9f;
|
|
135
|
+
--color-text-on-danger: #ffffff;
|
|
136
|
+
--color-text-on-scrim: #ffffff;
|
|
137
|
+
--color-text-inverse: #f6f7fb;
|
|
138
|
+
--color-brand-accent-rgb: 115, 90, 242;
|
|
139
|
+
--color-border-default: #e5e6ea;
|
|
140
|
+
--color-border-hover: #c9cfdc;
|
|
141
|
+
--color-border-strong: #c9cfdc;
|
|
142
|
+
--color-border-strong-hover: #acb6cc;
|
|
143
|
+
--color-border-hatch: #dbdfe8;
|
|
144
|
+
--color-border-control: #777a83;
|
|
145
|
+
--color-border-field: #838894;
|
|
146
|
+
--color-focus: #735af2;
|
|
147
|
+
--color-feedback-success: #0b9a74;
|
|
148
|
+
--color-feedback-success-ink: #0b6a4b;
|
|
149
|
+
--color-feedback-warning: #c17300;
|
|
150
|
+
--color-feedback-warning-ink: #8c4e00;
|
|
151
|
+
--color-feedback-danger: #b9112c;
|
|
152
|
+
--color-feedback-danger-hover: #ad0023;
|
|
153
|
+
--color-feedback-danger-ink: #b20d23;
|
|
154
|
+
--color-feedback-info: #2f92b4;
|
|
155
|
+
--color-feedback-info-ink: #1a6588;
|
|
156
|
+
--color-feedback-success-soft: rgba(11, 154, 116, 0.12);
|
|
157
|
+
--color-feedback-success-line: rgba(11, 154, 116, 0.3);
|
|
158
|
+
--color-feedback-warning-soft: rgba(193, 115, 0, 0.12);
|
|
159
|
+
--color-feedback-warning-line: rgba(193, 115, 0, 0.3);
|
|
160
|
+
--color-feedback-danger-soft: rgba(185, 17, 44, 0.12);
|
|
161
|
+
--color-feedback-danger-line: rgba(185, 17, 44, 0.3);
|
|
162
|
+
--color-feedback-info-soft: rgba(47, 146, 180, 0.12);
|
|
163
|
+
--color-feedback-info-line: rgba(47, 146, 180, 0.3);
|
|
164
|
+
--color-data-1: #5c76c3;
|
|
165
|
+
--color-data-2: #dd5920;
|
|
166
|
+
--color-data-3: #00956e;
|
|
167
|
+
--color-data-4: #c27600;
|
|
168
|
+
--color-data-other: #85868d;
|
|
169
|
+
--color-node-purple: #7150b3;
|
|
170
|
+
--color-node-purple-ink: #573394;
|
|
171
|
+
--color-node-cyan: #166b80;
|
|
172
|
+
--color-node-cyan-ink: #004f62;
|
|
173
|
+
--color-node-green: #2c7046;
|
|
174
|
+
--color-node-green-ink: #05532b;
|
|
175
|
+
--color-node-amber: #865a28;
|
|
176
|
+
--color-node-amber-ink: #683e03;
|
|
177
|
+
--color-node-rose: #984a55;
|
|
178
|
+
--color-node-rose-ink: #7a2f3c;
|
|
179
|
+
--color-node-blue: #4062a7;
|
|
180
|
+
--color-node-blue-ink: #264588;
|
|
181
|
+
--color-node-purple-fill: rgba(113, 80, 179, 0.12);
|
|
182
|
+
--color-node-purple-line: rgba(113, 80, 179, 0.38);
|
|
183
|
+
--color-node-purple-halo: rgba(113, 80, 179, 0.16);
|
|
184
|
+
--color-node-cyan-fill: rgba(22, 107, 128, 0.12);
|
|
185
|
+
--color-node-cyan-line: rgba(22, 107, 128, 0.38);
|
|
186
|
+
--color-node-cyan-halo: rgba(22, 107, 128, 0.16);
|
|
187
|
+
--color-node-green-fill: rgba(44, 112, 70, 0.12);
|
|
188
|
+
--color-node-green-line: rgba(44, 112, 70, 0.38);
|
|
189
|
+
--color-node-green-halo: rgba(44, 112, 70, 0.16);
|
|
190
|
+
--color-node-amber-fill: rgba(134, 90, 40, 0.12);
|
|
191
|
+
--color-node-amber-line: rgba(134, 90, 40, 0.38);
|
|
192
|
+
--color-node-amber-halo: rgba(134, 90, 40, 0.16);
|
|
193
|
+
--color-node-rose-fill: rgba(152, 74, 85, 0.12);
|
|
194
|
+
--color-node-rose-line: rgba(152, 74, 85, 0.38);
|
|
195
|
+
--color-node-rose-halo: rgba(152, 74, 85, 0.16);
|
|
196
|
+
--color-node-blue-fill: rgba(64, 98, 167, 0.12);
|
|
197
|
+
--color-node-blue-line: rgba(64, 98, 167, 0.38);
|
|
198
|
+
--color-node-blue-halo: rgba(64, 98, 167, 0.16);
|
|
199
|
+
--color-presence-flag-text: #ffffff;
|
|
200
|
+
--color-artifact-kind-brand: #8f3884;
|
|
201
|
+
--color-artifact-kind-brand-ink: #74246a;
|
|
202
|
+
--color-artifact-kind-brand-fill: rgba(143, 56, 132, 0.12);
|
|
203
|
+
--color-artifact-kind-brand-line: rgba(143, 56, 132, 0.38);
|
|
204
|
+
--color-scrollbar: rgba(7, 8, 13, 0.2);
|
|
205
|
+
--color-scrollbar-hover: rgba(7, 8, 13, 0.32);
|
|
206
|
+
--shadow-xs: 0 1px 2px rgba(7, 8, 13, 0.06);
|
|
207
|
+
--shadow-sm: 0 2px 8px rgba(7, 8, 13, 0.07);
|
|
208
|
+
--shadow-md: 0 4px 12px rgba(7, 8, 13, 0.08), 0 1px 3px rgba(7, 8, 13, 0.06);
|
|
209
|
+
--shadow-lg: 0 8px 24px rgba(7, 8, 13, 0.12);
|
|
210
|
+
--shadow-xl: 0 16px 40px rgba(7, 8, 13, 0.16), 0 2px 8px rgba(7, 8, 13, 0.08);
|
|
211
|
+
--shadow-sheet: -16px 0 40px rgba(7, 8, 13, 0.16), -2px 0 8px rgba(7, 8, 13, 0.08);
|
|
212
|
+
--shadow-2xl: 0 16px 64px rgba(7, 8, 13, 0.20);
|
|
213
|
+
--shadow-card: 0 8px 24px rgba(7, 8, 13, 0.07);
|
|
214
|
+
--shadow-rim-lit: 0 4px 24px rgba(7, 8, 13, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.6);
|
|
215
|
+
--shadow-hairline: none;
|
|
216
|
+
--shadow-focus: 0 0 0 2px var(--color-surface-background), 0 0 0 4px var(--color-focus);
|
|
217
|
+
--shadow-selection: inset 0 0 0 2px var(--color-brand-accent);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.crewlet-brand-scope[data-mode="dark"] > .crewlet-brand-scope__layer {
|
|
221
|
+
--color-surface-subtle: #11141d;
|
|
222
|
+
--color-surface-elevated: #242833;
|
|
223
|
+
--color-surface-hover: rgba(255, 255, 255, 0.061);
|
|
224
|
+
--color-surface-pressed: rgba(255, 255, 255, 0.098);
|
|
225
|
+
--color-surface-inset: rgba(255, 255, 255, 0.028);
|
|
226
|
+
--color-surface-glass: rgba(17, 20, 29, 0.90);
|
|
227
|
+
--color-surface-scrim: rgba(0, 0, 0, 0.6);
|
|
228
|
+
--color-surface-veil: rgba(7, 8, 13, 0.65);
|
|
229
|
+
--color-surface-inverse: #fcfcfc;
|
|
230
|
+
--color-text-secondary: #a9b0c3;
|
|
231
|
+
--color-text-tertiary: #9fa7bc;
|
|
232
|
+
--color-text-muted: #5a6176;
|
|
233
|
+
--color-text-on-danger: #ffffff;
|
|
234
|
+
--color-text-on-scrim: #ffffff;
|
|
235
|
+
--color-text-inverse: #07080d;
|
|
236
|
+
--color-brand-accent-rgb: 114, 91, 230;
|
|
237
|
+
--color-border-default: #1e2025;
|
|
238
|
+
--color-border-hover: #2d3448;
|
|
239
|
+
--color-border-strong: #2d3448;
|
|
240
|
+
--color-border-strong-hover: #424f74;
|
|
241
|
+
--color-border-hatch: #202534;
|
|
242
|
+
--color-border-control: #7f879c;
|
|
243
|
+
--color-border-field: #687187;
|
|
244
|
+
--color-focus: #8572fe;
|
|
245
|
+
--color-feedback-success: #34c98b;
|
|
246
|
+
--color-feedback-success-ink: #74dcae;
|
|
247
|
+
--color-feedback-warning: #f0b425;
|
|
248
|
+
--color-feedback-warning-ink: #f6cd72;
|
|
249
|
+
--color-feedback-danger: #d73756;
|
|
250
|
+
--color-feedback-danger-hover: #cc2b4e;
|
|
251
|
+
--color-feedback-danger-ink: #ff9fb0;
|
|
252
|
+
--color-feedback-info: #61d0ff;
|
|
253
|
+
--color-feedback-info-ink: #8ad6fb;
|
|
254
|
+
--color-feedback-success-soft: rgba(52, 201, 139, 0.12);
|
|
255
|
+
--color-feedback-success-line: rgba(52, 201, 139, 0.3);
|
|
256
|
+
--color-feedback-warning-soft: rgba(240, 180, 37, 0.12);
|
|
257
|
+
--color-feedback-warning-line: rgba(240, 180, 37, 0.3);
|
|
258
|
+
--color-feedback-danger-soft: rgba(215, 55, 86, 0.12);
|
|
259
|
+
--color-feedback-danger-line: rgba(215, 55, 86, 0.3);
|
|
260
|
+
--color-feedback-info-soft: rgba(97, 208, 255, 0.12);
|
|
261
|
+
--color-feedback-info-line: rgba(97, 208, 255, 0.3);
|
|
262
|
+
--color-data-1: #4d8ff6;
|
|
263
|
+
--color-data-2: #e67737;
|
|
264
|
+
--color-data-3: #26b582;
|
|
265
|
+
--color-data-4: #eab106;
|
|
266
|
+
--color-data-other: #6a7186;
|
|
267
|
+
--color-node-purple: #8e6ed4;
|
|
268
|
+
--color-node-purple-ink: #cabae0;
|
|
269
|
+
--color-node-cyan: #5ca8be;
|
|
270
|
+
--color-node-cyan-ink: #b3d7e0;
|
|
271
|
+
--color-node-green: #62a578;
|
|
272
|
+
--color-node-green-ink: #b8d8c0;
|
|
273
|
+
--color-node-amber: #c89866;
|
|
274
|
+
--color-node-amber-ink: #e0c89e;
|
|
275
|
+
--color-node-rose: #c8757f;
|
|
276
|
+
--color-node-rose-ink: #e0bfc4;
|
|
277
|
+
--color-node-blue: #5b7fc7;
|
|
278
|
+
--color-node-blue-ink: #b9c5e0;
|
|
279
|
+
--color-node-purple-fill: rgba(142, 110, 212, 0.12);
|
|
280
|
+
--color-node-purple-line: rgba(142, 110, 212, 0.38);
|
|
281
|
+
--color-node-purple-halo: rgba(142, 110, 212, 0.16);
|
|
282
|
+
--color-node-cyan-fill: rgba(92, 168, 190, 0.12);
|
|
283
|
+
--color-node-cyan-line: rgba(92, 168, 190, 0.38);
|
|
284
|
+
--color-node-cyan-halo: rgba(92, 168, 190, 0.16);
|
|
285
|
+
--color-node-green-fill: rgba(98, 165, 120, 0.12);
|
|
286
|
+
--color-node-green-line: rgba(98, 165, 120, 0.38);
|
|
287
|
+
--color-node-green-halo: rgba(98, 165, 120, 0.16);
|
|
288
|
+
--color-node-amber-fill: rgba(200, 152, 102, 0.12);
|
|
289
|
+
--color-node-amber-line: rgba(200, 152, 102, 0.38);
|
|
290
|
+
--color-node-amber-halo: rgba(200, 152, 102, 0.16);
|
|
291
|
+
--color-node-rose-fill: rgba(200, 117, 127, 0.12);
|
|
292
|
+
--color-node-rose-line: rgba(200, 117, 127, 0.38);
|
|
293
|
+
--color-node-rose-halo: rgba(200, 117, 127, 0.16);
|
|
294
|
+
--color-node-blue-fill: rgba(91, 127, 199, 0.12);
|
|
295
|
+
--color-node-blue-line: rgba(91, 127, 199, 0.38);
|
|
296
|
+
--color-node-blue-halo: rgba(91, 127, 199, 0.16);
|
|
297
|
+
--color-presence-flag-text: #07080d;
|
|
298
|
+
--color-artifact-kind-brand: #cc7bd1;
|
|
299
|
+
--color-artifact-kind-brand-ink: #dabcdb;
|
|
300
|
+
--color-artifact-kind-brand-fill: rgba(204, 123, 209, 0.12);
|
|
301
|
+
--color-artifact-kind-brand-line: rgba(204, 123, 209, 0.38);
|
|
302
|
+
--color-scrollbar: rgba(255, 255, 255, 0.16);
|
|
303
|
+
--color-scrollbar-hover: rgba(255, 255, 255, 0.26);
|
|
304
|
+
--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
305
|
+
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
306
|
+
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
|
|
307
|
+
--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
|
|
308
|
+
--shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.4);
|
|
309
|
+
--shadow-sheet: -8px 0 32px rgba(0, 0, 0, 0.4);
|
|
310
|
+
--shadow-2xl: 0 16px 64px rgba(0, 0, 0, 0.6);
|
|
311
|
+
--shadow-card: 0 8px 24px rgba(0, 0, 0, 0.1);
|
|
312
|
+
--shadow-rim-lit: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
|
313
|
+
--shadow-hairline: inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
|
314
|
+
--shadow-focus: 0 0 0 2px var(--color-surface-background), 0 0 0 4px var(--color-focus);
|
|
315
|
+
--shadow-selection: inset 0 0 0 2px var(--color-brand-accent);
|
|
316
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The brand mapping: a company's brand, given as a handful of input slots,
|
|
3
|
+
* restyles every surface painted with the public tokens, in both modes and
|
|
4
|
+
* under every named theme, without the surface changing a line.
|
|
5
|
+
*
|
|
6
|
+
* THE ONE SOURCE OF THE MAPPING. Two stylesheets are built from this file and
|
|
7
|
+
* nothing else, so the rules cannot come to differ between them:
|
|
8
|
+
*
|
|
9
|
+
* dist/css/brand.css this file as it is, on the document root: the
|
|
10
|
+
* layer @crewlethq/artifact-kit bundles into
|
|
11
|
+
* kit.css, under every artifact page;
|
|
12
|
+
* dist/css/brand-scope.css the same blocks with their selectors moved onto
|
|
13
|
+
* `.crewlet-brand-scope__layer`, plus the capture
|
|
14
|
+
* of the page's own values (src/brand.ts): the
|
|
15
|
+
* stylesheet of @crewlethq/ui's BrandScope, which
|
|
16
|
+
* brands one region of an application and leaves
|
|
17
|
+
* its chrome alone.
|
|
18
|
+
*
|
|
19
|
+
* The build accepts exactly the three selectors below and stops on any other,
|
|
20
|
+
* so a rule added here reaches both or neither.
|
|
21
|
+
*
|
|
22
|
+
* THE INPUTS ARE `--brand-*` CUSTOM PROPERTIES, and only those. None is
|
|
23
|
+
* required:
|
|
24
|
+
*
|
|
25
|
+
* --brand-primary the brand's main colour, #rrggbb
|
|
26
|
+
* --brand-primary-on-dark the main colour on a dark ground, if it differs
|
|
27
|
+
* --brand-secondary a second colour, for highlights and gradients
|
|
28
|
+
* --brand-text body text on the light ground
|
|
29
|
+
* --brand-light-ground the page's ground in light mode
|
|
30
|
+
* --brand-dark-ground the page's ground in dark mode
|
|
31
|
+
* --brand-font-heading a font-family list for headings
|
|
32
|
+
* --brand-font-body a font-family list for everything else
|
|
33
|
+
*
|
|
34
|
+
* (The artifact kit's logo class reads the logo inputs beside these.)
|
|
35
|
+
*
|
|
36
|
+
* THE PUBLIC TOKENS KEEP THEIR NAMES. A surface that already paints with
|
|
37
|
+
* `var(--color-brand-accent)` or `var(--font-family-display)` follows the
|
|
38
|
+
* brand. Each is declared here, once, as the brand's value or, where its
|
|
39
|
+
* input is not set, the theme's own value under `--crewlet-theme-<name>`. A
|
|
40
|
+
* custom property cannot fall back to its own earlier value, which is why the
|
|
41
|
+
* theme's values take a second name: the kit's build moves every token
|
|
42
|
+
* declaration to it, and the scope captures the page's values into it one
|
|
43
|
+
* element up.
|
|
44
|
+
*
|
|
45
|
+
* WITH NO INPUT SET, NOTHING CHANGES. Every derived value below is a private
|
|
46
|
+
* `--crewlet-brand-*` that names an input with no fallback, so with the input
|
|
47
|
+
* unset it is invalid at computed-value time, and the public token falls
|
|
48
|
+
* back to the theme's value exactly as the theme declared it. A step a mode
|
|
49
|
+
* has no input for is declared `initial` (the guaranteed-invalid value), so
|
|
50
|
+
* every mode block names the same steps and no mode inherits another's.
|
|
51
|
+
*
|
|
52
|
+
* ONE INPUT, THE WHOLE FAMILY. With `--brand-primary` set, the hover, press,
|
|
53
|
+
* ink, soft fills, selected edge, deep stop and glow are mixed from it with
|
|
54
|
+
* `color-mix()` in each mode, and the label on it is whichever of black and
|
|
55
|
+
* white clears more contrast on it. A body face alone sets the headings too.
|
|
56
|
+
* The focus ring stays the theme's: its 3:1 floor is measured for every theme,
|
|
57
|
+
* and a mix of an arbitrary colour cannot be. `--color-brand-accent-rgb` stays
|
|
58
|
+
* the theme's too, because a channel triple cannot be derived in CSS; a page
|
|
59
|
+
* tints with `color-mix(in srgb, var(--color-brand-accent) 20%, transparent)`.
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
/* Dark, the bare root's mode, as the theme contract has it. */
|
|
63
|
+
:root {
|
|
64
|
+
--crewlet-brand-accent: var(--brand-primary-on-dark, var(--brand-primary));
|
|
65
|
+
--crewlet-brand-ink: color-mix(in oklab, var(--crewlet-brand-accent) 55%, white);
|
|
66
|
+
--crewlet-brand-soft: color-mix(in srgb, var(--crewlet-brand-accent) 16%, transparent);
|
|
67
|
+
--crewlet-brand-ground: var(--brand-dark-ground);
|
|
68
|
+
/* The brand's text is written for its light ground; on a dark one the
|
|
69
|
+
theme's text stays. */
|
|
70
|
+
--crewlet-brand-text: initial;
|
|
71
|
+
|
|
72
|
+
/* Every mode, from the mode's own accent above or below. */
|
|
73
|
+
--crewlet-brand-hover: color-mix(in oklab, var(--crewlet-brand-accent) 90%, black);
|
|
74
|
+
--crewlet-brand-active: color-mix(in oklab, var(--crewlet-brand-accent) 80%, black);
|
|
75
|
+
--crewlet-brand-deep: color-mix(in oklab, var(--crewlet-brand-accent) 70%, black);
|
|
76
|
+
--crewlet-brand-soft-strong: color-mix(in srgb, var(--crewlet-brand-accent) 32%, transparent);
|
|
77
|
+
--crewlet-brand-selected: color-mix(in srgb, var(--crewlet-brand-accent) 60%, transparent);
|
|
78
|
+
--crewlet-brand-glow: 0 4px 24px color-mix(in srgb, var(--crewlet-brand-accent) 30%, transparent);
|
|
79
|
+
--crewlet-brand-link: color-mix(in oklab, var(--crewlet-brand-ink) 65%, var(--color-text-secondary));
|
|
80
|
+
/* White or black, whichever clears more on the accent: each channel is the
|
|
81
|
+
WCAG luminance's distance from 0.179 (where the two clear the same),
|
|
82
|
+
scaled until it saturates to 1 or 0. */
|
|
83
|
+
--crewlet-brand-on-accent: color(
|
|
84
|
+
from var(--crewlet-brand-accent) srgb-linear calc((0.179 - (0.2126 * r + 0.7152 * g + 0.0722 * b)) * 100000)
|
|
85
|
+
calc((0.179 - (0.2126 * r + 0.7152 * g + 0.0722 * b)) * 100000) calc((0.179 - (0.2126 * r + 0.7152 * g + 0.0722 * b)) * 100000)
|
|
86
|
+
);
|
|
87
|
+
--crewlet-brand-gradient: linear-gradient(
|
|
88
|
+
90deg,
|
|
89
|
+
var(--brand-primary) 0%,
|
|
90
|
+
var(--brand-secondary, color-mix(in oklab, var(--brand-primary) 70%, black)) 100%
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
/* The public tokens: the brand's value, or the theme's. */
|
|
94
|
+
--color-brand-accent: var(--crewlet-brand-accent, var(--crewlet-theme-color-brand-accent));
|
|
95
|
+
--color-brand-accent-hover: var(--crewlet-brand-hover, var(--crewlet-theme-color-brand-accent-hover));
|
|
96
|
+
--color-brand-accent-active: var(--crewlet-brand-active, var(--crewlet-theme-color-brand-accent-active));
|
|
97
|
+
--color-brand-accent-ink: var(--crewlet-brand-ink, var(--crewlet-theme-color-brand-accent-ink));
|
|
98
|
+
--color-brand-accent-soft: var(--crewlet-brand-soft, var(--crewlet-theme-color-brand-accent-soft));
|
|
99
|
+
--color-brand-accent-soft-strong: var(--crewlet-brand-soft-strong, var(--crewlet-theme-color-brand-accent-soft-strong));
|
|
100
|
+
--color-brand-accent-deep: var(--crewlet-brand-deep, var(--crewlet-theme-color-brand-accent-deep));
|
|
101
|
+
--color-brand-mark: var(--brand-primary, var(--crewlet-theme-color-brand-mark));
|
|
102
|
+
--color-brand-highlight: var(--brand-secondary, var(--crewlet-theme-color-brand-highlight));
|
|
103
|
+
--color-brand-gradient: var(--crewlet-brand-gradient, var(--crewlet-theme-color-brand-gradient));
|
|
104
|
+
--color-border-selected: var(--crewlet-brand-selected, var(--crewlet-theme-color-border-selected));
|
|
105
|
+
--color-text-on-accent: var(--crewlet-brand-on-accent, var(--crewlet-theme-color-text-on-accent));
|
|
106
|
+
--color-text-link-quiet: var(--crewlet-brand-link, var(--crewlet-theme-color-text-link-quiet));
|
|
107
|
+
--color-text-primary: var(--crewlet-brand-text, var(--crewlet-theme-color-text-primary));
|
|
108
|
+
--color-surface-frame: var(--crewlet-brand-ground, var(--crewlet-theme-color-surface-frame));
|
|
109
|
+
--color-surface-background: var(--crewlet-brand-ground, var(--crewlet-theme-color-surface-background));
|
|
110
|
+
--shadow-glow: var(--crewlet-brand-glow, var(--crewlet-theme-shadow-glow));
|
|
111
|
+
--font-family-sans: var(--brand-font-body, var(--crewlet-theme-font-family-sans));
|
|
112
|
+
--font-family-display: var(--brand-font-heading, var(--brand-font-body, var(--crewlet-theme-font-family-display)));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Light, by the system's setting and by an explicit choice: the same two
|
|
116
|
+
blocks the theme contract writes, so a reader who pinned dark keeps it. */
|
|
117
|
+
@media (prefers-color-scheme: light) {
|
|
118
|
+
:root:not([data-theme="dark"]) {
|
|
119
|
+
--crewlet-brand-accent: var(--brand-primary);
|
|
120
|
+
--crewlet-brand-ink: color-mix(in oklab, var(--crewlet-brand-accent) 70%, black);
|
|
121
|
+
--crewlet-brand-soft: color-mix(in srgb, var(--crewlet-brand-accent) 12.5%, transparent);
|
|
122
|
+
--crewlet-brand-ground: var(--brand-light-ground);
|
|
123
|
+
--crewlet-brand-text: var(--brand-text);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:root[data-theme="light"] {
|
|
128
|
+
--crewlet-brand-accent: var(--brand-primary);
|
|
129
|
+
--crewlet-brand-ink: color-mix(in oklab, var(--crewlet-brand-accent) 70%, black);
|
|
130
|
+
--crewlet-brand-soft: color-mix(in srgb, var(--crewlet-brand-accent) 12.5%, transparent);
|
|
131
|
+
--crewlet-brand-ground: var(--brand-light-ground);
|
|
132
|
+
--crewlet-brand-text: var(--brand-text);
|
|
133
|
+
}
|
|
@@ -97,6 +97,10 @@
|
|
|
97
97
|
--color-node-blue-line: rgba(91, 127, 199, 0.38);
|
|
98
98
|
--color-node-blue-halo: rgba(91, 127, 199, 0.16);
|
|
99
99
|
--color-presence-flag-text: #07080d;
|
|
100
|
+
--color-artifact-kind-brand: #cc7bd1;
|
|
101
|
+
--color-artifact-kind-brand-ink: #dabcdb;
|
|
102
|
+
--color-artifact-kind-brand-fill: rgba(204, 123, 209, 0.12);
|
|
103
|
+
--color-artifact-kind-brand-line: rgba(204, 123, 209, 0.38);
|
|
100
104
|
--color-scrollbar: rgba(255, 255, 255, 0.16);
|
|
101
105
|
--color-scrollbar-hover: rgba(255, 255, 255, 0.26);
|
|
102
106
|
--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
@@ -207,6 +211,10 @@
|
|
|
207
211
|
--color-node-blue-line: rgba(64, 98, 167, 0.38);
|
|
208
212
|
--color-node-blue-halo: rgba(64, 98, 167, 0.16);
|
|
209
213
|
--color-presence-flag-text: #ffffff;
|
|
214
|
+
--color-artifact-kind-brand: #8f3884;
|
|
215
|
+
--color-artifact-kind-brand-ink: #74246a;
|
|
216
|
+
--color-artifact-kind-brand-fill: rgba(143, 56, 132, 0.12);
|
|
217
|
+
--color-artifact-kind-brand-line: rgba(143, 56, 132, 0.38);
|
|
210
218
|
--color-scrollbar: rgba(7, 8, 13, 0.2);
|
|
211
219
|
--color-scrollbar-hover: rgba(7, 8, 13, 0.32);
|
|
212
220
|
--shadow-xs: 0 1px 2px rgba(7, 8, 13, 0.06);
|
|
@@ -317,6 +325,10 @@
|
|
|
317
325
|
--color-node-blue-line: rgba(64, 98, 167, 0.38);
|
|
318
326
|
--color-node-blue-halo: rgba(64, 98, 167, 0.16);
|
|
319
327
|
--color-presence-flag-text: #ffffff;
|
|
328
|
+
--color-artifact-kind-brand: #8f3884;
|
|
329
|
+
--color-artifact-kind-brand-ink: #74246a;
|
|
330
|
+
--color-artifact-kind-brand-fill: rgba(143, 56, 132, 0.12);
|
|
331
|
+
--color-artifact-kind-brand-line: rgba(143, 56, 132, 0.38);
|
|
320
332
|
--color-scrollbar: rgba(7, 8, 13, 0.2);
|
|
321
333
|
--color-scrollbar-hover: rgba(7, 8, 13, 0.32);
|
|
322
334
|
--shadow-xs: 0 1px 2px rgba(7, 8, 13, 0.06);
|