elements-kit 0.5.2 → 0.6.1

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.
@@ -0,0 +1,624 @@
1
+ .hero :is(h1, h2, h3, h4, h5, h6, p), .section-header :is(h1, h2, h3, h4, h5, h6, p), .section-heading, .section-paragraph, .river-content :is(h1, h2, h3, h4, h5, h6, p), .pillar :is(h1, h2, h3, h4, h5, h6, p, [data-heading], [data-paragraph]), .cta-banner :is(h1, h2, h3, h4, h5, h6, p), .testimonial :is(blockquote, figcaption, cite, p), .statistic :is(p, [data-leading], [data-heading], [data-description]) {
2
+ margin: 0;
3
+ }
4
+
5
+ .hero {
6
+ flex-direction: column;
7
+ padding-top: 3rem;
8
+ display: flex;
9
+ }
10
+
11
+ .hero .section-paragraph {
12
+ font-weight: var(--font-weight-medium);
13
+ letter-spacing: var(--letter-spacing-9);
14
+ text-wrap: pretty;
15
+ margin-top: 1.5rem;
16
+ }
17
+
18
+ .hero .river-content {
19
+ row-gap: 0;
20
+ }
21
+
22
+ @media (min-width: 40rem) {
23
+ .hero {
24
+ padding-top: 7rem;
25
+ }
26
+
27
+ .hero .section-paragraph {
28
+ max-width: min(42rem, 70%);
29
+ }
30
+ }
31
+
32
+ @media (min-width: 64rem) {
33
+ .hero .section-paragraph {
34
+ font-size: var(--font-size-5);
35
+ line-height: var(--line-height-5);
36
+ }
37
+ }
38
+
39
+ .hero[data-align="center"] :is(.section-heading, .section-paragraph) {
40
+ text-align: center;
41
+ text-wrap: balance;
42
+ }
43
+
44
+ .hero:has(.river[data-align="start"]) {
45
+ padding-block: 6rem;
46
+ }
47
+
48
+ .hero:has(.river[data-align="start"]) .section-paragraph {
49
+ text-wrap: pretty;
50
+ font-size: var(--font-size-3) !important;
51
+ line-height: var(--line-height-3) !important;
52
+ }
53
+
54
+ @media (min-width: 48rem) {
55
+ .hero:has(.river[data-align="start"]) {
56
+ padding-block: 8rem;
57
+ }
58
+ }
59
+
60
+ .page-section {
61
+ background-color: var(--color-background);
62
+ padding-block: 3rem;
63
+ position: relative;
64
+ }
65
+
66
+ @media (min-width: 48rem) {
67
+ .page-section {
68
+ padding-top: 7rem;
69
+ }
70
+ }
71
+
72
+ .page-container {
73
+ box-sizing: border-box;
74
+ padding-left: var(--page-padding-left, 1rem);
75
+ padding-right: var(--page-padding-right, 1rem);
76
+ max-width: var(--page-max-width, 72rem);
77
+ width: 100%;
78
+ margin-inline: auto;
79
+ }
80
+
81
+ .section-header {
82
+ text-wrap: balance;
83
+ flex-direction: column;
84
+ align-items: flex-start;
85
+ gap: 1rem;
86
+ margin-block: 1.5rem;
87
+ display: flex;
88
+ }
89
+
90
+ .section-header .section-heading {
91
+ max-width: 20ch;
92
+ }
93
+
94
+ .section-header .section-paragraph {
95
+ text-wrap: balance;
96
+ max-width: 82ch;
97
+ }
98
+
99
+ .section-header[data-align="center"] {
100
+ align-items: safe center;
101
+ }
102
+
103
+ .section-header[data-align="center"] .section-heading, .section-header[data-align="center"] .section-paragraph {
104
+ text-align: center;
105
+ }
106
+
107
+ .section-header[data-align="center"] > a {
108
+ margin-top: 1rem;
109
+ }
110
+
111
+ .section-heading {
112
+ font-family: var(--font-heading);
113
+ letter-spacing: var(--letter-spacing-9);
114
+ overflow-wrap: break-word;
115
+ font-weight: 600;
116
+ }
117
+
118
+ [dir="rtl"] .section-heading {
119
+ letter-spacing: 0;
120
+ line-height: 1.4;
121
+ }
122
+
123
+ .section-heading-1 {
124
+ font-size: calc(48px * var(--scaling, 1));
125
+ letter-spacing: -.04em;
126
+ font-weight: 550;
127
+ line-height: 1;
128
+ }
129
+
130
+ .section-heading-2 {
131
+ font-size: var(--font-size-8);
132
+ line-height: var(--line-height-8);
133
+ }
134
+
135
+ .section-heading-3 {
136
+ font-size: calc(30px * var(--scaling, 1));
137
+ line-height: calc(36px * var(--scaling, 1));
138
+ }
139
+
140
+ .section-heading-4 {
141
+ font-size: var(--font-size-5);
142
+ line-height: var(--line-height-5);
143
+ }
144
+
145
+ @media (min-width: 64rem) {
146
+ .section-heading-1 {
147
+ font-size: var(--font-size-9);
148
+ line-height: 1;
149
+ }
150
+
151
+ .section-heading-2 {
152
+ font-size: calc(48px * var(--scaling, 1));
153
+ line-height: 1;
154
+ }
155
+
156
+ .section-heading-3 {
157
+ font-size: var(--font-size-8);
158
+ line-height: var(--line-height-8);
159
+ }
160
+ }
161
+
162
+ .section-paragraph {
163
+ line-height: var(--default-line-height, 1.5);
164
+ text-wrap: pretty;
165
+ white-space: pre-line;
166
+ overflow-wrap: break-word;
167
+ color: var(--base-color-11);
168
+ }
169
+
170
+ .section-paragraph em {
171
+ color: var(--base-color-12);
172
+ font-style: normal;
173
+ }
174
+
175
+ .river {
176
+ grid-template-columns: repeat(12, minmax(0, 1fr));
177
+ grid-auto-rows: min-content;
178
+ row-gap: 2rem;
179
+ display: grid;
180
+ }
181
+
182
+ .river > * {
183
+ grid-column: 1 / -1;
184
+ min-width: 0;
185
+ }
186
+
187
+ @media (min-width: 48rem) {
188
+ .river {
189
+ grid-auto-rows: auto;
190
+ gap: 0 3rem;
191
+ }
192
+
193
+ .river > * {
194
+ grid-column: span 6 / span 6;
195
+ }
196
+
197
+ .river[data-align="start"][data-large-visual] > .river-content, .river[data-align="end"][data-large-visual] > .river-content {
198
+ grid-column: span 5 / span 5;
199
+ }
200
+
201
+ .river[data-align="start"][data-large-visual] > .river-visual, .river[data-align="end"][data-large-visual] > .river-visual {
202
+ grid-column: span 7 / span 7;
203
+ }
204
+ }
205
+
206
+ .river[data-align="center"] {
207
+ grid-auto-rows: min-content;
208
+ align-items: safe center;
209
+ gap: 3rem 0;
210
+ }
211
+
212
+ .river[data-align="center"] > * {
213
+ grid-column: 1 / -1;
214
+ justify-self: center;
215
+ padding-inline: 0;
216
+ }
217
+
218
+ .river[data-align="center"] > .river-content {
219
+ align-items: safe center;
220
+ }
221
+
222
+ .river[data-align="center"] > .river-content > .section-heading {
223
+ text-align: center;
224
+ text-wrap: balance;
225
+ max-width: 24ch;
226
+ }
227
+
228
+ .river[data-align="center"] > .river-content > .section-paragraph {
229
+ text-align: center;
230
+ text-wrap: balance;
231
+ max-width: 72ch;
232
+ }
233
+
234
+ @media (min-width: 48rem) {
235
+ .river[data-align="end"] > .river-content {
236
+ order: 1;
237
+ }
238
+
239
+ .river[data-align="end"] > .river-visual {
240
+ order: 0;
241
+ }
242
+ }
243
+
244
+ @media (min-width: 64rem) {
245
+ .river[data-align="end"] > .river-content {
246
+ padding-inline: 4rem;
247
+ }
248
+ }
249
+
250
+ .river[data-align="breakout"] {
251
+ flex-direction: column;
252
+ gap: 2.5rem;
253
+ padding-block: 2.5rem;
254
+ display: flex;
255
+ }
256
+
257
+ .river[data-align="breakout"] > .section-heading:first-child {
258
+ clip: rect(0, 0, 0, 0);
259
+ word-wrap: normal;
260
+ border: 0;
261
+ width: 1px;
262
+ height: 1px;
263
+ padding: 0;
264
+ position: absolute;
265
+ }
266
+
267
+ .river[data-align="breakout"] > .river-content {
268
+ order: 1;
269
+ }
270
+
271
+ .river[data-align="breakout"] > .river-content .section-paragraph {
272
+ font-family: var(--font-heading);
273
+ font-size: var(--font-size-6);
274
+ letter-spacing: var(--letter-spacing-9);
275
+ text-wrap: pretty;
276
+ color: var(--base-color-11);
277
+ font-weight: 600;
278
+ line-height: 1.2;
279
+ }
280
+
281
+ .river[data-align="breakout"] > .river-content > [data-trailing] {
282
+ margin-top: 1.5rem;
283
+ }
284
+
285
+ .river[data-align="breakout"] > .river-visual {
286
+ border-radius: var(--radius-4);
287
+ order: 0;
288
+ }
289
+
290
+ @media (min-width: 48rem) {
291
+ .river[data-align="breakout"] {
292
+ row-gap: 4rem;
293
+ padding-block: 3rem;
294
+ }
295
+
296
+ .river[data-align="breakout"] > .river-content .section-paragraph {
297
+ font-size: var(--font-size-8);
298
+ }
299
+
300
+ .river[data-align="breakout"] .river-content {
301
+ grid-template-columns: 5fr 3fr;
302
+ grid-template-areas: "text trailing"
303
+ "cta trailing";
304
+ grid-auto-rows: auto 1fr;
305
+ gap: 2rem 3rem;
306
+ display: grid;
307
+ }
308
+
309
+ .river[data-align="breakout"] .river-content .section-paragraph {
310
+ grid-area: text;
311
+ }
312
+
313
+ .river[data-align="breakout"] .river-content [data-cta] {
314
+ grid-area: cta;
315
+ justify-self: start;
316
+ }
317
+
318
+ .river[data-align="breakout"] .river-content > [data-trailing] {
319
+ grid-area: trailing;
320
+ justify-self: end;
321
+ margin-block-start: 0;
322
+ }
323
+ }
324
+
325
+ .river-content {
326
+ flex-direction: column;
327
+ order: 0;
328
+ align-items: flex-start;
329
+ row-gap: 1rem;
330
+ min-width: 0;
331
+ display: flex;
332
+ }
333
+
334
+ .river-content > .section-heading {
335
+ text-wrap: balance;
336
+ }
337
+
338
+ .river-content > a {
339
+ margin-top: 1rem;
340
+ }
341
+
342
+ .river-visual {
343
+ order: 1;
344
+ min-width: 0;
345
+ position: relative;
346
+ }
347
+
348
+ .river-visual[data-border] {
349
+ border-radius: var(--radius-4);
350
+ border: 1px solid var(--base-color-a6);
351
+ }
352
+
353
+ .pillar {
354
+ text-align: start;
355
+ flex-direction: column;
356
+ align-items: flex-start;
357
+ max-width: 50ch;
358
+ display: flex;
359
+ }
360
+
361
+ .pillar > [data-heading] {
362
+ font-size: var(--font-size-5);
363
+ letter-spacing: var(--letter-spacing-8);
364
+ margin-bottom: .5rem;
365
+ font-weight: 600;
366
+ line-height: 1.3;
367
+ }
368
+
369
+ .pillar > svg:first-child {
370
+ color: var(--color-9);
371
+ margin-bottom: 1.5rem;
372
+ font-size: 2rem;
373
+ }
374
+
375
+ .pillar > [data-paragraph] {
376
+ font-size: var(--font-size-2);
377
+ line-height: var(--default-line-height, 1.5);
378
+ font-weight: var(--font-weight-regular);
379
+ letter-spacing: 0;
380
+ color: var(--base-color-11);
381
+ margin-bottom: 1.5rem;
382
+ }
383
+
384
+ .pillar > a {
385
+ margin-top: 1rem;
386
+ }
387
+
388
+ .pillar[data-border] {
389
+ border-radius: var(--radius-5);
390
+ border: 1px solid var(--base-color-a6);
391
+ padding: 2rem;
392
+ }
393
+
394
+ .testimonial {
395
+ border-radius: var(--radius-5);
396
+ border: 1px solid var(--base-color-a6);
397
+ background-color: var(--color-surface);
398
+ flex-direction: column;
399
+ min-width: 0;
400
+ padding: 2rem;
401
+ display: flex;
402
+ }
403
+
404
+ @media (min-width: 64rem) {
405
+ .testimonial {
406
+ padding: 6rem 8rem;
407
+ }
408
+ }
409
+
410
+ .testimonial > blockquote {
411
+ font-family: var(--font-heading);
412
+ font-size: var(--font-size-6);
413
+ letter-spacing: var(--letter-spacing-9);
414
+ text-wrap: pretty;
415
+ color: var(--base-color-11);
416
+ margin: 0;
417
+ font-weight: 600;
418
+ line-height: 1.3;
419
+ }
420
+
421
+ @media (min-width: 48rem) {
422
+ .testimonial > blockquote {
423
+ font-size: var(--font-size-7);
424
+ }
425
+ }
426
+
427
+ .testimonial > blockquote em {
428
+ color: var(--base-color-12);
429
+ font-style: normal;
430
+ }
431
+
432
+ .testimonial > blockquote:before {
433
+ content: "“";
434
+ font-size: calc(96px * var(--scaling, 1));
435
+ color: var(--color-9);
436
+ font-weight: 700;
437
+ line-height: 1;
438
+ display: block;
439
+ }
440
+
441
+ .testimonial > blockquote:after {
442
+ content: "”";
443
+ }
444
+
445
+ .testimonial > figcaption {
446
+ flex-direction: column;
447
+ margin-top: 4rem;
448
+ display: flex;
449
+ }
450
+
451
+ .testimonial > figcaption > cite {
452
+ font-family: var(--font-heading);
453
+ font-size: var(--font-size-5);
454
+ line-height: var(--line-height-5);
455
+ letter-spacing: var(--letter-spacing-9);
456
+ color: var(--base-color-12);
457
+ font-style: normal;
458
+ font-weight: 600;
459
+ }
460
+
461
+ .testimonial > figcaption > [data-title] {
462
+ font-size: var(--font-size-2);
463
+ line-height: var(--line-height-2);
464
+ color: var(--base-color-11);
465
+ }
466
+
467
+ .cta-banner {
468
+ isolation: isolate;
469
+ border-radius: var(--radius-5);
470
+ border: 1px solid var(--base-color-a6);
471
+ text-align: center;
472
+ flex-direction: column;
473
+ align-items: center;
474
+ padding: 3rem 1.5rem;
475
+ display: flex;
476
+ position: relative;
477
+ overflow: hidden;
478
+ }
479
+
480
+ @media (min-width: 48rem) {
481
+ .cta-banner {
482
+ padding: 5rem 2.5rem;
483
+ }
484
+ }
485
+
486
+ @media (min-width: 64rem) {
487
+ .cta-banner {
488
+ padding: 8rem 4.5rem;
489
+ }
490
+ }
491
+
492
+ .cta-banner :is(.section-heading, .section-paragraph) {
493
+ text-align: center;
494
+ text-wrap: balance;
495
+ max-width: 42ch;
496
+ }
497
+
498
+ .cta-banner .section-paragraph {
499
+ margin-top: 1.5rem;
500
+ }
501
+
502
+ .cta-banner > [data-cta] {
503
+ flex-direction: column;
504
+ align-items: stretch;
505
+ gap: 1rem;
506
+ width: 100%;
507
+ margin-top: 2.5rem;
508
+ display: flex;
509
+ }
510
+
511
+ @media (min-width: 40rem) {
512
+ .cta-banner > [data-cta] {
513
+ flex-flow: wrap;
514
+ justify-content: center;
515
+ align-items: center;
516
+ gap: 1rem 1.5rem;
517
+ width: auto;
518
+ }
519
+ }
520
+
521
+ .cta-banner[data-align="start"] {
522
+ text-align: start;
523
+ align-items: flex-start;
524
+ }
525
+
526
+ .cta-banner[data-align="start"] :is(.section-heading, .section-paragraph) {
527
+ text-align: start;
528
+ }
529
+
530
+ .cta-banner[data-align="start"] > [data-cta] {
531
+ width: 100%;
532
+ }
533
+
534
+ @media (min-width: 40rem) {
535
+ .cta-banner[data-align="start"] > [data-cta] {
536
+ justify-content: flex-start;
537
+ width: auto;
538
+ }
539
+ }
540
+
541
+ .statistic {
542
+ text-align: start;
543
+ flex-direction: column;
544
+ align-items: flex-start;
545
+ min-width: 0;
546
+ max-width: 50ch;
547
+ display: flex;
548
+ }
549
+
550
+ .statistic > [data-leading] {
551
+ font-size: var(--font-size-2);
552
+ line-height: var(--line-height-2);
553
+ font-weight: var(--font-weight-medium);
554
+ letter-spacing: var(--letter-spacing-9);
555
+ color: var(--base-color-11);
556
+ margin: 0 0 .25rem;
557
+ }
558
+
559
+ .statistic > [data-heading] {
560
+ font-family: var(--font-heading);
561
+ font-size: calc(48px * var(--scaling, 1));
562
+ letter-spacing: -.04em;
563
+ color: var(--base-color-12);
564
+ margin: 0;
565
+ font-weight: 550;
566
+ line-height: 1;
567
+ }
568
+
569
+ @media (min-width: 64rem) {
570
+ .statistic > [data-heading] {
571
+ font-size: var(--font-size-9);
572
+ }
573
+ }
574
+
575
+ .statistic > [data-description] {
576
+ font-size: var(--font-size-3);
577
+ line-height: var(--line-height-3);
578
+ color: var(--base-color-11);
579
+ margin-top: .5rem;
580
+ }
581
+
582
+ .statistic[data-size="1"] > [data-leading] {
583
+ font-size: var(--font-size-1);
584
+ line-height: var(--line-height-1);
585
+ }
586
+
587
+ .statistic[data-size="1"] > [data-heading] {
588
+ font-size: calc(28px * var(--scaling, 1));
589
+ letter-spacing: var(--letter-spacing-9);
590
+ font-weight: 600;
591
+ line-height: 1.1;
592
+ }
593
+
594
+ @media (min-width: 64rem) {
595
+ .statistic[data-size="1"] > [data-heading] {
596
+ font-size: var(--font-size-7);
597
+ }
598
+ }
599
+
600
+ .statistic[data-size="1"] > [data-description] {
601
+ font-size: var(--font-size-2);
602
+ line-height: var(--line-height-2);
603
+ }
604
+
605
+ .statistic[data-size="3"] > [data-heading] {
606
+ font-size: var(--font-size-9);
607
+ }
608
+
609
+ @media (min-width: 64rem) {
610
+ .statistic[data-size="3"] > [data-heading] {
611
+ font-size: calc(72px * var(--scaling, 1));
612
+ }
613
+ }
614
+
615
+ .statistic[data-size="3"] > [data-description] {
616
+ font-size: var(--font-size-4);
617
+ line-height: var(--line-height-4);
618
+ margin-top: .75rem;
619
+ }
620
+
621
+ .statistic[data-align="center"] {
622
+ text-align: center;
623
+ align-items: safe center;
624
+ }
@@ -0,0 +1,30 @@
1
+ [data-base-color="gray"] {
2
+ --base-color-1: var(--gray-1);
3
+ --base-color-2: var(--gray-2);
4
+ --base-color-3: var(--gray-3);
5
+ --base-color-4: var(--gray-4);
6
+ --base-color-5: var(--gray-5);
7
+ --base-color-6: var(--gray-6);
8
+ --base-color-7: var(--gray-7);
9
+ --base-color-8: var(--gray-8);
10
+ --base-color-9: var(--gray-9);
11
+ --base-color-10: var(--gray-10);
12
+ --base-color-11: var(--gray-11);
13
+ --base-color-12: var(--gray-12);
14
+ --base-color-a1: var(--gray-a1);
15
+ --base-color-a2: var(--gray-a2);
16
+ --base-color-a3: var(--gray-a3);
17
+ --base-color-a4: var(--gray-a4);
18
+ --base-color-a5: var(--gray-a5);
19
+ --base-color-a6: var(--gray-a6);
20
+ --base-color-a7: var(--gray-a7);
21
+ --base-color-a8: var(--gray-a8);
22
+ --base-color-a9: var(--gray-a9);
23
+ --base-color-a10: var(--gray-a10);
24
+ --base-color-a11: var(--gray-a11);
25
+ --base-color-a12: var(--gray-a12);
26
+ --base-color-surface: var(--gray-surface);
27
+ --base-color-indicator: var(--gray-indicator);
28
+ --base-color-track: var(--gray-track);
29
+ --base-color-contrast: var(--gray-contrast);
30
+ }
@@ -1,30 +1,30 @@
1
- [data-gray-color="mauve"] {
2
- --gray-1: var(--mauve-1);
3
- --gray-2: var(--mauve-2);
4
- --gray-3: var(--mauve-3);
5
- --gray-4: var(--mauve-4);
6
- --gray-5: var(--mauve-5);
7
- --gray-6: var(--mauve-6);
8
- --gray-7: var(--mauve-7);
9
- --gray-8: var(--mauve-8);
10
- --gray-9: var(--mauve-9);
11
- --gray-10: var(--mauve-10);
12
- --gray-11: var(--mauve-11);
13
- --gray-12: var(--mauve-12);
14
- --gray-a1: var(--mauve-a1);
15
- --gray-a2: var(--mauve-a2);
16
- --gray-a3: var(--mauve-a3);
17
- --gray-a4: var(--mauve-a4);
18
- --gray-a5: var(--mauve-a5);
19
- --gray-a6: var(--mauve-a6);
20
- --gray-a7: var(--mauve-a7);
21
- --gray-a8: var(--mauve-a8);
22
- --gray-a9: var(--mauve-a9);
23
- --gray-a10: var(--mauve-a10);
24
- --gray-a11: var(--mauve-a11);
25
- --gray-a12: var(--mauve-a12);
26
- --gray-contrast: var(--mauve-contrast);
27
- --gray-surface: var(--mauve-surface);
28
- --gray-indicator: var(--mauve-indicator);
29
- --gray-track: var(--mauve-track);
1
+ [data-base-color="mauve"] {
2
+ --base-color-1: var(--mauve-1);
3
+ --base-color-2: var(--mauve-2);
4
+ --base-color-3: var(--mauve-3);
5
+ --base-color-4: var(--mauve-4);
6
+ --base-color-5: var(--mauve-5);
7
+ --base-color-6: var(--mauve-6);
8
+ --base-color-7: var(--mauve-7);
9
+ --base-color-8: var(--mauve-8);
10
+ --base-color-9: var(--mauve-9);
11
+ --base-color-10: var(--mauve-10);
12
+ --base-color-11: var(--mauve-11);
13
+ --base-color-12: var(--mauve-12);
14
+ --base-color-a1: var(--mauve-a1);
15
+ --base-color-a2: var(--mauve-a2);
16
+ --base-color-a3: var(--mauve-a3);
17
+ --base-color-a4: var(--mauve-a4);
18
+ --base-color-a5: var(--mauve-a5);
19
+ --base-color-a6: var(--mauve-a6);
20
+ --base-color-a7: var(--mauve-a7);
21
+ --base-color-a8: var(--mauve-a8);
22
+ --base-color-a9: var(--mauve-a9);
23
+ --base-color-a10: var(--mauve-a10);
24
+ --base-color-a11: var(--mauve-a11);
25
+ --base-color-a12: var(--mauve-a12);
26
+ --base-color-contrast: var(--mauve-contrast);
27
+ --base-color-surface: var(--mauve-surface);
28
+ --base-color-indicator: var(--mauve-indicator);
29
+ --base-color-track: var(--mauve-track);
30
30
  }