-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
203 lines (201 loc) · 8.02 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
<!DOCTYPE html>
<html lang="en-US" class="dew-media dew-wet dew-ion dew-diy dew-tab dew-hyper dew-shift">
<meta charset="utf-8">
<title>dew polite web color</title>
<meta name=color-scheme content="dark light">
<meta name=theme-color content="hotpink">
<meta name=viewport content="width=device-width, initial-scale=1">
<meta name=description content="prefers-color-scheme empowered dark mode">
<meta name=creator content="s9a">
<link rel="icon" href="icon.svg">
<link rel="stylesheet" href="dew.css">
<link rel="stylesheet" href="diy.css">
<link rel="stylesheet" href="surface.css">
<link rel="license" href="LICENSE.md">
<link rel="alternate" href="README.md">
<link rel="help" href="https://github.com/s9a/dew">
<link rel="canonical" href="https://s9a.page/dew/">
<link rel="help" href="https://github.com/s9a/dew">
<link rel="home" href="https://s9a.page">
<meta name=twitter:title content="dew the cascade">
<meta name=twitter:site content=@colorfulcode>
<meta name=twitter:creator content="@ryanve">
<meta name=twitter:card content="summary">
<meta property=og:image content="lunar.png">
<meta property=og:image:alt content="lunar droplet">
<meta property=og:image content="solar.png">
<meta property=og:image:alt content="solar droplet">
<meta property=og:description content="cascading color mode">
<article>
<header>
<a href="icon.svg" title="drop">
<img data-drop src="icon.svg" alt="drop" width="180" height="180">
</a>
<h1 data-oral>dew</h1>
<dfn><a href>dew</a></dfn>
<time datetime="2021-07">fresh</time> color
<samp class="dew-media">
<data hidden value="light">in solar mode</data>
<data hidden value="dark">in lunar mode</data>
</samp>
</header>
<nav aria-label="github">
<a class="dew-polar" href="https://github.com/s9a/dew/blob/master/dew.css">css</a><br>
<a class="dew-polar" href="https://github.com/s9a/dew/blob/master/diy.css">diy</a><br>
<a class="dew-polar" href="https://github.com/s9a/dew/blob/master/index.html">html</a><br>
<a class="dew-media" href="https://github.com/s9a/dew">git<wbr>hub</a>
</nav>
<figure id="cascade">
<figcaption>
<a href="dew.css">cascade</a>
</figcaption>
<figure aria-label="media">
<code class="dew-media">.dew-media</code> matches
<a class="dew-media" rel="help" href="https://mdn.io/prefers-color-scheme">media</a>
</figure>
<figure aria-label="polar">
<code class="dew-polar">.dew-polar</code> opposes
<a class="dew-media" rel="help" href="https://mdn.io/prefers-color-scheme">media</a>
</figure>
<figure aria-label="solar">
<code class="dew-solar">.dew-solar</code> depicts
<data value="hotpink" class="dew-solar">light</data>
</figure>
<figure aria-label="lunar">
<code class="dew-lunar">.dew-lunar</code> depicts
<data value="deeppink" class="dew-lunar">dark</data>
</figure>
<figure aria-label="shift">
<code class="dew-shift">.dew-shift</code> transition
</figure>
<figure aria-label="ion">
<code class="dew-ion">.dew-ion</code> select<b>ion</b>
<figure aria-label="rim">
<code class="dew-rim">.dew-rim</code> border
</figure>
<figure aria-label="tab">
<code class="dew-tab" tabindex="0">.dew-tab</code> focus
</figure>
<figure aria-label="wet">
<code class="dew-wet">.dew-wet</code> scope
</figure>
<figure aria-label="any">
<a class="dew-hyper" rel="help" href="https://mdn.io/any-link">.dew-hyper</a> state
</figure>
<figure aria-label="field">
<code class="dew-field">.dew-field</code> state
</figure>
<figure aria-label="dry" hidden>
<code class="dew-dry">.dew-dry</code> <a rel="help" href="https://mdn.io/unset">undews</a>
</figure>
</figure>
<figure id="custom">
<figcaption>
<a href="https://contrast-ratio.com/#deeppink-on-hotpink"><i class="dew-polar">custom</i>eyes</a>
</figcaption>
<figure aria-label="css">
<code><var>--dew-shift</var>: <a rel="help" href="https://mdn.io/css-transition">none</a>;</code><br>
<code><var>--dew-slick</var>: misty<wbr>rose;</code><br>
<code><var>--dew-slime</var>: dark<wbr>violet;</code><br>
<code><strong><var>--dew-solar</var>: orchid</code></strong><br>
<code><strong><var>--dew-lunar</var>: #111</code></strong><br>
<code><var>--dew-locus</var>: current<wbr>Color;</code><br>
<code><var>--dew-focus</var>: invert<wbr>(100%);</code><br>
<code><var>--dew-hover</var>: <a rel="help" href="https://mdn.io/css-filter">none</a>;</code><br>
<code><var>--dew-vapor</var>: opacity<wbr>(60%);</code><br>
</figure>
</figure>
<figure id="files">
<figcaption>files</figcaption>
<ul>
<li><a href="dew.css">dew.css</a> is the library
<li><a href="diy.css">diy.css</a> is for cascading customization
<li><a href="icon.svg">icon.svg</a> recognizes <code>media</code>
<li><a href="index.html">index.html</a> tags are semantic
<li><a href="surface.css">surface.css</a> styles local tags
</ul>
</figure>
<figure id="fields">
<figcaption>fields</figcaption>
<fieldset class="dew-field dew-rim">
<legend data-oral>noop</legend>
<fieldset class="dew-field">
<input class="dew-media dew-field" value="...">
<button class="dew-media dew-field">enabled</button>
</fieldset>
<fieldset class="dew-field">
<input class="dew-field dew-polar" value="...">
<button class="dew-field dew-polar ">enabled</button>
</fieldset>
<fieldset class="dew-field" disabled>
<input class="dew-field dew-polar" value="...">
<button class="dew-field dew-polar">disabled</button>
</fieldset>
<fieldset class="dew-field" disabled>
<input class="dew-field dew-media " value="...">
<button class="dew-field dew-media">disabled</button>
</fieldset>
</fieldset>
<details open>
<summary>support</summary>
<a rel="help" href="https://mdn.io/:disabled"><code>:disabled</code></a>
</details>
<details open hidden>
<summary>fyi</summary>
disabling a <code>fieldset</code> disables controls within.
<code>dew-field</code> handles semantic <code>disabled</code> states wherever.
</details>
<details open hidden>
<summary>deets</summary>
<i>open</i>
</details>
</figure>
<figure id="focus" class="dew-wet dew-tab">
<figcaption>focus</figcaption>
<a tabindex="0"><code>dew-tab</code> invert</a>
</figure>
<figure id="hyperlinks" class="dew-wet dew-tab dew-hyper">
<figcaption>hyper<wbr>links</figcaption>
<a href="https://s9a.page">dew from above</a>
<ul>
<li><code>dew-wet</code> matches
<li><code>dew-tab</code> focuses
<li><code>dew-hyper</code> enhances
</ul>
</figure>
<figure id="standard" class="dew-wet dew-tab dew-field dew-rim">
<figcaption>standard</figcaption>
<textarea aria-label="class">dew-media dew-wet dew-tab dew-ion</textarea>
</figure>
<figure id="enhanced" class="dew-wet dew-tab dew-field dew-rim">
<figcaption>enhanced</figcaption>
<textarea aria-label="class">dew-media dew-wet dew-tab dew-ion dew-hyper dew-shift dew-diy</textarea>
</figure>
<figure id="approach" class="dew-wet dew-tab dew-hyper">
<figcaption>approach</figcaption>
<ul>
<li>web standards
<li>inclusive design
<li>loose coupling
<li>low <a rel="help" href="https://mdn.io/specificity">specificity</a>
<li>css performance</li>
</ul>
</figure>
<nav id="help" aria-label="help">
<a rel="help" class="dew-media" href="https://mdn.io/inspector">inspect</a>
</nav>
<figure id="faq">
<figcaption>faq</figcaption>
<details open>
<summary>topic</summary>
<a href="https://github.com/s9a/dew/issues">open</a>
</details>
</figure>
<footer id="design">
<h2><a href="https://s9a.page">design</a></h2>
<address>
<a class="dew-polar" href="https://twitter.com/colorfulcode"><kbd>@ </kbd></a>
<a class="dew-polar" href=".." aria-label="level"><kbd>..</kbd></a>
</address>
</footer>
</article>