-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathflare26-tokens.css
More file actions
213 lines (195 loc) · 7.67 KB
/
flare26-tokens.css
File metadata and controls
213 lines (195 loc) · 7.67 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
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
/* =====================================================================
Tokens - Flare 2026 Design System Base Tokens
Static values extracted from Figma that do not change based on context.
===================================================================== */
:root {
/* Systemized Color Tokens from Figma */
--token-color-white: rgb(255, 255, 255);
--token-color-white-90: rgba(255, 255, 255, 0.9);
--token-color-grey-1: rgb(249, 249, 251);
--token-color-grey-2: rgb(232, 232, 232);
--token-color-grey-3: rgb(123, 122, 130);
--token-color-grey-4: rgba(123, 122, 130, 1);
--token-color-black: rgb(0, 0, 0);
--token-color-black-16: rgba(0, 0, 0, 0.16);
--token-color-black-45: rgba(0, 0, 0, 0.45);
--token-color-black-1: rgb(66, 65, 77);
--token-color-black-2: rgb(35, 34, 43);
--token-color-black-3: rgb(28, 27, 34);
--token-color-black-4: rgb(21, 20, 26);
--token-color-black-4-72: rgba(21, 20, 26, 0.72);
--token-color-black-4-90: rgba(21, 20, 26, 0.9);
--token-color-dark-purple: rgb(33, 3, 64);
--token-color-dark-purple-22: rgba(33, 3, 64, 0.22);
--token-color-dark-purple-30: rgba(33, 3, 64, 0.3);
--token-color-dark-purple-50: rgba(33, 3, 64, 0.4);
--token-color-dark-purple-2: rgb(21, 2, 38);
--token-color-purple: rgb(58, 15, 110);
--token-color-medium-purple: rgb(76, 36, 137);
--token-color-link-purple: rgb(97, 50, 188);
--token-color-nav-icon-purple: rgba(174, 137, 255, 1);
--token-color-light-purple: rgb(117, 67, 227);
--token-color-light-purple-20: rgba(117, 67, 227, 0.2);
--token-color-light-purple-40: rgba(117, 67, 227, 0.4);
--token-color-light-purple-60: rgba(117, 67, 227, 0.6);
--token-color-light-purple-80: rgba(117, 67, 227, 0.8);
--token-color-cream: rgb(252, 245, 240);
--token-color-soft-purple: rgb(241, 231, 248);
--token-color-soft-purple-2: rgb(228, 216, 252);
--token-color-soft-purple-3: rgb(223, 201, 255);
--token-color-soft-purple-4: rgb(199, 168, 255);
--token-color-soft-purple-5: rgb(174, 138, 255);
--token-color-soft-purple-40: rgba(241, 231, 248, 0.4);
--token-color-soft-purple-64: rgba(241, 231, 248, 0.64);
--token-color-soft-magenta: rgb(255, 234, 254);
--token-color-soft-magenta-20: rgba(255, 234, 254, 0.2);
--token-color-secondary-red: rgba(255, 69, 63, 1);
--token-color-secondary-red-2: rgba(85, 3, 28, 1);
--token-color-secondary-red-3: rgba(49, 0, 14, 1);
--token-color-soft-red: rgba(255, 234, 233, 1);
--token-color-secondary-orange: rgba(255, 109, 0, 1);
--token-color-secondary-orange-2: rgba(102, 28, 25, 1);
--token-color-secondary-orange-3: rgba(51, 5, 5, 1);
--token-color-soft-orange: rgba(255, 242, 229, 1);
--token-color-secondary-green: rgba(20, 74, 39, 1);
--token-color-secondary-green-3: rgba(3, 28, 0, 1);
--token-color-soft-green: rgba(222, 255, 214, 1);
--token-color-soft-yellow: rgb(252, 245, 240);
/* Gradients from Figma */
--token-gradient-firefox: linear-gradient(
90deg,
#ffeb49 0%,
#f60 50%,
#fb2872 100%
);
--token-gradient-world: linear-gradient(90deg, #e752ff 0%, #271aff 100%);
--token-gradient-privacy: linear-gradient(
90deg,
#ae49ec 0%,
var(--token-color-dark-purple) 100%
);
--token-gradient-purple: radial-gradient(
122.66% 137.66% at 50% 0%,
#ae49ec 0%,
#210340 100%
);
--token-gradient-subnav-dark: linear-gradient(
0deg,
var(--token-color-dark-purple) 0%,
#3a0f6e 100%
);
--token-gradient-subnav-light: linear-gradient(
0deg,
var(--token-color-white) 0%,
var(--token-color-grey-2) 100%
);
--token-gradient-smart-window-instructions: linear-gradient(
116.61deg,
#321bfd -17.87%,
#cf30e2 52.93%,
#f90 89.02%,
#f5c451 109.44%
);
/* using manual OCLCH copies of var(--token-color-light-purple)
and var(--token-color-dark-purple), plus some tweaking of the color stops
to mimic the effect I was getting with a blur filter. */
--token-gradient-blurred-bg: radial-gradient(
oklch(53.618% 0.2266 291.092deg) 0%,
oklch(50.1% 0.214 292deg) 8%,
oklch(44.8% 0.196 293.7deg) 18%,
oklch(37.5% 0.17 295.5deg) 30%,
oklch(30% 0.143 297.1deg) 42%,
oklch(24.2% 0.122 298.3deg) 54%,
oklch(21.9% 0.112 299deg) 68%,
oklch(21.3% 0.107 299.3deg) 82%,
oklch(21.027% 0.105 299.458deg) 100%
);
/* Light and dark gradients */
--token-gradient-light: linear-gradient(
180deg,
var(--token-color-white-90) 0%,
var(--token-color-white) 100%
);
--token-gradient-dark: linear-gradient(
180deg,
var(--token-color-black-4-72) 0%,
var(--token-color-black-4-90) 100%
);
/* Soft purple gradient */
--token-gradient-soft-purple: linear-gradient(
180deg,
var(--token-color-soft-purple-64) 0%,
var(--token-color-white) 100%
);
/* Radial purple gradient */
--token-gradient-radial-purple: radial-gradient(
74.06% 118.24% at 50% -18.24%,
var(--token-color-light-purple) 0%,
var(--token-color-dark-purple) 100%
);
/* Radial purple noise */
--token-noise-gradient: url('/media/img/firefox/flare/noise-gradient.png');
/* Gold gradient */
--token-gradient-gold: linear-gradient(180deg, #ffe500 0%, #ff980e 100%);
/* Spacing variables */
--token-spacing-2xs: 2px;
--token-spacing-xs: 4px;
--token-spacing-sm: 8px;
--token-spacing-md: 12px;
--token-spacing-lg: 16px;
--token-spacing-xl: 24px;
--token-spacing-2xl: 32px;
--token-spacing-3xl: 40px;
/* Layout variables */
--token-layout-3xs: 24px;
--token-layout-2xs: 32px;
--token-layout-xs: 48px;
--token-layout-sm: 64px;
--token-layout-md: 80px;
--token-layout-md-half: 40px;
--token-layout-lg: 128px;
--token-layout-lg-half: 64px;
--token-layout-xl: 160px;
--token-layout-2xl: 200px;
/* Border radius variables */
--token-border-radius-3xs: 4px;
--token-border-radius-2xs: 8px;
--token-border-radius-xs: 12px;
--token-border-radius-sm: 24px;
--token-border-radius-md: 48px;
--token-border-radius-lg: 80px;
--token-border-radius-xl-half: 64px;
--token-border-radius-xl: 128px;
/* Width and viewport variables */
--token-width-desktop-content: 725px;
--token-width-desktop-content-lg: 934px;
--token-width-desktop-layout: 1440px;
--token-width-desktop-wide-banner: 1170px;
--token-width-mobile-layout: 393px;
/* Typography and fonts */
--token-font-family-mozilla-headline:
'Mozilla Headline VF', -apple-system, 'BlinkMacSystemFont', 'Segoe UI',
'Roboto', sans-serif;
--token-font-family-mozilla-text:
'Mozilla Text VF', -apple-system, 'BlinkMacSystemFont', 'Segoe UI',
'Roboto', sans-serif;
/* Font sizes */
--token-font-size-xs: 12px;
--token-font-size-sm: 14px;
--token-font-size-md: 16px;
/* Font weights */
--token-font-weight-regular: 400;
--token-font-weight-medium: 500;
--token-font-weight-semibold: 600;
--token-font-weight-bold: 700;
--token-font-condensed-width: 75; /* used in variable font to build condensed heads at larger sizes */
/* Transition variables NOT from Figma */
--token-transition-fast: 0.15s ease;
--token-transition-base: 0.2s ease;
--token-transition-slow: 0.3s ease;
}