-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdesign-system.html
368 lines (342 loc) · 17.9 KB
/
design-system.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="description" content="Coffeeroasters subscription site | Design System"/>
<link rel="icon" type="image/png" sizes="32x32" href="./assets/favicon-32x32.png">
<!-- connect to domain of font files -->
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<!-- optionally increase loading priority -->
<link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Fraunces:wght@900&display=swap">
<link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700&display=swap">
<!-- async CSS -->
<link rel="stylesheet" media="print" onload="this.onload=null;this.removeAttribute('media');" href="https://fonts.googleapis.com/css2?family=Fraunces:wght@900&display=swap">
<link rel="stylesheet" media="print" onload="this.onload=null;this.removeAttribute('media');" href="https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700&display=swap">
<!-- no-JS fallback -->
<noscript>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fraunces:wght@900&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700&display=swap">
</noscript>
<link rel="stylesheet" href="styles.css">
<title>Coffeeroasters subscription site | Design System</title>
<style>
/* ------------------- */
/* Design System */
/* ------------------- */
html {
min-width: 75rem;
}
body.design-system {
--gap: 3rem;
margin: 3rem;
background-color: white;
}
body.design-system > header {
text-align: left;
margin: 0;
}
body.design-system > main > .color-panel.grid {
grid-template-columns: repeat(3, 1fr);
--gap: 1rem;
}
body.design-system > main > .color-panel.grid .top {
justify-content: space-between;
padding: 1rem;
border-radius: 0.5rem;
height: 7.5rem;
align-items: flex-end;
}
body.design-system > main > .color-panel.grid .top h4 {
font-size: 1.25rem;
}
body.design-system > main > .color-panel.grid .bottom {
padding: 1rem 0;
text-align: left;
}
body.design-system > main > .text-panel {
text-align: left;
}
body.design-system > main > .text-panel .left {
width: 60%;
}
body.design-system > main > .text-panel .right {
width: 40%;
}
body.design-system > main > .text-panel > .top {
color: white;
--gap: 0;
}
body.design-system > main > .text-panel > .top > .left {
--gap: 3rem;
background-color: var(--dark-cyan);
border-radius: 0.5rem 0 0 0.5rem;
padding: 3rem;
}
body.design-system > main > .text-panel > .top > .right {
--gap: 3rem;
background-color: var(--dark-grey-blue);
border-radius: 0 0.5rem 0.5rem 0;
padding: 3rem;
}
body.design-system > main > .text-panel > .top h1 {
font-size: 3.5rem;
}
body.design-system > main > .text-panel > .bottom {
color: var(--dark-grey-blue);
--gap: 0;
}
body.design-system > main > .button-panel.flex,
body.design-system > main > .big-selection-option-panel.flex {
--gap: 10.1rem;
color: var(--grey);
margin-top: 8.3rem;
}
body.design-system > main > .button-panel.flex > .vertical-flex,
body.design-system > main > .big-selection-option-panel.flex > .vertical-flex {
flex: 1;
--gap: 2rem;
align-items: center;
}
body.design-system > main > .big-selection-option-panel.flex > .vertical-flex > .big-selection-option {
width: 14.25rem;
}
body.design-system > main > .accordion-panel.grid {
grid-template-columns: repeat(3, 1fr);
--gap: 4rem;
margin-top: 8.3rem;
}
</style>
</head>
<body class="design-system container vertical-flex">
<header>
<img src="./assets/shared/desktop/logo.svg" />
<h2 style="font-size: 3.5rem; color: var(--dark-grey-blue);">Design System</h2>
</header>
<main class="vertical-flex">
<div class="color-panel grid">
<div>
<div class="flex top" style="background-color: var(--dark-cyan);">
<h4 style="color: white;">#0E8784</h4>
<h4 style="color: white; opacity: 0.25;">Dark Cyan</h4>
</div>
<div class="bottom">
<div class="flex">
<span style="flex: 1;">RGB</span>
<span style="flex: 2; font-weight: 600;">14, 135, 132</span>
</div>
<div class="flex">
<span style="flex: 1;">HSL</span>
<span style="flex: 2; font-weight: 600;">179°, 81%, 29%</span>
</div>
</div>
</div>
<div>
<div class="flex top" style="background-color: var(--dark-grey-blue);">
<h4 style="color: white;">#333D4B</h4>
<h4 style="color: white; opacity: 0.25;">Dark Grey Blue</h4>
</div>
<div class="bottom">
<div class="flex">
<span style="flex: 1;">RGB</span>
<span style="flex: 2; font-weight: 600;">51, 61, 75</span>
</div>
<div class="flex">
<span style="flex: 1;">HSL</span>
<span style="flex: 2; font-weight: 600;">215°, 19%, 25%</span>
</div>
</div>
</div>
<div>
<div class="flex top" style="background-color: var(--pale-orange);">
<h4 style="color: #333D4B;">#FDD6BA</h4>
<h4 style="color: #333D4B; opacity: 0.25;">Pale Orange</h4>
</div>
<div class="bottom">
<div class="flex">
<span style="flex: 1;">RGB</span>
<span style="flex: 2; font-weight: 600;">253, 214, 186</span>
</div>
<div class="flex">
<span style="flex: 1;">HSL</span>
<span style="flex: 2; font-weight: 600;">25°, 94%, 86%</span>
</div>
</div>
</div>
<div>
<div class="flex top" style="background-color: var(--light-cream);">
<h4 style="color: #333D4B;">#FEFCF7</h4>
<h4 style="color: #333D4B; opacity: 0.25;">Light Cream(BG)</h4>
</div>
<div class="bottom">
<div class="flex">
<span style="flex: 1;">RGB</span>
<span style="flex: 2; font-weight: 600;">254, 252, 247</span>
</div>
<div class="flex">
<span style="flex: 1;">HSL</span>
<span style="flex: 2; font-weight: 600;">43°, 78%, 98%</span>
</div>
</div>
</div>
<div>
<div class="flex top" style="background-color: var(--grey);">
<h4 style="color: white;">#83888F</h4>
<h4 style="color: white; opacity: 0.25;">Grey</h4>
</div>
<div class="bottom">
<div class="flex">
<span style="flex: 1;">RGB</span>
<span style="flex: 2; font-weight: 600;">131, 136, 143</span>
</div>
<div class="flex">
<span style="flex: 1;">HSL</span>
<span style="flex: 2; font-weight: 600;">215°, 5%, 54%</span>
</div>
</div>
</div>
</div>
<div class="text-panel vertical-flex">
<div class="top flex">
<div class="left vertical-flex">
<h1>Fraunces</h1>
<h4 class="dont-break-out" style="font-size: 1.25rem; opacity: 0.6; letter-spacing: 0.51875rem;">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()_+</h4>
</div>
<div class="right vertical-flex">
<h1 class="font-barlow">Barlow</h1>
<h4 class="dont-break-out font-barlow" style="font-size: 0.875rem; opacity: 0.6; letter-spacing: 0.364583125rem;">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()_+</h4>
</div>
</div>
<div class="bottom flex">
<div class="left vertical-flex">
<div>
<span style="font-weight: 700; padding-right: 1.5rem;">Title Alternate Big</span>
<span>Fraunces Black, 150px, 72px line, All lowercase</span>
</div>
<div class="title-alternate-big" style="padding-top: 3.25rem; padding-bottom: 5rem; color: var(--grey);">
dolor sit
</div>
<div>
<span style="font-weight: 700; padding-right: 1.5rem;">H1</span>
<span>Fraunces Black, 72px, 72px line</span>
</div>
<h1 style="padding-top: 0.5rem; padding-bottom: 4.5rem;">Lorem ipsum dolor sit amet</h1>
<div>
<span style="font-weight: 700; padding-right: 1.5rem;">H2</span>
<span>Fraunces Black, 40px, 48px line</span>
</div>
<h2 style="padding-top: 0.5rem; padding-bottom: 4.5rem;">Lorem ipsum dolor sit amet consectetuer adipiscing</h2>
<div>
<span style="font-weight: 700; padding-right: 1.5rem;">H3</span>
<span>Fraunces Black, 32px, 36px line</span>
</div>
<h3 style="padding-top: 0.5rem; padding-bottom: 3.25rem;">Lorem ipsum dolor sit amet consectetuer adipiscing</h3>
<div>
<span style="font-weight: 700; padding-right: 1.5rem;">H4</span>
<span>Fraunces Black, 24px, 32px line</span>
</div>
<h4 style="padding-top: 0.5rem;">Lorem ipsum dolor sit amet consectetuer adipiscing</h4>
</div>
<div class="right vertical-flex">
<div style="padding-bottom: 1.25rem;">
<span style="font-weight: 700; padding-right: 1.5rem;">Body</span>
<span>Barlow Regular, 16px, 26px line</span>
</div>
<div style="padding-bottom: 4rem;">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus hendrerit. Pellentesque aliquet nibh nec urna. In nisi neque, aliquet vel, dapibus id, mattis vel, nisi. Sed pretium, ligula sollicitudin laoreet viverra, tortor libero sodales leo, eget blandit nunc tortor eu nibh. Nullam mollis. Ut justo. Suspendisse potenti.Sed egestas, ante et vulputate volutpat, eros pede semper est, vitae luctus metus libero eu augue. Morbi purus libero, faucibus adipiscing, commodo quis, gravida id, est. Sed lectus. Praesent elementum hendrerit tortor. Sed semper lorem at felis. Vestibulum volutpat, lacus a ultrices sagittis, mi neque euismod dui, eu pulvinar nunc sapien ornare nisl.</p>
<br />
<p>Phasellus pede arcu, dapibus eu, fermentum et, dapibus sed, urna.Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus hendrerit. Pellentesque aliquet nibh nec urna. In nisi neque, aliquet vel, dapibus id, mattis vel, nisi. Sed pretium, ligula sollicitudin laoreet viverra, tortor libero sodales leo, eget blandit nunc tortor eu nibh. Nullam mollis. Ut justo. Suspendisse potenti.</p>
<br />
<p>Sed egestas, ante et vulputate volutpat, eros pede semper est, vitae luctus metus libero eu augue. Morbi purus libero, faucibus adipiscing, commodo quis, gravida id, est. Sed lectus. Praesent elementum hendrerit tortor. Sed semper lorem at felis. Vestibulum volutpat, lacus a ultrices sagittis, mi neque euismod dui, eu pulvinar nunc sapien ornare nisl. Phasellus pede arcu, dapibus eu, fermentum et, dapibus sed, urna.</p>
</div>
<div style="padding-bottom: 2rem;">
<span style="font-weight: 700; padding-right: 1.5rem;">Navigation Menu</span>
<span>Barlow Bold, 12px, 15px line, 1.0 Character</span>
</div>
<div>
<ul class="navigation-menu">
<li><a href="./index.html">home</a></li>
<li><a href="./about.html">about us</a></li>
<li><a href="./plan.html">create your plan</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="button-panel flex">
<div class="vertical-flex">
<span>Main Button Default</span>
<button class="main-button">Button</button>
</div>
<div class="vertical-flex">
<span>Main Button Hover</span>
<button class="main-button hovered">Button</button>
</div>
<div class="vertical-flex">
<span>Main Button Disabled</span>
<button class="main-button" disabled>Button</button>
</div>
</div>
<div class="big-selection-option-panel flex">
<div class="vertical-flex">
<span>Big Selection Option Default</span>
<button class="big-selection-option">
<h4 style="margin-bottom: 1.5rem;">Option</h4>
<span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</span>
</button>
</div>
<div class="vertical-flex">
<span>Big Selection Option Hover</span>
<button class="big-selection-option hovered">
<h4 style="margin-bottom: 1.5rem;">Option</h4>
<span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</span>
</button>
</div>
<div class="vertical-flex">
<span>Big Selection Option Active</span>
<button class="big-selection-option active">
<h4 style="margin-bottom: 1.5rem;">Option</h4>
<span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</span>
</button>
</div>
</div>
<div class="accordion-panel grid">
<div>
<span>Accordion Menu Closed Default</span>
<button class="accordion-button">
<h2>Sample Menu</h2>
<svg width="19" height="13" xmlns="http://www.w3.org/2000/svg"><path d="M15.949.586l2.828 2.828-9.096 9.096L.586 3.414 3.414.586l6.267 6.267z" fill-rule="nonzero" /></svg>
</button>
</div>
<div>
<span>Accordion Menu Closed Hover</span>
<button class="accordion-button hovered">
<h2>Sample Menu</h2>
<svg width="19" height="13" xmlns="http://www.w3.org/2000/svg"><path d="M15.949.586l2.828 2.828-9.096 9.096L.586 3.414 3.414.586l6.267 6.267z" fill-rule="nonzero" /></svg>
</button>
</div>
<div>
<span>Accordion Menu Closed Disabled</span>
<button class="accordion-button" disabled>
<h2>Sample Menu</h2>
<svg width="19" height="13" xmlns="http://www.w3.org/2000/svg"><path d="M15.949.586l2.828 2.828-9.096 9.096L.586 3.414 3.414.586l6.267 6.267z" fill-rule="nonzero" /></svg>
</button>
</div>
<div>
<span>Accordion Menu Opened Default</span>
<button class="accordion-button opened">
<h2>Sample Menu</h2>
<svg width="19" height="13" xmlns="http://www.w3.org/2000/svg"><path d="M15.949.586l2.828 2.828-9.096 9.096L.586 3.414 3.414.586l6.267 6.267z" fill-rule="nonzero" /></svg>
</button>
</div>
<div>
<span>Accordion Menu Opened Hover</span>
<button class="accordion-button opened hovered">
<h2>Sample Menu</h2>
<svg width="19" height="13" xmlns="http://www.w3.org/2000/svg"><path d="M15.949.586l2.828 2.828-9.096 9.096L.586 3.414 3.414.586l6.267 6.267z" fill-rule="nonzero" /></svg>
</button>
</div>
</div>
</main>
</body>
</html>