generated from argyleink/vite-postcss-preset-env
-
Notifications
You must be signed in to change notification settings - Fork 198
/
Copy pathindex.html
3730 lines (3461 loc) · 173 KB
/
index.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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Open Props: sub-atomic styles</title>
<meta property="og:title" content="Open Props: sub-atomic styles">
<meta name="twitter:title" content="Open Props: sub-atomic styles">
<meta name="description" content="Open source CSS custom properties to help accelerate adaptive and consistent design. Available from a CDN or NPM, as CSS or Javascript.">
<meta property="og:description" content="Open source CSS custom properties to help accelerate adaptive and consistent design. Available from a CDN or NPM, as CSS or Javascript.">
<meta name="twitter:description" content="Open source CSS custom properties to help accelerate adaptive and consistent design. Available from a CDN or NPM, as CSS or Javascript.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="Canvas">
<meta name="color-scheme" content="dark light">
<link rel="manifest" href="manifest.json">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="icon" href="/favicon.ico" sizes="any">
<meta name="twitter:image:src" content="https://open-props.style/open-props-social.jpg">
<meta name="twitter:image:alt" content="@argyleink/open-props: CSS custom properties to help accelerate adaptive and consistent design.">
<meta name="twitter:card" content="summary_large_image">
<meta property="og:image" content="https://open-props.style/open-props-social.jpg">
<meta property="og:image:alt" content="argyleink/open-props: CSS custom properties to help accelerate adaptive and consistent design. Available from a CDN or NPM, as CSS or Javascript.">
<link rel="stylesheet" href="/index.css">
<script src="/theme-toggle.js"></script>
</head>
<body>
<svg style="display:none">
<symbol id="play-icon">
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z" clip-rule="evenodd" />
</symbol>
<symbol id="pause-icon">
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zM7 8a1 1 0 012 0v4a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v4a1 1 0 102 0V8a1 1 0 00-1-1z" clip-rule="evenodd" />
</symbol>
<symbol id="checkmark-icon">
<polyline points="9 11 12 14 22 4"></polyline>
<path style="opacity:.75;" d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>
</symbol>
<symbol id="bent-arrow" fill="none" stroke="currentColor">
<path d="m15 10 5 5-5 5"/>
<path d="M4 4v7a4 4 0 0 0 4 4h12"/>
</symbol>
</svg>
<nav>
<a href="/">
<svg class="op-icon" viewBox="0 0 200 200">
<line class="op-icon-p" x1="65" x2="65" y1="100" y2="175" stroke-width="25"/>
<circle class="op-icon-p" cx="100" cy="100" r="35" fill="transparent" stroke-width="25"/>
<circle class="op-icon-o" cx="100" cy="100" r="85" fill="transparent" stroke-width="25"/>
</svg>
<span class="op-logo">
<span>Open</span>
<span>Props</span>
</span>
</a>
<a href="#getting-started">Get Started</a>
<a class="md-hidden" href="https://stackblitz.com/@argyleink/collections/open-props">
Try in browser
<small class="green-badge">RAD</small>
</a>
<button class="theme-toggle" id="theme-toggle" title="Toggles light & dark" aria-label="auto" aria-live="polite">
<svg aria-hidden="true" width="24" height="24" viewBox="0 0 24 24">
<!-- https://feathericons.com/?query=sun -->
<mask id="moon">
<rect x="0" y="0" width="100%" height="100%" fill="white" />
<circle cx="40" cy="8" r="11" fill="black" />
</mask>
<circle id="sun" cx="12" cy="12" r="11" mask="url(#moon)"/>
<g id="sun-beams">
<line x1="12" y1="1" x2="12" y2="3" />
<line x1="12" y1="21" x2="12" y2="23" />
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64" />
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78" />
<line x1="1" y1="12" x2="3" y2="12" />
<line x1="21" y1="12" x2="23" y2="12" />
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36" />
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22" />
</g>
</svg>
</button>
<a href="https://github.com/argyleink/open-props" title="Source on Github">
<svg class="github-icon" width="24" height="24" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
</svg>
</a>
</nav>
<section class="hero block-wrap">
<header>
<div class="subhead">
<h1><div>Supercharged</div></h1>
<h1><span>CSS</span> <span>variables.</span></h1>
</div>
<ul class="checkmark-list">
<li>
<svg viewBox="0 0 24 24">
<use href="#checkmark-icon" fill="none"/>
</svg>
Expertly crafted web design tokens
</li>
<li>
<svg viewBox="0 0 24 24">
<use href="#checkmark-icon" fill="none"/>
</svg>
Create consistent components
</li>
<li>
<svg viewBox="0 0 24 24">
<use href="#checkmark-icon" fill="none"/>
</svg>
Useful in any framework
</li>
</ul>
<small>
v1.7.0
<span class="license">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16">
<path fill-rule="evenodd" d="M8.75.75a.75.75 0 00-1.5 0V2h-.984c-.305 0-.604.08-.869.23l-1.288.737A.25.25 0 013.984 3H1.75a.75.75 0 000 1.5h.428L.066 9.192a.75.75 0 00.154.838l.53-.53-.53.53v.001l.002.002.002.002.006.006.016.015.045.04a3.514 3.514 0 00.686.45A4.492 4.492 0 003 11c.88 0 1.556-.22 2.023-.454a3.515 3.515 0 00.686-.45l.045-.04.016-.015.006-.006.002-.002.001-.002L5.25 9.5l.53.53a.75.75 0 00.154-.838L3.822 4.5h.162c.305 0 .604-.08.869-.23l1.289-.737a.25.25 0 01.124-.033h.984V13h-2.5a.75.75 0 000 1.5h6.5a.75.75 0 000-1.5h-2.5V3.5h.984a.25.25 0 01.124.033l1.29.736c.264.152.563.231.868.231h.162l-2.112 4.692a.75.75 0 00.154.838l.53-.53-.53.53v.001l.002.002.002.002.006.006.016.015.045.04a3.517 3.517 0 00.686.45A4.492 4.492 0 0013 11c.88 0 1.556-.22 2.023-.454a3.512 3.512 0 00.686-.45l.045-.04.01-.01.006-.005.006-.006.002-.002.001-.002-.529-.531.53.53a.75.75 0 00.154-.838L13.823 4.5h.427a.75.75 0 000-1.5h-2.234a.25.25 0 01-.124-.033l-1.29-.736A1.75 1.75 0 009.735 2H8.75V.75zM1.695 9.227c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L3 6.327l-1.305 2.9zm10 0c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L13 6.327l-1.305 2.9z"></path>
</svg>
MIT
</span>
</small>
</header>
<div>
<pre class="language-css"><code>
@import "https://unpkg.com/open-props";
</code></pre>
<pre class="language-css"><code>
.card {
border-radius: var(--radius-2);
padding: var(--size-fluid-3);
box-shadow: var(--shadow-2);
&:hover {
box-shadow: var(--shadow-3);
}
@media (--motionOK) {
animation: var(--animation-fade-in);
}
}
</code></pre>
<!-- <pre class="language-css"><code>
@import "open-props"; /* All props from NPM */
@import "open-props/media.css"; /* Named media queries */
.button {
font-size: var(--font-size-fluid-1);
padding-inline: var(--size-5);
padding-block: var(--size-3);
color: var(--blue-0);
background-color: var(--blue-7);
border: none;
border-radius: var(--radius-round);
box-shadow: var(--shadow-2);
&:hover {
transform: scale(1.1);
}
@media (--motionOK) {
transition: transform 0.5s var(--ease-squish-3);
}
}
</code></pre> -->
</div>
</section>
<section id="gallery">
<header>
<h2>Built with Open Props</h2>
</header>
<div class="demo-gallery block-wrap">
<a href="https://codepen.io/argyleink/pen/porzeyz">
<figure>
<picture>
<img width="1125" height="586" src="/hero-layout.png" alt="" loading="lazy">
</picture>
<figcaption>
<img src="/hero-layout.png" aria-hidden="true" loading="lazy">
<div class="adaptive-glass">
<h3>Hero Layout</h3>
<p><b>18 props</b> + <b>normalize.css</b></p>
</div>
</figcaption>
</figure>
</a>
<a href="https://codepen.io/argyleink/pen/powMQgx">
<figure>
<picture>
<img width="1446" height="658" src="/adaptive-buttons.png" alt="" loading="lazy">
</picture>
<figcaption>
<img src="/adaptive-buttons.png" aria-hidden="true" loading="lazy">
<div class="adaptive-glass">
<h3>Adaptive Buttons</h3>
<p><b>10 props</b></p>
</div>
</figcaption>
</figure>
</a>
<a href="https://codepen.io/argyleink/pen/jOLaBgG">
<figure>
<picture>
<img width="1600" height="960" src="/cards.png" alt="" loading="lazy">
</picture>
<figcaption>
<img src="/cards.png" aria-hidden="true" loading="lazy">
<div class="adaptive-glass">
<h3>Adaptive Cards</h3>
<p><b>8 props</b> + <b>normalize.css</b></p>
</div>
</figcaption>
</figure>
</a>
<a href="https://codepen.io/argyleink/pen/QWMreXR">
<figure>
<picture>
<img width="760" height="372" src="/pagination.png" alt="" loading="lazy">
</picture>
<figcaption>
<img src="/pagination.png" aria-hidden="true" loading="lazy">
<div class="adaptive-glass">
<h3>Pagination Example</h3>
<p>10 props</p>
</div>
</figcaption>
</figure>
</a>
<a href="https://codepen.io/argyleink/pen/XWaYyWe">
<figure>
<picture>
<img width="1096" height="639" src="/color-schemes.png" alt="" loading="lazy">
</picture>
<figcaption>
<img src="/color-schemes.png" aria-hidden="true" loading="lazy">
<div class="adaptive-glass">
<h3>4 Color Schemes</h3>
<p><b>16 props</b></p>
</div>
</figcaption>
</figure>
</a>
<a href="https://codepen.io/argyleink/pen/ZEXQovz">
<figure>
<picture>
<img width="672" height="448" src="/pop-animation.png" alt="" loading="lazy">
</picture>
<figcaption>
<img src="/pop-animation.png" aria-hidden="true" loading="lazy">
<div class="adaptive-glass">
<h3>Make it pop</h3>
<p><b>Example loads only the animations and easings for a springy scale-in animation</b></p>
</div>
</figcaption>
</figure>
</a>
<a href="https://codepen.io/argyleink/pen/KKvRORE">
<figure>
<picture>
<img width="967" height="585" src="/normalize-codepen.png" alt="" loading="lazy">
</picture>
<figcaption>
<img src="/normalize-codepen.png" aria-hidden="true" loading="lazy">
<div class="adaptive-glass">
<h3>Normalize Preview</h3>
<p><b>Light + dark HTML5 minimal styles</b></p>
</div>
</figcaption>
</figure>
</a>
</div>
</section>
<section id="about" class="just-stretch">
<header class="just-stretch">
<h2>Why Use Open Props?</h2>
<p>It's <b>non-prescriptive</b>.</p>
</header>
<dl class="marketing-features responsive-dl">
<div>
<dt>
<svg viewBox="0 0 24 24">
<path d="M17.657 18.657A8 8 0 016.343 7.343S7 9 9 10c0-2 .5-5 2.986-7C14 5 16.09 5.777 17.656 7.343A7.975 7.975 0 0120 13a7.975 7.975 0 01-2.343 5.657z" stroke="currentColor" fill="none" />
<path d="M9.879 16.121A3 3 0 1012.015 11L11 14H9c0 .768.293 1.536.879 2.121z" stroke="currentColor" fill="none" />
</svg>
Design Consistently
</dt>
<dd>Incidentally harmonious.</dd>
</div>
<div>
<dt>
<svg viewBox="0 0 24 24">
<path d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z" stroke="currentColor" fill="none" />
</svg>
Predictable
</dt>
<dd>Thanks to consistent naming conventions.</dd>
</div>
<div>
<dt>
<svg viewBox="0 0 24 24" >
<path d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z" stroke="currentColor" fill="none" />
<path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z" stroke="currentColor" fill="none" />
</svg>
Incrementally Adoptable
</dt>
<dd>Grab all the props, props as JS, or only what you need.</dd>
</div>
<div>
<dt>
<svg viewBox="0 0 24 24">
<path d="M14 10l-2 1m0 0l-2-1m2 1v2.5M20 7l-2 1m2-1l-2-1m2 1v2.5M14 4l-2-1-2 1M4 7l2-1M4 7l2 1M4 7v2.5M12 21l-2-1m2 1l2-1m-2 1v-2.5M6 18l-2-1v-2.5M18 18l2-1v-2.5" stroke="currentColor" fill="none" />
</svg>
Customizable
</dt>
<dd>Map the props from JS or customize builds from the command line.</dd>
</div>
</dl>
</section>
<section id="overview">
<header>
<h2>Overview</h2>
<p>File sizes and links to source:</p>
</header>
<div class="just-for-gap">
<header>
<h4>File Sizes</h4>
<blockquote>
<p>The following sizes are for the minified files and after <a href="https://github.com/google/brotli">Brotli</a> compression.</p>
</blockquote>
</header>
<dl class="block-wrap bundle-sizes">
<div>
<dt>Library bundles</dt>
<dd class="size-chart" style="row-gap: var(--size-3)">
<div class="size"><strong>4.0</strong>kB</div>
<div class="file">
<a href="https://unpkg.com/open-props">open-props.min.css</a>
<div class="child-ref">
<svg viewBox="0 0 24 24">
<use href="#bent-arrow"/>
</svg>
500+ props
</div>
</div>
</dd>
<dt>Extras</dt>
<dd class="size-chart" style="row-gap: var(--size-3)">
<div class="size"><strong>1.3</strong>kB</div>
<div class="file">
<a href="https://unpkg.com/open-props/normalize.min.css">normalize.min.css</a> <a
href="https://codepen.io/argyleink/pen/KKvRORE"><small class="green-badge">demo</small></a>
<div class="child-ref">
<svg viewBox="0 0 24 24">
<use href="#bent-arrow" />
</svg>
<a href="https://github.com/argyleink/open-props/blob/main/src/extra/normalize.light.css">normalize.light.css</a>
</div>
<div class="child-ref">
<svg viewBox="0 0 24 24">
<use href="#bent-arrow" />
</svg>
<a href="https://github.com/argyleink/open-props/blob/main/src/extra/normalize.dark.css">normalize.dark.css</a>
</div>
<div class="child-ref">
<svg viewBox="0 0 24 24">
<use href="#bent-arrow" />
</svg>
<a href="https://github.com/argyleink/open-props/blob/main/src/extra/theme.light.css">theme.light.css</a>
</div>
<div class="child-ref">
<svg viewBox="0 0 24 24">
<use href="#bent-arrow" />
</svg>
<a href="https://github.com/argyleink/open-props/blob/main/src/extra/theme.dark.css">theme.dark.css</a>
</div>
</div>
<div class="size"><strong>0.81</strong>kB</div>
<div class="file">
<a href="https://unpkg.com/open-props/buttons.min.css">buttons.min.css</a> <a href="https://codepen.io/argyleink/pen/gOXbvjj"><small class="green-badge">demo</small></a>
</div>
</dd>
</div>
<div>
<dt>Individual PropPacks ™</dt>
<dd class="size-chart">
<div class="size"><strong>0.49</strong>kB</div>
<div class="file">
<a href="https://github.com/argyleink/open-props/blob/main/src/props.animations.css">animations.css</a> <a href="https://codepen.io/argyleink/pen/ZEXQovz"><small class="green-badge">demo</small></a>
</div>
<div class="size"><strong>0.1</strong>kB</div>
<div class="file">
<a href="https://github.com/argyleink/open-props/blob/main/src/props.aspects.css">aspects.css</a>
</div>
<div class="size"><strong>0.25</strong>kB</div>
<div class="file">
<a href="https://github.com/argyleink/open-props/blob/main/src/props.borders.css">borders.css</a>
</div>
<div class="size"><strong>1.3</strong>kB</div>
<div class="file">
<a href="https://github.com/argyleink/open-props/blob/main/src/props.colors.css">colors.css</a> <small>(228)</small>
<div class="child-ref">
<svg viewBox="0 0 24 24">
<use href="#bent-arrow"/>
</svg>
<a href="https://github.com/argyleink/open-props/blob/main/src/props.pink.css">pink.css</a>
</div>
<div class="child-ref">
<svg viewBox="0 0 24 24">
<use href="#bent-arrow"/>
</svg>
<a href="https://github.com/argyleink/open-props/blob/main/src/props.indigo.css">indigo.css</a>
</div>
<div class="child-ref">
<svg viewBox="0 0 24 24">
<use href="#bent-arrow"/>
</svg>
<span>etc...</span>
</div>
</div>
<div class="size"><strong>1.2</strong>kB</div>
<div class="file">
<a href="https://github.com/argyleink/open-props/blob/main/src/props.colors-hsl.css">colors-hsl.css</a>
<div class="child-ref">
<svg viewBox="0 0 24 24">
<use href="#bent-arrow"/>
</svg>
<a href="https://github.com/argyleink/open-props/blob/main/src/props.pink-hsl.css">pink-hsl.css</a>
</div>
<div class="child-ref">
<svg viewBox="0 0 24 24">
<use href="#bent-arrow"/>
</svg>
<a href="https://github.com/argyleink/open-props/blob/main/src/props.indigo-hsl.css">indigo-hsl.css</a>
</div>
<div class="child-ref">
<svg viewBox="0 0 24 24">
<use href="#bent-arrow"/>
</svg>
<span>etc...</span>
</div>
</div>
<div class="size"><strong>1.4</strong>kB</div>
<div class="file">
<a href="https://github.com/argyleink/open-props/blob/main/src/extra/durations.css">durations.css</a>
</div>
<div class="size"><strong>0.2</strong>kB</div>
<div class="file">
<a href="https://github.com/argyleink/open-props/blob/main/src/props.easing.css">easings.css</a>
</div>
<div class="size"><strong>0.4</strong>kB</div>
<div class="file">
<a href="https://github.com/argyleink/open-props/blob/main/src/props.fonts.css">fonts.css</a>
</div>
<div class="size"><strong>1.0</strong>kB</div>
<div class="file">
<a href="https://github.com/argyleink/open-props/blob/main/src/props.gradients.css">gradients.css</a>
</div>
<div class="size"><strong>0.62</strong>kB</div>
<div class="file">
<a href="https://github.com/argyleink/open-props/blob/main/src/props.masks.edges.css">masks.edges.css</a>
</div>
<div class="size"><strong>0.23</strong>kB</div>
<div class="file">
<a href="https://github.com/argyleink/open-props/blob/main/src/props.masks.corner-cuts.css">masks.corner-cuts.css</a>
</div>
<div class="size"><strong>0.38</strong>kB</div>
<div class="file">
<a href="https://github.com/argyleink/open-props/blob/main/src/props.media.css">media.css</a>
</div>
<div class="size"><strong>0.26</strong>kB</div>
<div class="file">
<a href="https://github.com/argyleink/open-props/blob/main/src/props.shadows.css">shadows.css</a>
</div>
<div class="size"><strong>0.2</strong>kB</div>
<div class="file">
<a href="https://github.com/argyleink/open-props/blob/main/src/props.sizes.css">sizes.css</a>
</div>
<div class="size"><strong>0.1</strong>kB</div>
<div class="file">
<a href="https://github.com/argyleink/open-props/blob/main/src/props.supports.css">supports.css</a>
</div>
<div class="size"><strong>0.05</strong>kB</div>
<div class="file">
<a href="https://github.com/argyleink/open-props/blob/main/src/props.zindex.css">zindex.css</a>
</div>
</dd>
</div>
<div>
<dt>Coming Soon?!</dt>
<dd class="size-chart">
<div class="size"><strong>??</strong></div>
<div class="file">icons.css <small class="yellow-badge">WIP</small></div>
<div class="size"><strong>??</strong></div>
<div class="file">svg.css <small class="yellow-badge">WIP</small></div>
<div class="size"><strong>??</strong></div>
<div class="file">patterns.css <small class="yellow-badge">WIP</small></div>
<div class="size"><strong>??</strong></div>
<div class="file">at-property.css <small class="yellow-badge">WIP</small></div>
<div class="size"><strong>??</strong></div>
<div class="file">shapes.css <small class="yellow-badge">WIP</small></div>
<div class="size"><strong>??</strong></div>
<div class="file">layouts.css <small class="yellow-badge">WIP</small></div>
<div class="size"><strong>??</strong></div>
<div class="file">clips.css <small class="yellow-badge">WIP</small></div>
<div class="size"><strong>??</strong></div>
<div class="file">variable-fonts.css <small class="yellow-badge">WIP</small></div>
<div class="size"><strong>??</strong></div>
<div class="file">lists.css <small class="yellow-badge">WIP</small></div>
<div class="size"><strong>??</strong></div>
<div class="file">counters.css <small class="yellow-badge">WIP</small></div>
<div class="size"><strong>??</strong></div>
<div class="file">utilities.css <small class="yellow-badge">WIP</small></div>
</dd>
</div>
</dl>
</div>
</section>
<section class="dogfood place-full block-wrap">
<header>
<h2>
This site
<br>is built
<br>with Open Props.
</h2>
</header>
<div>
<pre class="language-css"><code>
@import "https://unpkg.com/open-props";
</code></pre>
</div>
<div>
<pre class="language-css"><code>
.just-for-gap {
display: grid;
gap: var(--size-4);
}
</code></pre>
</div>
<div>
<pre class="language-css"><code>
blockquote {
--_accent-1: var(--lime-5);
--_accent-2: var(--lime-4);
--_bg: var(--surface-2);
--_ink: var(--text-1);
color: var(--_ink);
border-color: var(--_accent-2);
background-color: var(--_bg);
justify-self: flex-start;
}
</code></pre>
</div>
<div>
<pre class="language-css"><code>
.gradient-swatch {
border-radius: var(--radius-2);
aspect-ratio: var(--ratio-landscape);
}
</code></pre>
</div>
<div>
<pre class="language-css"><code>
pre > code {
box-shadow: var(--shadow-6);
font-family: var(--font-mono);
font-size: var(--font-size-2);
}
</code></pre>
</div>
<div>
<pre class="language-css"><code>
.yellow-badge {
padding-inline: var(--size-1);
border-width: var(--border-size-1);
border-color: var(--yellow-6);
color: var(--yellow-2);
border-radius: var(--radius-round);
@nest [data-theme="light"] & {
border-color: var(--orange-2);
color: var(--orange-6);
}
}
</code></pre>
</div>
<div>
<pre class="language-css"><code>
.block-wrap {
display: flex;
flex-wrap: wrap;
flex-basis: var(--size-content-2);
gap: var(--size-5) var(--size-8);
align-items: flex-start;
}
</code></pre>
</div>
<div>
<pre class="language-css"><code>
.demo-gallery figure {
border-radius: var(--radius-3);
box-shadow: var(--shadow-4);
}
</code></pre>
</div>
<div>
<pre class="language-css"><code>
.op-icon-p {
stroke: var(--indigo-2);
@nest a:hover & { stroke: var(--indigo-1); }
@nest [data-theme="light"] & {
stroke: var(--indigo-9);
@nest a:hover & { stroke: var(--indigo-8); }
}
}
</code></pre>
</div>
<div>
<pre class="language-css"><code>
.checkmark-list {
align-self: flex-start;
display: grid;
gap: var(--size-2);
font-size: var(--font-size-fluid-1);
font-weight: var(--font-weight-2);
padding-inline-start: 0;
}
</code></pre>
</div>
</section>
<section id="getting-started">
<header>
<h2>Getting Started</h2>
<div class="block-wrap">
<p>These props come in many flavors: <b>CSS</b>, <b>PostCSS</b>, <b>JSON</b>, or <b>Javascript</b>. Get em from a <b>CDN</b> or <b>NPM</b>. Try it in browser with <b>Preact</b>, <b>Vite</b>, <b>Vanilla Extract</b>, <b>Lit</b>, <b>Qwik</b>, you name it, it's in this <a href="https://stackblitz.com/@argyleink/collections/open-props">helpful Stackblitz collection</a></p>
<blockquote class="icon-quote indigo">
<svg viewBox="0 0 32 32">
<path fill="#7289da" d="M26.963 0c1.875 0 3.387 1.516 3.476 3.3v28.7l-3.569-3.031-1.96-1.784-2.139-1.864 0.893 2.94h-18.717c-1.869 0-3.387-1.42-3.387-3.301v-21.653c0-1.784 1.52-3.303 3.393-3.303h22zM18.805 7.577h-0.040l-0.269 0.267c2.764 0.8 4.101 2.049 4.101 2.049-1.781-0.891-3.387-1.336-4.992-1.516-1.16-0.18-2.32-0.085-3.3 0h-0.267c-0.627 0-1.96 0.267-3.747 0.98-0.623 0.271-0.98 0.448-0.98 0.448s1.336-1.336 4.28-2.049l-0.18-0.18c0 0-2.229-0.085-4.636 1.693 0 0-2.407 4.192-2.407 9.36 0 0 1.333 2.32 4.991 2.408 0 0 0.533-0.711 1.073-1.336-2.053-0.624-2.853-1.872-2.853-1.872s0.179 0.088 0.447 0.267h0.080c0.040 0 0.059 0.020 0.080 0.040v0.008c0.021 0.021 0.040 0.040 0.080 0.040 0.44 0.181 0.88 0.36 1.24 0.533 0.621 0.269 1.42 0.537 2.4 0.715 1.24 0.18 2.661 0.267 4.28 0 0.8-0.18 1.6-0.356 2.4-0.713 0.52-0.267 1.16-0.533 1.863-0.983 0 0-0.8 1.248-2.94 1.872 0.44 0.621 1.060 1.333 1.060 1.333 3.659-0.080 5.080-2.4 5.16-2.301 0-5.16-2.42-9.36-2.42-9.36-2.18-1.619-4.22-1.68-4.58-1.68zM19.029 13.461c0.937 0 1.693 0.8 1.693 1.78 0 0.987-0.76 1.787-1.693 1.787s-1.693-0.8-1.693-1.779c0.003-0.987 0.764-1.784 1.693-1.788zM12.972 13.461c0.933 0 1.688 0.8 1.688 1.78 0 0.987-0.76 1.787-1.693 1.787s-1.693-0.8-1.693-1.779c0-0.987 0.76-1.784 1.699-1.788z"></path>
</svg>
<p>
<b>Need help?</b> <br>
Ask a question on <a href="https://discord.gg/AqA4fU886r">Discord</a>
</p>
</blockquote>
</div>
</header>
<div class="learn-with-jason">
<h4>Learn with Jason & Adam</h4>
<iframe width="560" height="315" src="https://www.youtube.com/embed/9VXR_qRgROE" title="YouTube video player"
frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
</div>
<article class="installation">
<div class="block-wrap" id="cdn">
<div class="contain-pre">
<header>
<h4>CDN</h4>
<p>No installation required.</p>
<p><a href="https://unpkg.com/browse/open-props@latest/">View all ↗</a></p>
</header>
<details class="started-details">
<summary>CSS</summary>
<div>
<h6>index.css</h6>
<pre class="language-css"><code>
/* the props */
@import "https://unpkg.com/open-props";
/* optional imports that use the props */
@import "https://unpkg.com/open-props/normalize.min.css";
@import "https://unpkg.com/open-props/buttons.min.css";
/* just dark or light themes */
@import "https://unpkg.com/open-props/normalize.dark.min.css";
@import "https://unpkg.com/open-props/buttons.dark.min.css";
@import "https://unpkg.com/open-props/normalize.light.min.css";
@import "https://unpkg.com/open-props/buttons.light.min.css";
/* individual imports */
@import "https://unpkg.com/open-props/indigo.min.css";
@import "https://unpkg.com/open-props/indigo-hsl.min.css";
@import "https://unpkg.com/open-props/easings.min.css";
@import "https://unpkg.com/open-props/animations.min.css";
@import "https://unpkg.com/open-props/sizes.min.css";
@import "https://unpkg.com/open-props/gradients.min.css";
/* see PropPacks for the full list */
</code></pre>
</div>
<div>
<h6>index.html</h6>
<pre class="language-html"><code>
<!-- the props -->
<link rel="stylesheet" href="https://unpkg.com/open-props"/>
<!-- optional imports that use the props -->
<link rel="stylesheet" href="https://unpkg.com/open-props/normalize.min.css"/>
<link rel="stylesheet" href="https://unpkg.com/open-props/buttons.min.css"/>
<!-- individual imports -->
<link rel="stylesheet" href="https://unpkg.com/open-props/indigo.min.css"/>
<link rel="stylesheet" href="https://unpkg.com/open-props/indigo-hsl.min.css"/>
<link rel="stylesheet" href="https://unpkg.com/open-props/easings.min.css"/>
<link rel="stylesheet" href="https://unpkg.com/open-props/animations.min.css"/>
<link rel="stylesheet" href="https://unpkg.com/open-props/sizes.min.css"/>
<link rel="stylesheet" href="https://unpkg.com/open-props/gradients.min.css"/>
<!-- see PropPacks for the full list -->
</code></pre>
</div>
<div>
<h6>index.js</h6>
<pre class="language-js"><code>
// the props
import 'https://unpkg.com/open-props';
// optional imports that use the props
import 'https://unpkg.com/open-props/normalize.min.css';
import 'https://unpkg.com/open-props/buttons.min.css';
// just go dark themed or light themed
import 'https://unpkg.com/open-props/normalize.dark.min.css';
import 'https://unpkg.com/open-props/buttons.dark.min.css';
import 'https://unpkg.com/open-props/normalize.light.min.css';
import 'https://unpkg.com/open-props/buttons.light.min.css';
// individual imports
import 'https://unpkg.com/open-props/indigo.min.css';
import 'https://unpkg.com/open-props/indigo-hsl.min.css';
import 'https://unpkg.com/open-props/easings.min.css';
import 'https://unpkg.com/open-props/animations.min.css';
import 'https://unpkg.com/open-props/sizes.min.css';
import 'https://unpkg.com/open-props/gradients.min.css';
// see PropPacks for the full list
</code></pre>
</div>
</details>
<details class="started-details">
<summary>PostCSS</summary>
<div>
<h6>CSS import examples</h6>
<pre class="language-css"><code>
/* the props */
@import "https://unpkg.com/open-props/src/index.css";
/* optional imports that use the props */
@import "https://unpkg.com/open-props/src/extra/normalize.css";
@import "https://unpkg.com/open-props/src/extra/buttons.css";
/* individual imports */
@import "https://unpkg.com/open-props/src/indigo.min.css";
@import "https://unpkg.com/open-props/src/indigo-hsl.min.css";
@import "https://unpkg.com/open-props/src/easings.min.css";
@import "https://unpkg.com/open-props/src/animations.min.css";
@import "https://unpkg.com/open-props/src/sizes.min.css";
@import "https://unpkg.com/open-props/src/gradients.min.css";
/* see PropPacks for the full list */
</code></pre>
</div>
</details>
<details class="started-details" id="design-tokens">
<summary>Design Tokens</summary>
<div>
<br>
<p>Not all props can be represented as a design token.</p>
<div class="block-wrap">
<div class="just-for-sm-gap">
<h6>JSON</h6>
<p>Follows the <a href="https://design-tokens.github.io/community-group/format/">(draft) Design Tokens Spec</a></p>
<pre class="language-js"><code>
https://unpkg.com/open-props/open-props.tokens.json
</code></pre>
</div>
<div class="just-for-sm-gap">
<h6>Figma Tokens</h6>
<p>Community created <a href="https://github.com/hchiam/figma-tokens-sync-example">setup instructions</a>.</p>
<pre class="language-js"><code>
https://unpkg.com/open-props/open-props.figma-tokens.json
https://unpkg.com/open-props/open-props.figma-tokens.sync.json
</code></pre>
</div>
</div>
</div>
</details>
<details class="started-details" id="style-dictionary-design-tokens">
<summary>Style Dictionary</summary>
<div>
<br>
<div class="just-for-sm-gap">
<a href="https://unpkg.com/open-props/open-props.style-dictionary-tokens.json">Preview the JSON</a>
<a href="https://www.sveltelab.dev/zwfgmq5ftobw6vy">Example usage (community added)</a>
<a href="https://www.npmjs.com/package/@csstools/postcss-design-tokens">Use with @csstools/postcss-design-tokens</a>
<a href="https://github.com/argyleink/open-props/pull/433#issuecomment-1776942415">More details</a>
</div>
<div class="block-wrap">
<div class="just-for-sm-gap">
<h6>Tokens</h6>
<pre class="language-js"><code>
import "open-props/style-dictionary-tokens"
// or
import "open-props/open-props.style-dictionary-tokens.json"
</code></pre>
<pre class="language-js"><code>
https://unpkg.com/open-props/open-props.style-dictionary-tokens.json
</code></pre>
</div>
</div>
</div>
</details>
<details class="started-details">
<summary>Web Components</summary>
<div>
<h6>NPM import examples</h6>
<pre class="language-css"><code>
/* the props */
@import "open-props/shadow/style";
@import "open-props/open-props.shadow.min.css";
/* individual imports */
@import "open-props/shadow/indigo";
@import "open-props/shadow/indigo-hsl";
@import "open-props/shadow/easings";
@import "open-props/shadow/animations";
@import "open-props/shadow/sizes";
@import "open-props/shadow/gradients";
/* see PropPacks for the full list */
</code></pre>
</div>
<div>
<h6>CDN import examples</h6>
<p>These props are scoped to <b>:host</b> for use in shadow DOM.</p>
<pre class="language-css"><code>
/* the props */
@import "https://unpkg.com/open-props/open-props.shadow.min.css";
/* individual imports */
@import "https://unpkg.com/open-props/indigo.shadow.min.css";
@import "https://unpkg.com/open-props/indigo.shadow-hsl.min.css";
@import "https://unpkg.com/open-props/easings.shadow.min.css";
@import "https://unpkg.com/open-props/animations.shadow.min.css";
@import "https://unpkg.com/open-props/sizes.shadow.min.css";
@import "https://unpkg.com/open-props/gradients.shadow.min.css";
/* see PropPacks for the full list */
</code></pre>
</div>
</details>
</div>
<div class="contain-pre" id="npm">
<h4>NPM</h4>
<pre class="language-bash"><code>npm install open-props</code></pre>
<details class="started-details">
<summary>CSS</summary>
<div>
<h6>CSS Imports</h6>
<div class="block-wrap">
<pre class="language-css"><code>
/* the props */
@import "open-props/style";
/* optional imports that use the props */
@import "open-props/normalize";
@import "open-props/buttons";
/* just light or dark themes */
@import "open-props/normalize/dark";
@import "open-props/buttons/dark";
@import "open-props/normalize/light";
@import "open-props/buttons/light";
/* individual imports */
@import "open-props/indigo";
@import "open-props/easings";
@import "open-props/animations";
@import "open-props/sizes";
@import "open-props/gradients";
/* see PropPacks for the full list */
</code></pre>
</div>
</div>
<div>
<h6>Full Path Imports</h6>
<div class="block-wrap">
<pre class="language-css"><code>
/* the props */
@import "open-props/open-props.min.css";
/* optional imports that use the props */
@import "open-props/normalize.min.css";
@import "open-props/buttons.min.css";
/* individual imports */
@import "open-props/indigo.min.css";
@import "open-props/easings.min.css";
@import "open-props/animations.min.css";
@import "open-props/sizes.min.css";
@import "open-props/gradients.min.css";
/* see PropPacks for the full list */
</code></pre>
</div>
</div>
</details>
<details class="started-details">
<summary>PostCSS</summary>
<div>
<h6>CSS Imports</h6>
<pre class="language-css"><code>
/* the props */
@import "open-props/postcss/style";
/* optional imports that use the props */
@import "open-props/postcss/normalize";
@import "open-props/postcss/buttons";
/* individual imports */
@import "open-props/postcss/indigo";
@import "open-props/postcss/easings";
@import "open-props/postcss/animations";
@import "open-props/postcss/sizes";
@import "open-props/postcss/gradients";
/* see PropPacks for the full list */
</code></pre>
</div>
<div>
<h6>Full Path CSS Imports</h6>
<pre class="language-css"><code>
/* the props */
@import "open-props/postcss/index.css";
/* optional imports that use the props */
@import "open-props/postcss/extra/normalize.css";
@import "open-props/postcss/extra/buttons.css";
/* individual imports */
@import "open-props/postcss/indigo.min.css";
@import "open-props/postcss/easings.min.css";
@import "open-props/postcss/animations.min.css";
@import "open-props/postcss/sizes.min.css";
@import "open-props/postcss/gradients.min.css";
/* see PropPacks for the full list */
</code></pre>
</div>
</details>
<details class="started-details">
<summary>JavaScript</summary>
<div style="margin-block-start: var(--size-5)">
<a href="https://github.com/argyleink/open-props/blob/main/package.json#L30-L41">All JavaScript imports</a>
</div>
<div class="block-wrap">
<div>
<h6>Bundles</h6>