rshow 0.0.0-stage → 0.0.2
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.
- package/LICENSE +21 -0
- package/README.md +50 -2
- package/dist/main.js +8500 -0
- package/package.json +48 -4
- package/skills/rshow/SKILL.md +144 -0
- package/skills/rshow/reference/cli.md +263 -0
- package/skills/rshow/reference/dashboard.md +122 -0
- package/skills/rshow/reference/mockups.md +113 -0
- package/skills/rshow/reference/page-contract.md +83 -0
- package/skills/rshow/reference/pages.md +174 -0
- package/skills/rshow/reference/poster.md +137 -0
- package/skills/rshow/reference/project-page.md +132 -0
- package/skills/rshow/reference/reports.md +158 -0
- package/skills/rshow/reference/sketch.md +78 -0
- package/skills/rshow/reference/terminal.md +148 -0
- package/skills/rshow/reference/themes.md +139 -0
- package/skills/rshow-implement/SKILL.md +112 -0
- package/skills/rshow-implement/reference/compare.md +156 -0
- package/skills/rshow-implement/reference/handoff.md +125 -0
- package/skills/rshow-implement/reference/map.md +151 -0
- package/skills/rshow-slides/SKILL.md +136 -0
- package/skills/rshow-slides/reference/layouts.md +251 -0
- package/themes/default/dashboard.css +521 -0
- package/themes/default/dashboard.js +1390 -0
- package/themes/default/deck.css +586 -0
- package/themes/default/deck.js +741 -0
- package/themes/default/example/capture.ans +1 -0
- package/themes/default/example/dashboard.html +106 -0
- package/themes/default/example/demo.cast +14 -0
- package/themes/default/example/drawing.excalidraw +377 -0
- package/themes/default/example/index.html +311 -0
- package/themes/default/example/mockup-desktop.html +331 -0
- package/themes/default/example/mockup-platforms.html +742 -0
- package/themes/default/example/mockup.html +416 -0
- package/themes/default/example/page.html +153 -0
- package/themes/default/example/poster-figure.svg +58 -0
- package/themes/default/example/poster.html +181 -0
- package/themes/default/example/project.html +229 -0
- package/themes/default/example/report.html +404 -0
- package/themes/default/example/results.csv +61 -0
- package/themes/default/example/sketch.html +178 -0
- package/themes/default/example/teaser.svg +66 -0
- package/themes/default/example/terminal.html +231 -0
- package/themes/default/example/tui.html +223 -0
- package/themes/default/fonts/IBMPlexMono-Regular-Latin1.woff2 +0 -0
- package/themes/default/fonts/IBMPlexSans-Light-Latin1.woff2 +0 -0
- package/themes/default/fonts/IBMPlexSans-Regular-Latin1.woff2 +0 -0
- package/themes/default/fonts/IBMPlexSans-SemiBold-Latin1.woff2 +0 -0
- package/themes/default/fonts/OFL.txt +93 -0
- package/themes/default/fonts.css +63 -0
- package/themes/default/index.html +573 -0
- package/themes/default/mockup.css +1078 -0
- package/themes/default/mockup.js +1433 -0
- package/themes/default/mode.js +242 -0
- package/themes/default/page.css +320 -0
- package/themes/default/poster.css +480 -0
- package/themes/default/poster.js +223 -0
- package/themes/default/project.css +482 -0
- package/themes/default/project.js +116 -0
- package/themes/default/report.css +776 -0
- package/themes/default/report.js +427 -0
- package/themes/default/sketch.css +166 -0
- package/themes/default/sketch.js +681 -0
- package/themes/default/skins/adwaita.css +669 -0
- package/themes/default/skins/custom.css +596 -0
- package/themes/default/skins/egui.css +639 -0
- package/themes/default/skins/fluent.css +1093 -0
- package/themes/default/skins/fluent.js +458 -0
- package/themes/default/skins/mac.css +647 -0
- package/themes/default/skins/material.css +692 -0
- package/themes/default/skins/sketch.css +436 -0
- package/themes/default/skins/sketch.js +494 -0
- package/themes/default/skins/wire.css +561 -0
- package/themes/default/terminal.css +292 -0
- package/themes/default/terminal.js +433 -0
- package/themes/default/theme.json +149 -0
- package/themes/default/tokens.css +255 -0
- package/themes/default/tui.css +703 -0
- package/themes/default/tui.js +472 -0
- package/worker/index.js +6918 -0
- package/worker/migrations/0001_init.sql +52 -0
- package/worker/migrations/0002_blobs.sql +5 -0
- package/worker/migrations/0003_projects.sql +31 -0
- package/worker/migrations/0004_page_data_blob.sql +19 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* rshow theme "default": fonts
|
|
3
|
+
*
|
|
4
|
+
* Self hosted IBM Plex, Latin 1 subset, woff2, no remote request. The files
|
|
5
|
+
* live in fonts/ next to this stylesheet and the URLs are relative, so the
|
|
6
|
+
* theme works from /_themes/<name>@<n>/ on the host and from a local folder.
|
|
7
|
+
*
|
|
8
|
+
* Weights: IBM Plex Sans 300, 400, 600 and IBM Plex Mono 400. That is the whole
|
|
9
|
+
* set the system uses: 300 for a display line above 54px, 400 for body and for
|
|
10
|
+
* a slide title, 600 for a small heading and for emphasis, and 400 mono for
|
|
11
|
+
* code and data.
|
|
12
|
+
*
|
|
13
|
+
* Licence: SIL Open Font License 1.1, see fonts/OFL.txt.
|
|
14
|
+
* Source: https://github.com/IBM/plex (packages @ibm/plex-sans, @ibm/plex-mono).
|
|
15
|
+
*
|
|
16
|
+
* font-display: swap keeps text readable while the file loads; the token
|
|
17
|
+
* stacks in tokens.css end in system fonts, so a missing file degrades to a
|
|
18
|
+
* local face instead of invisible text.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
@font-face {
|
|
22
|
+
font-family: "IBM Plex Sans";
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-weight: 300;
|
|
25
|
+
font-display: swap;
|
|
26
|
+
src: url("fonts/IBMPlexSans-Light-Latin1.woff2") format("woff2");
|
|
27
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153,
|
|
28
|
+
U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022,
|
|
29
|
+
U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@font-face {
|
|
33
|
+
font-family: "IBM Plex Sans";
|
|
34
|
+
font-style: normal;
|
|
35
|
+
font-weight: 400;
|
|
36
|
+
font-display: swap;
|
|
37
|
+
src: url("fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
|
|
38
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153,
|
|
39
|
+
U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022,
|
|
40
|
+
U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@font-face {
|
|
44
|
+
font-family: "IBM Plex Sans";
|
|
45
|
+
font-style: normal;
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
font-display: swap;
|
|
48
|
+
src: url("fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
|
|
49
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153,
|
|
50
|
+
U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022,
|
|
51
|
+
U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@font-face {
|
|
55
|
+
font-family: "IBM Plex Mono";
|
|
56
|
+
font-style: normal;
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
font-display: swap;
|
|
59
|
+
src: url("fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2");
|
|
60
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153,
|
|
61
|
+
U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022,
|
|
62
|
+
U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
63
|
+
}
|
|
@@ -0,0 +1,573 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>rshow theme default: preview</title>
|
|
7
|
+
<!--
|
|
8
|
+
Preview page for the rshow theme "default", which is IBM Carbon v11 in two
|
|
9
|
+
modes: "white" (light) and "g100" (dark). The mode follows the system and a
|
|
10
|
+
reader can override it; mode.js does the work and remembers the choice.
|
|
11
|
+
|
|
12
|
+
Served at both https://art.example.com/theme-default/ (newest version) and
|
|
13
|
+
https://art.example.com/_themes/default@<n>/ (one pinned version), so every link in
|
|
14
|
+
this file is relative: ./fonts.css, ./tokens.css, ./page.css and
|
|
15
|
+
example/index.html. No leading slash, no remote resource, ASCII only.
|
|
16
|
+
|
|
17
|
+
Styled by the theme itself: fonts.css, tokens.css and page.css. The style
|
|
18
|
+
block below is layout only; it sets no colour and no font face of its own.
|
|
19
|
+
|
|
20
|
+
Token values are read at load with
|
|
21
|
+
getComputedStyle(document.documentElement).getPropertyValue, so a change in
|
|
22
|
+
tokens.css shows up here without an edit to this page, and the values are read
|
|
23
|
+
again whenever mode.js reports a change.
|
|
24
|
+
-->
|
|
25
|
+
<link rel="stylesheet" href="./fonts.css">
|
|
26
|
+
<link rel="stylesheet" href="./tokens.css">
|
|
27
|
+
<link rel="stylesheet" href="./page.css">
|
|
28
|
+
<script src="./mode.js"></script>
|
|
29
|
+
<style>
|
|
30
|
+
/* Layout for the preview. Ground, text, accent, faces, sizes and radius all
|
|
31
|
+
come from tokens.css. */
|
|
32
|
+
|
|
33
|
+
.swatches {
|
|
34
|
+
display: grid;
|
|
35
|
+
gap: var(--space-04);
|
|
36
|
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
37
|
+
margin: 0 0 var(--space-06);
|
|
38
|
+
padding: 0;
|
|
39
|
+
list-style: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.swatch {
|
|
43
|
+
min-width: 0;
|
|
44
|
+
margin: 0;
|
|
45
|
+
padding: var(--space-03) var(--space-04);
|
|
46
|
+
border: 1px solid var(--border-subtle);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.chip {
|
|
50
|
+
display: block;
|
|
51
|
+
height: 40px;
|
|
52
|
+
margin: 0 0 var(--space-03);
|
|
53
|
+
border: 1px solid var(--border-subtle);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.token,
|
|
57
|
+
.value {
|
|
58
|
+
display: block;
|
|
59
|
+
font-family: var(--font-mono);
|
|
60
|
+
font-size: var(--text-2xs);
|
|
61
|
+
line-height: 1.45;
|
|
62
|
+
overflow-wrap: anywhere;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.token {
|
|
66
|
+
color: var(--fg);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.value {
|
|
70
|
+
color: var(--muted);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* A long token name in running text must wrap instead of widening the page
|
|
74
|
+
at phone width. Short ones stay in one piece. */
|
|
75
|
+
main p code,
|
|
76
|
+
main li code,
|
|
77
|
+
main footer code {
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
main p code.long {
|
|
82
|
+
white-space: normal;
|
|
83
|
+
overflow-wrap: anywhere;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.spec {
|
|
87
|
+
margin: 0 0 var(--space-05);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.spec-note {
|
|
91
|
+
max-width: none;
|
|
92
|
+
margin: 0 0 var(--space-01);
|
|
93
|
+
font-family: var(--font-mono);
|
|
94
|
+
font-size: var(--text-2xs);
|
|
95
|
+
line-height: 1.45;
|
|
96
|
+
overflow-wrap: anywhere;
|
|
97
|
+
color: var(--muted);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.sample {
|
|
101
|
+
max-width: none;
|
|
102
|
+
margin: 0;
|
|
103
|
+
line-height: 1.25;
|
|
104
|
+
overflow-wrap: anywhere;
|
|
105
|
+
color: var(--fg);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.sample.sans {
|
|
109
|
+
font-family: var(--font-sans);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.sample.mono {
|
|
113
|
+
font-family: var(--font-mono);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.s-base {
|
|
117
|
+
font-size: var(--text-base);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.s-md {
|
|
121
|
+
font-size: var(--text-md);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.s-2xl {
|
|
125
|
+
font-size: var(--text-2xl);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.s-3xl {
|
|
129
|
+
font-size: var(--text-3xl);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.s-5xl {
|
|
133
|
+
font-size: var(--text-5xl);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.layouts {
|
|
137
|
+
display: grid;
|
|
138
|
+
gap: var(--space-06);
|
|
139
|
+
grid-template-columns: minmax(0, 1fr);
|
|
140
|
+
margin: 0 0 var(--space-05);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Two up only when the frames are wide enough to read a slide in: they ask
|
|
144
|
+
for more room than the reading measure, so the grid takes it and stays
|
|
145
|
+
centred on the page. One column on a phone, which is one frame per row. */
|
|
146
|
+
@media (min-width: 1100px) {
|
|
147
|
+
.layouts {
|
|
148
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
149
|
+
width: min(1040px, calc(100vw - var(--space-08) * 2));
|
|
150
|
+
margin-left: 50%;
|
|
151
|
+
transform: translateX(-50%);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.layout {
|
|
156
|
+
min-width: 0;
|
|
157
|
+
margin: 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.layout h3 {
|
|
161
|
+
margin: 0 0 var(--space-01);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.layout p {
|
|
165
|
+
margin: 0 0 var(--space-02);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.layout .open {
|
|
169
|
+
margin: 0 0 var(--space-03);
|
|
170
|
+
font-family: var(--font-mono);
|
|
171
|
+
font-size: var(--text-2xs);
|
|
172
|
+
line-height: 1.45;
|
|
173
|
+
overflow-wrap: anywhere;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.frame {
|
|
177
|
+
min-width: 0;
|
|
178
|
+
margin: 0;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.frame iframe {
|
|
182
|
+
display: block;
|
|
183
|
+
width: 100%;
|
|
184
|
+
margin: 0;
|
|
185
|
+
border: 1px solid var(--border-subtle);
|
|
186
|
+
aspect-ratio: 16 / 9;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* A layout that reads down the page rather than across it gets a taller
|
|
190
|
+
frame: a report, a project page, a poster, a sketch and a capture. */
|
|
191
|
+
.frame.report iframe,
|
|
192
|
+
.frame.project iframe,
|
|
193
|
+
.frame.poster iframe,
|
|
194
|
+
.frame.sketch iframe,
|
|
195
|
+
.frame.terminal iframe {
|
|
196
|
+
aspect-ratio: 4 / 3;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.frame figcaption {
|
|
200
|
+
margin-top: var(--space-03);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* The usage snippet is the one block of code here, and it must be readable
|
|
204
|
+
at any width, so it wraps instead of scrolling sideways. */
|
|
205
|
+
pre {
|
|
206
|
+
white-space: pre-wrap;
|
|
207
|
+
overflow-wrap: anywhere;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@media (max-width: 480px) {
|
|
211
|
+
/* One swatch per row, so a long token name is never broken in two. */
|
|
212
|
+
.swatches {
|
|
213
|
+
grid-template-columns: 1fr;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
</style>
|
|
217
|
+
</head>
|
|
218
|
+
<body>
|
|
219
|
+
<main>
|
|
220
|
+
|
|
221
|
+
<h1>rshow theme default</h1>
|
|
222
|
+
<p class="lede">IBM Carbon v11 in two modes: <strong>white</strong> (light)
|
|
223
|
+
and <strong>g100</strong> (dark), system by default. Plex Sans for text, Plex
|
|
224
|
+
Mono for code and data, square corners, one blue for anything interactive and
|
|
225
|
+
Carbon's eight colour data palette. A 1280x720 deck canvas with twelve
|
|
226
|
+
layouts, a prose page, and a report layout with contents and side notes, then
|
|
227
|
+
the rest of the set: a project page, a poster, a dashboard, mockups in
|
|
228
|
+
platform skins, sketches, terminal captures and TUIs.</p>
|
|
229
|
+
|
|
230
|
+
<h2>Modes</h2>
|
|
231
|
+
<p>One theme, two modes. The light values sit on <code>:root</code> in
|
|
232
|
+
<code class="long">tokens.css</code>, the dark values appear under
|
|
233
|
+
<code class="long">prefers-color-scheme: dark</code> and again under
|
|
234
|
+
<code class="long">:root[data-mode="dark"]</code>. The attribute wins, so a
|
|
235
|
+
reader can go against the system. <code>mode.js</code> reads the storage key
|
|
236
|
+
<code>rshow-mode</code> (values <code>light</code>, <code>dark</code>,
|
|
237
|
+
<code>system</code>) in the head, before the body paints, and the button in
|
|
238
|
+
the corner cycles the three. A deck does the same thing on the key
|
|
239
|
+
<code>t</code>. Print is always light.</p>
|
|
240
|
+
<p class="small">The chips below follow the mode this page is in. Press the
|
|
241
|
+
button in the corner, or set your system to dark, and they change.</p>
|
|
242
|
+
|
|
243
|
+
<h2>Colour roles</h2>
|
|
244
|
+
<p>Each colour has one job and only that job. The chips follow
|
|
245
|
+
<code>tokens.css</code> and the ground <code>page.css</code> picks for your
|
|
246
|
+
system appearance, and each value under a chip is read from this page at load
|
|
247
|
+
with <code class="long">getComputedStyle(document.documentElement).getPropertyValue</code>.</p>
|
|
248
|
+
<ul class="swatches">
|
|
249
|
+
<li class="swatch">
|
|
250
|
+
<span class="chip" style="background: var(--bg)" aria-hidden="true"></span>
|
|
251
|
+
<span class="token">--bg</span>
|
|
252
|
+
<span class="value" data-token="--bg"></span>
|
|
253
|
+
</li>
|
|
254
|
+
<li class="swatch">
|
|
255
|
+
<span class="chip" style="background: var(--bg-shell)" aria-hidden="true"></span>
|
|
256
|
+
<span class="token">--bg-shell</span>
|
|
257
|
+
<span class="value" data-token="--bg-shell"></span>
|
|
258
|
+
</li>
|
|
259
|
+
<li class="swatch">
|
|
260
|
+
<span class="chip" style="background: var(--layer-01)" aria-hidden="true"></span>
|
|
261
|
+
<span class="token">--layer-01</span>
|
|
262
|
+
<span class="value" data-token="--layer-01"></span>
|
|
263
|
+
</li>
|
|
264
|
+
<li class="swatch">
|
|
265
|
+
<span class="chip" style="background: var(--layer-02)" aria-hidden="true"></span>
|
|
266
|
+
<span class="token">--layer-02</span>
|
|
267
|
+
<span class="value" data-token="--layer-02"></span>
|
|
268
|
+
</li>
|
|
269
|
+
<li class="swatch">
|
|
270
|
+
<span class="chip" style="background: var(--border-subtle)" aria-hidden="true"></span>
|
|
271
|
+
<span class="token">--border-subtle</span>
|
|
272
|
+
<span class="value" data-token="--border-subtle"></span>
|
|
273
|
+
</li>
|
|
274
|
+
<li class="swatch">
|
|
275
|
+
<span class="chip" style="background: var(--border-strong)" aria-hidden="true"></span>
|
|
276
|
+
<span class="token">--border-strong</span>
|
|
277
|
+
<span class="value" data-token="--border-strong"></span>
|
|
278
|
+
</li>
|
|
279
|
+
<li class="swatch">
|
|
280
|
+
<span class="chip" style="background: var(--fg)" aria-hidden="true"></span>
|
|
281
|
+
<span class="token">--fg</span>
|
|
282
|
+
<span class="value" data-token="--fg"></span>
|
|
283
|
+
</li>
|
|
284
|
+
<li class="swatch">
|
|
285
|
+
<span class="chip" style="background: var(--muted)" aria-hidden="true"></span>
|
|
286
|
+
<span class="token">--muted</span>
|
|
287
|
+
<span class="value" data-token="--muted"></span>
|
|
288
|
+
</li>
|
|
289
|
+
<li class="swatch">
|
|
290
|
+
<span class="chip" style="background: var(--placeholder)" aria-hidden="true"></span>
|
|
291
|
+
<span class="token">--placeholder</span>
|
|
292
|
+
<span class="value" data-token="--placeholder"></span>
|
|
293
|
+
</li>
|
|
294
|
+
<li class="swatch">
|
|
295
|
+
<span class="chip" style="background: var(--accent)" aria-hidden="true"></span>
|
|
296
|
+
<span class="token">--accent</span>
|
|
297
|
+
<span class="value" data-token="--accent"></span>
|
|
298
|
+
</li>
|
|
299
|
+
<li class="swatch">
|
|
300
|
+
<span class="chip" style="background: var(--support-error)" aria-hidden="true"></span>
|
|
301
|
+
<span class="token">--support-error</span>
|
|
302
|
+
<span class="value" data-token="--support-error"></span>
|
|
303
|
+
</li>
|
|
304
|
+
<li class="swatch">
|
|
305
|
+
<span class="chip" style="background: var(--support-success)" aria-hidden="true"></span>
|
|
306
|
+
<span class="token">--support-success</span>
|
|
307
|
+
<span class="value" data-token="--support-success"></span>
|
|
308
|
+
</li>
|
|
309
|
+
</ul>
|
|
310
|
+
<p class="small">Contrast on the ground: text 18.1:1, secondary text 7.8:1,
|
|
311
|
+
accent 5.0:1 in light, and text 16.5:1, secondary 10.6:1, accent 7.7:1 in
|
|
312
|
+
dark: all above the 4.5:1 floor. The support colours are data marks and never
|
|
313
|
+
text, because green on white is 3.4:1.</p>
|
|
314
|
+
|
|
315
|
+
<h3>Data palette</h3>
|
|
316
|
+
<p>A categorical series, in Carbon order, for a chart or a diagram, in both
|
|
317
|
+
modes. Data marks only. A chart with one series draws that series in
|
|
318
|
+
<code>--accent</code>, the same blue as a link, because one series is not a
|
|
319
|
+
category.</p>
|
|
320
|
+
<ul class="swatches">
|
|
321
|
+
<li class="swatch">
|
|
322
|
+
<span class="chip" style="background: var(--chart-1)" aria-hidden="true"></span>
|
|
323
|
+
<span class="token">--chart-1</span>
|
|
324
|
+
<span class="value" data-token="--chart-1"></span>
|
|
325
|
+
</li>
|
|
326
|
+
<li class="swatch">
|
|
327
|
+
<span class="chip" style="background: var(--chart-2)" aria-hidden="true"></span>
|
|
328
|
+
<span class="token">--chart-2</span>
|
|
329
|
+
<span class="value" data-token="--chart-2"></span>
|
|
330
|
+
</li>
|
|
331
|
+
<li class="swatch">
|
|
332
|
+
<span class="chip" style="background: var(--chart-3)" aria-hidden="true"></span>
|
|
333
|
+
<span class="token">--chart-3</span>
|
|
334
|
+
<span class="value" data-token="--chart-3"></span>
|
|
335
|
+
</li>
|
|
336
|
+
<li class="swatch">
|
|
337
|
+
<span class="chip" style="background: var(--chart-4)" aria-hidden="true"></span>
|
|
338
|
+
<span class="token">--chart-4</span>
|
|
339
|
+
<span class="value" data-token="--chart-4"></span>
|
|
340
|
+
</li>
|
|
341
|
+
<li class="swatch">
|
|
342
|
+
<span class="chip" style="background: var(--chart-5)" aria-hidden="true"></span>
|
|
343
|
+
<span class="token">--chart-5</span>
|
|
344
|
+
<span class="value" data-token="--chart-5"></span>
|
|
345
|
+
</li>
|
|
346
|
+
<li class="swatch">
|
|
347
|
+
<span class="chip" style="background: var(--chart-6)" aria-hidden="true"></span>
|
|
348
|
+
<span class="token">--chart-6</span>
|
|
349
|
+
<span class="value" data-token="--chart-6"></span>
|
|
350
|
+
</li>
|
|
351
|
+
<li class="swatch">
|
|
352
|
+
<span class="chip" style="background: var(--chart-7)" aria-hidden="true"></span>
|
|
353
|
+
<span class="token">--chart-7</span>
|
|
354
|
+
<span class="value" data-token="--chart-7"></span>
|
|
355
|
+
</li>
|
|
356
|
+
<li class="swatch">
|
|
357
|
+
<span class="chip" style="background: var(--chart-8)" aria-hidden="true"></span>
|
|
358
|
+
<span class="token">--chart-8</span>
|
|
359
|
+
<span class="value" data-token="--chart-8"></span>
|
|
360
|
+
</li>
|
|
361
|
+
</ul>
|
|
362
|
+
|
|
363
|
+
<h2>Type</h2>
|
|
364
|
+
<p>One family for text and one for code and data. A display line above 54px
|
|
365
|
+
uses weight 300 and tightens by 0.02em; everything else is weight 400, and
|
|
366
|
+
600 belongs to small headings and emphasis.</p>
|
|
367
|
+
|
|
368
|
+
<h3>Plex Sans</h3>
|
|
369
|
+
<p class="spec-note">--font-sans: <span class="value" data-token="--font-sans"></span></p>
|
|
370
|
+
|
|
371
|
+
<div class="spec">
|
|
372
|
+
<p class="spec-note">--text-base at 20px, a line under a bullet</p>
|
|
373
|
+
<p class="sample sans s-base">Publish the folder, keep the link.</p>
|
|
374
|
+
</div>
|
|
375
|
+
<div class="spec">
|
|
376
|
+
<p class="spec-note">--text-md at 24px, slide prose and table body</p>
|
|
377
|
+
<p class="sample sans s-md">Publish the folder, keep the link.</p>
|
|
378
|
+
</div>
|
|
379
|
+
<div class="spec">
|
|
380
|
+
<p class="spec-note">--text-lg at 28px, a bullet and a two column body line</p>
|
|
381
|
+
<p class="sample sans s-md" style="font-size: var(--text-lg)">Publish the folder, keep the link.</p>
|
|
382
|
+
</div>
|
|
383
|
+
<div class="spec">
|
|
384
|
+
<p class="spec-note">--text-2xl at 42px, the title of a content slide</p>
|
|
385
|
+
<p class="sample sans s-2xl">A republish sends what changed</p>
|
|
386
|
+
</div>
|
|
387
|
+
<div class="spec">
|
|
388
|
+
<p class="spec-note">--text-3xl at 54px, weight 300, a claim set as one sentence</p>
|
|
389
|
+
<p class="sample sans s-3xl" style="font-weight: 300">A version never changes</p>
|
|
390
|
+
</div>
|
|
391
|
+
<div class="spec">
|
|
392
|
+
<p class="spec-note">--text-5xl at 76px, weight 300, the talk title</p>
|
|
393
|
+
<p class="sample sans s-5xl" style="font-weight: 300; letter-spacing: -0.02em">rshow</p>
|
|
394
|
+
</div>
|
|
395
|
+
|
|
396
|
+
<h3>Plex Mono</h3>
|
|
397
|
+
<p class="spec-note">--font-mono: <span class="value" data-token="--font-mono"></span></p>
|
|
398
|
+
|
|
399
|
+
<div class="spec">
|
|
400
|
+
<p class="spec-note">--text-base at 20px, code and data</p>
|
|
401
|
+
<p class="sample mono s-base">rshow publish ./talk --label "first draft"</p>
|
|
402
|
+
</div>
|
|
403
|
+
<div class="spec">
|
|
404
|
+
<p class="spec-note">--text-md at 24px, code and data</p>
|
|
405
|
+
<p class="sample mono s-md">art.example.com/slug/</p>
|
|
406
|
+
</div>
|
|
407
|
+
|
|
408
|
+
<h2>Layouts</h2>
|
|
409
|
+
<p>Every layout the theme ships, one frame each. A frame is lazy loaded, so
|
|
410
|
+
the page stays light on a phone, and the link under it opens the same example
|
|
411
|
+
full size. The deck, the page, the report, the project page, the poster and
|
|
412
|
+
the dashboard are fixed templates with a documented markup. The mockups, the
|
|
413
|
+
sketches, the terminals and the tuis are guided kits: they give an agent a
|
|
414
|
+
frame, a floor and a set of rules, and the drawing is the work.</p>
|
|
415
|
+
|
|
416
|
+
<div class="layouts">
|
|
417
|
+
<article class="layout">
|
|
418
|
+
<h3>Deck</h3>
|
|
419
|
+
<p>Twelve slide layouts on one 1280x720 canvas, moved with the arrow keys
|
|
420
|
+
and printed at canvas size.</p>
|
|
421
|
+
<p class="open"><a href="example/index.html">Open example/index.html</a></p>
|
|
422
|
+
<figure class="frame deck">
|
|
423
|
+
<iframe src="example/index.html" title="Deck layout" loading="lazy"></iframe>
|
|
424
|
+
</figure>
|
|
425
|
+
</article>
|
|
426
|
+
<article class="layout">
|
|
427
|
+
<h3>Page</h3>
|
|
428
|
+
<p>Prose at about 72 characters, with the same table and figure rules as a
|
|
429
|
+
slide.</p>
|
|
430
|
+
<p class="open"><a href="example/page.html">Open example/page.html</a></p>
|
|
431
|
+
<figure class="frame page">
|
|
432
|
+
<iframe src="example/page.html" title="Page layout" loading="lazy"></iframe>
|
|
433
|
+
</figure>
|
|
434
|
+
</article>
|
|
435
|
+
<article class="layout">
|
|
436
|
+
<h3>Report</h3>
|
|
437
|
+
<p>A document to read: contents, side notes, generated figure numbers and
|
|
438
|
+
print rules, in three columns above 1056px.</p>
|
|
439
|
+
<p class="open"><a href="example/report.html">Open example/report.html</a></p>
|
|
440
|
+
<figure class="frame report">
|
|
441
|
+
<iframe src="example/report.html" title="Report layout" loading="lazy"></iframe>
|
|
442
|
+
</figure>
|
|
443
|
+
</article>
|
|
444
|
+
<article class="layout">
|
|
445
|
+
<h3>Project</h3>
|
|
446
|
+
<p>A project front page: a title block, one wide teaser and one column of
|
|
447
|
+
prose under it.</p>
|
|
448
|
+
<p class="open"><a href="example/project.html">Open example/project.html</a></p>
|
|
449
|
+
<figure class="frame project">
|
|
450
|
+
<iframe src="example/project.html" title="Project layout" loading="lazy"></iframe>
|
|
451
|
+
</figure>
|
|
452
|
+
</article>
|
|
453
|
+
<article class="layout">
|
|
454
|
+
<h3>Poster</h3>
|
|
455
|
+
<p>One A0 poster in three columns, with a size switch for 36 x 48 inches
|
|
456
|
+
and a QR block that a conference wants.</p>
|
|
457
|
+
<p class="open"><a href="example/poster.html">Open example/poster.html</a></p>
|
|
458
|
+
<figure class="frame poster">
|
|
459
|
+
<iframe src="example/poster.html" title="Poster layout" loading="lazy"></iframe>
|
|
460
|
+
</figure>
|
|
461
|
+
</article>
|
|
462
|
+
<article class="layout">
|
|
463
|
+
<h3>Dashboard</h3>
|
|
464
|
+
<p>A metrics screen: a row of numbers, two charts and a table drawn from
|
|
465
|
+
data attributes with no chart library.</p>
|
|
466
|
+
<p class="open"><a href="example/dashboard.html">Open example/dashboard.html</a></p>
|
|
467
|
+
<figure class="frame dashboard">
|
|
468
|
+
<iframe src="example/dashboard.html" title="Dashboard layout" loading="lazy"></iframe>
|
|
469
|
+
</figure>
|
|
470
|
+
</article>
|
|
471
|
+
<article class="layout">
|
|
472
|
+
<h3>Mockup</h3>
|
|
473
|
+
<p>Artboards in browser, phone and desktop frames on a zoomable canvas,
|
|
474
|
+
with states, notes, comments and a skin switch.</p>
|
|
475
|
+
<p class="open"><a href="example/mockup.html">Open example/mockup.html</a></p>
|
|
476
|
+
<figure class="frame mockup">
|
|
477
|
+
<iframe src="example/mockup.html" title="Mockup layout" loading="lazy"></iframe>
|
|
478
|
+
</figure>
|
|
479
|
+
</article>
|
|
480
|
+
<article class="layout">
|
|
481
|
+
<h3>Mockup, desktop frames</h3>
|
|
482
|
+
<p>The same settings screen in a mac, a windows and a linux window, and in
|
|
483
|
+
one frameless window that draws its own chrome.</p>
|
|
484
|
+
<p class="open"><a href="example/mockup-desktop.html">Open example/mockup-desktop.html</a></p>
|
|
485
|
+
<figure class="frame mockup">
|
|
486
|
+
<iframe src="example/mockup-desktop.html" title="Mockup in desktop frames" loading="lazy"></iframe>
|
|
487
|
+
</figure>
|
|
488
|
+
</article>
|
|
489
|
+
<article class="layout">
|
|
490
|
+
<h3>Mockup, five platforms</h3>
|
|
491
|
+
<p>One product in five skins and five frames: fluent, mac, adwaita, egui
|
|
492
|
+
and material, each pinned on its own artboard.</p>
|
|
493
|
+
<p class="open"><a href="example/mockup-platforms.html">Open example/mockup-platforms.html</a></p>
|
|
494
|
+
<figure class="frame mockup">
|
|
495
|
+
<iframe src="example/mockup-platforms.html" title="Mockup in five platform skins" loading="lazy"></iframe>
|
|
496
|
+
</figure>
|
|
497
|
+
</article>
|
|
498
|
+
<article class="layout">
|
|
499
|
+
<h3>Tui</h3>
|
|
500
|
+
<p>A terminal user interface drawn in a 100x27 cell grid, with one focused
|
|
501
|
+
pane, a status bar and the key hints.</p>
|
|
502
|
+
<p class="open"><a href="example/tui.html">Open example/tui.html</a></p>
|
|
503
|
+
<figure class="frame tui">
|
|
504
|
+
<iframe src="example/tui.html" title="Tui layout" loading="lazy"></iframe>
|
|
505
|
+
</figure>
|
|
506
|
+
</article>
|
|
507
|
+
<article class="layout">
|
|
508
|
+
<h3>Sketch</h3>
|
|
509
|
+
<p>A hand drawn Excalidraw figure, read only in the page and edited in
|
|
510
|
+
place when the reader wants to move a box.</p>
|
|
511
|
+
<p class="open"><a href="example/sketch.html">Open example/sketch.html</a></p>
|
|
512
|
+
<figure class="frame sketch">
|
|
513
|
+
<iframe src="example/sketch.html" title="Sketch layout" loading="lazy"></iframe>
|
|
514
|
+
</figure>
|
|
515
|
+
</article>
|
|
516
|
+
<article class="layout">
|
|
517
|
+
<h3>Terminal</h3>
|
|
518
|
+
<p>A terminal in the terminal frame, one ANSI capture of a screen and one
|
|
519
|
+
asciicast recording of a session.</p>
|
|
520
|
+
<p class="open"><a href="example/terminal.html">Open example/terminal.html</a></p>
|
|
521
|
+
<figure class="frame terminal">
|
|
522
|
+
<iframe src="example/terminal.html" title="Terminal layout" loading="lazy"></iframe>
|
|
523
|
+
</figure>
|
|
524
|
+
</article>
|
|
525
|
+
</div>
|
|
526
|
+
|
|
527
|
+
<h2>Usage</h2>
|
|
528
|
+
<p>A published deck links the theme files at one pinned version, one link per
|
|
529
|
+
file, then overrides a token in its own later style block:</p>
|
|
530
|
+
<pre><code><link rel="stylesheet"
|
|
531
|
+
href="/_themes/default@<n>/fonts.css">
|
|
532
|
+
<link rel="stylesheet"
|
|
533
|
+
href="/_themes/default@<n>/tokens.css">
|
|
534
|
+
<link rel="stylesheet"
|
|
535
|
+
href="/_themes/default@<n>/deck.css">
|
|
536
|
+
<script src="/_themes/default@<n>/deck.js"></script>
|
|
537
|
+
<style>:root{--accent: #0f62fe;}</style></code></pre>
|
|
538
|
+
<p>A page uses the same paths with <code>page.css</code> in place of
|
|
539
|
+
<code>deck.css</code>, adds <code>mode.js</code> in the head and links no
|
|
540
|
+
other script. A report swaps <code>page.css</code> for
|
|
541
|
+
<code>report.css</code> and adds <code>report.js</code> with
|
|
542
|
+
<code>defer</code>. The value in the override above is this theme's accent, so
|
|
543
|
+
it changes nothing until you give it a colour of your own. Replace
|
|
544
|
+
<code>@<n></code> with the version <code>rshow theme list</code> prints.</p>
|
|
545
|
+
|
|
546
|
+
<footer>
|
|
547
|
+
<p>rshow theme default, preview page. Fonts are self hosted from
|
|
548
|
+
<code>fonts/</code>; this page makes no remote request.</p>
|
|
549
|
+
</footer>
|
|
550
|
+
|
|
551
|
+
</main>
|
|
552
|
+
|
|
553
|
+
<script>
|
|
554
|
+
/* Fill every [data-token] element with the value this page computes for that
|
|
555
|
+
custom property. Runs last, so tokens.css and page.css are already in, and
|
|
556
|
+
runs again when mode.js reports that the mode changed. */
|
|
557
|
+
(function () {
|
|
558
|
+
function fill() {
|
|
559
|
+
var root = getComputedStyle(document.documentElement);
|
|
560
|
+
var nodes = document.querySelectorAll("[data-token]");
|
|
561
|
+
for (var i = 0; i < nodes.length; i += 1) {
|
|
562
|
+
var name = nodes[i].getAttribute("data-token");
|
|
563
|
+
var value = root.getPropertyValue(name).replace(/\s+/g, " ").trim();
|
|
564
|
+
nodes[i].textContent = value === "" ? "(not set)" : value;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
fill();
|
|
569
|
+
document.addEventListener("rshowmodechange", fill);
|
|
570
|
+
})();
|
|
571
|
+
</script>
|
|
572
|
+
</body>
|
|
573
|
+
</html>
|