@rizom/theme-books 0.0.0-stage → 0.2.0-alpha.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/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/package.json +45 -4
- package/src/index.ts +7 -0
- package/src/theme.css +342 -0
- package/src/types.d.ts +4 -0
- package/README.md +0 -3
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const themeCSSOnly = "/*\n * Books theme — the reading theme for book brains.\n *\n * Paper and ink with one red pencil. A Didone display face in the spirit of\n * nineteenth-century German book printing, a serif built for long reading,\n * and a typewriter face for sigla and labels. It keeps the default theme's\n * semantic token names, so shared templates and components render unchanged.\n */\n\n@import url(\"https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Literata:ital,opsz,wght@0,7..72,300..700;1,7..72,300..700&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap\");\n\n@theme inline {\n --font-display: var(--font-heading);\n --font-body: var(--font-sans);\n --font-label: var(--font-mono);\n\n --color-secondary: var(--color-secondary);\n --color-secondary-dark: var(--color-secondary-dark);\n --color-accent-bright: var(--color-accent-bright);\n}\n\n@layer theme {\n :root {\n /* Layout */\n --layout-max-width: 76rem;\n --spacing-section: clamp(3.5rem, 7vw, 6rem);\n --radius-lg: 0;\n\n /* Palette — paper, ink, a red pencil. */\n --palette-paper: #f3eee4;\n --palette-paper-soft: #f7f3eb;\n --palette-paper-muted: #ece5d8;\n --palette-paper-deep: #e9e2d4;\n --palette-ink: #1c1a16;\n --palette-ink-muted: #4a463d;\n --palette-ink-subtle: #7a7466;\n --palette-border: #d9d1c1;\n --palette-pencil: #b3261e;\n --palette-pencil-dark: #8e1d16;\n --palette-pencil-light: #e2614f;\n\n --palette-night: #15140f;\n --palette-night-subtle: #1d1b15;\n --palette-night-muted: #25221b;\n --palette-night-deep: #0f0e0b;\n --palette-night-ink: #ece4d3;\n\n /* Semantic colours */\n --color-brand: var(--palette-pencil);\n --color-brand-dark: var(--palette-pencil-dark);\n --color-brand-light: var(--palette-pencil-light);\n --color-accent: var(--palette-pencil);\n --color-accent-dark: var(--palette-pencil-dark);\n --color-accent-soft: rgb(from var(--color-accent) r g b / 0.1);\n --color-accent-bright: var(--palette-pencil-light);\n --color-secondary: var(--palette-ink-muted);\n --color-secondary-dark: var(--palette-ink);\n --color-on-accent: var(--palette-paper-soft);\n\n --color-text: var(--palette-ink);\n --color-text-muted: var(--palette-ink-muted);\n --color-text-light: var(--palette-ink-subtle);\n --color-text-inverse: var(--palette-paper-soft);\n --color-text-on-dark: var(--palette-paper-soft);\n --color-heading: var(--palette-ink);\n\n --color-bg: var(--palette-paper);\n --color-bg-subtle: var(--palette-paper-soft);\n --color-bg-muted: var(--palette-paper-muted);\n --color-bg-dark: var(--palette-ink);\n --color-bg-deep: var(--palette-paper-deep);\n\n --color-border: var(--palette-border);\n --color-border-light: rgb(255 255 255 / 0.6);\n\n --color-rule: rgb(from var(--color-text) r g b / 0.08);\n --color-rule-strong: rgb(from var(--color-text) r g b / 0.16);\n\n --color-footer: var(--palette-paper-deep);\n --color-footer-text: var(--palette-ink-muted);\n --color-logo: var(--palette-ink);\n --color-selection: var(--color-accent);\n --color-selection-bg: rgb(179 38 30 / 0.16);\n --color-selection-text: var(--palette-ink);\n\n --color-gradient-start: var(--palette-paper);\n --color-gradient-end: var(--palette-paper-deep);\n --color-bg-gradient: linear-gradient(\n 180deg,\n var(--color-gradient-start) 0%,\n var(--color-gradient-end) 100%\n );\n --color-pattern-dot: rgb(28 26 22 / 0.1);\n\n /* Typography */\n --font-sans: \"Literata\", Georgia, serif;\n --font-heading: \"Bodoni Moda\", \"Didot\", Georgia, serif;\n --font-mono: \"Courier Prime\", \"Courier New\", ui-monospace, monospace;\n --font-reading: \"Literata\", Georgia, serif;\n\n --text-display-2xl: clamp(4.5rem, 9vw, 8rem);\n --text-display-xl: clamp(3.5rem, 7vw, 6.5rem);\n --text-display-lg: clamp(2.75rem, 5vw, 4.5rem);\n --text-display-md: clamp(2.1rem, 4vw, 3.25rem);\n --text-display-sm: clamp(1.75rem, 3vw, 2.5rem);\n --text-heading-lg: clamp(1.5rem, 2vw, 2rem);\n --text-heading-md: clamp(1.25rem, 1.6vw, 1.625rem);\n --text-heading-sm: clamp(1.1rem, 1.3vw, 1.25rem);\n --text-body-xl: clamp(1.25rem, 1.8vw, 1.5rem);\n --text-body-lg: clamp(1.125rem, 1.5vw, 1.3125rem);\n --text-body-md: 1.0625rem;\n --text-body-sm: 0.9375rem;\n --text-body-xs: 0.8125rem;\n --text-label-md: 0.875rem;\n --text-label-sm: 0.75rem;\n --text-label-xs: 0.6875rem;\n\n --text-h1: var(--text-display-xl);\n --text-h1-mobile: 3.5rem;\n --text-h2: var(--text-display-lg);\n --text-h2-mobile: 2.75rem;\n --text-h3: var(--text-display-md);\n --text-h3-mobile: 2.125rem;\n --text-h4: 1.875rem;\n --text-body: 1.1875rem;\n --text-body-mobile: 1.0625rem;\n\n /* Shared button token contract — quiet, ink-and-pencil buttons. */\n --rizom-btn-font-family: var(--font-mono);\n --rizom-btn-font-style: normal;\n --rizom-btn-gap: 8px;\n --rizom-btn-letter-spacing: 0.02em;\n --rizom-btn-primary-bg: var(--color-text);\n --rizom-btn-primary-border-color: transparent;\n --rizom-btn-primary-border-width: 0px;\n --rizom-btn-primary-color: var(--color-bg);\n --rizom-btn-primary-hover-border-color: transparent;\n --rizom-btn-primary-hover-border-width: 0px;\n --rizom-btn-primary-hover-color: var(--color-bg);\n --rizom-btn-primary-strong-bg: var(--color-accent);\n --rizom-btn-primary-strong-border-color: transparent;\n --rizom-btn-primary-strong-border-width: 0px;\n --rizom-btn-primary-strong-color: var(--color-on-accent);\n --rizom-btn-primary-strong-hover-border-color: transparent;\n --rizom-btn-primary-strong-hover-border-width: 0px;\n --rizom-btn-primary-strong-hover-color: var(--color-on-accent);\n --rizom-btn-secondary-hover-color: var(--color-accent);\n --rizom-btn-secondary-hover-shadow: none;\n --rizom-btn-secondary-hover-transform: none;\n --rizom-btn-secondary-shadow: none;\n --rizom-btn-text-transform: none;\n }\n\n [data-theme=\"dark\"] {\n --color-brand: var(--palette-pencil-light);\n --color-brand-dark: var(--palette-pencil);\n --color-brand-light: #ef8a7b;\n --color-accent: var(--palette-pencil-light);\n --color-accent-dark: var(--palette-pencil);\n --color-accent-soft: rgb(from var(--color-accent) r g b / 0.14);\n --color-accent-bright: #ef8a7b;\n --color-secondary: rgb(236 228 211 / 0.7);\n --color-secondary-dark: var(--palette-night-ink);\n --color-on-accent: var(--palette-night);\n\n --color-text: var(--palette-night-ink);\n --color-text-muted: rgb(236 228 211 / 0.72);\n --color-text-light: rgb(236 228 211 / 0.5);\n --color-text-inverse: var(--palette-night);\n --color-text-on-dark: var(--palette-night-ink);\n --color-heading: var(--palette-night-ink);\n\n --color-bg: var(--palette-night);\n --color-bg-subtle: var(--palette-night-subtle);\n --color-bg-muted: var(--palette-night-muted);\n --color-bg-dark: var(--palette-night-deep);\n --color-bg-deep: var(--palette-night-deep);\n\n --color-border: rgb(236 228 211 / 0.14);\n --color-border-light: rgb(236 228 211 / 0.2);\n --color-footer: var(--palette-night-deep);\n --color-footer-text: rgb(236 228 211 / 0.7);\n --color-logo: var(--palette-night-ink);\n --color-selection-bg: rgb(226 97 79 / 0.24);\n --color-selection-text: var(--palette-night-ink);\n --color-gradient-start: var(--palette-night);\n --color-gradient-end: var(--palette-night-deep);\n --color-pattern-dot: rgb(236 228 211 / 0.08);\n }\n}\n\n/* Book text: set for long reading. Spaced emphasis (Sperrsatz) in the source\n arrives as markdown emphasis and prints as letter-spacing, the way the\n first editions set it — not as italics. */\n.book-text {\n font-family: var(--font-reading);\n font-size: var(--text-body);\n line-height: 1.62;\n font-weight: 360;\n font-variant-numeric: oldstyle-nums;\n hyphens: auto;\n -webkit-hyphens: auto;\n text-wrap: pretty;\n}\n\n.book-text .prose {\n --tw-prose-body: var(--color-text);\n --tw-prose-headings: var(--color-heading);\n --tw-prose-bold: var(--color-text);\n --tw-prose-links: var(--color-brand);\n --tw-prose-quotes: var(--color-text-muted);\n --tw-prose-counters: var(--color-text-muted);\n --tw-prose-bullets: var(--color-text-muted);\n color: var(--color-text);\n max-width: none;\n font-size: inherit;\n line-height: inherit;\n}\n\n.book-text em {\n font-style: normal;\n letter-spacing: 0.16em;\n margin-right: -0.16em;\n}\n\n.book-text p {\n margin: 0 0 1.05em;\n}\n\n.book-siglum {\n font-family: var(--font-mono);\n letter-spacing: -0.01em;\n}\n\n/* Asking the brain: the guest box ruled in ink, as a form on paper. Web Chat\n mounts its conversation in the host and marks it ready. */\n.book-ask__ask:not([data-ask-ready]) {\n display: none;\n}\n\n.book-ask__ask-status {\n margin: 0 0 0.5rem;\n font-family: var(--font-mono);\n font-size: var(--text-label-sm);\n color: var(--color-text-light);\n}\n\n.book-ask__ask-status:empty {\n display: none;\n}\n\n.book-ask__composer,\n.book-ask__ask .prompt-row {\n display: flex;\n align-items: flex-end;\n gap: 0.75rem;\n padding: 1rem 1.1rem;\n border: 1px solid var(--color-heading);\n background: var(--color-bg);\n}\n\n.book-ask__composer textarea,\n.book-ask__ask .prompt-row textarea {\n flex: 1;\n resize: none;\n border: 0;\n border-bottom: 1px solid var(--color-rule-strong);\n background: none;\n color: var(--color-text);\n font: 1.2rem/1.45 var(--font-body);\n padding: 0.25rem 0 0.6rem;\n}\n\n.book-ask__composer textarea:focus,\n.book-ask__ask .prompt-row textarea:focus {\n outline: none;\n border-bottom-color: var(--color-accent);\n}\n\n.book-ask__composer textarea::placeholder,\n.book-ask__ask .prompt-row textarea::placeholder {\n color: var(--color-text-light);\n font-style: italic;\n}\n\n.book-ask__send,\n.book-ask__ask .send {\n flex: none;\n display: grid;\n place-items: center;\n width: 2.5rem;\n height: 2.5rem;\n border: 0;\n background: var(--color-heading);\n color: var(--color-bg);\n cursor: pointer;\n}\n\n.book-ask__send:disabled,\n.book-ask__ask .send:disabled {\n opacity: 0.35;\n cursor: default;\n}\n\n.book-ask__send svg,\n.book-ask__ask .send svg {\n width: 1.1rem;\n height: 1.1rem;\n fill: none;\n stroke: currentColor;\n stroke-width: 2;\n}\n\n.book-ask__passages a {\n display: grid;\n gap: 0.15rem;\n padding: 0.7rem 0;\n border-top: 1px solid var(--color-rule-strong);\n color: inherit;\n text-decoration: none;\n}\n\n.book-ask__sig {\n font-family: var(--font-mono);\n font-size: var(--text-label-md);\n color: var(--color-accent);\n}\n\n.book-ask__title {\n font-family: var(--font-heading);\n font-size: 1.15rem;\n}\n\n.book-ask__meta {\n font-family: var(--font-mono);\n font-size: var(--text-label-sm);\n color: var(--color-text-muted);\n}\n\n.book-ask__passages a:hover .book-ask__title {\n color: var(--color-accent);\n}\n";
|
|
2
|
+
export default themeCSSOnly;
|
|
3
|
+
export { themeCSSOnly };
|
package/package.json
CHANGED
|
@@ -1,6 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rizom/theme-books",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0-alpha.1",
|
|
4
|
+
"description": "Reading theme for book brains — paper and ink, a red pencil, Didone display, a reading serif and typewriter sigla",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": "Yeehaa <yeehaa@rizom.ai> (https://rizom.ai)",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"src"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "bun scripts/build.ts",
|
|
22
|
+
"lint": "eslint . --max-warnings 0",
|
|
23
|
+
"lint:fix": "eslint . --max-warnings 0 --fix",
|
|
24
|
+
"prepack": "publish-manifest prepare",
|
|
25
|
+
"test": "bun test",
|
|
26
|
+
"typecheck": "tsc --noEmit",
|
|
27
|
+
"prepublishOnly": "bun scripts/build.ts"
|
|
28
|
+
},
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/rizom-ai/brains.git",
|
|
35
|
+
"directory": "shared/theme-default"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/rizom-ai/brains/tree/main/shared/theme-default#readme",
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/rizom-ai/brains/issues"
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"bun": ">=1.3.3"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"@rizom/brain": ">=0.2.0-alpha.217 <0.3.0"
|
|
46
|
+
}
|
|
47
|
+
}
|
package/src/index.ts
ADDED
package/src/theme.css
ADDED
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Books theme — the reading theme for book brains.
|
|
3
|
+
*
|
|
4
|
+
* Paper and ink with one red pencil. A Didone display face in the spirit of
|
|
5
|
+
* nineteenth-century German book printing, a serif built for long reading,
|
|
6
|
+
* and a typewriter face for sigla and labels. It keeps the default theme's
|
|
7
|
+
* semantic token names, so shared templates and components render unchanged.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Literata:ital,opsz,wght@0,7..72,300..700;1,7..72,300..700&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap");
|
|
11
|
+
|
|
12
|
+
@theme inline {
|
|
13
|
+
--font-display: var(--font-heading);
|
|
14
|
+
--font-body: var(--font-sans);
|
|
15
|
+
--font-label: var(--font-mono);
|
|
16
|
+
|
|
17
|
+
--color-secondary: var(--color-secondary);
|
|
18
|
+
--color-secondary-dark: var(--color-secondary-dark);
|
|
19
|
+
--color-accent-bright: var(--color-accent-bright);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@layer theme {
|
|
23
|
+
:root {
|
|
24
|
+
/* Layout */
|
|
25
|
+
--layout-max-width: 76rem;
|
|
26
|
+
--spacing-section: clamp(3.5rem, 7vw, 6rem);
|
|
27
|
+
--radius-lg: 0;
|
|
28
|
+
|
|
29
|
+
/* Palette — paper, ink, a red pencil. */
|
|
30
|
+
--palette-paper: #f3eee4;
|
|
31
|
+
--palette-paper-soft: #f7f3eb;
|
|
32
|
+
--palette-paper-muted: #ece5d8;
|
|
33
|
+
--palette-paper-deep: #e9e2d4;
|
|
34
|
+
--palette-ink: #1c1a16;
|
|
35
|
+
--palette-ink-muted: #4a463d;
|
|
36
|
+
--palette-ink-subtle: #7a7466;
|
|
37
|
+
--palette-border: #d9d1c1;
|
|
38
|
+
--palette-pencil: #b3261e;
|
|
39
|
+
--palette-pencil-dark: #8e1d16;
|
|
40
|
+
--palette-pencil-light: #e2614f;
|
|
41
|
+
|
|
42
|
+
--palette-night: #15140f;
|
|
43
|
+
--palette-night-subtle: #1d1b15;
|
|
44
|
+
--palette-night-muted: #25221b;
|
|
45
|
+
--palette-night-deep: #0f0e0b;
|
|
46
|
+
--palette-night-ink: #ece4d3;
|
|
47
|
+
|
|
48
|
+
/* Semantic colours */
|
|
49
|
+
--color-brand: var(--palette-pencil);
|
|
50
|
+
--color-brand-dark: var(--palette-pencil-dark);
|
|
51
|
+
--color-brand-light: var(--palette-pencil-light);
|
|
52
|
+
--color-accent: var(--palette-pencil);
|
|
53
|
+
--color-accent-dark: var(--palette-pencil-dark);
|
|
54
|
+
--color-accent-soft: rgb(from var(--color-accent) r g b / 0.1);
|
|
55
|
+
--color-accent-bright: var(--palette-pencil-light);
|
|
56
|
+
--color-secondary: var(--palette-ink-muted);
|
|
57
|
+
--color-secondary-dark: var(--palette-ink);
|
|
58
|
+
--color-on-accent: var(--palette-paper-soft);
|
|
59
|
+
|
|
60
|
+
--color-text: var(--palette-ink);
|
|
61
|
+
--color-text-muted: var(--palette-ink-muted);
|
|
62
|
+
--color-text-light: var(--palette-ink-subtle);
|
|
63
|
+
--color-text-inverse: var(--palette-paper-soft);
|
|
64
|
+
--color-text-on-dark: var(--palette-paper-soft);
|
|
65
|
+
--color-heading: var(--palette-ink);
|
|
66
|
+
|
|
67
|
+
--color-bg: var(--palette-paper);
|
|
68
|
+
--color-bg-subtle: var(--palette-paper-soft);
|
|
69
|
+
--color-bg-muted: var(--palette-paper-muted);
|
|
70
|
+
--color-bg-dark: var(--palette-ink);
|
|
71
|
+
--color-bg-deep: var(--palette-paper-deep);
|
|
72
|
+
|
|
73
|
+
--color-border: var(--palette-border);
|
|
74
|
+
--color-border-light: rgb(255 255 255 / 0.6);
|
|
75
|
+
|
|
76
|
+
--color-rule: rgb(from var(--color-text) r g b / 0.08);
|
|
77
|
+
--color-rule-strong: rgb(from var(--color-text) r g b / 0.16);
|
|
78
|
+
|
|
79
|
+
--color-footer: var(--palette-paper-deep);
|
|
80
|
+
--color-footer-text: var(--palette-ink-muted);
|
|
81
|
+
--color-logo: var(--palette-ink);
|
|
82
|
+
--color-selection: var(--color-accent);
|
|
83
|
+
--color-selection-bg: rgb(179 38 30 / 0.16);
|
|
84
|
+
--color-selection-text: var(--palette-ink);
|
|
85
|
+
|
|
86
|
+
--color-gradient-start: var(--palette-paper);
|
|
87
|
+
--color-gradient-end: var(--palette-paper-deep);
|
|
88
|
+
--color-bg-gradient: linear-gradient(
|
|
89
|
+
180deg,
|
|
90
|
+
var(--color-gradient-start) 0%,
|
|
91
|
+
var(--color-gradient-end) 100%
|
|
92
|
+
);
|
|
93
|
+
--color-pattern-dot: rgb(28 26 22 / 0.1);
|
|
94
|
+
|
|
95
|
+
/* Typography */
|
|
96
|
+
--font-sans: "Literata", Georgia, serif;
|
|
97
|
+
--font-heading: "Bodoni Moda", "Didot", Georgia, serif;
|
|
98
|
+
--font-mono: "Courier Prime", "Courier New", ui-monospace, monospace;
|
|
99
|
+
--font-reading: "Literata", Georgia, serif;
|
|
100
|
+
|
|
101
|
+
--text-display-2xl: clamp(4.5rem, 9vw, 8rem);
|
|
102
|
+
--text-display-xl: clamp(3.5rem, 7vw, 6.5rem);
|
|
103
|
+
--text-display-lg: clamp(2.75rem, 5vw, 4.5rem);
|
|
104
|
+
--text-display-md: clamp(2.1rem, 4vw, 3.25rem);
|
|
105
|
+
--text-display-sm: clamp(1.75rem, 3vw, 2.5rem);
|
|
106
|
+
--text-heading-lg: clamp(1.5rem, 2vw, 2rem);
|
|
107
|
+
--text-heading-md: clamp(1.25rem, 1.6vw, 1.625rem);
|
|
108
|
+
--text-heading-sm: clamp(1.1rem, 1.3vw, 1.25rem);
|
|
109
|
+
--text-body-xl: clamp(1.25rem, 1.8vw, 1.5rem);
|
|
110
|
+
--text-body-lg: clamp(1.125rem, 1.5vw, 1.3125rem);
|
|
111
|
+
--text-body-md: 1.0625rem;
|
|
112
|
+
--text-body-sm: 0.9375rem;
|
|
113
|
+
--text-body-xs: 0.8125rem;
|
|
114
|
+
--text-label-md: 0.875rem;
|
|
115
|
+
--text-label-sm: 0.75rem;
|
|
116
|
+
--text-label-xs: 0.6875rem;
|
|
117
|
+
|
|
118
|
+
--text-h1: var(--text-display-xl);
|
|
119
|
+
--text-h1-mobile: 3.5rem;
|
|
120
|
+
--text-h2: var(--text-display-lg);
|
|
121
|
+
--text-h2-mobile: 2.75rem;
|
|
122
|
+
--text-h3: var(--text-display-md);
|
|
123
|
+
--text-h3-mobile: 2.125rem;
|
|
124
|
+
--text-h4: 1.875rem;
|
|
125
|
+
--text-body: 1.1875rem;
|
|
126
|
+
--text-body-mobile: 1.0625rem;
|
|
127
|
+
|
|
128
|
+
/* Shared button token contract — quiet, ink-and-pencil buttons. */
|
|
129
|
+
--rizom-btn-font-family: var(--font-mono);
|
|
130
|
+
--rizom-btn-font-style: normal;
|
|
131
|
+
--rizom-btn-gap: 8px;
|
|
132
|
+
--rizom-btn-letter-spacing: 0.02em;
|
|
133
|
+
--rizom-btn-primary-bg: var(--color-text);
|
|
134
|
+
--rizom-btn-primary-border-color: transparent;
|
|
135
|
+
--rizom-btn-primary-border-width: 0px;
|
|
136
|
+
--rizom-btn-primary-color: var(--color-bg);
|
|
137
|
+
--rizom-btn-primary-hover-border-color: transparent;
|
|
138
|
+
--rizom-btn-primary-hover-border-width: 0px;
|
|
139
|
+
--rizom-btn-primary-hover-color: var(--color-bg);
|
|
140
|
+
--rizom-btn-primary-strong-bg: var(--color-accent);
|
|
141
|
+
--rizom-btn-primary-strong-border-color: transparent;
|
|
142
|
+
--rizom-btn-primary-strong-border-width: 0px;
|
|
143
|
+
--rizom-btn-primary-strong-color: var(--color-on-accent);
|
|
144
|
+
--rizom-btn-primary-strong-hover-border-color: transparent;
|
|
145
|
+
--rizom-btn-primary-strong-hover-border-width: 0px;
|
|
146
|
+
--rizom-btn-primary-strong-hover-color: var(--color-on-accent);
|
|
147
|
+
--rizom-btn-secondary-hover-color: var(--color-accent);
|
|
148
|
+
--rizom-btn-secondary-hover-shadow: none;
|
|
149
|
+
--rizom-btn-secondary-hover-transform: none;
|
|
150
|
+
--rizom-btn-secondary-shadow: none;
|
|
151
|
+
--rizom-btn-text-transform: none;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
[data-theme="dark"] {
|
|
155
|
+
--color-brand: var(--palette-pencil-light);
|
|
156
|
+
--color-brand-dark: var(--palette-pencil);
|
|
157
|
+
--color-brand-light: #ef8a7b;
|
|
158
|
+
--color-accent: var(--palette-pencil-light);
|
|
159
|
+
--color-accent-dark: var(--palette-pencil);
|
|
160
|
+
--color-accent-soft: rgb(from var(--color-accent) r g b / 0.14);
|
|
161
|
+
--color-accent-bright: #ef8a7b;
|
|
162
|
+
--color-secondary: rgb(236 228 211 / 0.7);
|
|
163
|
+
--color-secondary-dark: var(--palette-night-ink);
|
|
164
|
+
--color-on-accent: var(--palette-night);
|
|
165
|
+
|
|
166
|
+
--color-text: var(--palette-night-ink);
|
|
167
|
+
--color-text-muted: rgb(236 228 211 / 0.72);
|
|
168
|
+
--color-text-light: rgb(236 228 211 / 0.5);
|
|
169
|
+
--color-text-inverse: var(--palette-night);
|
|
170
|
+
--color-text-on-dark: var(--palette-night-ink);
|
|
171
|
+
--color-heading: var(--palette-night-ink);
|
|
172
|
+
|
|
173
|
+
--color-bg: var(--palette-night);
|
|
174
|
+
--color-bg-subtle: var(--palette-night-subtle);
|
|
175
|
+
--color-bg-muted: var(--palette-night-muted);
|
|
176
|
+
--color-bg-dark: var(--palette-night-deep);
|
|
177
|
+
--color-bg-deep: var(--palette-night-deep);
|
|
178
|
+
|
|
179
|
+
--color-border: rgb(236 228 211 / 0.14);
|
|
180
|
+
--color-border-light: rgb(236 228 211 / 0.2);
|
|
181
|
+
--color-footer: var(--palette-night-deep);
|
|
182
|
+
--color-footer-text: rgb(236 228 211 / 0.7);
|
|
183
|
+
--color-logo: var(--palette-night-ink);
|
|
184
|
+
--color-selection-bg: rgb(226 97 79 / 0.24);
|
|
185
|
+
--color-selection-text: var(--palette-night-ink);
|
|
186
|
+
--color-gradient-start: var(--palette-night);
|
|
187
|
+
--color-gradient-end: var(--palette-night-deep);
|
|
188
|
+
--color-pattern-dot: rgb(236 228 211 / 0.08);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* Book text: set for long reading. Spaced emphasis (Sperrsatz) in the source
|
|
193
|
+
arrives as markdown emphasis and prints as letter-spacing, the way the
|
|
194
|
+
first editions set it — not as italics. */
|
|
195
|
+
.book-text {
|
|
196
|
+
font-family: var(--font-reading);
|
|
197
|
+
font-size: var(--text-body);
|
|
198
|
+
line-height: 1.62;
|
|
199
|
+
font-weight: 360;
|
|
200
|
+
font-variant-numeric: oldstyle-nums;
|
|
201
|
+
hyphens: auto;
|
|
202
|
+
-webkit-hyphens: auto;
|
|
203
|
+
text-wrap: pretty;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.book-text .prose {
|
|
207
|
+
--tw-prose-body: var(--color-text);
|
|
208
|
+
--tw-prose-headings: var(--color-heading);
|
|
209
|
+
--tw-prose-bold: var(--color-text);
|
|
210
|
+
--tw-prose-links: var(--color-brand);
|
|
211
|
+
--tw-prose-quotes: var(--color-text-muted);
|
|
212
|
+
--tw-prose-counters: var(--color-text-muted);
|
|
213
|
+
--tw-prose-bullets: var(--color-text-muted);
|
|
214
|
+
color: var(--color-text);
|
|
215
|
+
max-width: none;
|
|
216
|
+
font-size: inherit;
|
|
217
|
+
line-height: inherit;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.book-text em {
|
|
221
|
+
font-style: normal;
|
|
222
|
+
letter-spacing: 0.16em;
|
|
223
|
+
margin-right: -0.16em;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.book-text p {
|
|
227
|
+
margin: 0 0 1.05em;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.book-siglum {
|
|
231
|
+
font-family: var(--font-mono);
|
|
232
|
+
letter-spacing: -0.01em;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* Asking the brain: the guest box ruled in ink, as a form on paper. Web Chat
|
|
236
|
+
mounts its conversation in the host and marks it ready. */
|
|
237
|
+
.book-ask__ask:not([data-ask-ready]) {
|
|
238
|
+
display: none;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.book-ask__ask-status {
|
|
242
|
+
margin: 0 0 0.5rem;
|
|
243
|
+
font-family: var(--font-mono);
|
|
244
|
+
font-size: var(--text-label-sm);
|
|
245
|
+
color: var(--color-text-light);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.book-ask__ask-status:empty {
|
|
249
|
+
display: none;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.book-ask__composer,
|
|
253
|
+
.book-ask__ask .prompt-row {
|
|
254
|
+
display: flex;
|
|
255
|
+
align-items: flex-end;
|
|
256
|
+
gap: 0.75rem;
|
|
257
|
+
padding: 1rem 1.1rem;
|
|
258
|
+
border: 1px solid var(--color-heading);
|
|
259
|
+
background: var(--color-bg);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.book-ask__composer textarea,
|
|
263
|
+
.book-ask__ask .prompt-row textarea {
|
|
264
|
+
flex: 1;
|
|
265
|
+
resize: none;
|
|
266
|
+
border: 0;
|
|
267
|
+
border-bottom: 1px solid var(--color-rule-strong);
|
|
268
|
+
background: none;
|
|
269
|
+
color: var(--color-text);
|
|
270
|
+
font: 1.2rem/1.45 var(--font-body);
|
|
271
|
+
padding: 0.25rem 0 0.6rem;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.book-ask__composer textarea:focus,
|
|
275
|
+
.book-ask__ask .prompt-row textarea:focus {
|
|
276
|
+
outline: none;
|
|
277
|
+
border-bottom-color: var(--color-accent);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.book-ask__composer textarea::placeholder,
|
|
281
|
+
.book-ask__ask .prompt-row textarea::placeholder {
|
|
282
|
+
color: var(--color-text-light);
|
|
283
|
+
font-style: italic;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.book-ask__send,
|
|
287
|
+
.book-ask__ask .send {
|
|
288
|
+
flex: none;
|
|
289
|
+
display: grid;
|
|
290
|
+
place-items: center;
|
|
291
|
+
width: 2.5rem;
|
|
292
|
+
height: 2.5rem;
|
|
293
|
+
border: 0;
|
|
294
|
+
background: var(--color-heading);
|
|
295
|
+
color: var(--color-bg);
|
|
296
|
+
cursor: pointer;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.book-ask__send:disabled,
|
|
300
|
+
.book-ask__ask .send:disabled {
|
|
301
|
+
opacity: 0.35;
|
|
302
|
+
cursor: default;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.book-ask__send svg,
|
|
306
|
+
.book-ask__ask .send svg {
|
|
307
|
+
width: 1.1rem;
|
|
308
|
+
height: 1.1rem;
|
|
309
|
+
fill: none;
|
|
310
|
+
stroke: currentColor;
|
|
311
|
+
stroke-width: 2;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.book-ask__passages a {
|
|
315
|
+
display: grid;
|
|
316
|
+
gap: 0.15rem;
|
|
317
|
+
padding: 0.7rem 0;
|
|
318
|
+
border-top: 1px solid var(--color-rule-strong);
|
|
319
|
+
color: inherit;
|
|
320
|
+
text-decoration: none;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.book-ask__sig {
|
|
324
|
+
font-family: var(--font-mono);
|
|
325
|
+
font-size: var(--text-label-md);
|
|
326
|
+
color: var(--color-accent);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.book-ask__title {
|
|
330
|
+
font-family: var(--font-heading);
|
|
331
|
+
font-size: 1.15rem;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.book-ask__meta {
|
|
335
|
+
font-family: var(--font-mono);
|
|
336
|
+
font-size: var(--text-label-sm);
|
|
337
|
+
color: var(--color-text-muted);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.book-ask__passages a:hover .book-ask__title {
|
|
341
|
+
color: var(--color-accent);
|
|
342
|
+
}
|
package/src/types.d.ts
ADDED
package/README.md
DELETED