-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
788 lines (754 loc) · 28.4 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<title>Jiffies CSS</title>
<meta name="description" content="Jiffies CSS Test Page" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="shortcut icon" href="/favicon.svg" type="image/svg+xml" />
<meta name="theme-color" content="#000000" />
<link rel="stylesheet" href="./v2/index.css" />
<!-- <link rel="stylesheet" href="./index.css" /> -->
<!-- <link rel="stylesheet" href="./jiffies-css-bundle.css" /> -->
<!-- <link rel="stylesheet" href="./jiffies-css-bundle.min.css" /> -->
<!-- <link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/@davidsouther/[email protected]"
/> -->
<style>
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Orbitron:wght@400;700&family=Poppins:ital,wght@0,400;0,700;1,400;1,700&display=swap');
:root {
--body-font-family: Poppins;
--header-font-family: Orbitron;
--brand-chroma: 0.2;
--brand-hue: 255deg;
--brand-luminance: 80%;
--hyperlink-color: oklch(50% 0.5 90deg);
}
@media (prefers-color-scheme: dark) {
:root {
--brand-hue: 255deg;
--brand-chroma: 0.35;
--brand-luminance: 60%;
--hyperlink-color: oklch(100% 0.5 90deg);
}
}
</style>
</head>
<body>
<header class="fluid">
<nav>
<h1>
<a href="https://github.com/jefri/jiffies-css">
<svg
height="32"
aria-hidden="true"
viewBox="0 0 16 16"
version="1.1"
width="32"
data-view-component="true"
class="octicon octicon-mark-github v-align-middle"
>
<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>
Jiffies CSS
</a>
</h1>
</nav>
</header>
<main>
<section id="overview">
<h1>About Jiffies CSS</h1>
<p>
<b>Jiffies CSS</b>
is a "postmodern" CSS full-page reset. It uses "cutting edge" 100%
pure CSS standards, including layers, native css nesting, and a
variable structure to define user and application specific overrides.
</p>
</section>
<section id="usage">
<h1>Usage</h1>
<ul>
<li>
For appropriate semantic markup, view the
<a href="https://github.com/jefri/jiffies-css/blob/main/index.html"
>source</a
>
of this file.
</li>
<li>
<p>
Link to the bundle from unpkg.
<a href="#usage" onclick="javascript:copyHead()">Copy</a>
<script type="application/javascript" async>
<!--
function copyHead() {
navigator.clipboard.writeText(`<link rel="stylesheet" type="text/css" href="https://unpkg.com/@davidsouther/jiffies-css" />
<script src="https://unpkg.com/@davidsouther/jiffies-css/accessibility.js" async></script>`);
}
-->
</script>
</p>
<pre><code class="language-html"><link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/@davidsouther/jiffies-css"
/>
<script src="https://unpkg.com/@davidsouther/jiffies-css/accessibility.js"></script></code></pre>
</li>
<li>
Add overrides to custom properties in a <code>:root {}</code> block.
</li>
<li>
Sample customization block
(<a href="#usage" onclick="javascript:copyRoot()">Copy</a>):
<br />
<pre><code>:root {
--color-primary-hue: <input id="primaryHue" type="number" min="0" max="360" value="115" step="5" style="width: 4em;" />deg; /* Default 115deg in bundle */
--sizing: <input id="sizing" type="range" min="0" max="2" step="0.1" value="1" style="width: 5em;" /> <span id="sizingOut">1</span>;
<label><input type="checkbox" id="fontBase" style="margin-left: -1rem; margin-right: -0.5rem;" /> --font-family-base: Poppins;</label>
<label><input type="checkbox" id="fontHeader" style="margin-left: -1rem; margin-right: -0.5rem;" /> --font-family-header: "Libre Baskerville";</label>
<label><input type="checkbox" id="fontMonospace" style="margin-left: -1rem; margin-right: -0.5rem;" /> --font-family-monospace: "JetBrains Mono";</label>
}</code></pre>
<script type="application/javascript" async>
<!--
function copyRoot() {
const root = [':root {'];
root.push(` --color-primary-hue: ${primaryHue.value}deg;`);
root.push(` --sizing: ${sizing.value};`);
fontBase.checked && root.push(` --font-family-base: Poppins;`);
fontHeader.checked && root.push(` --font-family-header: "Libre Baskerville";`);
fontMonospace.checked && root.push(` --font-family-monospace: "JetBrains Mono";`);
root.push("}");
navigator.clipboard.writeText(root.join("\n"));
}
-->
</script>
</li>
</ul>
<style>
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Libre+Baskerville:wght@700&family=Crimson+Text:wght@700&family=Poppins:ital@0;1&display=swap");
</style>
<!--
:root {
--font-family-base: Poppins;
--font-family-header: "Libre Baskerville";
--font-family-monospace: "JetBrains Mono";
}
-->
<p style="display: hidden; font-family: 'Poppins'"></p>
<p style="display: hidden; font-family: 'Libre Baskerville'"></p>
<p style="display: hidden; font-family: 'JetBrains Mono'"></p>
<style id="fontBaseStyle"></style>
<script type="application/javascript" async>
fontBase.onchange = () =>
fontBaseStyle.textContent = fontBase.checked
? `:root { --font-family-base: "Poppins"; }`
: "";
</script>
<style id="fontHeaderStyle"></style>
<script type="application/javascript" async>
fontHeader.onchange = () =>
fontHeaderStyle.textContent = fontHeader.checked
? `:root { --font-family-header: "Libre Baskerville"; }`
: "";
</script>
<style id="fontMonospaceStyle"></style>
<script type="application/javascript" async>
fontMonospace.onchange = () =>
fontMonospaceStyle.textContent = fontMonospace.checked
? `:root { --font-family-monospace: "JetBrains Mono"; }`
: "";
</script>
<style id="primaryHueStyle"></style>
<script type="application/javascript">
var setPrimaryHue = (hue) => {
primaryHueStyle.textContent = `:root { --color-primary-hue: ${hue}deg; }`;
};
primaryHue.onchange = () => setPrimaryHue(primaryHue.value);
var hue = Math.floor((Math.random() * 360) / 5) * 5;
setPrimaryHue(hue);
primaryHue.value = hue;
</script>
<style id="sizingStyle"></style>
<script type="application/javascript">
sizing.onchange = () => {
var size = Number(sizing.value);
sizingStyle.textContent = `:root { --sizing: ${size}; }`;
sizingOut.textContent = size;
};
</script>
</section>
<article id="overview">
<header>
<h1>Headings</h1>
<p>Headings are built using <h1> etc tags.</p>
</header>
<main>
<hgroup>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
<h3>hgroup :last-child</h3>
</hgroup>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum
</p>
</main>
<footer>
<p>Footer content for a card.</p>
<button>Ok</button>
</footer>
</article>
<article id="formatting">
<header>
<h1>Formatting</h1>
<p>
Formatting uses the appropriate <code><b></code> etc inline
text tags.
</p>
</header>
<main>
<p>
This sentence is <b>bold</b>. If you like semantics, you might go
with <strong>strong</strong> or <em>emphasized</em> text. If not,
<i>italic</i> is still around. <small>Small</small> text is for fine
print. Your copy can also be <sub>subscripted</sub> and
<sup>superscripted</sup>, <ins>inserted</ins>, <del>deleted</del>,
or <mark>highlighted</mark>. You would use a
<a href="#!">hyperlink</a> to go to a new page.
</p>
<p>
If you like to write about there are plenty of semantic tags for
you. There's the generic
<code>code</code>, as well as <kbd>keyboard input</kbd>,
<samp>computer output</samp>, and <var>variables</var>.
</p>
<p>
You might have need of a <cite>citation</cite>,
<q>short quotation</q>, <abbr title="abbreviation">abbr</abbr>, or
<dfn>definition</dfn>. It might be <time>10:00pm</time>.
</p>
<address>
<p>
123 Fake Street<br />
Springfield, USA
</p>
</address>
<h2>Blockquote</h2>
<blockquote>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam
molestiae et assumenda molestias alias ut saepe doloribus, porro,
deleniti neque, harum minus, commodi laudantium quod excepturi nam
corrupti odit provident.
<cite>- Blockquote Citation</cite>
</blockquote>
<h2>Preformatted Text</h2>
<pre>
If you can keep your head when all about you
Are losing theirs and blaming it on you,
If you can trust yourself when all men doubt you,
But make allowance for their doubting too;
If you can wait and not be tired by waiting,
Or being lied about, don’t deal in lies,
Or being hated, don’t give way to hating,
And yet don’t look too good, nor talk too wise:
- Rudyard Kipling, If-
</pre>
<h3>Code</h3>
<pre><code class="language-cpp">class Voila {
public:
// Voila
static const string VOILA = "Voila";
}</code></pre>
<h2>Horizontal Line</h2>
<hr />
</main>
</article>
<article id="headings">
<header>
<h1>Headings</h1>
</header>
<main>
<h1>First Heading h1</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ea
delectus cupiditate minima, magni possimus commodi, eveniet? Rem,
adipisci architecto pariatur libero aliquid culpa sunt accusantium.
Ipsa error aliquid et! Animi.
</p>
<h2>Second Heading h2</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Officia
molestias ullam quasi est a nemo, accusamus voluptatum autem. Eius
explicabo est assumenda voluptatem id, hic maxime mollitia facere
debitis quos.
</p>
<h3>Third Heading h3</h3>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nemo
deleniti, repudiandae rerum nam laborum eligendi aperiam. Autem id,
ad necessitatibus accusantium, facilis, quae ullam est, voluptates
debitis fugiat quos inventore!
</p>
<h4>Fourth Heading h4</h4>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Neque cum
eum eligendi voluptatum quasi nisi doloremque ipsam unde, laboriosam
nihil voluptatem consequatur quam non similique vero ratione animi
sit veritatis.
</p>
<h5>Fifth Heading h5</h5>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odit
voluptatem necessitatibus eos iusto nam deserunt, dicta possimus
error qui reiciendis, aut dolore magnam eligendi maiores expedita
commodi perferendis non blanditiis.
</p>
</main>
</article>
<article id="lists">
<header>
<h1>Lists</h1>
</header>
<main>
<h2>Unordered list</h2>
<ul>
<li>
List item one
<ul>
<li>Nested list item</li>
</ul>
</li>
<li>List item two</li>
<li>List item three</li>
</ul>
<h2>Ordered list</h2>
<ol>
<li>
List item one
<ol>
<li>Nested list item</li>
</ol>
</li>
<li>List item two</li>
<li>List item three</li>
</ol>
<h2>Definition List</h2>
<dl>
<dt>Definition Title One</dt>
<dd>First definition description</dd>
<dt>Definition Title Two</dt>
<dd>Second definition description</dd>
</dl>
</main>
</article>
<article id="tables">
<header>
<h1>Tables</h1>
</header>
<main>
<table>
<thead>
<tr>
<th>Head 1</th>
<th>Head 2</th>
<th>Head 3</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Footer 1</th>
<th>Footer 2</th>
<th>Footer 3</th>
</tr>
</tfoot>
<tbody>
<tr>
<td>Description 1</td>
<td>Description 2</td>
<td>Description 3</td>
</tr>
<tr>
<td>Description 1</td>
<td>Description 2</td>
<td>Description 3</td>
</tr>
<tr>
<td>Description 1</td>
<td>Description 2</td>
<td>Description 3</td>
</tr>
</tbody>
</table>
</main>
</article>
<article id="accordion">
<header>
<h1>Accordion</h1>
<p>
Styling for <code><details></code> and
<code><summary></code>.
</p>
</header>
<main>
<details>
<summary>Accordion 1</summary>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Pellentesque urna diam, tincidunt nec porta sed, auctor id velit.
Etiam venenatis nisl ut orci consequat, vitae tempus quam commodo.
Nulla non mauris ipsum. Aliquam eu posuere orci. Nulla convallis
lectus rutrum quam hendrerit, in facilisis elit sollicitudin.
Mauris pulvinar pulvinar mi, dictum tristique elit auctor quis.
Maecenas ac ipsum ultrices, porta turpis sit amet, congue turpis.
</p>
</details>
<details open="">
<summary>Accordion 2</summary>
<ul>
<li>Vestibulum id elit quis massa interdum sodales.</li>
<li>Nunc quis eros vel odio pretium tincidunt nec quis neque.</li>
<li>Quisque sed eros non eros ornare elementum.</li>
<li>Cras sed libero aliquet, porta dolor quis, dapibus ipsum.</li>
</ul>
</details>
</main>
</article>
<article id="tabs">
<header>
<h1 id="tab-sample-header">Tabs</h1>
<p>Styling for <code><section role="tablist"></code>.</p>
</header>
<main>
<section role="tablist" aria-labelledby="tab-sample-header">
<div role="tab" id="tab-1" aria-controls="tabpanel-1">
<label>
Tab 1
<input
type="radio"
name="tablist-1"
aria-controls="tabpanel-1"
value="tab-1"
/>
</label>
</div>
<div role="tabpanel" id="tabpanel-1" aria-labelledby="tab-1">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Pellentesque urna diam, tincidunt nec porta sed, auctor id
velit. Etiam venenatis nisl ut orci consequat, vitae tempus quam
commodo. Nulla non mauris ipsum. Aliquam eu posuere orci. Nulla
convallis lectus rutrum quam hendrerit, in facilisis elit
sollicitudin. Mauris pulvinar pulvinar mi, dictum tristique elit
auctor quis. Maecenas ac ipsum ultrices, porta turpis sit amet,
congue turpis.
</p>
</div>
<div role="tab" id="tab-2" aria-controls="tabpanel-2">
<label>
Tab 2
<input type="radio" name="tablist-1" value="tab-2" checked />
<!-- Yep looks like that works! -->
</label>
</div>
<div role="tabpanel" id="tabpanel-2" aria-labelledby="tab-2">
<ul>
<li>Vestibulum id elit quis massa interdum sodales.</li>
<li>
Nunc quis eros vel odio pretium tincidunt nec quis neque.
</li>
<li>Quisque sed eros non eros ornare elementum.</li>
<li>
Cras sed libero aliquet, porta dolor quis, dapibus ipsum.
</li>
</ul>
</div>
</section>
</main>
</article>
<article id="buttons">
<header>
<h2>Buttons</h2>
<p>
Button elements, links with <code>role="button"</code>, and input
elements should all render exactly the same.
</p>
</header>
<main>
<section>
<button>Button</button>
<input type="submit" value="Submit" />
<input type="button" value="Input" />
<input type="reset" value="Reset" />
<a role="button">Link</a>
</section>
<section>
<h3>Secondary Buttons</h3>
<p>
Adding a <code>secondary</code> class will display a secondary
color.
</p>
<button class="secondary">Button</button>
<input type="submit" value="Submit" class="secondary" />
<input type="button" value="Input" class="secondary" />
<input type="reset" value="Reset" />
<a role="button" class="secondary">Link</a>
</section>
<section>
<h3>Contrast</h3>
<p>
Adding a <code>contrast</code> class will create ghost/outline
buttons.
</p>
<button class="contrast">Button</button>
<input type="submit" value="Submit" class="contrast" />
<input type="reset" value="Reset" class="contrast" />
<input type="button" value="Input" class="contrast" />
<a role="button" class="contrast">Link</a>
</section>
<section>
<h3>Outline</h3>
<p>
Adding an <code>outline</code> class will create outlined buttons
with no background.
</p>
<button class="outline">Button</button>
<input type="reset" value="Reset" class="outline" />
<input type="submit" value="Submit" class="contrast outline" />
</section>
</main>
</article>
<article id="forms">
<header>
<h1>Forms</h1>
</header>
<main>
<form onsubmit="event.preventDefault(); return false;">
<fieldset style="--grid-column-count: 3">
<label>
Text Input <input type="text" placeholder="Text Input" />
</label>
<label>
Password
<input type="password" placeholder="Password" />
</label>
<label>
URL
<input type="url" placeholder="http://www.example.com" />
</label>
<label>
Email Address
<input type="email" placeholder="[email protected]" />
</label>
<label>
Phone Number <input type="tel" placeholder="123-123-1234" />
</label>
<label>
Search <input type="search" placeholder="Search" />
</label>
<label>
Number <input type="number" placeholder="Number" />
</label>
<label>
Select
<select>
<option>Option One</option>
<option>Option Two</option>
<option>Option Three</option>
</select>
</label>
<div>
<label>
<input name="checkboxA" type="checkbox" checked="checked" />
Choice A
</label>
<label>
<input name="checkboxB" type="checkbox" /> Choice B
</label>
</div>
<div>
<label>
<input name="radio" type="radio" checked="checked" />
Option 1
</label>
<label><input name="radio" type="radio" />Option 2</label>
<label>
<input
type="checkbox"
role="switch"
name="switch"
checked="checked"
/>
Switch 1
</label>
</div>
<label for="textarea">
Textarea
<textarea rows="5" cols="30" placeholder="Message"></textarea>
</label>
</fieldset>
<input type="button" value="Button" />
<input type="submit" value="Submit" />
<input type="reset" value="Reset" />
<button>Button element</button>
</form>
<form onsubmit="event.preventDefault(); return false;">
<fieldset style="--grid-column-count: 4">
<legend>Form States</legend>
<input type="text" placeholder="Valid" aria-invalid="false" />
<input type="text" placeholder="Invalid" aria-invalid="true" />
<input type="text" placeholder="Disabled" disabled />
<input type="text" value="Readonly" readonly />
</fieldset>
</form>
<!-- Progress progress -->
<!--
Loading [aria-busy=true]
Tooltip [data-tooltip][data-direction]
-->
<!-- Modal dialog -->
</main>
</article>
<!--
<article>
<header>
<h2>Color Swatches</h2>
<style>
#swatches p {
width: 100%;
height: 100%;
padding: var(--spacing-block);
border-radius: var(--spacing-block);
background-color: var(--color);
--text-color: var(--color-primary-inverse);
}
#rainbow p {
width: 100%;
height: 10px;
padding: 0;
margin: 0;
border-radius: 0;
background-color: var(--color);
min-height: 5px;
}
#swatches {
min-height: 150px;
--grid-column-count: 1;
}
@media (min-width: 425px) {
#swatches {
min-height: 300px;
--grid-column-count: 2;
}
}
@media (min-width: 768px) {
#swatches {
min-height: 150px;
--grid-column-count: 4;
}
}
</style>
</header>
<main class="grid" id="swatches">
<p style="--color-hue: var(--color-primary-hue);">
<strong>Primary Color</strong>
</p>
<p style="--color-hue: var(--color-accent-hue);">
<strong>Accent Color</strong>
</p>
<p style="--color-hue: var(--color-secondary-hue);">
<strong>Secondary Color</strong>
</p>
<p style="--color-hue: var(--color-contrast-hue);">
<strong>Contrast Color</strong>
</p>
</main>
<main id="rainbow" class="grid swatches" style="
--grid-column-count: 73;
--spacing-block-horizontal: 0;
--spacing-block-vertical: 0;">
<script type="application/javascript" async>
for (let j = 0; j <= 100; j++) {
for (let i = 0; i <= 72; i++) {
const p = document.createElement('p');
p.style.setProperty('--color-hue', `${i * 5}deg`);
p.style.setProperty('--chroma', `${j * 0.4 / 10}`);
rainbow.append(p);
}
}
</script>
</main>
</article>
-->
</main>
<aside>
<nav>
<ul>
<li><a href="#top">Top</a></li>
<li><a href="#bottom">Bottom</a></li>
</ul>
<ul>
<li><a href="#usage">Usage</a></li>
<li><a href="#overview">Overview</a></li>
<li><a href="#formatting">Formatting</a></li>
<li><a href="#headings">Headings</a></li>
<li><a href="#lists">Lists</a></li>
<li><a href="#tables">Tables</a></li>
<li><a href="#accordion">Accordion</a></li>
<li><a href="#tabs">Tabs</a></li>
<li><a href="#buttons">Buttons</a></li>
<li><a href="#forms">Forms</a></li>
<li><a href="#swatches">Swatches</a></li>
</ul>
</nav>
</aside>
<footer class="fluid" id="bottom">
<p>MIT License Copyright (c) 2023 David Souther</p>
<nav>
<p>Inspired by</p>
<ul>
<li>
<a href="https://csstools.github.io/sanitize.css/">sanitize.css</a>
</li>
<li><a href="https://picocss.com">Pico CSS</a></li>
<li>
<a href="https://taniarascia.github.io/primitive/">Primitive</a>
</li>
<li><a href="http://getskeleton.com/">Skeleton</a></li>
<li><a href="https://github.com/jefri/jiffies">Jiffies</a></li>
</ul>
</nav>
</footer>
<!-- <script src="./accessibility.js"></script> -->
<script src="https://unpkg.com/@davidsouther/[email protected]/accessibility.js"></script>
<!-- <link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/default.min.css"
/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/languages/cpp.min.js"></script>
<script>
document.addEventListener("DOMContentLoaded", (event) => {
document
.querySelectorAll("pre code[class^='language-']")
.forEach((el) => {
hljs.highlightElement(el);
});
});
</script> -->
</body>
</html>