vowel 0.6.2 → 0.6.4

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,237 @@
1
+ /*
2
+ * Syntax highlighting theme for code blocks (rehype-highlight), based on
3
+ * highlight.js's GitHub theme. Light by default, dark under
4
+ * prefers-color-scheme - see highlight.js/styles/github.css and
5
+ * github-dark.css for the source themes this was combined from.
6
+ */
7
+ pre code.hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 1em
11
+ }
12
+ code.hljs {
13
+ padding: 3px 5px
14
+ }
15
+ /*!
16
+ Theme: GitHub
17
+ Description: Light theme as seen on github.com
18
+ Author: github.com
19
+ Maintainer: @Hirse
20
+ Updated: 2021-05-15
21
+
22
+ Outdated base version: https://github.com/primer/github-syntax-light
23
+ Current colors taken from GitHub's CSS
24
+ */
25
+ .hljs {
26
+ color: #24292e;
27
+ background: #ffffff
28
+ }
29
+ .hljs-doctag,
30
+ .hljs-keyword,
31
+ .hljs-meta .hljs-keyword,
32
+ .hljs-template-tag,
33
+ .hljs-template-variable,
34
+ .hljs-type,
35
+ .hljs-variable.language_ {
36
+ /* prettylights-syntax-keyword */
37
+ color: #d73a49
38
+ }
39
+ .hljs-title,
40
+ .hljs-title.class_,
41
+ .hljs-title.class_.inherited__,
42
+ .hljs-title.function_ {
43
+ /* prettylights-syntax-entity */
44
+ color: #6f42c1
45
+ }
46
+ .hljs-attr,
47
+ .hljs-attribute,
48
+ .hljs-literal,
49
+ .hljs-meta,
50
+ .hljs-number,
51
+ .hljs-operator,
52
+ .hljs-variable,
53
+ .hljs-selector-attr,
54
+ .hljs-selector-class,
55
+ .hljs-selector-id {
56
+ /* prettylights-syntax-constant */
57
+ color: #005cc5
58
+ }
59
+ .hljs-regexp,
60
+ .hljs-string,
61
+ .hljs-meta .hljs-string {
62
+ /* prettylights-syntax-string */
63
+ color: #032f62
64
+ }
65
+ .hljs-built_in,
66
+ .hljs-symbol {
67
+ /* prettylights-syntax-variable */
68
+ color: #e36209
69
+ }
70
+ .hljs-comment,
71
+ .hljs-code,
72
+ .hljs-formula {
73
+ /* prettylights-syntax-comment */
74
+ color: #6a737d
75
+ }
76
+ .hljs-name,
77
+ .hljs-quote,
78
+ .hljs-selector-tag,
79
+ .hljs-selector-pseudo {
80
+ /* prettylights-syntax-entity-tag */
81
+ color: #22863a
82
+ }
83
+ .hljs-subst {
84
+ /* prettylights-syntax-storage-modifier-import */
85
+ color: #24292e
86
+ }
87
+ .hljs-section {
88
+ /* prettylights-syntax-markup-heading */
89
+ color: #005cc5;
90
+ font-weight: bold
91
+ }
92
+ .hljs-bullet {
93
+ /* prettylights-syntax-markup-list */
94
+ color: #735c0f
95
+ }
96
+ .hljs-emphasis {
97
+ /* prettylights-syntax-markup-italic */
98
+ color: #24292e;
99
+ font-style: italic
100
+ }
101
+ .hljs-strong {
102
+ /* prettylights-syntax-markup-bold */
103
+ color: #24292e;
104
+ font-weight: bold
105
+ }
106
+ .hljs-addition {
107
+ /* prettylights-syntax-markup-inserted */
108
+ color: #22863a;
109
+ background-color: #f0fff4
110
+ }
111
+ .hljs-deletion {
112
+ /* prettylights-syntax-markup-deleted */
113
+ color: #b31d28;
114
+ background-color: #ffeef0
115
+ }
116
+ .hljs-char.escape_,
117
+ .hljs-link,
118
+ .hljs-params,
119
+ .hljs-property,
120
+ .hljs-punctuation,
121
+ .hljs-tag {
122
+ /* purposely ignored */
123
+
124
+ }
125
+
126
+ @media (prefers-color-scheme: dark) {
127
+ /*!
128
+ Theme: GitHub Dark
129
+ Description: Dark theme as seen on github.com
130
+ Author: github.com
131
+ Maintainer: @Hirse
132
+ Updated: 2021-05-15
133
+
134
+ Outdated base version: https://github.com/primer/github-syntax-dark
135
+ Current colors taken from GitHub's CSS
136
+ */
137
+ .hljs {
138
+ color: #c9d1d9;
139
+ background: #0d1117
140
+ }
141
+ .hljs-doctag,
142
+ .hljs-keyword,
143
+ .hljs-meta .hljs-keyword,
144
+ .hljs-template-tag,
145
+ .hljs-template-variable,
146
+ .hljs-type,
147
+ .hljs-variable.language_ {
148
+ /* prettylights-syntax-keyword */
149
+ color: #ff7b72
150
+ }
151
+ .hljs-title,
152
+ .hljs-title.class_,
153
+ .hljs-title.class_.inherited__,
154
+ .hljs-title.function_ {
155
+ /* prettylights-syntax-entity */
156
+ color: #d2a8ff
157
+ }
158
+ .hljs-attr,
159
+ .hljs-attribute,
160
+ .hljs-literal,
161
+ .hljs-meta,
162
+ .hljs-number,
163
+ .hljs-operator,
164
+ .hljs-variable,
165
+ .hljs-selector-attr,
166
+ .hljs-selector-class,
167
+ .hljs-selector-id {
168
+ /* prettylights-syntax-constant */
169
+ color: #79c0ff
170
+ }
171
+ .hljs-regexp,
172
+ .hljs-string,
173
+ .hljs-meta .hljs-string {
174
+ /* prettylights-syntax-string */
175
+ color: #a5d6ff
176
+ }
177
+ .hljs-built_in,
178
+ .hljs-symbol {
179
+ /* prettylights-syntax-variable */
180
+ color: #ffa657
181
+ }
182
+ .hljs-comment,
183
+ .hljs-code,
184
+ .hljs-formula {
185
+ /* prettylights-syntax-comment */
186
+ color: #8b949e
187
+ }
188
+ .hljs-name,
189
+ .hljs-quote,
190
+ .hljs-selector-tag,
191
+ .hljs-selector-pseudo {
192
+ /* prettylights-syntax-entity-tag */
193
+ color: #7ee787
194
+ }
195
+ .hljs-subst {
196
+ /* prettylights-syntax-storage-modifier-import */
197
+ color: #c9d1d9
198
+ }
199
+ .hljs-section {
200
+ /* prettylights-syntax-markup-heading */
201
+ color: #1f6feb;
202
+ font-weight: bold
203
+ }
204
+ .hljs-bullet {
205
+ /* prettylights-syntax-markup-list */
206
+ color: #f2cc60
207
+ }
208
+ .hljs-emphasis {
209
+ /* prettylights-syntax-markup-italic */
210
+ color: #c9d1d9;
211
+ font-style: italic
212
+ }
213
+ .hljs-strong {
214
+ /* prettylights-syntax-markup-bold */
215
+ color: #c9d1d9;
216
+ font-weight: bold
217
+ }
218
+ .hljs-addition {
219
+ /* prettylights-syntax-markup-inserted */
220
+ color: #aff5b4;
221
+ background-color: #033a16
222
+ }
223
+ .hljs-deletion {
224
+ /* prettylights-syntax-markup-deleted */
225
+ color: #ffdcd7;
226
+ background-color: #67060c
227
+ }
228
+ .hljs-char.escape_,
229
+ .hljs-link,
230
+ .hljs-params,
231
+ .hljs-property,
232
+ .hljs-punctuation,
233
+ .hljs-tag {
234
+ /* purposely ignored */
235
+
236
+ }
237
+ }
@@ -1,7 +1,5 @@
1
1
  @layer reset, typography;
2
2
 
3
- /* TODO remove unset color */
4
-
5
3
  @layer typography {
6
4
  html {
7
5
  font-family:
@@ -102,10 +100,6 @@
102
100
  /* margin: 1rem 0 1rem 3rem; */
103
101
  }
104
102
 
105
- li {
106
- margin-bottom: 0.5rem;
107
- }
108
-
109
103
  /* Extra selector for specificity, see below */
110
104
  li>p:not(:last-child) {
111
105
  margin: 0;
@@ -145,28 +139,11 @@
145
139
  text-decoration: none;
146
140
  }
147
141
 
148
- li.checked,
149
- li.unchecked {
150
- padding-left: 0.8rem;
151
- }
152
-
153
142
  figcaption {
154
143
  margin-top: 0.5rem;
155
144
  font-style: italic;
156
145
  }
157
146
 
158
- article+article {
159
- margin-top: 1rem;
160
- }
161
-
162
- article a {
163
- color: unset;
164
- }
165
-
166
- article a:hover {
167
- color: unset;
168
- }
169
-
170
147
  article h2 {
171
148
  margin-top: 2rem;
172
149
  }
@@ -187,44 +164,18 @@
187
164
  padding-right: 0;
188
165
  }
189
166
 
190
- :where(pre,
191
- blockquote,
192
- dl,
193
- figure,
194
- table,
195
- p,
196
- ul,
197
- ol,
198
- form,
199
- article,
200
- section,
201
- aside,
202
- time,
203
- dl):not(:last-child) {
204
- margin-bottom: 2.5rem;
205
- }
206
-
207
167
  hr {
208
168
  margin-top: 3rem;
209
169
  margin-bottom: 3.5rem;
210
170
  border-width: 0px;
211
171
  }
212
172
 
213
- dt {
214
- font-weight: 500;
215
- }
216
-
217
173
  time {
218
174
  display: block;
219
175
  }
220
176
 
221
- time a {
222
- color: unset;
223
- }
224
-
225
177
  [aria-label=Breadcrumbs] a {
226
178
  font-size: 0.8em;
227
- color: unset;
228
179
  }
229
180
 
230
181
  [aria-label=Breadcrumbs]>a:not(:last-child):after {
@@ -236,31 +187,23 @@
236
187
  text-wrap: nowrap;
237
188
  }
238
189
 
239
- .icon {
240
- height: 1em;
241
- width: 1em;
242
- }
243
-
244
190
  header a[rel=home] {
245
- color: unset;
246
191
  font-weight: 900;
247
192
  font-size: 2.8em;
193
+ text-box-trim: trim-both;
194
+ text-box-edge: cap alphabetic;
248
195
  }
249
196
 
250
- header .logo {
251
- display: inline-block;
252
- height: 1em;
253
- width: 1em;
254
- }
255
-
256
- header .tagline {
257
- font-weight: 500;
197
+ header #tagline {
198
+ font-weight: 600;
199
+ font-size: 2.5em;
200
+ text-box-trim: trim-both;
201
+ text-box-edge: cap alphabetic;
258
202
  }
259
203
 
260
204
  nav a:where([aria-current='page'], [aria-current='true']),
261
205
  nav a:where([aria-current='page'], [aria-current='true']):hover {
262
206
  text-decoration: none;
263
- color: unset;
264
207
  cursor: default;
265
208
  }
266
209
 
@@ -0,0 +1,119 @@
1
+ :root {
2
+
3
+ --accent-00: oklch(1 0.030170139248992922 90.24115342246611);
4
+ --accent-01: oklch(0.9536456092315344 0.030170139248992922 90.24115342246611);
5
+ --accent-02: oklch(0.8924089806120152 0.08826670827983002 90.24115342246611);
6
+ --accent-03: oklch(0.844618 0.14828222329121668 90.24115342246611);
7
+ --accent-04: oklch(0.7854571400878614 0.18029922017024758 90.24115342246611);
8
+ --accent-05: oklch(0.7110252520511524 0.16670758498691426 90.24115342246611);
9
+ --accent-06: oklch(0.6307554338482158 0.15012908092125463 90.24115342246611);
10
+ --accent-07: oklch(0.5558748958282139 0.12696710517027307 90.24115342246611);
11
+ --accent-08: oklch(0.4945 0.09203251189041753 90.24115342246611);
12
+ --accent-09: oklch(0.38727951482578865 0.05695363236371703 90.24115342246611);
13
+ --accent-10: oklch(0.24916012628129958 0.03201699687903088 90.24115342246611);
14
+ --accent-11: oklch(0.11046170738630641 0.01528852137867617 90.24115342246611);
15
+
16
+
17
+ --danger-00: oklch(1 0.037138530373020395 -25.754653176550182);
18
+ --danger-01: oklch(0.9536456092315344 0.037138530373020395 -25.754653176550182);
19
+ --danger-02: oklch(0.8924089806120152 0.0908858065656466 -25.754653176550182);
20
+ --danger-03: oklch(0.844618 0.15656415898125758 -25.754653176550182);
21
+ --danger-04: oklch(0.7854571400878614 0.2115084537674326 -25.754653176550182);
22
+ --danger-05: oklch(0.7110252520511524 0.250891532499265 -25.754653176550182);
23
+ --danger-06: oklch(0.6307554338482158 0.22556107485827934 -25.754653176550182);
24
+ --danger-07: oklch(0.5558748958282139 0.1952478556703251 -25.754653176550182);
25
+ --danger-08: oklch(0.4945 0.15069063355165543 -25.754653176550182);
26
+ --danger-09: oklch(0.38727951482578865 0.1036689817070561 -25.754653176550182);
27
+ --danger-10: oklch(0.24916012628129958 0.058004850702477094 -25.754653176550182);
28
+ --danger-11: oklch(0.11046170738630641 0.02748297973358925 -25.754653176550182);
29
+
30
+
31
+
32
+ --info-00: oklch(1 0.032559707682643824 244.1900622367698);
33
+ --info-01: oklch(0.9536456092315344 0.032559707682643824 244.1900622367698);
34
+ --info-02: oklch(0.8924089806120152 0.07422782322853594 244.1900622367698);
35
+ --info-03: oklch(0.844618 0.12605888808084453 244.1900622367698);
36
+ --info-04: oklch(0.7854571400878614 0.17799411987422387 244.1900622367698);
37
+ --info-05: oklch(0.7110252520511524 0.22040488113200302 244.1900622367698);
38
+ --info-06: oklch(0.6307554338482158 0.25495777982975243 244.1900622367698);
39
+ --info-07: oklch(0.5558748958282139 0.2223980721471087 244.1900622367698);
40
+ --info-08: oklch(0.4945 0.18072995660121655 244.1900622367698);
41
+ --info-09: oklch(0.38727951482578865 0.12889889174890792 244.1900622367698);
42
+ --info-10: oklch(0.24916012628129958 0.0769636599555286 244.1900622367698);
43
+ --info-11: oklch(0.11046170738630641 0.034552898697749426 244.1900622367698);
44
+
45
+
46
+
47
+ --primary-00: oklch(1 0.033943473040194294 -82.72000000000003);
48
+ --primary-01: oklch(0.9536456092315344 0.033943473040194294 -82.72000000000003);
49
+ --primary-02: oklch(0.8924089806120152 0.07208713732898053 -82.72000000000003);
50
+ --primary-03: oklch(0.844618 0.10967407324412015 -82.72000000000003);
51
+ --primary-04: oklch(0.7854571400878614 0.14835354282702512 -82.72000000000003);
52
+ --primary-05: oklch(0.7110252520511524 0.1870407118569507 -82.72000000000003);
53
+ --primary-06: oklch(0.6307554338482158 0.2246513001779757 -82.72000000000003);
54
+ --primary-07: oklch(0.5558748958282139 0.2627985040398166 -82.72000000000003);
55
+ --primary-08: oklch(0.4945 0.297278 -82.72000000000003);
56
+ --primary-09: oklch(0.38727951482578865 0.22519086267101945 -82.72000000000003);
57
+ --primary-10: oklch(0.24916012628129958 0.1489244571729748 -82.72000000000003);
58
+ --primary-11: oklch(0.11046170738630641 0.07262669982202441 -82.72000000000003);
59
+
60
+
61
+ --secondary-00: oklch(1 0.03523506763462919 174.9674);
62
+ --secondary-01: oklch(0.9536456092315344 0.03523506763462919 174.9674);
63
+ --secondary-02: oklch(0.8924089806120152 0.12226651611616707 174.9674);
64
+ --secondary-03: oklch(0.844618 0.159299 174.9674);
65
+ --secondary-04: oklch(0.7854571400878614 0.14932563102137283 174.9674);
66
+ --secondary-05: oklch(0.7110252520511524 0.13708788342722794 174.9674);
67
+ --secondary-06: oklch(0.6307554338482158 0.12406393236537076 174.9674);
68
+ --secondary-07: oklch(0.5558748958282139 0.09651562296811833 174.9674);
69
+ --secondary-08: oklch(0.4945 0.06639390943163861 174.9674);
70
+ --secondary-09: oklch(0.38727951482578865 0.037032483883832935 174.9674);
71
+ --secondary-10: oklch(0.24916012628129958 0.02375390884349093 174.9674);
72
+ --secondary-11: oklch(0.11046170738630641 0.011400212679566413 174.9674);
73
+
74
+
75
+
76
+ --success-00: oklch(1 0.024257111887574123 148.30000439636984);
77
+ --success-01: oklch(0.9536456092315344 0.024257111887574123 148.30000439636984);
78
+ --success-02: oklch(0.8924089806120152 0.07351482341637697 148.30000439636984);
79
+ --success-03: oklch(0.844618 0.12466168066207778 148.30000439636984);
80
+ --success-04: oklch(0.7854571400878614 0.15042101659568144 148.30000439636984);
81
+ --success-05: oklch(0.7110252520511524 0.13948969668297212 148.30000439636984);
82
+ --success-06: oklch(0.6307554338482158 0.1261639047081073 148.30000439636984);
83
+ --success-07: oklch(0.5558748958282139 0.10791110186311959 148.30000439636984);
84
+ --success-08: oklch(0.4945 0.07690619317930446 148.30000439636984);
85
+ --success-09: oklch(0.38727951482578865 0.0457513376060701 148.30000439636984);
86
+ --success-10: oklch(0.24916012628129958 0.02575933593360364 148.30000439636984);
87
+ --success-11: oklch(0.11046170738630641 0.012313506052849059 148.30000439636984);
88
+
89
+
90
+
91
+ --tertiary-00: oklch(1 0.034046389815560296 2.791302501092794);
92
+ --tertiary-01: oklch(0.9536456092315344 0.034046389815560296 2.791302501092794);
93
+ --tertiary-02: oklch(0.8924089806120152 0.08421751016426371 2.791302501092794);
94
+ --tertiary-03: oklch(0.844618 0.14726059081820986 2.791302501092794);
95
+ --tertiary-04: oklch(0.7854571400878614 0.19873235540856865 2.791302501092794);
96
+ --tertiary-05: oklch(0.7110252520511524 0.23494450943888123 2.791302501092794);
97
+ --tertiary-06: oklch(0.6307554338482158 0.21174506900632417 2.791302501092794);
98
+ --tertiary-07: oklch(0.5558748958282139 0.1839025285604721 2.791302501092794);
99
+ --tertiary-08: oklch(0.4945 0.14178977136603388 2.791302501092794);
100
+ --tertiary-09: oklch(0.38727951482578865 0.09664947566806639 2.791302501092794);
101
+ --tertiary-10: oklch(0.24916012628129958 0.053320044751899345 2.791302501092794);
102
+ --tertiary-11: oklch(0.11046170738630641 0.025277009084351466 2.791302501092794);
103
+
104
+
105
+
106
+
107
+ --warning-00: oklch(1 0.033978843637678835 61.19378984733035);
108
+ --warning-01: oklch(0.9536456092315344 0.033978843637678835 61.19378984733035);
109
+ --warning-02: oklch(0.8924089806120152 0.09727044978770355 61.19378984733035);
110
+ --warning-03: oklch(0.844618 0.16243636817381144 61.19378984733035);
111
+ --warning-04: oklch(0.7854571400878614 0.19844507360799077 61.19378984733035);
112
+ --warning-05: oklch(0.7110252520511524 0.18312495283983363 61.19378984733035);
113
+ --warning-06: oklch(0.6307554338482158 0.164466229970312 61.19378984733035);
114
+ --warning-07: oklch(0.5558748958282139 0.1383102018356785 61.19378984733035);
115
+ --warning-08: oklch(0.4945 0.10117462382028729 61.19378984733035);
116
+ --warning-09: oklch(0.38727951482578865 0.06390117110643204 61.19378984733035);
117
+ --warning-10: oklch(0.24916012628129958 0.03600870543417937 61.19378984733035);
118
+ --warning-11: oklch(0.11046170738630641 0.017183679327988338 61.19378984733035);
119
+ }
package/utils.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import {fromMarkdown} from 'mdast-util-from-markdown'
2
2
  import {toHast} from 'mdast-util-to-hast'
3
- import {toHtml} from 'hast-util-to-html'
4
3
  import path from "node:path"
5
4
  import { randomUUID } from "node:crypto"
6
5
 
@@ -75,6 +74,7 @@ export function toTitleCase(string) {
75
74
  export function createHashtagPage(tag) {
76
75
  const markdown = `# ${toTitleCase(tag)}\n\n/**?tag=${tag}`
77
76
  const mdast = fromMarkdown(markdown)
77
+ const hast = toHast(mdast)
78
78
 
79
- return mdast
79
+ return hast
80
80
  }