@whatsaaaa/design-system 0.0.0 → 0.1.1
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/README.md +151 -0
- package/assets/building-blocks/apple-touch-icon.png +0 -0
- package/assets/building-blocks/favicon-16.png +0 -0
- package/assets/building-blocks/favicon-32.png +0 -0
- package/assets/building-blocks/favicon.ico +0 -0
- package/assets/building-blocks/favicon.svg +1 -0
- package/assets/building-blocks/icon-192.png +0 -0
- package/assets/building-blocks/icon-512.png +0 -0
- package/assets/building-blocks/lockup-dark.svg +1 -0
- package/assets/building-blocks/lockup-light.svg +1 -0
- package/assets/building-blocks/mark-mono.svg +1 -0
- package/assets/building-blocks/mark-on-dark.svg +1 -0
- package/assets/building-blocks/mark-on-light.svg +1 -0
- package/assets/building-blocks/mark.svg +1 -0
- package/assets/building-blocks/readme-header.png +0 -0
- package/assets/building-blocks/readme-header.svg +1 -0
- package/assets/building-blocks/social-card.png +0 -0
- package/assets/building-blocks/social-card.svg +1 -0
- package/assets/building-blocks/wordmark-dark.svg +1 -0
- package/assets/building-blocks/wordmark-light.svg +1 -0
- package/assets/dotfiles/apple-touch-icon.png +0 -0
- package/assets/dotfiles/favicon-16.png +0 -0
- package/assets/dotfiles/favicon-32.png +0 -0
- package/assets/dotfiles/favicon.ico +0 -0
- package/assets/dotfiles/favicon.svg +1 -0
- package/assets/dotfiles/icon-192.png +0 -0
- package/assets/dotfiles/icon-512.png +0 -0
- package/assets/dotfiles/lockup-dark.svg +1 -0
- package/assets/dotfiles/lockup-light.svg +1 -0
- package/assets/dotfiles/mark-mono.svg +1 -0
- package/assets/dotfiles/mark-on-dark.svg +1 -0
- package/assets/dotfiles/mark-on-light.svg +1 -0
- package/assets/dotfiles/mark.svg +1 -0
- package/assets/dotfiles/readme-header.png +0 -0
- package/assets/dotfiles/readme-header.svg +1 -0
- package/assets/dotfiles/social-card.png +0 -0
- package/assets/dotfiles/social-card.svg +1 -0
- package/assets/dotfiles/wordmark-dark.svg +1 -0
- package/assets/dotfiles/wordmark-light.svg +1 -0
- package/assets/form-builder/apple-touch-icon.png +0 -0
- package/assets/form-builder/favicon-16.png +0 -0
- package/assets/form-builder/favicon-32.png +0 -0
- package/assets/form-builder/favicon.ico +0 -0
- package/assets/form-builder/favicon.svg +1 -0
- package/assets/form-builder/icon-192.png +0 -0
- package/assets/form-builder/icon-512.png +0 -0
- package/assets/form-builder/lockup-dark.svg +1 -0
- package/assets/form-builder/lockup-light.svg +1 -0
- package/assets/form-builder/mark-mono.svg +1 -0
- package/assets/form-builder/mark-on-dark.svg +1 -0
- package/assets/form-builder/mark-on-light.svg +1 -0
- package/assets/form-builder/mark.svg +1 -0
- package/assets/form-builder/readme-header.png +0 -0
- package/assets/form-builder/readme-header.svg +1 -0
- package/assets/form-builder/social-card.png +0 -0
- package/assets/form-builder/social-card.svg +1 -0
- package/assets/form-builder/wordmark-dark.svg +1 -0
- package/assets/form-builder/wordmark-light.svg +1 -0
- package/assets/manifest.json +541 -0
- package/assets/whatsaaaa/apple-touch-icon.png +0 -0
- package/assets/whatsaaaa/favicon-16.png +0 -0
- package/assets/whatsaaaa/favicon-32.png +0 -0
- package/assets/whatsaaaa/favicon.ico +0 -0
- package/assets/whatsaaaa/favicon.svg +1 -0
- package/assets/whatsaaaa/icon-192.png +0 -0
- package/assets/whatsaaaa/icon-512.png +0 -0
- package/assets/whatsaaaa/lockup-dark.svg +1 -0
- package/assets/whatsaaaa/lockup-light.svg +1 -0
- package/assets/whatsaaaa/mark-mono.svg +1 -0
- package/assets/whatsaaaa/mark-on-dark.svg +1 -0
- package/assets/whatsaaaa/mark-on-light.svg +1 -0
- package/assets/whatsaaaa/mark.svg +1 -0
- package/assets/whatsaaaa/pose-blink-dark.svg +1 -0
- package/assets/whatsaaaa/pose-blink-light.svg +1 -0
- package/assets/whatsaaaa/pose-idle-dark.svg +1 -0
- package/assets/whatsaaaa/pose-idle-light.svg +1 -0
- package/assets/whatsaaaa/pose-lost-dark.svg +1 -0
- package/assets/whatsaaaa/pose-lost-light.svg +1 -0
- package/assets/whatsaaaa/pose-shout-dark.svg +1 -0
- package/assets/whatsaaaa/pose-shout-light.svg +1 -0
- package/assets/whatsaaaa/pose-wag-left-dark.svg +1 -0
- package/assets/whatsaaaa/pose-wag-left-light.svg +1 -0
- package/assets/whatsaaaa/pose-wag-right-dark.svg +1 -0
- package/assets/whatsaaaa/pose-wag-right-light.svg +1 -0
- package/assets/whatsaaaa/readme-header.png +0 -0
- package/assets/whatsaaaa/readme-header.svg +1 -0
- package/assets/whatsaaaa/social-card.png +0 -0
- package/assets/whatsaaaa/social-card.svg +1 -0
- package/assets/whatsaaaa/wordmark-dark.svg +1 -0
- package/assets/whatsaaaa/wordmark-light.svg +1 -0
- package/dist/color.d.ts +5 -0
- package/dist/color.js +7 -0
- package/dist/css/base.css +50 -0
- package/dist/css/callout.css +64 -0
- package/dist/css/code.css +50 -0
- package/dist/css/ghost.css +93 -0
- package/dist/css/icons.css +8 -0
- package/dist/css/prose.css +320 -0
- package/dist/css/terminal.css +424 -0
- package/dist/fonts/inter-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/inter.OFL.txt +93 -0
- package/dist/fonts/jetbrains-mono-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/jetbrains-mono-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/jetbrains-mono.OFL.txt +93 -0
- package/dist/fonts.css +85 -0
- package/dist/ghost/bubble.d.ts +16 -0
- package/dist/ghost/bubble.js +50 -0
- package/dist/ghost/glyphs.d.ts +12 -0
- package/dist/ghost/glyphs.js +19 -0
- package/dist/ghost/index.d.ts +57 -0
- package/dist/ghost/index.js +227 -0
- package/dist/identity/ghost.d.ts +28 -0
- package/dist/identity/ghost.js +129 -0
- package/dist/identity/marks.d.ts +48 -0
- package/dist/identity/marks.js +52 -0
- package/dist/identity/sprite.d.ts +43 -0
- package/dist/identity/sprite.js +100 -0
- package/dist/index.css +1404 -0
- package/dist/shiki/index.d.ts +20 -0
- package/dist/shiki/index.js +64 -0
- package/dist/shortcuts/index.d.ts +48 -0
- package/dist/shortcuts/index.js +155 -0
- package/dist/shortcuts/init.js +2 -0
- package/dist/theme/index.d.ts +24 -0
- package/dist/theme/index.js +60 -0
- package/dist/theme/init.js +2 -0
- package/dist/tokens.css +537 -0
- package/dist/tokens.d.ts +194 -0
- package/dist/tokens.js +336 -0
- package/dist/vitepress-config/index.d.ts +16 -0
- package/dist/vitepress-config/index.js +36 -0
- package/dist/vitepress-config/markdown.d.ts +6 -0
- package/dist/vitepress-config/markdown.js +50 -0
- package/dist/vitepress-config/types.d.ts +16 -0
- package/dist/vitepress-config/types.js +1 -0
- package/docs/usage.md +226 -0
- package/licenses/README.md +10 -0
- package/licenses/departure-mono.OFL.txt +93 -0
- package/licenses/rose-pine-palette.LICENSE +21 -0
- package/package.json +155 -3
- package/src/vitepress/Layout.vue +77 -0
- package/src/vitepress/components/Crumb.vue +32 -0
- package/src/vitepress/components/NavGhost.vue +23 -0
- package/src/vitepress/components/NotFound.vue +22 -0
- package/src/vitepress/components/StatusLine.vue +128 -0
- package/src/vitepress/env.d.ts +2 -0
- package/src/vitepress/index.ts +34 -0
- package/src/vitepress/path.ts +19 -0
- package/src/vitepress/styles/doc.css +385 -0
- package/src/vitepress/styles/home.css +47 -0
- package/src/vitepress/styles/layout.css +97 -0
- package/src/vitepress/styles/nav.css +441 -0
- package/src/vitepress/styles/search.css +55 -0
- package/src/vitepress/styles/sidebar.css +173 -0
- package/src/vitepress/styles/vars.css +204 -0
- package/src/vitepress/support.ts +15 -0
- package/src/vitepress/theme.d.ts +8 -0
- package/tokens/contrast.json +271 -0
- package/tokens/core.tokens.json +743 -0
- package/tokens/palette.tokens.json +222 -0
- package/tokens/theme-dark.tokens.json +146 -0
- package/tokens/theme-light.tokens.json +146 -0
- package/tokens/whatsaaaa.resolver.json +43 -0
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
/** ------------------------------------------
|
|
2
|
+
* Autogenerated by ⛋ Terrazzo. DO NOT EDIT!
|
|
3
|
+
* ------------------------------------------- */
|
|
4
|
+
export const PERMUTATIONS = {
|
|
5
|
+
"{\"theme\":\"dark\"}": {
|
|
6
|
+
"border-width.medium":{"$type":"dimension","$description":"Active markers and the focus ring.","$value":{"value":2,"unit":"px"}},
|
|
7
|
+
"border-width.thick":{"$type":"dimension","$description":"The bar of a callout.","$value":{"value":3,"unit":"px"}},
|
|
8
|
+
"border-width.thin":{"$type":"dimension","$description":"Dividers and outlines.","$value":{"value":1,"unit":"px"}},
|
|
9
|
+
"code.bg":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.1216,0.1137,0.1804],"hex":"#1f1d2e","alpha":1}},
|
|
10
|
+
"code.border":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.251,0.2392,0.3216],"hex":"#403d52","alpha":1}},
|
|
11
|
+
"code.header-bg":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.098,0.0902,0.1412],"hex":"#191724","alpha":1}},
|
|
12
|
+
"code.line-added":{"$type":"color","$description":"An added line in a diff.","$value":{"colorSpace":"srgb","components":[0.6118,0.8118,0.8471],"alpha":0.14,"hex":"#9ccfd8"}},
|
|
13
|
+
"code.line-highlight":{"$type":"color","$description":"A highlighted line.","$value":{"colorSpace":"srgb","components":[0.251,0.2392,0.3216],"alpha":0.5,"hex":"#403d52"}},
|
|
14
|
+
"code.line-removed":{"$type":"color","$description":"A removed line in a diff.","$value":{"colorSpace":"srgb","components":[0.9216,0.4353,0.5725],"alpha":0.14,"hex":"#eb6f92"}},
|
|
15
|
+
"code.selection":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.3216,0.3098,0.4039],"hex":"#524f67","alpha":1}},
|
|
16
|
+
"code.text":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.8784,0.8706,0.9569],"hex":"#e0def4","alpha":1}},
|
|
17
|
+
"code.text-secondary":{"$type":"color","$description":"File name, language and line numbers.","$value":{"colorSpace":"srgb","components":[0.5647,0.549,0.6667],"hex":"#908caa","alpha":1}},
|
|
18
|
+
"color.bg":{"$type":"color","$description":"Page background.","$value":{"colorSpace":"srgb","components":[0.098,0.0902,0.1412],"hex":"#191724","alpha":1}},
|
|
19
|
+
"color.border":{"$type":"color","$description":"Dividers and panel edges. Decorative, no contrast bar.","$value":{"colorSpace":"srgb","components":[0.251,0.2392,0.3216],"hex":"#403d52","alpha":1}},
|
|
20
|
+
"color.border-strong":{"$type":"color","$description":"Key caps.","$value":{"colorSpace":"srgb","components":[0.3216,0.3098,0.4039],"hex":"#524f67","alpha":1}},
|
|
21
|
+
"color.brand":{"$type":"color","$description":"The brand accent: tongue, cursor, prompt chevron, active markers. Graphics and large type.","$value":{"colorSpace":"srgb","components":[0.9216,0.4353,0.5725],"hex":"#eb6f92","alpha":1}},
|
|
22
|
+
"color.brand-fill":{"$type":"color","$description":"Solid chip behind small text, such as the mode segment.","$value":{"colorSpace":"srgb","components":[0.9216,0.4353,0.5725],"hex":"#eb6f92","alpha":1}},
|
|
23
|
+
"color.danger":{"$type":"color","$description":"Status danger: field error border and bar.","$value":{"colorSpace":"srgb","components":[0.9216,0.4353,0.5725],"hex":"#eb6f92","alpha":1}},
|
|
24
|
+
"color.danger-text":{"$type":"color","$description":"Status danger: label and error message text.","$value":{"colorSpace":"srgb","components":[0.9216,0.4353,0.5725],"hex":"#eb6f92","alpha":1}},
|
|
25
|
+
"color.danger-tint":{"$type":"color","$description":"Status danger: block background.","$value":{"colorSpace":"srgb","components":[0.9216,0.4353,0.5725],"alpha":0.09,"hex":"#eb6f92"}},
|
|
26
|
+
"color.field-border":{"$type":"color","$description":"Input and button outlines. At least 3:1 on surface.","$value":{"colorSpace":"srgb","components":[0.4314,0.4157,0.5255],"hex":"#6e6a86","alpha":1}},
|
|
27
|
+
"color.interactive":{"$type":"color","$description":"Links, the focus ring, checked controls and the primary button fill.","$value":{"colorSpace":"srgb","components":[0.6118,0.8118,0.8471],"hex":"#9ccfd8","alpha":1}},
|
|
28
|
+
"color.note":{"$type":"color","$description":"Status note: bar and icon.","$value":{"colorSpace":"srgb","components":[0.7686,0.6549,0.9059],"hex":"#c4a7e7","alpha":1}},
|
|
29
|
+
"color.note-text":{"$type":"color","$description":"Status note: label text.","$value":{"colorSpace":"srgb","components":[0.7686,0.6549,0.9059],"hex":"#c4a7e7","alpha":1}},
|
|
30
|
+
"color.note-tint":{"$type":"color","$description":"Status note: block background.","$value":{"colorSpace":"srgb","components":[0.7686,0.6549,0.9059],"alpha":0.09,"hex":"#c4a7e7"}},
|
|
31
|
+
"color.on-brand":{"$type":"color","$description":"Text on the brand fill.","$value":{"colorSpace":"srgb","components":[0.098,0.0902,0.1412],"hex":"#191724","alpha":1}},
|
|
32
|
+
"color.on-interactive":{"$type":"color","$description":"Text on the interactive fill.","$value":{"colorSpace":"srgb","components":[0.098,0.0902,0.1412],"hex":"#191724","alpha":1}},
|
|
33
|
+
"color.raised":{"$type":"color","$description":"Inline code, hover, the current navigation item.","$value":{"colorSpace":"srgb","components":[0.149,0.1373,0.2275],"hex":"#26233a","alpha":1}},
|
|
34
|
+
"color.selection":{"$type":"color","$description":"Background of selected text.","$value":{"colorSpace":"srgb","components":[0.3216,0.3098,0.4039],"hex":"#524f67","alpha":1}},
|
|
35
|
+
"color.surface":{"$type":"color","$description":"Panels, cards and table heads.","$value":{"colorSpace":"srgb","components":[0.1216,0.1137,0.1804],"hex":"#1f1d2e","alpha":1}},
|
|
36
|
+
"color.tag-bg":{"$type":"color","$description":"Tag background: a tint of the interactive color.","$value":{"colorSpace":"srgb","components":[0.6118,0.8118,0.8471],"alpha":0.12,"hex":"#9ccfd8"}},
|
|
37
|
+
"color.tag-text":{"$type":"color","$description":"Tag text.","$value":{"colorSpace":"srgb","components":[0.6118,0.8118,0.8471],"hex":"#9ccfd8","alpha":1}},
|
|
38
|
+
"color.text":{"$type":"color","$description":"Body text, headings and values.","$value":{"colorSpace":"srgb","components":[0.8784,0.8706,0.9569],"hex":"#e0def4","alpha":1}},
|
|
39
|
+
"color.text-faint":{"$type":"color","$description":"Rules, idle indicators and disabled text. At least 3:1, never body text.","$value":{"colorSpace":"srgb","components":[0.4314,0.4157,0.5255],"hex":"#6e6a86","alpha":1}},
|
|
40
|
+
"color.text-secondary":{"$type":"color","$description":"Descriptions, captions and idle navigation.","$value":{"colorSpace":"srgb","components":[0.5647,0.549,0.6667],"hex":"#908caa","alpha":1}},
|
|
41
|
+
"color.tip":{"$type":"color","$description":"Status tip and \"active\": bar and icon.","$value":{"colorSpace":"srgb","components":[0.6118,0.8118,0.8471],"hex":"#9ccfd8","alpha":1}},
|
|
42
|
+
"color.tip-text":{"$type":"color","$description":"Status tip: label text.","$value":{"colorSpace":"srgb","components":[0.6118,0.8118,0.8471],"hex":"#9ccfd8","alpha":1}},
|
|
43
|
+
"color.tip-tint":{"$type":"color","$description":"Status tip: block background.","$value":{"colorSpace":"srgb","components":[0.6118,0.8118,0.8471],"alpha":0.09,"hex":"#9ccfd8"}},
|
|
44
|
+
"color.warning":{"$type":"color","$description":"Status warning and \"experimental\": bar.","$value":{"colorSpace":"srgb","components":[0.9647,0.7569,0.4667],"hex":"#f6c177","alpha":1}},
|
|
45
|
+
"color.warning-text":{"$type":"color","$description":"Status warning: label text.","$value":{"colorSpace":"srgb","components":[0.9647,0.7569,0.4667],"hex":"#f6c177","alpha":1}},
|
|
46
|
+
"color.warning-tint":{"$type":"color","$description":"Status warning: block background.","$value":{"colorSpace":"srgb","components":[0.9647,0.7569,0.4667],"alpha":0.09,"hex":"#f6c177"}},
|
|
47
|
+
"font.family.mono":{"$type":"fontFamily","$description":"The voice: headings, labels, navigation and code.","$value":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"]},
|
|
48
|
+
"font.family.sans":{"$type":"fontFamily","$description":"Long-form text and form values.","$value":["Inter","system-ui","-apple-system","Segoe UI","sans-serif"]},
|
|
49
|
+
"font.line-height.loose":{"$type":"number","$value":1.75},
|
|
50
|
+
"font.line-height.none":{"$type":"number","$value":1},
|
|
51
|
+
"font.line-height.normal":{"$type":"number","$value":1.5},
|
|
52
|
+
"font.line-height.relaxed":{"$type":"number","$value":1.65},
|
|
53
|
+
"font.line-height.snug":{"$type":"number","$value":1.3},
|
|
54
|
+
"font.line-height.tight":{"$type":"number","$value":1.1},
|
|
55
|
+
"font.size.11":{"$type":"dimension","$value":{"value":0.6875,"unit":"rem"}},
|
|
56
|
+
"font.size.12":{"$type":"dimension","$value":{"value":0.75,"unit":"rem"}},
|
|
57
|
+
"font.size.13":{"$type":"dimension","$value":{"value":0.8125,"unit":"rem"}},
|
|
58
|
+
"font.size.14":{"$type":"dimension","$value":{"value":0.875,"unit":"rem"}},
|
|
59
|
+
"font.size.15":{"$type":"dimension","$value":{"value":0.9375,"unit":"rem"}},
|
|
60
|
+
"font.size.16":{"$type":"dimension","$value":{"value":1,"unit":"rem"}},
|
|
61
|
+
"font.size.17":{"$type":"dimension","$value":{"value":1.0625,"unit":"rem"}},
|
|
62
|
+
"font.size.18":{"$type":"dimension","$value":{"value":1.125,"unit":"rem"}},
|
|
63
|
+
"font.size.20":{"$type":"dimension","$value":{"value":1.25,"unit":"rem"}},
|
|
64
|
+
"font.size.22":{"$type":"dimension","$value":{"value":1.375,"unit":"rem"}},
|
|
65
|
+
"font.size.32":{"$type":"dimension","$value":{"value":2,"unit":"rem"}},
|
|
66
|
+
"font.size.40":{"$type":"dimension","$value":{"value":2.5,"unit":"rem"}},
|
|
67
|
+
"font.size.64":{"$type":"dimension","$value":{"value":4,"unit":"rem"}},
|
|
68
|
+
"font.weight.bold":{"$type":"fontWeight","$value":700},
|
|
69
|
+
"font.weight.extrabold":{"$type":"fontWeight","$value":800},
|
|
70
|
+
"font.weight.medium":{"$type":"fontWeight","$value":500},
|
|
71
|
+
"font.weight.regular":{"$type":"fontWeight","$value":400},
|
|
72
|
+
"font.weight.semibold":{"$type":"fontWeight","$value":600},
|
|
73
|
+
"mark.body":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.8784,0.8706,0.9569],"hex":"#e0def4","alpha":1}},
|
|
74
|
+
"mark.tile":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.149,0.1373,0.2275],"hex":"#26233a","alpha":1}},
|
|
75
|
+
"mark.tongue":{"$type":"color","$description":"The love element of the ghost and of every project sprite.","$value":{"colorSpace":"srgb","components":[0.9216,0.4353,0.5725],"hex":"#eb6f92","alpha":1}},
|
|
76
|
+
"motion.duration.base":{"$type":"duration","$description":"Small things appearing, such as the speech bubble.","$value":{"value":160,"unit":"ms"}},
|
|
77
|
+
"motion.duration.fast":{"$type":"duration","$description":"Hover and focus changes.","$value":{"value":120,"unit":"ms"}},
|
|
78
|
+
"motion.duration.slow":{"$type":"duration","$description":"Panels and drawers.","$value":{"value":240,"unit":"ms"}},
|
|
79
|
+
"motion.easing.in":{"$type":"cubicBezier","$description":"Leaving the screen.","$value":[0.4,0,1,1]},
|
|
80
|
+
"motion.easing.out":{"$type":"cubicBezier","$description":"Entering the screen.","$value":[0,0,0.2,1]},
|
|
81
|
+
"motion.easing.standard":{"$type":"cubicBezier","$description":"Most movement.","$value":[0.2,0,0,1]},
|
|
82
|
+
"palette.dawn.base":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9804,0.9569,0.9294],"hex":"#faf4ed","alpha":1}},
|
|
83
|
+
"palette.dawn.foam":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.3373,0.5804,0.6235],"hex":"#56949f","alpha":1}},
|
|
84
|
+
"palette.dawn.gold":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9176,0.6157,0.2039],"hex":"#ea9d34","alpha":1}},
|
|
85
|
+
"palette.dawn.highlight-high":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.8078,0.7922,0.8039],"hex":"#cecacd","alpha":1}},
|
|
86
|
+
"palette.dawn.highlight-low":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9569,0.9294,0.9098],"hex":"#f4ede8","alpha":1}},
|
|
87
|
+
"palette.dawn.highlight-med":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.8745,0.8549,0.851],"hex":"#dfdad9","alpha":1}},
|
|
88
|
+
"palette.dawn.iris":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.5647,0.4784,0.6627],"hex":"#907aa9","alpha":1}},
|
|
89
|
+
"palette.dawn.love":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.7059,0.3882,0.4784],"hex":"#b4637a","alpha":1}},
|
|
90
|
+
"palette.dawn.muted":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.5961,0.5765,0.6471],"hex":"#9893a5","alpha":1}},
|
|
91
|
+
"palette.dawn.overlay":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.949,0.9137,0.8824],"hex":"#f2e9e1","alpha":1}},
|
|
92
|
+
"palette.dawn.pine":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.1569,0.4118,0.5137],"hex":"#286983","alpha":1}},
|
|
93
|
+
"palette.dawn.rose":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.8431,0.5098,0.4941],"hex":"#d7827e","alpha":1}},
|
|
94
|
+
"palette.dawn.subtle":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.4745,0.4588,0.5765],"hex":"#797593","alpha":1}},
|
|
95
|
+
"palette.dawn.surface":{"$type":"color","$value":{"colorSpace":"srgb","components":[1,0.9804,0.9529],"hex":"#fffaf3","alpha":1}},
|
|
96
|
+
"palette.dawn.text":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.3412,0.3216,0.4745],"hex":"#575279","alpha":1}},
|
|
97
|
+
"palette.main.base":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.098,0.0902,0.1412],"hex":"#191724","alpha":1}},
|
|
98
|
+
"palette.main.foam":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.6118,0.8118,0.8471],"hex":"#9ccfd8","alpha":1}},
|
|
99
|
+
"palette.main.gold":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9647,0.7569,0.4667],"hex":"#f6c177","alpha":1}},
|
|
100
|
+
"palette.main.highlight-high":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.3216,0.3098,0.4039],"hex":"#524f67","alpha":1}},
|
|
101
|
+
"palette.main.highlight-low":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.1294,0.1255,0.1804],"hex":"#21202e","alpha":1}},
|
|
102
|
+
"palette.main.highlight-med":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.251,0.2392,0.3216],"hex":"#403d52","alpha":1}},
|
|
103
|
+
"palette.main.iris":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.7686,0.6549,0.9059],"hex":"#c4a7e7","alpha":1}},
|
|
104
|
+
"palette.main.love":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9216,0.4353,0.5725],"hex":"#eb6f92","alpha":1}},
|
|
105
|
+
"palette.main.muted":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.4314,0.4157,0.5255],"hex":"#6e6a86","alpha":1}},
|
|
106
|
+
"palette.main.overlay":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.149,0.1373,0.2275],"hex":"#26233a","alpha":1}},
|
|
107
|
+
"palette.main.pine":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.1922,0.4549,0.5608],"hex":"#31748f","alpha":1}},
|
|
108
|
+
"palette.main.rose":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9216,0.7373,0.7294],"hex":"#ebbcba","alpha":1}},
|
|
109
|
+
"palette.main.subtle":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.5647,0.549,0.6667],"hex":"#908caa","alpha":1}},
|
|
110
|
+
"palette.main.surface":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.1216,0.1137,0.1804],"hex":"#1f1d2e","alpha":1}},
|
|
111
|
+
"palette.main.text":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.8784,0.8706,0.9569],"hex":"#e0def4","alpha":1}},
|
|
112
|
+
"radius.full":{"$type":"dimension","$description":"Dots and pills.","$value":{"value":9999,"unit":"px"}},
|
|
113
|
+
"radius.lg":{"$type":"dimension","$description":"Code blocks, callouts, tables and cards.","$value":{"value":8,"unit":"px"}},
|
|
114
|
+
"radius.md":{"$type":"dimension","$description":"Inputs and buttons.","$value":{"value":6,"unit":"px"}},
|
|
115
|
+
"radius.sm":{"$type":"dimension","$description":"Inline code, tags and the focus ring.","$value":{"value":4,"unit":"px"}},
|
|
116
|
+
"radius.xl":{"$type":"dimension","$description":"The terminal frame.","$value":{"value":12,"unit":"px"}},
|
|
117
|
+
"radius.xs":{"$type":"dimension","$description":"Key caps.","$value":{"value":3,"unit":"px"}},
|
|
118
|
+
"size.content":{"$type":"dimension","$description":"Widest a column of long-form text gets, padding included.","$value":{"value":50,"unit":"rem"}},
|
|
119
|
+
"size.frame":{"$type":"dimension","$description":"Widest a page frame gets.","$value":{"value":90,"unit":"rem"}},
|
|
120
|
+
"size.outline":{"$type":"dimension","$description":"Page outline.","$value":{"value":15,"unit":"rem"}},
|
|
121
|
+
"size.sidebar":{"$type":"dimension","$description":"Side navigation.","$value":{"value":17,"unit":"rem"}},
|
|
122
|
+
"size.status-line":{"$type":"dimension","$description":"Height of the status line.","$value":{"value":2,"unit":"rem"}},
|
|
123
|
+
"size.tab-bar":{"$type":"dimension","$description":"Height of the tab bar.","$value":{"value":3,"unit":"rem"}},
|
|
124
|
+
"space.2":{"$type":"dimension","$value":{"value":0.125,"unit":"rem"}},
|
|
125
|
+
"space.4":{"$type":"dimension","$value":{"value":0.25,"unit":"rem"}},
|
|
126
|
+
"space.6":{"$type":"dimension","$value":{"value":0.375,"unit":"rem"}},
|
|
127
|
+
"space.8":{"$type":"dimension","$value":{"value":0.5,"unit":"rem"}},
|
|
128
|
+
"space.10":{"$type":"dimension","$value":{"value":0.625,"unit":"rem"}},
|
|
129
|
+
"space.12":{"$type":"dimension","$value":{"value":0.75,"unit":"rem"}},
|
|
130
|
+
"space.14":{"$type":"dimension","$value":{"value":0.875,"unit":"rem"}},
|
|
131
|
+
"space.16":{"$type":"dimension","$value":{"value":1,"unit":"rem"}},
|
|
132
|
+
"space.20":{"$type":"dimension","$value":{"value":1.25,"unit":"rem"}},
|
|
133
|
+
"space.24":{"$type":"dimension","$value":{"value":1.5,"unit":"rem"}},
|
|
134
|
+
"space.32":{"$type":"dimension","$value":{"value":2,"unit":"rem"}},
|
|
135
|
+
"space.40":{"$type":"dimension","$value":{"value":2.5,"unit":"rem"}},
|
|
136
|
+
"space.48":{"$type":"dimension","$value":{"value":3,"unit":"rem"}},
|
|
137
|
+
"space.56":{"$type":"dimension","$value":{"value":3.5,"unit":"rem"}},
|
|
138
|
+
"space.64":{"$type":"dimension","$value":{"value":4,"unit":"rem"}},
|
|
139
|
+
"syntax.comment":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.5647,0.549,0.6667],"hex":"#908caa","alpha":1}},
|
|
140
|
+
"syntax.constant":{"$type":"color","$description":"Numbers and constants.","$value":{"colorSpace":"srgb","components":[0.7686,0.6549,0.9059],"hex":"#c4a7e7","alpha":1}},
|
|
141
|
+
"syntax.function":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9216,0.7373,0.7294],"hex":"#ebbcba","alpha":1}},
|
|
142
|
+
"syntax.keyword":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9216,0.4353,0.5725],"hex":"#eb6f92","alpha":1}},
|
|
143
|
+
"syntax.punctuation":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.5647,0.549,0.6667],"hex":"#908caa","alpha":1}},
|
|
144
|
+
"syntax.string":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9647,0.7569,0.4667],"hex":"#f6c177","alpha":1}},
|
|
145
|
+
"syntax.type":{"$type":"color","$description":"Types, tags and object keys.","$value":{"colorSpace":"srgb","components":[0.6118,0.8118,0.8471],"hex":"#9ccfd8","alpha":1}},
|
|
146
|
+
"text.body":{"$type":"typography","$description":"Long-form text.","$value":{"fontFamily":["Inter","system-ui","-apple-system","Segoe UI","sans-serif"],"fontSize":{"value":1,"unit":"rem"},"fontWeight":400,"lineHeight":1.75,"letterSpacing":{"value":0,"unit":"rem"}}},
|
|
147
|
+
"text.body-sm":{"$type":"typography","$description":"Descriptions and table cells.","$value":{"fontFamily":["Inter","system-ui","-apple-system","Segoe UI","sans-serif"],"fontSize":{"value":0.9375,"unit":"rem"},"fontWeight":400,"lineHeight":1.6,"letterSpacing":{"value":0,"unit":"rem"}}},
|
|
148
|
+
"text.caption":{"$type":"typography","$description":"Status line, captions and breadcrumbs.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":0.75,"unit":"rem"},"fontWeight":400,"lineHeight":1.5,"letterSpacing":{"value":0,"unit":"rem"}}},
|
|
149
|
+
"text.code":{"$type":"typography","$description":"Code blocks.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":0.8125,"unit":"rem"},"fontWeight":400,"lineHeight":1.7,"letterSpacing":{"value":0,"unit":"rem"}}},
|
|
150
|
+
"text.display":{"$type":"typography","$description":"The handle on a home page.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":4,"unit":"rem"},"fontWeight":800,"lineHeight":1,"letterSpacing":{"value":-0.12,"unit":"rem"}}},
|
|
151
|
+
"text.display-compact":{"$type":"typography","$description":"The display style on phones.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":2.5,"unit":"rem"},"fontWeight":800,"lineHeight":1,"letterSpacing":{"value":-0.075,"unit":"rem"}}},
|
|
152
|
+
"text.h1":{"$type":"typography","$description":"Page title.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":2.5,"unit":"rem"},"fontWeight":800,"lineHeight":1.1,"letterSpacing":{"value":-0.075,"unit":"rem"}}},
|
|
153
|
+
"text.h1-compact":{"$type":"typography","$description":"Page title on phones.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":2,"unit":"rem"},"fontWeight":800,"lineHeight":1.1,"letterSpacing":{"value":-0.06,"unit":"rem"}}},
|
|
154
|
+
"text.h2":{"$type":"typography","$description":"Section heading.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":1.375,"unit":"rem"},"fontWeight":700,"lineHeight":1.3,"letterSpacing":{"value":-0.0275,"unit":"rem"}}},
|
|
155
|
+
"text.h2-compact":{"$type":"typography","$description":"Section heading on phones.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":1.25,"unit":"rem"},"fontWeight":700,"lineHeight":1.3,"letterSpacing":{"value":-0.025,"unit":"rem"}}},
|
|
156
|
+
"text.h3":{"$type":"typography","$description":"Subsection heading.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":1.125,"unit":"rem"},"fontWeight":700,"lineHeight":1.4,"letterSpacing":{"value":-0.01125,"unit":"rem"}}},
|
|
157
|
+
"text.h4":{"$type":"typography","$description":"Minor heading and entry titles.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":1,"unit":"rem"},"fontWeight":700,"lineHeight":1.5,"letterSpacing":{"value":0,"unit":"rem"}}},
|
|
158
|
+
"text.label":{"$type":"typography","$description":"Tabs, prompts and buttons.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":0.875,"unit":"rem"},"fontWeight":400,"lineHeight":1.5,"letterSpacing":{"value":0,"unit":"rem"}}},
|
|
159
|
+
"text.label-sm":{"$type":"typography","$description":"Side navigation and tags.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":0.8125,"unit":"rem"},"fontWeight":400,"lineHeight":1.5,"letterSpacing":{"value":0,"unit":"rem"}}},
|
|
160
|
+
"text.lead":{"$type":"typography","$description":"The first paragraph of a page.","$value":{"fontFamily":["Inter","system-ui","-apple-system","Segoe UI","sans-serif"],"fontSize":{"value":1.0625,"unit":"rem"},"fontWeight":400,"lineHeight":1.75,"letterSpacing":{"value":0,"unit":"rem"}}},
|
|
161
|
+
"text.overline":{"$type":"typography","$description":"Group headings and table heads. Set in uppercase.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":0.6875,"unit":"rem"},"fontWeight":700,"lineHeight":1.5,"letterSpacing":{"value":0.06875,"unit":"rem"}}},
|
|
162
|
+
},
|
|
163
|
+
"{\"theme\":\"light\"}": {
|
|
164
|
+
"border-width.medium":{"$type":"dimension","$description":"Active markers and the focus ring.","$value":{"value":2,"unit":"px"}},
|
|
165
|
+
"border-width.thick":{"$type":"dimension","$description":"The bar of a callout.","$value":{"value":3,"unit":"px"}},
|
|
166
|
+
"border-width.thin":{"$type":"dimension","$description":"Dividers and outlines.","$value":{"value":1,"unit":"px"}},
|
|
167
|
+
"code.bg":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.1216,0.1137,0.1804],"hex":"#1f1d2e","alpha":1}},
|
|
168
|
+
"code.border":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.251,0.2392,0.3216],"hex":"#403d52","alpha":1}},
|
|
169
|
+
"code.header-bg":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.098,0.0902,0.1412],"hex":"#191724","alpha":1}},
|
|
170
|
+
"code.line-added":{"$type":"color","$description":"An added line in a diff.","$value":{"colorSpace":"srgb","components":[0.6118,0.8118,0.8471],"alpha":0.14,"hex":"#9ccfd8"}},
|
|
171
|
+
"code.line-highlight":{"$type":"color","$description":"A highlighted line.","$value":{"colorSpace":"srgb","components":[0.251,0.2392,0.3216],"alpha":0.5,"hex":"#403d52"}},
|
|
172
|
+
"code.line-removed":{"$type":"color","$description":"A removed line in a diff.","$value":{"colorSpace":"srgb","components":[0.9216,0.4353,0.5725],"alpha":0.14,"hex":"#eb6f92"}},
|
|
173
|
+
"code.selection":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.3216,0.3098,0.4039],"hex":"#524f67","alpha":1}},
|
|
174
|
+
"code.text":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.8784,0.8706,0.9569],"hex":"#e0def4","alpha":1}},
|
|
175
|
+
"code.text-secondary":{"$type":"color","$description":"File name, language and line numbers.","$value":{"colorSpace":"srgb","components":[0.5647,0.549,0.6667],"hex":"#908caa","alpha":1}},
|
|
176
|
+
"color.bg":{"$type":"color","$description":"Page background.","$value":{"colorSpace":"srgb","components":[0.9804,0.9569,0.9294],"hex":"#faf4ed","alpha":1}},
|
|
177
|
+
"color.border":{"$type":"color","$description":"Dividers and panel edges. Decorative, no contrast bar.","$value":{"colorSpace":"srgb","components":[0.8745,0.8549,0.851],"hex":"#dfdad9","alpha":1}},
|
|
178
|
+
"color.border-strong":{"$type":"color","$description":"Key caps.","$value":{"colorSpace":"srgb","components":[0.8078,0.7922,0.8039],"hex":"#cecacd","alpha":1}},
|
|
179
|
+
"color.brand":{"$type":"color","$description":"The brand accent: tongue, cursor, prompt chevron, active markers. Graphics and large type.","$value":{"colorSpace":"srgb","components":[0.7059,0.3882,0.4784],"hex":"#b4637a","alpha":1}},
|
|
180
|
+
"color.brand-fill":{"$type":"color","$description":"Solid chip behind small text, such as the mode segment.","$value":{"colorSpace":"srgb","components":[0.3412,0.3216,0.4745],"hex":"#575279","alpha":1}},
|
|
181
|
+
"color.danger":{"$type":"color","$description":"Status danger: field error border and bar.","$value":{"colorSpace":"srgb","components":[0.7059,0.3882,0.4784],"hex":"#b4637a","alpha":1}},
|
|
182
|
+
"color.danger-text":{"$type":"color","$description":"Status danger: label and error message text.","$value":{"colorSpace":"srgb","components":[0.3412,0.3216,0.4745],"hex":"#575279","alpha":1}},
|
|
183
|
+
"color.danger-tint":{"$type":"color","$description":"Status danger: block background.","$value":{"colorSpace":"srgb","components":[0.7059,0.3882,0.4784],"alpha":0.09,"hex":"#b4637a"}},
|
|
184
|
+
"color.field-border":{"$type":"color","$description":"Input and button outlines. At least 3:1 on surface.","$value":{"colorSpace":"srgb","components":[0.4745,0.4588,0.5765],"hex":"#797593","alpha":1}},
|
|
185
|
+
"color.interactive":{"$type":"color","$description":"Links, the focus ring, checked controls and the primary button fill.","$value":{"colorSpace":"srgb","components":[0.1569,0.4118,0.5137],"hex":"#286983","alpha":1}},
|
|
186
|
+
"color.note":{"$type":"color","$description":"Status note: bar and icon.","$value":{"colorSpace":"srgb","components":[0.5647,0.4784,0.6627],"hex":"#907aa9","alpha":1}},
|
|
187
|
+
"color.note-text":{"$type":"color","$description":"Status note: label text.","$value":{"colorSpace":"srgb","components":[0.3412,0.3216,0.4745],"hex":"#575279","alpha":1}},
|
|
188
|
+
"color.note-tint":{"$type":"color","$description":"Status note: block background.","$value":{"colorSpace":"srgb","components":[0.5647,0.4784,0.6627],"alpha":0.09,"hex":"#907aa9"}},
|
|
189
|
+
"color.on-brand":{"$type":"color","$description":"Text on the brand fill.","$value":{"colorSpace":"srgb","components":[0.9804,0.9569,0.9294],"hex":"#faf4ed","alpha":1}},
|
|
190
|
+
"color.on-interactive":{"$type":"color","$description":"Text on the interactive fill.","$value":{"colorSpace":"srgb","components":[0.9804,0.9569,0.9294],"hex":"#faf4ed","alpha":1}},
|
|
191
|
+
"color.raised":{"$type":"color","$description":"Inline code, hover, the current navigation item.","$value":{"colorSpace":"srgb","components":[0.949,0.9137,0.8824],"hex":"#f2e9e1","alpha":1}},
|
|
192
|
+
"color.selection":{"$type":"color","$description":"Background of selected text.","$value":{"colorSpace":"srgb","components":[0.8745,0.8549,0.851],"hex":"#dfdad9","alpha":1}},
|
|
193
|
+
"color.surface":{"$type":"color","$description":"Panels, cards and table heads.","$value":{"colorSpace":"srgb","components":[1,0.9804,0.9529],"hex":"#fffaf3","alpha":1}},
|
|
194
|
+
"color.tag-bg":{"$type":"color","$description":"Tag background: a tint of the interactive color.","$value":{"colorSpace":"srgb","components":[0.1569,0.4118,0.5137],"alpha":0.1,"hex":"#286983"}},
|
|
195
|
+
"color.tag-text":{"$type":"color","$description":"Tag text.","$value":{"colorSpace":"srgb","components":[0.1569,0.4118,0.5137],"hex":"#286983","alpha":1}},
|
|
196
|
+
"color.text":{"$type":"color","$description":"Body text, headings and values.","$value":{"colorSpace":"srgb","components":[0.3412,0.3216,0.4745],"hex":"#575279","alpha":1}},
|
|
197
|
+
"color.text-faint":{"$type":"color","$description":"Rules, idle indicators and disabled text. At least 3:1, never body text.","$value":{"colorSpace":"srgb","components":[0.4745,0.4588,0.5765],"hex":"#797593","alpha":1}},
|
|
198
|
+
"color.text-secondary":{"$type":"color","$description":"Descriptions, captions and idle navigation.","$value":{"colorSpace":"srgb","components":[0.3412,0.3216,0.4745],"hex":"#575279","alpha":1}},
|
|
199
|
+
"color.tip":{"$type":"color","$description":"Status tip and \"active\": bar and icon.","$value":{"colorSpace":"srgb","components":[0.1569,0.4118,0.5137],"hex":"#286983","alpha":1}},
|
|
200
|
+
"color.tip-text":{"$type":"color","$description":"Status tip: label text.","$value":{"colorSpace":"srgb","components":[0.3412,0.3216,0.4745],"hex":"#575279","alpha":1}},
|
|
201
|
+
"color.tip-tint":{"$type":"color","$description":"Status tip: block background.","$value":{"colorSpace":"srgb","components":[0.1569,0.4118,0.5137],"alpha":0.09,"hex":"#286983"}},
|
|
202
|
+
"color.warning":{"$type":"color","$description":"Status warning and \"experimental\": bar.","$value":{"colorSpace":"srgb","components":[0.9176,0.6157,0.2039],"hex":"#ea9d34","alpha":1}},
|
|
203
|
+
"color.warning-text":{"$type":"color","$description":"Status warning: label text.","$value":{"colorSpace":"srgb","components":[0.3412,0.3216,0.4745],"hex":"#575279","alpha":1}},
|
|
204
|
+
"color.warning-tint":{"$type":"color","$description":"Status warning: block background.","$value":{"colorSpace":"srgb","components":[0.9176,0.6157,0.2039],"alpha":0.09,"hex":"#ea9d34"}},
|
|
205
|
+
"font.family.mono":{"$type":"fontFamily","$description":"The voice: headings, labels, navigation and code.","$value":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"]},
|
|
206
|
+
"font.family.sans":{"$type":"fontFamily","$description":"Long-form text and form values.","$value":["Inter","system-ui","-apple-system","Segoe UI","sans-serif"]},
|
|
207
|
+
"font.line-height.loose":{"$type":"number","$value":1.75},
|
|
208
|
+
"font.line-height.none":{"$type":"number","$value":1},
|
|
209
|
+
"font.line-height.normal":{"$type":"number","$value":1.5},
|
|
210
|
+
"font.line-height.relaxed":{"$type":"number","$value":1.65},
|
|
211
|
+
"font.line-height.snug":{"$type":"number","$value":1.3},
|
|
212
|
+
"font.line-height.tight":{"$type":"number","$value":1.1},
|
|
213
|
+
"font.size.11":{"$type":"dimension","$value":{"value":0.6875,"unit":"rem"}},
|
|
214
|
+
"font.size.12":{"$type":"dimension","$value":{"value":0.75,"unit":"rem"}},
|
|
215
|
+
"font.size.13":{"$type":"dimension","$value":{"value":0.8125,"unit":"rem"}},
|
|
216
|
+
"font.size.14":{"$type":"dimension","$value":{"value":0.875,"unit":"rem"}},
|
|
217
|
+
"font.size.15":{"$type":"dimension","$value":{"value":0.9375,"unit":"rem"}},
|
|
218
|
+
"font.size.16":{"$type":"dimension","$value":{"value":1,"unit":"rem"}},
|
|
219
|
+
"font.size.17":{"$type":"dimension","$value":{"value":1.0625,"unit":"rem"}},
|
|
220
|
+
"font.size.18":{"$type":"dimension","$value":{"value":1.125,"unit":"rem"}},
|
|
221
|
+
"font.size.20":{"$type":"dimension","$value":{"value":1.25,"unit":"rem"}},
|
|
222
|
+
"font.size.22":{"$type":"dimension","$value":{"value":1.375,"unit":"rem"}},
|
|
223
|
+
"font.size.32":{"$type":"dimension","$value":{"value":2,"unit":"rem"}},
|
|
224
|
+
"font.size.40":{"$type":"dimension","$value":{"value":2.5,"unit":"rem"}},
|
|
225
|
+
"font.size.64":{"$type":"dimension","$value":{"value":4,"unit":"rem"}},
|
|
226
|
+
"font.weight.bold":{"$type":"fontWeight","$value":700},
|
|
227
|
+
"font.weight.extrabold":{"$type":"fontWeight","$value":800},
|
|
228
|
+
"font.weight.medium":{"$type":"fontWeight","$value":500},
|
|
229
|
+
"font.weight.regular":{"$type":"fontWeight","$value":400},
|
|
230
|
+
"font.weight.semibold":{"$type":"fontWeight","$value":600},
|
|
231
|
+
"mark.body":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.8784,0.8706,0.9569],"hex":"#e0def4","alpha":1}},
|
|
232
|
+
"mark.tile":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.149,0.1373,0.2275],"hex":"#26233a","alpha":1}},
|
|
233
|
+
"mark.tongue":{"$type":"color","$description":"The love element of the ghost and of every project sprite.","$value":{"colorSpace":"srgb","components":[0.9216,0.4353,0.5725],"hex":"#eb6f92","alpha":1}},
|
|
234
|
+
"motion.duration.base":{"$type":"duration","$description":"Small things appearing, such as the speech bubble.","$value":{"value":160,"unit":"ms"}},
|
|
235
|
+
"motion.duration.fast":{"$type":"duration","$description":"Hover and focus changes.","$value":{"value":120,"unit":"ms"}},
|
|
236
|
+
"motion.duration.slow":{"$type":"duration","$description":"Panels and drawers.","$value":{"value":240,"unit":"ms"}},
|
|
237
|
+
"motion.easing.in":{"$type":"cubicBezier","$description":"Leaving the screen.","$value":[0.4,0,1,1]},
|
|
238
|
+
"motion.easing.out":{"$type":"cubicBezier","$description":"Entering the screen.","$value":[0,0,0.2,1]},
|
|
239
|
+
"motion.easing.standard":{"$type":"cubicBezier","$description":"Most movement.","$value":[0.2,0,0,1]},
|
|
240
|
+
"palette.dawn.base":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9804,0.9569,0.9294],"hex":"#faf4ed","alpha":1}},
|
|
241
|
+
"palette.dawn.foam":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.3373,0.5804,0.6235],"hex":"#56949f","alpha":1}},
|
|
242
|
+
"palette.dawn.gold":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9176,0.6157,0.2039],"hex":"#ea9d34","alpha":1}},
|
|
243
|
+
"palette.dawn.highlight-high":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.8078,0.7922,0.8039],"hex":"#cecacd","alpha":1}},
|
|
244
|
+
"palette.dawn.highlight-low":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9569,0.9294,0.9098],"hex":"#f4ede8","alpha":1}},
|
|
245
|
+
"palette.dawn.highlight-med":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.8745,0.8549,0.851],"hex":"#dfdad9","alpha":1}},
|
|
246
|
+
"palette.dawn.iris":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.5647,0.4784,0.6627],"hex":"#907aa9","alpha":1}},
|
|
247
|
+
"palette.dawn.love":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.7059,0.3882,0.4784],"hex":"#b4637a","alpha":1}},
|
|
248
|
+
"palette.dawn.muted":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.5961,0.5765,0.6471],"hex":"#9893a5","alpha":1}},
|
|
249
|
+
"palette.dawn.overlay":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.949,0.9137,0.8824],"hex":"#f2e9e1","alpha":1}},
|
|
250
|
+
"palette.dawn.pine":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.1569,0.4118,0.5137],"hex":"#286983","alpha":1}},
|
|
251
|
+
"palette.dawn.rose":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.8431,0.5098,0.4941],"hex":"#d7827e","alpha":1}},
|
|
252
|
+
"palette.dawn.subtle":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.4745,0.4588,0.5765],"hex":"#797593","alpha":1}},
|
|
253
|
+
"palette.dawn.surface":{"$type":"color","$value":{"colorSpace":"srgb","components":[1,0.9804,0.9529],"hex":"#fffaf3","alpha":1}},
|
|
254
|
+
"palette.dawn.text":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.3412,0.3216,0.4745],"hex":"#575279","alpha":1}},
|
|
255
|
+
"palette.main.base":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.098,0.0902,0.1412],"hex":"#191724","alpha":1}},
|
|
256
|
+
"palette.main.foam":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.6118,0.8118,0.8471],"hex":"#9ccfd8","alpha":1}},
|
|
257
|
+
"palette.main.gold":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9647,0.7569,0.4667],"hex":"#f6c177","alpha":1}},
|
|
258
|
+
"palette.main.highlight-high":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.3216,0.3098,0.4039],"hex":"#524f67","alpha":1}},
|
|
259
|
+
"palette.main.highlight-low":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.1294,0.1255,0.1804],"hex":"#21202e","alpha":1}},
|
|
260
|
+
"palette.main.highlight-med":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.251,0.2392,0.3216],"hex":"#403d52","alpha":1}},
|
|
261
|
+
"palette.main.iris":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.7686,0.6549,0.9059],"hex":"#c4a7e7","alpha":1}},
|
|
262
|
+
"palette.main.love":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9216,0.4353,0.5725],"hex":"#eb6f92","alpha":1}},
|
|
263
|
+
"palette.main.muted":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.4314,0.4157,0.5255],"hex":"#6e6a86","alpha":1}},
|
|
264
|
+
"palette.main.overlay":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.149,0.1373,0.2275],"hex":"#26233a","alpha":1}},
|
|
265
|
+
"palette.main.pine":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.1922,0.4549,0.5608],"hex":"#31748f","alpha":1}},
|
|
266
|
+
"palette.main.rose":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9216,0.7373,0.7294],"hex":"#ebbcba","alpha":1}},
|
|
267
|
+
"palette.main.subtle":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.5647,0.549,0.6667],"hex":"#908caa","alpha":1}},
|
|
268
|
+
"palette.main.surface":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.1216,0.1137,0.1804],"hex":"#1f1d2e","alpha":1}},
|
|
269
|
+
"palette.main.text":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.8784,0.8706,0.9569],"hex":"#e0def4","alpha":1}},
|
|
270
|
+
"radius.full":{"$type":"dimension","$description":"Dots and pills.","$value":{"value":9999,"unit":"px"}},
|
|
271
|
+
"radius.lg":{"$type":"dimension","$description":"Code blocks, callouts, tables and cards.","$value":{"value":8,"unit":"px"}},
|
|
272
|
+
"radius.md":{"$type":"dimension","$description":"Inputs and buttons.","$value":{"value":6,"unit":"px"}},
|
|
273
|
+
"radius.sm":{"$type":"dimension","$description":"Inline code, tags and the focus ring.","$value":{"value":4,"unit":"px"}},
|
|
274
|
+
"radius.xl":{"$type":"dimension","$description":"The terminal frame.","$value":{"value":12,"unit":"px"}},
|
|
275
|
+
"radius.xs":{"$type":"dimension","$description":"Key caps.","$value":{"value":3,"unit":"px"}},
|
|
276
|
+
"size.content":{"$type":"dimension","$description":"Widest a column of long-form text gets, padding included.","$value":{"value":50,"unit":"rem"}},
|
|
277
|
+
"size.frame":{"$type":"dimension","$description":"Widest a page frame gets.","$value":{"value":90,"unit":"rem"}},
|
|
278
|
+
"size.outline":{"$type":"dimension","$description":"Page outline.","$value":{"value":15,"unit":"rem"}},
|
|
279
|
+
"size.sidebar":{"$type":"dimension","$description":"Side navigation.","$value":{"value":17,"unit":"rem"}},
|
|
280
|
+
"size.status-line":{"$type":"dimension","$description":"Height of the status line.","$value":{"value":2,"unit":"rem"}},
|
|
281
|
+
"size.tab-bar":{"$type":"dimension","$description":"Height of the tab bar.","$value":{"value":3,"unit":"rem"}},
|
|
282
|
+
"space.2":{"$type":"dimension","$value":{"value":0.125,"unit":"rem"}},
|
|
283
|
+
"space.4":{"$type":"dimension","$value":{"value":0.25,"unit":"rem"}},
|
|
284
|
+
"space.6":{"$type":"dimension","$value":{"value":0.375,"unit":"rem"}},
|
|
285
|
+
"space.8":{"$type":"dimension","$value":{"value":0.5,"unit":"rem"}},
|
|
286
|
+
"space.10":{"$type":"dimension","$value":{"value":0.625,"unit":"rem"}},
|
|
287
|
+
"space.12":{"$type":"dimension","$value":{"value":0.75,"unit":"rem"}},
|
|
288
|
+
"space.14":{"$type":"dimension","$value":{"value":0.875,"unit":"rem"}},
|
|
289
|
+
"space.16":{"$type":"dimension","$value":{"value":1,"unit":"rem"}},
|
|
290
|
+
"space.20":{"$type":"dimension","$value":{"value":1.25,"unit":"rem"}},
|
|
291
|
+
"space.24":{"$type":"dimension","$value":{"value":1.5,"unit":"rem"}},
|
|
292
|
+
"space.32":{"$type":"dimension","$value":{"value":2,"unit":"rem"}},
|
|
293
|
+
"space.40":{"$type":"dimension","$value":{"value":2.5,"unit":"rem"}},
|
|
294
|
+
"space.48":{"$type":"dimension","$value":{"value":3,"unit":"rem"}},
|
|
295
|
+
"space.56":{"$type":"dimension","$value":{"value":3.5,"unit":"rem"}},
|
|
296
|
+
"space.64":{"$type":"dimension","$value":{"value":4,"unit":"rem"}},
|
|
297
|
+
"syntax.comment":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.5647,0.549,0.6667],"hex":"#908caa","alpha":1}},
|
|
298
|
+
"syntax.constant":{"$type":"color","$description":"Numbers and constants.","$value":{"colorSpace":"srgb","components":[0.7686,0.6549,0.9059],"hex":"#c4a7e7","alpha":1}},
|
|
299
|
+
"syntax.function":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9216,0.7373,0.7294],"hex":"#ebbcba","alpha":1}},
|
|
300
|
+
"syntax.keyword":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9216,0.4353,0.5725],"hex":"#eb6f92","alpha":1}},
|
|
301
|
+
"syntax.punctuation":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.5647,0.549,0.6667],"hex":"#908caa","alpha":1}},
|
|
302
|
+
"syntax.string":{"$type":"color","$value":{"colorSpace":"srgb","components":[0.9647,0.7569,0.4667],"hex":"#f6c177","alpha":1}},
|
|
303
|
+
"syntax.type":{"$type":"color","$description":"Types, tags and object keys.","$value":{"colorSpace":"srgb","components":[0.6118,0.8118,0.8471],"hex":"#9ccfd8","alpha":1}},
|
|
304
|
+
"text.body":{"$type":"typography","$description":"Long-form text.","$value":{"fontFamily":["Inter","system-ui","-apple-system","Segoe UI","sans-serif"],"fontSize":{"value":1,"unit":"rem"},"fontWeight":400,"lineHeight":1.75,"letterSpacing":{"value":0,"unit":"rem"}}},
|
|
305
|
+
"text.body-sm":{"$type":"typography","$description":"Descriptions and table cells.","$value":{"fontFamily":["Inter","system-ui","-apple-system","Segoe UI","sans-serif"],"fontSize":{"value":0.9375,"unit":"rem"},"fontWeight":400,"lineHeight":1.6,"letterSpacing":{"value":0,"unit":"rem"}}},
|
|
306
|
+
"text.caption":{"$type":"typography","$description":"Status line, captions and breadcrumbs.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":0.75,"unit":"rem"},"fontWeight":400,"lineHeight":1.5,"letterSpacing":{"value":0,"unit":"rem"}}},
|
|
307
|
+
"text.code":{"$type":"typography","$description":"Code blocks.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":0.8125,"unit":"rem"},"fontWeight":400,"lineHeight":1.7,"letterSpacing":{"value":0,"unit":"rem"}}},
|
|
308
|
+
"text.display":{"$type":"typography","$description":"The handle on a home page.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":4,"unit":"rem"},"fontWeight":800,"lineHeight":1,"letterSpacing":{"value":-0.12,"unit":"rem"}}},
|
|
309
|
+
"text.display-compact":{"$type":"typography","$description":"The display style on phones.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":2.5,"unit":"rem"},"fontWeight":800,"lineHeight":1,"letterSpacing":{"value":-0.075,"unit":"rem"}}},
|
|
310
|
+
"text.h1":{"$type":"typography","$description":"Page title.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":2.5,"unit":"rem"},"fontWeight":800,"lineHeight":1.1,"letterSpacing":{"value":-0.075,"unit":"rem"}}},
|
|
311
|
+
"text.h1-compact":{"$type":"typography","$description":"Page title on phones.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":2,"unit":"rem"},"fontWeight":800,"lineHeight":1.1,"letterSpacing":{"value":-0.06,"unit":"rem"}}},
|
|
312
|
+
"text.h2":{"$type":"typography","$description":"Section heading.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":1.375,"unit":"rem"},"fontWeight":700,"lineHeight":1.3,"letterSpacing":{"value":-0.0275,"unit":"rem"}}},
|
|
313
|
+
"text.h2-compact":{"$type":"typography","$description":"Section heading on phones.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":1.25,"unit":"rem"},"fontWeight":700,"lineHeight":1.3,"letterSpacing":{"value":-0.025,"unit":"rem"}}},
|
|
314
|
+
"text.h3":{"$type":"typography","$description":"Subsection heading.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":1.125,"unit":"rem"},"fontWeight":700,"lineHeight":1.4,"letterSpacing":{"value":-0.01125,"unit":"rem"}}},
|
|
315
|
+
"text.h4":{"$type":"typography","$description":"Minor heading and entry titles.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":1,"unit":"rem"},"fontWeight":700,"lineHeight":1.5,"letterSpacing":{"value":0,"unit":"rem"}}},
|
|
316
|
+
"text.label":{"$type":"typography","$description":"Tabs, prompts and buttons.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":0.875,"unit":"rem"},"fontWeight":400,"lineHeight":1.5,"letterSpacing":{"value":0,"unit":"rem"}}},
|
|
317
|
+
"text.label-sm":{"$type":"typography","$description":"Side navigation and tags.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":0.8125,"unit":"rem"},"fontWeight":400,"lineHeight":1.5,"letterSpacing":{"value":0,"unit":"rem"}}},
|
|
318
|
+
"text.lead":{"$type":"typography","$description":"The first paragraph of a page.","$value":{"fontFamily":["Inter","system-ui","-apple-system","Segoe UI","sans-serif"],"fontSize":{"value":1.0625,"unit":"rem"},"fontWeight":400,"lineHeight":1.75,"letterSpacing":{"value":0,"unit":"rem"}}},
|
|
319
|
+
"text.overline":{"$type":"typography","$description":"Group headings and table heads. Set in uppercase.","$value":{"fontFamily":["JetBrains Mono","ui-monospace","SFMono-Regular","Menlo","Consolas","monospace"],"fontSize":{"value":0.6875,"unit":"rem"},"fontWeight":700,"lineHeight":1.5,"letterSpacing":{"value":0.06875,"unit":"rem"}}},
|
|
320
|
+
},
|
|
321
|
+
};
|
|
322
|
+
const INPUT_DEFAULTS = {"theme":"dark"};
|
|
323
|
+
/** Produce a token set from a given input. */
|
|
324
|
+
export const resolver = {
|
|
325
|
+
apply(userInput) {
|
|
326
|
+
if (!userInput || typeof userInput !== "object") {
|
|
327
|
+
throw new Error(`invalid input: ${userInput}`);
|
|
328
|
+
}
|
|
329
|
+
const input = { ...INPUT_DEFAULTS, ...userInput };
|
|
330
|
+
const inputKey = JSON.stringify(Object.fromEntries(Object.entries(input).sort((a, b) => a[0].localeCompare(b[0], "en-us", { numeric: true }))));
|
|
331
|
+
return PERMUTATIONS[inputKey];
|
|
332
|
+
},
|
|
333
|
+
listPermutations() {
|
|
334
|
+
return [{"theme":"dark"}, {"theme":"light"}];
|
|
335
|
+
},
|
|
336
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The base VitePress config of the docs theme. Extend it in .vitepress/config.ts:
|
|
3
|
+
*
|
|
4
|
+
* import { defineConfigWithTheme } from 'vitepress'
|
|
5
|
+
* import { whatsaaaaConfig, type ThemeConfig } from '@whatsaaaa/design-system/vitepress/config'
|
|
6
|
+
*
|
|
7
|
+
* export default defineConfigWithTheme<ThemeConfig>({
|
|
8
|
+
* extends: whatsaaaaConfig(),
|
|
9
|
+
* title: 'form-builder',
|
|
10
|
+
* })
|
|
11
|
+
*/
|
|
12
|
+
import type { UserConfig } from 'vitepress';
|
|
13
|
+
import type { ThemeConfig } from './types.ts';
|
|
14
|
+
export type { ThemeConfig, WhatsaaaaThemeConfig } from './types.ts';
|
|
15
|
+
export { whatsaaaaMarkdown } from './markdown.ts';
|
|
16
|
+
export declare function whatsaaaaConfig(): UserConfig<ThemeConfig>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { codeTheme } from "../shiki/index.js";
|
|
2
|
+
import { keysInitScript } from "../shortcuts/index.js";
|
|
3
|
+
import { whatsaaaaMarkdown } from "./markdown.js";
|
|
4
|
+
export { whatsaaaaMarkdown } from "./markdown.js";
|
|
5
|
+
/**
|
|
6
|
+
* Sets data-theme before the first paint, from the choice VitePress remembers.
|
|
7
|
+
* VitePress itself only sets its `dark` class, which the tokens do not read.
|
|
8
|
+
* Where storage is blocked nothing is remembered, and the page follows the system.
|
|
9
|
+
*/
|
|
10
|
+
const themeScript = `;(() => {
|
|
11
|
+
let preference = 'auto'
|
|
12
|
+
try {
|
|
13
|
+
preference = localStorage.getItem('vitepress-theme-appearance') || 'auto'
|
|
14
|
+
} catch {}
|
|
15
|
+
const dark = preference === 'dark' || (preference === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches)
|
|
16
|
+
document.documentElement.dataset.theme = dark ? 'dark' : 'light'
|
|
17
|
+
})()`;
|
|
18
|
+
export function whatsaaaaConfig() {
|
|
19
|
+
return {
|
|
20
|
+
head: [
|
|
21
|
+
['script', { id: 'ws-theme' }, themeScript],
|
|
22
|
+
// keys that are remembered as off are off from the first paint: no tab shows its number
|
|
23
|
+
['script', { id: 'ws-keys' }, keysInitScript],
|
|
24
|
+
],
|
|
25
|
+
markdown: {
|
|
26
|
+
// one code theme for both page themes: code blocks stay dark
|
|
27
|
+
theme: codeTheme,
|
|
28
|
+
config: whatsaaaaMarkdown,
|
|
29
|
+
},
|
|
30
|
+
vite: {
|
|
31
|
+
// the theme ships as source, so the site's own build compiles it
|
|
32
|
+
ssr: { noExternal: ['@whatsaaaa/design-system'] },
|
|
33
|
+
optimizeDeps: { exclude: ['@whatsaaaa/design-system'] },
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { MarkdownRenderer } from 'vitepress';
|
|
2
|
+
/**
|
|
3
|
+
* The markdown-it setup of the docs theme. The base config applies it. A site with its own
|
|
4
|
+
* `markdown.config` calls it there: `config: (md) => { whatsaaaaMarkdown(md); ... }`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function whatsaaaaMarkdown(md: MarkdownRenderer): void;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shows the file name of a code block in its caption: ```ts [conditions.ts]
|
|
3
|
+
* VitePress reads that bracket only inside a code group and drops it elsewhere.
|
|
4
|
+
*/
|
|
5
|
+
function codeTitle(md) {
|
|
6
|
+
const fence = md.renderer.rules.fence;
|
|
7
|
+
md.renderer.rules.fence = (tokens, index, options, env, self) => {
|
|
8
|
+
const title = /\[(.+?)\]/.exec(tokens[index].info)?.[1];
|
|
9
|
+
const html = fence(tokens, index, options, env, self);
|
|
10
|
+
if (!title)
|
|
11
|
+
return html;
|
|
12
|
+
// the title goes right inside the block's wrapper, where the styles pick it up
|
|
13
|
+
return html.replace(/^(<div class="language-[^"]*">)/, `$1<span class="ws-code-title">${md.utils.escapeHtml(title)}</span>`);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A cell with more characters than this is running text. It is about what one line holds
|
|
18
|
+
* at the width the styles keep for such a cell, so the mark never widens a cell of short values.
|
|
19
|
+
*/
|
|
20
|
+
const TEXT_CELL = 21;
|
|
21
|
+
/**
|
|
22
|
+
* Puts every table in a frame that scrolls sideways, so a wide table never widens the page,
|
|
23
|
+
* and marks its cells of running text, which the styles keep from being squeezed and let
|
|
24
|
+
* wrap where they come first in a row.
|
|
25
|
+
*/
|
|
26
|
+
function tableFrame(md) {
|
|
27
|
+
const plain = (tokens, index, options, _env, self) => self.renderToken(tokens, index, options);
|
|
28
|
+
const open = md.renderer.rules.table_open ?? plain;
|
|
29
|
+
const close = md.renderer.rules.table_close ?? plain;
|
|
30
|
+
const cell = md.renderer.rules.td_open ?? plain;
|
|
31
|
+
md.renderer.rules.table_open = (...args) => `<div class="ws-table">${open(...args)}`;
|
|
32
|
+
md.renderer.rules.table_close = (...args) => `${close(...args)}</div>`;
|
|
33
|
+
md.renderer.rules.td_open = (tokens, index, ...rest) => {
|
|
34
|
+
// the cell's content is the token after the one that opens it
|
|
35
|
+
const text = (tokens[index + 1]?.children ?? [])
|
|
36
|
+
.map((part) => (part.type === 'text' || part.type === 'code_inline' ? part.content : ''))
|
|
37
|
+
.join('');
|
|
38
|
+
if (text.length > TEXT_CELL)
|
|
39
|
+
tokens[index].attrJoin('class', 'ws-table__text');
|
|
40
|
+
return cell(tokens, index, ...rest);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The markdown-it setup of the docs theme. The base config applies it. A site with its own
|
|
45
|
+
* `markdown.config` calls it there: `config: (md) => { whatsaaaaMarkdown(md); ... }`.
|
|
46
|
+
*/
|
|
47
|
+
export function whatsaaaaMarkdown(md) {
|
|
48
|
+
codeTitle(md);
|
|
49
|
+
tableFrame(md);
|
|
50
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { DefaultTheme } from 'vitepress';
|
|
2
|
+
/** What this theme adds to the default theme's config, under `themeConfig.whatsaaaa`. */
|
|
3
|
+
export interface WhatsaaaaThemeConfig {
|
|
4
|
+
/**
|
|
5
|
+
* The ghost at the right end of the tab bar.
|
|
6
|
+
* - `link` (default): a link to the handle's site, as on a project's docs
|
|
7
|
+
* - `egg`: the ghost with the easter egg, for the handle's own sites
|
|
8
|
+
*/
|
|
9
|
+
ghost?: 'link' | 'egg';
|
|
10
|
+
/** The git branch the site is built from, shown in the status line. Left out when not set. */
|
|
11
|
+
branch?: string;
|
|
12
|
+
}
|
|
13
|
+
/** The default theme's config with this theme's additions. Pass it to `defineConfigWithTheme<ThemeConfig>()`. */
|
|
14
|
+
export interface ThemeConfig extends DefaultTheme.Config {
|
|
15
|
+
whatsaaaa?: WhatsaaaaThemeConfig;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|