@allons-y/course-kit 0.0.0-stage → 0.2.0

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.
Files changed (137) hide show
  1. package/LICENSE +373 -0
  2. package/README.md +90 -2
  3. package/assets/fonts/instrument-sans-italic-var.woff2 +0 -0
  4. package/assets/fonts/instrument-sans-var.woff2 +0 -0
  5. package/assets/fonts/pt-mono.woff2 +0 -0
  6. package/assets/scripts/copy.js +99 -0
  7. package/assets/scripts/deck.js +161 -0
  8. package/assets/scripts/email.js +19 -0
  9. package/assets/scripts/practice.js +545 -0
  10. package/assets/scripts/theme-panel.js +647 -0
  11. package/assets/scripts/theme-restore.js +17 -0
  12. package/assets/styles/base.css +2091 -0
  13. package/assets/styles/deck.css +968 -0
  14. package/assets/styles/font.css +36 -0
  15. package/assets/styles/notes.css +137 -0
  16. package/assets/styles/print.css +428 -0
  17. package/assets/styles/semantics.css +101 -0
  18. package/components/practice/check-controls.webc +50 -0
  19. package/components/practice/choice-list.webc +86 -0
  20. package/components/practice/cite-panel.webc +108 -0
  21. package/components/practice/practice-figure.webc +47 -0
  22. package/components/practice/practice-fill.webc +154 -0
  23. package/components/practice/practice-grid.webc +82 -0
  24. package/components/practice/practice-judge.webc +165 -0
  25. package/components/practice/practice-match.webc +178 -0
  26. package/components/practice/practice-question.webc +141 -0
  27. package/components/practice/practice-selfcheck.webc +40 -0
  28. package/components/practice/practice-terms.webc +95 -0
  29. package/components/practice/practice-tree.webc +91 -0
  30. package/components/practice/practice-worksheet.webc +369 -0
  31. package/components/site/copyright.webc +13 -0
  32. package/components/site/course-documents.webc +27 -0
  33. package/components/site/course-now.webc +393 -0
  34. package/components/site/course-summary.webc +136 -0
  35. package/components/site/demo-weeks.webc +91 -0
  36. package/components/site/glossary-entry.webc +31 -0
  37. package/components/site/glossary-panel.webc +1482 -0
  38. package/components/site/glossary.webc +45 -0
  39. package/components/site/grading.webc +50 -0
  40. package/components/site/instructor.webc +432 -0
  41. package/components/site/masthead.webc +147 -0
  42. package/components/site/nav-links.webc +174 -0
  43. package/components/site/policies.webc +17 -0
  44. package/components/site/practice-index.webc +31 -0
  45. package/components/site/schedule-overview.webc +145 -0
  46. package/components/site/schedule-weeks.webc +589 -0
  47. package/components/site/site-footer.webc +119 -0
  48. package/components/site/slide-timetable.webc +152 -0
  49. package/components/site/syllabus.webc +370 -0
  50. package/components/ui/arrow-link.webc +19 -0
  51. package/components/ui/assigned-list.webc +101 -0
  52. package/components/ui/callout.webc +11 -0
  53. package/components/ui/card-list.webc +124 -0
  54. package/components/ui/codepen-embed.webc +123 -0
  55. package/components/ui/download-button.webc +49 -0
  56. package/components/ui/eyebrow.webc +18 -0
  57. package/components/ui/icons/github.webc +6 -0
  58. package/components/ui/icons/google.webc +9 -0
  59. package/components/ui/link-list.webc +130 -0
  60. package/components/ui/link-section.webc +40 -0
  61. package/components/ui/meeting-card.webc +73 -0
  62. package/components/ui/meeting-decks.webc +38 -0
  63. package/components/ui/table-rubric.webc +251 -0
  64. package/components/ui/today-link.webc +43 -0
  65. package/components/ui/today-marker.webc +149 -0
  66. package/components/ui/week-block.webc +53 -0
  67. package/examples/starter/_data/course.json +20 -0
  68. package/examples/starter/_data/dates.json +16 -0
  69. package/examples/starter/_data/grading.json +6 -0
  70. package/examples/starter/_data/instructor.json +7 -0
  71. package/examples/starter/_data/policies.json +9 -0
  72. package/examples/starter/_data/scale.json +8 -0
  73. package/examples/starter/_data/schedule.json +22 -0
  74. package/examples/starter/_data/theme.json +17 -0
  75. package/examples/starter/content/index.webc +12 -0
  76. package/examples/starter/content/schedule.webc +12 -0
  77. package/examples/starter/content/slides/index.11tydata.js +5 -0
  78. package/examples/starter/content/slides/index.webc +12 -0
  79. package/examples/starter/content/slides/week-1-day-1.md +40 -0
  80. package/examples/starter/eleventy.config.js +8 -0
  81. package/glue/deck-notes.data.js +41 -0
  82. package/glue/deck-notes.webc +32 -0
  83. package/glue/lesson-day.data.js +17 -0
  84. package/glue/lesson-day.webc +0 -0
  85. package/glue/lesson-plans.data.js +13 -0
  86. package/glue/lesson-plans.webc +2 -0
  87. package/index.js +6 -0
  88. package/layouts/base.webc +79 -0
  89. package/layouts/deck.webc +46 -0
  90. package/layouts/demo.webc +16 -0
  91. package/layouts/document.webc +10 -0
  92. package/layouts/lesson-detail.webc +109 -0
  93. package/layouts/lesson.webc +71 -0
  94. package/layouts/notes.webc +23 -0
  95. package/layouts/worksheet.webc +52 -0
  96. package/lib/assets.js +42 -0
  97. package/lib/bundles.js +79 -0
  98. package/lib/check.js +110 -0
  99. package/lib/components.js +19 -0
  100. package/lib/copy.js +656 -0
  101. package/lib/data/build.js +22 -0
  102. package/lib/data/fonts.js +16 -0
  103. package/lib/data/glossary.js +304 -0
  104. package/lib/data/index.js +8 -0
  105. package/lib/data/lessons.js +173 -0
  106. package/lib/data/project.js +22 -0
  107. package/lib/data/read.js +61 -0
  108. package/lib/data/site.js +70 -0
  109. package/lib/data/term.js +80 -0
  110. package/lib/extensions.js +70 -0
  111. package/lib/files.js +14 -0
  112. package/lib/filters.js +584 -0
  113. package/lib/fit.js +106 -0
  114. package/lib/glue.js +26 -0
  115. package/lib/lesson-materials.js +66 -0
  116. package/lib/markdown.js +568 -0
  117. package/lib/minify.js +53 -0
  118. package/lib/paths.js +5 -0
  119. package/lib/pdf.js +134 -0
  120. package/lib/plugin.js +231 -0
  121. package/lib/plugins.js +34 -0
  122. package/lib/postcss.js +93 -0
  123. package/lib/theme-server.js +88 -0
  124. package/lib/theme.js +185 -0
  125. package/lib/worksheet-dialect.js +415 -0
  126. package/lib/worksheets.js +276 -0
  127. package/package.json +119 -4
  128. package/schemas/course.schema.json +161 -0
  129. package/schemas/dates.schema.json +165 -0
  130. package/schemas/grading.schema.json +59 -0
  131. package/schemas/instructor.schema.json +76 -0
  132. package/schemas/policies.schema.json +90 -0
  133. package/schemas/project.schema.json +209 -0
  134. package/schemas/scale.schema.json +68 -0
  135. package/schemas/schedule.schema.json +260 -0
  136. package/schemas/theme.schema.json +704 -0
  137. package/schemas/worksheet.schema.json +449 -0
@@ -0,0 +1,704 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/allonsy-studio/course-kit/schemas/theme.schema.json",
4
+ "title": "Course theme",
5
+ "description": "Color overrides for the course site and its slide decks. Every key is optional; anything left out uses the package default. See docs/tokens.md.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "$schema": {
10
+ "type": "string"
11
+ },
12
+ "page": {
13
+ "$ref": "#/$defs/color",
14
+ "description": "Page background. CSS: --color-page"
15
+ },
16
+ "surface": {
17
+ "$ref": "#/$defs/color",
18
+ "description": "Raised or alternate surface: cards, table headers, code. CSS: --color-surface"
19
+ },
20
+ "surface-subtle": {
21
+ "$ref": "#/$defs/color",
22
+ "description": "Faint surface tint. CSS: --color-surface-subtle"
23
+ },
24
+ "surface-overlay": {
25
+ "$ref": "#/$defs/color",
26
+ "description": "Popovers and menus. CSS: --color-surface-overlay"
27
+ },
28
+ "surface-accent": {
29
+ "$ref": "#/$defs/color",
30
+ "description": "Accent-tinted wash, light enough for muted and accent text to stay at 7:1. CSS: --color-surface-accent"
31
+ },
32
+ "surface-accent-secondary": {
33
+ "$ref": "#/$defs/color",
34
+ "description": "Wayfinding wash: today, the current week. CSS: --color-surface-accent-secondary"
35
+ },
36
+ "table-header": {
37
+ "$ref": "#/$defs/color",
38
+ "description": "Table header cells. CSS: --color-table-header"
39
+ },
40
+ "surface-warning": {
41
+ "$ref": "#/$defs/color",
42
+ "description": "Warning panel background. CSS: --color-surface-warning"
43
+ },
44
+ "text": {
45
+ "$ref": "#/$defs/color",
46
+ "description": "Body text. CSS: --color-text"
47
+ },
48
+ "text-muted": {
49
+ "$ref": "#/$defs/color",
50
+ "description": "Secondary text. CSS: --color-text-muted"
51
+ },
52
+ "border": {
53
+ "$ref": "#/$defs/color",
54
+ "description": "Lines, rules and borders. CSS: --color-border"
55
+ },
56
+ "border-accent": {
57
+ "$ref": "#/$defs/color",
58
+ "description": "Accent-tinted line. CSS: --color-border-accent"
59
+ },
60
+ "accent": {
61
+ "$ref": "#/$defs/color",
62
+ "description": "Brand color: fills, buttons, rules, the masthead wash. CSS: --color-accent"
63
+ },
64
+ "accent-text": {
65
+ "$ref": "#/$defs/color",
66
+ "description": "Brand color for type, dark enough to read. CSS: --color-accent-text"
67
+ },
68
+ "accent-strong": {
69
+ "$ref": "#/$defs/color",
70
+ "description": "Brand color for decorative marks: the text tone in light mode, the fill in dark. CSS: --color-accent-strong"
71
+ },
72
+ "on-accent": {
73
+ "$ref": "#/$defs/color",
74
+ "description": "Text on a brand-color fill. CSS: --color-on-accent"
75
+ },
76
+ "accent-fill-hover": {
77
+ "$ref": "#/$defs/color",
78
+ "description": "Solid brand fill, hovered, under on-accent text. CSS: --color-accent-fill-hover"
79
+ },
80
+ "accent-hover": {
81
+ "$ref": "#/$defs/color",
82
+ "description": "Brand fill, hovered. CSS: --color-accent-hover"
83
+ },
84
+ "accent-active": {
85
+ "$ref": "#/$defs/color",
86
+ "description": "Brand fill, pressed. CSS: --color-accent-active"
87
+ },
88
+ "accent-secondary": {
89
+ "$ref": "#/$defs/color",
90
+ "description": "Wayfinding color: progress, section bars, the current location, highlighted code. CSS: --color-accent-secondary"
91
+ },
92
+ "on-accent-secondary": {
93
+ "$ref": "#/$defs/color",
94
+ "description": "Text on a wayfinding-color fill. CSS: --color-on-accent-secondary"
95
+ },
96
+ "link": {
97
+ "$ref": "#/$defs/color",
98
+ "description": "Links. CSS: --color-link"
99
+ },
100
+ "link-hover": {
101
+ "$ref": "#/$defs/color",
102
+ "description": "Links, hovered. CSS: --color-link-hover"
103
+ },
104
+ "link-focus": {
105
+ "$ref": "#/$defs/color",
106
+ "description": "Links, focused. CSS: --color-link-focus"
107
+ },
108
+ "link-active": {
109
+ "$ref": "#/$defs/color",
110
+ "description": "Links, pressed. CSS: --color-link-active"
111
+ },
112
+ "success": {
113
+ "$ref": "#/$defs/color",
114
+ "description": "Success: correct answers, confirmations. CSS: --color-success"
115
+ },
116
+ "on-success": {
117
+ "$ref": "#/$defs/color",
118
+ "description": "Text on a success fill. CSS: --color-on-success"
119
+ },
120
+ "error": {
121
+ "$ref": "#/$defs/color",
122
+ "description": "Error: wrong answers, failures. CSS: --color-error"
123
+ },
124
+ "on-error": {
125
+ "$ref": "#/$defs/color",
126
+ "description": "Text on an error fill. CSS: --color-on-error"
127
+ },
128
+ "warning": {
129
+ "$ref": "#/$defs/color",
130
+ "description": "Warnings and cautions. CSS: --color-warning"
131
+ },
132
+ "warning-edge": {
133
+ "$ref": "#/$defs/color",
134
+ "description": "The edge and mark of a warning: dark enough to read as a line on the page and on a warning wash. CSS: --color-warning-edge"
135
+ },
136
+ "on-warning": {
137
+ "$ref": "#/$defs/color",
138
+ "description": "Text on a warning fill. CSS: --color-on-warning"
139
+ },
140
+ "highlight": {
141
+ "$ref": "#/$defs/color",
142
+ "description": "Highlighted (marked) text. CSS: --color-highlight"
143
+ },
144
+ "on-highlight": {
145
+ "$ref": "#/$defs/color",
146
+ "description": "Text on a highlight fill. CSS: --color-on-highlight"
147
+ },
148
+ "focus-ring": {
149
+ "$ref": "#/$defs/color",
150
+ "description": "Focus outline (solid, 2.4.13). CSS: --color-focus-ring"
151
+ },
152
+ "border-strong": {
153
+ "$ref": "#/$defs/color",
154
+ "description": "Edges of anything operable (at least 3:1). CSS: --color-border-strong"
155
+ },
156
+ "tag-test": {
157
+ "$ref": "#/$defs/color",
158
+ "description": "Glossary tag hue for tests; its tints derive from it. CSS: --color-tag-test"
159
+ },
160
+ "tag-reading": {
161
+ "$ref": "#/$defs/color",
162
+ "description": "Glossary tag hue for readings; its tints derive from it. CSS: --color-tag-reading"
163
+ },
164
+ "tag-meeting": {
165
+ "$ref": "#/$defs/color",
166
+ "description": "Glossary tag hue for class meetings; its tints derive from it. CSS: --color-tag-meeting"
167
+ },
168
+ "code": {
169
+ "$ref": "#/$defs/color",
170
+ "description": "Preformatted code text and its border. CSS: --color-code"
171
+ },
172
+ "code-surface": {
173
+ "$ref": "#/$defs/color",
174
+ "description": "Code block ground. CSS: --color-code-surface"
175
+ },
176
+ "code-text": {
177
+ "$ref": "#/$defs/color",
178
+ "description": "Code text. CSS: --color-code-text"
179
+ },
180
+ "code-keyword": {
181
+ "$ref": "#/$defs/color",
182
+ "description": "Code keywords, and the copy button. CSS: --color-code-keyword"
183
+ },
184
+ "code-string": {
185
+ "$ref": "#/$defs/color",
186
+ "description": "Code strings. CSS: --color-code-string"
187
+ },
188
+ "code-function": {
189
+ "$ref": "#/$defs/color",
190
+ "description": "Code functions. CSS: --color-code-function"
191
+ },
192
+ "code-number": {
193
+ "$ref": "#/$defs/color",
194
+ "description": "Code numbers. CSS: --color-code-number"
195
+ },
196
+ "code-comment": {
197
+ "$ref": "#/$defs/color",
198
+ "description": "Code comments. CSS: --color-code-comment"
199
+ },
200
+ "code-edge-css": {
201
+ "$ref": "#/$defs/color",
202
+ "description": "Decorative language bar: CSS. CSS: --color-code-edge-css"
203
+ },
204
+ "code-edge-js": {
205
+ "$ref": "#/$defs/color",
206
+ "description": "Decorative language bar: JavaScript. CSS: --color-code-edge-js"
207
+ },
208
+ "code-edge-html": {
209
+ "$ref": "#/$defs/color",
210
+ "description": "Decorative language bar: HTML. CSS: --color-code-edge-html"
211
+ },
212
+ "code-edge-shell": {
213
+ "$ref": "#/$defs/color",
214
+ "description": "Decorative language bar: terminal. CSS: --color-code-edge-shell"
215
+ },
216
+ "code-edge-neutral": {
217
+ "$ref": "#/$defs/color",
218
+ "description": "Decorative language bar: anything else. CSS: --color-code-edge-neutral"
219
+ },
220
+ "highlight-line": {
221
+ "$ref": "#/$defs/color",
222
+ "description": "Highlighted code line wash. CSS: --color-highlight-line"
223
+ },
224
+ "gradient": {
225
+ "type": "array",
226
+ "minItems": 1,
227
+ "maxItems": 4,
228
+ "items": {
229
+ "$ref": "#/$defs/color"
230
+ },
231
+ "description": "One to four colors for decorative gradients. CSS: --color-gradient-1 to -4, joined as --gradient-stops"
232
+ },
233
+ "site": {
234
+ "type": "object",
235
+ "additionalProperties": false,
236
+ "properties": {
237
+ "page": {
238
+ "$ref": "#/$defs/color",
239
+ "description": "Page background. CSS: --color-page"
240
+ },
241
+ "surface": {
242
+ "$ref": "#/$defs/color",
243
+ "description": "Raised or alternate surface: cards, table headers, code. CSS: --color-surface"
244
+ },
245
+ "surface-subtle": {
246
+ "$ref": "#/$defs/color",
247
+ "description": "Faint surface tint. CSS: --color-surface-subtle"
248
+ },
249
+ "surface-overlay": {
250
+ "$ref": "#/$defs/color",
251
+ "description": "Popovers and menus. CSS: --color-surface-overlay"
252
+ },
253
+ "surface-accent": {
254
+ "$ref": "#/$defs/color",
255
+ "description": "Accent-tinted wash, light enough for muted and accent text to stay at 7:1. CSS: --color-surface-accent"
256
+ },
257
+ "surface-accent-secondary": {
258
+ "$ref": "#/$defs/color",
259
+ "description": "Wayfinding wash: today, the current week. CSS: --color-surface-accent-secondary"
260
+ },
261
+ "table-header": {
262
+ "$ref": "#/$defs/color",
263
+ "description": "Table header cells. CSS: --color-table-header"
264
+ },
265
+ "surface-warning": {
266
+ "$ref": "#/$defs/color",
267
+ "description": "Warning panel background. CSS: --color-surface-warning"
268
+ },
269
+ "text": {
270
+ "$ref": "#/$defs/color",
271
+ "description": "Body text. CSS: --color-text"
272
+ },
273
+ "text-muted": {
274
+ "$ref": "#/$defs/color",
275
+ "description": "Secondary text. CSS: --color-text-muted"
276
+ },
277
+ "border": {
278
+ "$ref": "#/$defs/color",
279
+ "description": "Lines, rules and borders. CSS: --color-border"
280
+ },
281
+ "border-accent": {
282
+ "$ref": "#/$defs/color",
283
+ "description": "Accent-tinted line. CSS: --color-border-accent"
284
+ },
285
+ "accent": {
286
+ "$ref": "#/$defs/color",
287
+ "description": "Brand color: fills, buttons, rules, the masthead wash. CSS: --color-accent"
288
+ },
289
+ "accent-text": {
290
+ "$ref": "#/$defs/color",
291
+ "description": "Brand color for type, dark enough to read. CSS: --color-accent-text"
292
+ },
293
+ "accent-strong": {
294
+ "$ref": "#/$defs/color",
295
+ "description": "Brand color for decorative marks: the text tone in light mode, the fill in dark. CSS: --color-accent-strong"
296
+ },
297
+ "on-accent": {
298
+ "$ref": "#/$defs/color",
299
+ "description": "Text on a brand-color fill. CSS: --color-on-accent"
300
+ },
301
+ "accent-fill-hover": {
302
+ "$ref": "#/$defs/color",
303
+ "description": "Solid brand fill, hovered, under on-accent text. CSS: --color-accent-fill-hover"
304
+ },
305
+ "accent-hover": {
306
+ "$ref": "#/$defs/color",
307
+ "description": "Brand fill, hovered. CSS: --color-accent-hover"
308
+ },
309
+ "accent-active": {
310
+ "$ref": "#/$defs/color",
311
+ "description": "Brand fill, pressed. CSS: --color-accent-active"
312
+ },
313
+ "accent-secondary": {
314
+ "$ref": "#/$defs/color",
315
+ "description": "Wayfinding color: progress, section bars, the current location, highlighted code. CSS: --color-accent-secondary"
316
+ },
317
+ "on-accent-secondary": {
318
+ "$ref": "#/$defs/color",
319
+ "description": "Text on a wayfinding-color fill. CSS: --color-on-accent-secondary"
320
+ },
321
+ "link": {
322
+ "$ref": "#/$defs/color",
323
+ "description": "Links. CSS: --color-link"
324
+ },
325
+ "link-hover": {
326
+ "$ref": "#/$defs/color",
327
+ "description": "Links, hovered. CSS: --color-link-hover"
328
+ },
329
+ "link-focus": {
330
+ "$ref": "#/$defs/color",
331
+ "description": "Links, focused. CSS: --color-link-focus"
332
+ },
333
+ "link-active": {
334
+ "$ref": "#/$defs/color",
335
+ "description": "Links, pressed. CSS: --color-link-active"
336
+ },
337
+ "success": {
338
+ "$ref": "#/$defs/color",
339
+ "description": "Success: correct answers, confirmations. CSS: --color-success"
340
+ },
341
+ "on-success": {
342
+ "$ref": "#/$defs/color",
343
+ "description": "Text on a success fill. CSS: --color-on-success"
344
+ },
345
+ "error": {
346
+ "$ref": "#/$defs/color",
347
+ "description": "Error: wrong answers, failures. CSS: --color-error"
348
+ },
349
+ "on-error": {
350
+ "$ref": "#/$defs/color",
351
+ "description": "Text on an error fill. CSS: --color-on-error"
352
+ },
353
+ "warning": {
354
+ "$ref": "#/$defs/color",
355
+ "description": "Warnings and cautions. CSS: --color-warning"
356
+ },
357
+ "warning-edge": {
358
+ "$ref": "#/$defs/color",
359
+ "description": "The edge and mark of a warning: dark enough to read as a line on the page and on a warning wash. CSS: --color-warning-edge"
360
+ },
361
+ "on-warning": {
362
+ "$ref": "#/$defs/color",
363
+ "description": "Text on a warning fill. CSS: --color-on-warning"
364
+ },
365
+ "highlight": {
366
+ "$ref": "#/$defs/color",
367
+ "description": "Highlighted (marked) text. CSS: --color-highlight"
368
+ },
369
+ "on-highlight": {
370
+ "$ref": "#/$defs/color",
371
+ "description": "Text on a highlight fill. CSS: --color-on-highlight"
372
+ },
373
+ "focus-ring": {
374
+ "$ref": "#/$defs/color",
375
+ "description": "Focus outline (solid, 2.4.13). CSS: --color-focus-ring"
376
+ },
377
+ "border-strong": {
378
+ "$ref": "#/$defs/color",
379
+ "description": "Edges of anything operable (at least 3:1). CSS: --color-border-strong"
380
+ },
381
+ "tag-test": {
382
+ "$ref": "#/$defs/color",
383
+ "description": "Glossary tag hue for tests; its tints derive from it. CSS: --color-tag-test"
384
+ },
385
+ "tag-reading": {
386
+ "$ref": "#/$defs/color",
387
+ "description": "Glossary tag hue for readings; its tints derive from it. CSS: --color-tag-reading"
388
+ },
389
+ "tag-meeting": {
390
+ "$ref": "#/$defs/color",
391
+ "description": "Glossary tag hue for class meetings; its tints derive from it. CSS: --color-tag-meeting"
392
+ },
393
+ "code": {
394
+ "$ref": "#/$defs/color",
395
+ "description": "Preformatted code text and its border. CSS: --color-code"
396
+ },
397
+ "code-surface": {
398
+ "$ref": "#/$defs/color",
399
+ "description": "Code block ground. CSS: --color-code-surface"
400
+ },
401
+ "code-text": {
402
+ "$ref": "#/$defs/color",
403
+ "description": "Code text. CSS: --color-code-text"
404
+ },
405
+ "code-keyword": {
406
+ "$ref": "#/$defs/color",
407
+ "description": "Code keywords, and the copy button. CSS: --color-code-keyword"
408
+ },
409
+ "code-string": {
410
+ "$ref": "#/$defs/color",
411
+ "description": "Code strings. CSS: --color-code-string"
412
+ },
413
+ "code-function": {
414
+ "$ref": "#/$defs/color",
415
+ "description": "Code functions. CSS: --color-code-function"
416
+ },
417
+ "code-number": {
418
+ "$ref": "#/$defs/color",
419
+ "description": "Code numbers. CSS: --color-code-number"
420
+ },
421
+ "code-comment": {
422
+ "$ref": "#/$defs/color",
423
+ "description": "Code comments. CSS: --color-code-comment"
424
+ },
425
+ "code-edge-css": {
426
+ "$ref": "#/$defs/color",
427
+ "description": "Decorative language bar: CSS. CSS: --color-code-edge-css"
428
+ },
429
+ "code-edge-js": {
430
+ "$ref": "#/$defs/color",
431
+ "description": "Decorative language bar: JavaScript. CSS: --color-code-edge-js"
432
+ },
433
+ "code-edge-html": {
434
+ "$ref": "#/$defs/color",
435
+ "description": "Decorative language bar: HTML. CSS: --color-code-edge-html"
436
+ },
437
+ "code-edge-shell": {
438
+ "$ref": "#/$defs/color",
439
+ "description": "Decorative language bar: terminal. CSS: --color-code-edge-shell"
440
+ },
441
+ "code-edge-neutral": {
442
+ "$ref": "#/$defs/color",
443
+ "description": "Decorative language bar: anything else. CSS: --color-code-edge-neutral"
444
+ },
445
+ "highlight-line": {
446
+ "$ref": "#/$defs/color",
447
+ "description": "Highlighted code line wash. CSS: --color-highlight-line"
448
+ }
449
+ },
450
+ "description": "Overrides that apply to the site only, not the slide decks"
451
+ },
452
+ "deck": {
453
+ "type": "object",
454
+ "additionalProperties": false,
455
+ "properties": {
456
+ "page": {
457
+ "$ref": "#/$defs/color",
458
+ "description": "Page background. CSS: --color-page"
459
+ },
460
+ "surface": {
461
+ "$ref": "#/$defs/color",
462
+ "description": "Raised or alternate surface: cards, table headers, code. CSS: --color-surface"
463
+ },
464
+ "surface-subtle": {
465
+ "$ref": "#/$defs/color",
466
+ "description": "Faint surface tint. CSS: --color-surface-subtle"
467
+ },
468
+ "surface-overlay": {
469
+ "$ref": "#/$defs/color",
470
+ "description": "Popovers and menus. CSS: --color-surface-overlay"
471
+ },
472
+ "surface-accent": {
473
+ "$ref": "#/$defs/color",
474
+ "description": "Accent-tinted wash, light enough for muted and accent text to stay at 7:1. CSS: --color-surface-accent"
475
+ },
476
+ "surface-accent-secondary": {
477
+ "$ref": "#/$defs/color",
478
+ "description": "Wayfinding wash: today, the current week. CSS: --color-surface-accent-secondary"
479
+ },
480
+ "table-header": {
481
+ "$ref": "#/$defs/color",
482
+ "description": "Table header cells. CSS: --color-table-header"
483
+ },
484
+ "surface-warning": {
485
+ "$ref": "#/$defs/color",
486
+ "description": "Warning panel background. CSS: --color-surface-warning"
487
+ },
488
+ "text": {
489
+ "$ref": "#/$defs/color",
490
+ "description": "Body text. CSS: --color-text"
491
+ },
492
+ "text-muted": {
493
+ "$ref": "#/$defs/color",
494
+ "description": "Secondary text. CSS: --color-text-muted"
495
+ },
496
+ "border": {
497
+ "$ref": "#/$defs/color",
498
+ "description": "Lines, rules and borders. CSS: --color-border"
499
+ },
500
+ "border-accent": {
501
+ "$ref": "#/$defs/color",
502
+ "description": "Accent-tinted line. CSS: --color-border-accent"
503
+ },
504
+ "accent": {
505
+ "$ref": "#/$defs/color",
506
+ "description": "Brand color: fills, buttons, rules, the masthead wash. CSS: --color-accent"
507
+ },
508
+ "accent-text": {
509
+ "$ref": "#/$defs/color",
510
+ "description": "Brand color for type, dark enough to read. CSS: --color-accent-text"
511
+ },
512
+ "accent-strong": {
513
+ "$ref": "#/$defs/color",
514
+ "description": "Brand color for decorative marks: the text tone in light mode, the fill in dark. CSS: --color-accent-strong"
515
+ },
516
+ "on-accent": {
517
+ "$ref": "#/$defs/color",
518
+ "description": "Text on a brand-color fill. CSS: --color-on-accent"
519
+ },
520
+ "accent-fill-hover": {
521
+ "$ref": "#/$defs/color",
522
+ "description": "Solid brand fill, hovered, under on-accent text. CSS: --color-accent-fill-hover"
523
+ },
524
+ "accent-hover": {
525
+ "$ref": "#/$defs/color",
526
+ "description": "Brand fill, hovered. CSS: --color-accent-hover"
527
+ },
528
+ "accent-active": {
529
+ "$ref": "#/$defs/color",
530
+ "description": "Brand fill, pressed. CSS: --color-accent-active"
531
+ },
532
+ "accent-secondary": {
533
+ "$ref": "#/$defs/color",
534
+ "description": "Wayfinding color: progress, section bars, the current location, highlighted code. CSS: --color-accent-secondary"
535
+ },
536
+ "on-accent-secondary": {
537
+ "$ref": "#/$defs/color",
538
+ "description": "Text on a wayfinding-color fill. CSS: --color-on-accent-secondary"
539
+ },
540
+ "link": {
541
+ "$ref": "#/$defs/color",
542
+ "description": "Links. CSS: --color-link"
543
+ },
544
+ "link-hover": {
545
+ "$ref": "#/$defs/color",
546
+ "description": "Links, hovered. CSS: --color-link-hover"
547
+ },
548
+ "link-focus": {
549
+ "$ref": "#/$defs/color",
550
+ "description": "Links, focused. CSS: --color-link-focus"
551
+ },
552
+ "link-active": {
553
+ "$ref": "#/$defs/color",
554
+ "description": "Links, pressed. CSS: --color-link-active"
555
+ },
556
+ "success": {
557
+ "$ref": "#/$defs/color",
558
+ "description": "Success: correct answers, confirmations. CSS: --color-success"
559
+ },
560
+ "on-success": {
561
+ "$ref": "#/$defs/color",
562
+ "description": "Text on a success fill. CSS: --color-on-success"
563
+ },
564
+ "error": {
565
+ "$ref": "#/$defs/color",
566
+ "description": "Error: wrong answers, failures. CSS: --color-error"
567
+ },
568
+ "on-error": {
569
+ "$ref": "#/$defs/color",
570
+ "description": "Text on an error fill. CSS: --color-on-error"
571
+ },
572
+ "warning": {
573
+ "$ref": "#/$defs/color",
574
+ "description": "Warnings and cautions. CSS: --color-warning"
575
+ },
576
+ "warning-edge": {
577
+ "$ref": "#/$defs/color",
578
+ "description": "The edge and mark of a warning: dark enough to read as a line on the page and on a warning wash. CSS: --color-warning-edge"
579
+ },
580
+ "on-warning": {
581
+ "$ref": "#/$defs/color",
582
+ "description": "Text on a warning fill. CSS: --color-on-warning"
583
+ },
584
+ "highlight": {
585
+ "$ref": "#/$defs/color",
586
+ "description": "Highlighted (marked) text. CSS: --color-highlight"
587
+ },
588
+ "on-highlight": {
589
+ "$ref": "#/$defs/color",
590
+ "description": "Text on a highlight fill. CSS: --color-on-highlight"
591
+ },
592
+ "focus-ring": {
593
+ "$ref": "#/$defs/color",
594
+ "description": "Focus outline (solid, 2.4.13). CSS: --color-focus-ring"
595
+ },
596
+ "border-strong": {
597
+ "$ref": "#/$defs/color",
598
+ "description": "Edges of anything operable (at least 3:1). CSS: --color-border-strong"
599
+ },
600
+ "tag-test": {
601
+ "$ref": "#/$defs/color",
602
+ "description": "Glossary tag hue for tests; its tints derive from it. CSS: --color-tag-test"
603
+ },
604
+ "tag-reading": {
605
+ "$ref": "#/$defs/color",
606
+ "description": "Glossary tag hue for readings; its tints derive from it. CSS: --color-tag-reading"
607
+ },
608
+ "tag-meeting": {
609
+ "$ref": "#/$defs/color",
610
+ "description": "Glossary tag hue for class meetings; its tints derive from it. CSS: --color-tag-meeting"
611
+ },
612
+ "code": {
613
+ "$ref": "#/$defs/color",
614
+ "description": "Preformatted code text and its border. CSS: --color-code"
615
+ },
616
+ "code-surface": {
617
+ "$ref": "#/$defs/color",
618
+ "description": "Code block ground. CSS: --color-code-surface"
619
+ },
620
+ "code-text": {
621
+ "$ref": "#/$defs/color",
622
+ "description": "Code text. CSS: --color-code-text"
623
+ },
624
+ "code-keyword": {
625
+ "$ref": "#/$defs/color",
626
+ "description": "Code keywords, and the copy button. CSS: --color-code-keyword"
627
+ },
628
+ "code-string": {
629
+ "$ref": "#/$defs/color",
630
+ "description": "Code strings. CSS: --color-code-string"
631
+ },
632
+ "code-function": {
633
+ "$ref": "#/$defs/color",
634
+ "description": "Code functions. CSS: --color-code-function"
635
+ },
636
+ "code-number": {
637
+ "$ref": "#/$defs/color",
638
+ "description": "Code numbers. CSS: --color-code-number"
639
+ },
640
+ "code-comment": {
641
+ "$ref": "#/$defs/color",
642
+ "description": "Code comments. CSS: --color-code-comment"
643
+ },
644
+ "code-edge-css": {
645
+ "$ref": "#/$defs/color",
646
+ "description": "Decorative language bar: CSS. CSS: --color-code-edge-css"
647
+ },
648
+ "code-edge-js": {
649
+ "$ref": "#/$defs/color",
650
+ "description": "Decorative language bar: JavaScript. CSS: --color-code-edge-js"
651
+ },
652
+ "code-edge-html": {
653
+ "$ref": "#/$defs/color",
654
+ "description": "Decorative language bar: HTML. CSS: --color-code-edge-html"
655
+ },
656
+ "code-edge-shell": {
657
+ "$ref": "#/$defs/color",
658
+ "description": "Decorative language bar: terminal. CSS: --color-code-edge-shell"
659
+ },
660
+ "code-edge-neutral": {
661
+ "$ref": "#/$defs/color",
662
+ "description": "Decorative language bar: anything else. CSS: --color-code-edge-neutral"
663
+ },
664
+ "highlight-line": {
665
+ "$ref": "#/$defs/color",
666
+ "description": "Highlighted code line wash. CSS: --color-highlight-line"
667
+ }
668
+ },
669
+ "description": "Overrides that apply to slide decks only"
670
+ }
671
+ },
672
+ "$defs": {
673
+ "color": {
674
+ "description": "A CSS color, or a pair for light and dark mode",
675
+ "oneOf": [
676
+ {
677
+ "type": "string",
678
+ "minLength": 1,
679
+ "pattern": "^[^;{}<>]+$"
680
+ },
681
+ {
682
+ "type": "object",
683
+ "additionalProperties": false,
684
+ "required": [
685
+ "light",
686
+ "dark"
687
+ ],
688
+ "properties": {
689
+ "light": {
690
+ "type": "string",
691
+ "minLength": 1,
692
+ "pattern": "^[^;{}<>]+$"
693
+ },
694
+ "dark": {
695
+ "type": "string",
696
+ "minLength": 1,
697
+ "pattern": "^[^;{}<>]+$"
698
+ }
699
+ }
700
+ }
701
+ ]
702
+ }
703
+ }
704
+ }