@treeseed/core 0.8.7 → 0.8.9
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/components/content/ContentStatusLegend.astro +4 -4
- package/dist/components/docs/BookFontControls.astro +9 -9
- package/dist/components/docs/DesktopSidebarToggle.astro +8 -8
- package/dist/components/docs/Footer.astro +6 -6
- package/dist/components/docs/PageTitle.astro +1 -1
- package/dist/components/docs/ThemeSelect.astro +3 -1
- package/dist/components/forms/ContactForm.astro +21 -21
- package/dist/components/forms/FooterSubscribeForm.astro +9 -9
- package/dist/components/site/BookList.astro +7 -7
- package/dist/components/site/CTASection.astro +4 -4
- package/dist/components/site/ChronicleList.astro +6 -6
- package/dist/components/site/Hero.astro +3 -3
- package/dist/components/site/PathCard.astro +5 -5
- package/dist/components/site/ProfileList.astro +5 -5
- package/dist/components/site/RouteNotFound.astro +5 -5
- package/dist/components/site/SectionIntro.astro +3 -3
- package/dist/components/site/StageBanner.astro +2 -2
- package/dist/components/site/TrustCallout.astro +3 -3
- package/dist/components/ui/data/ActionList.astro +51 -0
- package/dist/components/ui/data/Badge.astro +19 -0
- package/dist/components/ui/data/DataTable.astro +51 -0
- package/dist/components/ui/data/KeyValueList.astro +28 -0
- package/dist/components/ui/data/MetricCard.astro +25 -0
- package/dist/components/ui/data/MetricGrid.astro +27 -0
- package/dist/components/ui/data/StatusPill.astro +20 -0
- package/dist/components/ui/forms/Button.astro +52 -0
- package/dist/components/ui/forms/Field.astro +39 -0
- package/dist/components/ui/forms/FormActions.astro +12 -0
- package/dist/components/ui/forms/PasswordMeter.astro +80 -0
- package/dist/components/ui/forms/RadioGroup.astro +55 -0
- package/dist/components/ui/forms/Select.astro +44 -0
- package/dist/components/ui/forms/TextInput.astro +58 -0
- package/dist/components/ui/forms/Textarea.astro +45 -0
- package/dist/components/ui/layout/PageHeader.astro +45 -0
- package/dist/components/ui/shell/AppShell.astro +110 -0
- package/dist/components/ui/shell/BottomNav.astro +35 -0
- package/dist/components/ui/shell/ProjectHeader.astro +66 -0
- package/dist/components/ui/shell/PublicShell.astro +108 -0
- package/dist/components/ui/shell/RailNav.astro +35 -0
- package/dist/components/ui/shell/TopBar.astro +52 -0
- package/dist/components/ui/surface/Card.astro +46 -0
- package/dist/components/ui/surface/EmptyState.astro +45 -0
- package/dist/components/ui/surface/Panel.astro +54 -0
- package/dist/components/ui/theme/ThemeMenu.astro +32 -0
- package/dist/components/ui/theme/ThemePreviewSwatch.astro +18 -0
- package/dist/components/ui/theme/ThemeScript.astro +105 -0
- package/dist/components/ui/theme/ThemeSelector.astro +202 -0
- package/dist/components/ui/types.js +0 -0
- package/dist/dev.js +14 -2
- package/dist/layouts/AuthoredEntryLayout.astro +27 -27
- package/dist/layouts/BookLayout.astro +10 -10
- package/dist/layouts/ContentLayout.astro +4 -4
- package/dist/layouts/MainLayout.astro +27 -25
- package/dist/layouts/NoteLayout.astro +6 -6
- package/dist/layouts/ProfileLayout.astro +17 -17
- package/dist/pages/404.astro +6 -6
- package/dist/pages/contact.astro +4 -4
- package/dist/pages/docs-runtime/[...slug].astro +12 -12
- package/dist/pages/docs-runtime/index.astro +13 -13
- package/dist/pages/index.astro +28 -28
- package/dist/pages/ui/index.astro +216 -0
- package/dist/site.js +3 -2
- package/dist/styles/app-shell.css +398 -0
- package/dist/styles/forms.css +258 -0
- package/dist/styles/global.css +119 -119
- package/dist/styles/prose.css +11 -11
- package/dist/styles/theme.css +177 -0
- package/dist/styles/tokens.css +62 -22
- package/dist/styles/ui.css +551 -0
- package/dist/utils/content-status.js +5 -5
- package/dist/utils/site-config.js +2 -2
- package/dist/utils/theme.js +352 -40
- package/package.json +35 -2
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
html {
|
|
2
|
+
font-family: var(--font-sans);
|
|
3
|
+
font-feature-settings: "ss01" 1, "cv05" 1;
|
|
4
|
+
text-rendering: optimizeLegibility;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
body {
|
|
8
|
+
font-family: var(--font-sans);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ts-theme-selector {
|
|
12
|
+
display: grid;
|
|
13
|
+
gap: var(--ts-space-2);
|
|
14
|
+
color: var(--ts-color-text);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ts-theme-menu {
|
|
18
|
+
position: relative;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ts-theme-menu__trigger {
|
|
22
|
+
align-items: center;
|
|
23
|
+
background: var(--ts-color-surface);
|
|
24
|
+
border: 1px solid var(--ts-color-border);
|
|
25
|
+
border-radius: var(--ts-radius-md);
|
|
26
|
+
color: var(--ts-color-text-muted);
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
height: 2rem;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
list-style: none;
|
|
32
|
+
padding: 0;
|
|
33
|
+
transition:
|
|
34
|
+
background-color 140ms ease,
|
|
35
|
+
border-color 140ms ease,
|
|
36
|
+
color 140ms ease;
|
|
37
|
+
width: 2rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ts-theme-menu__trigger::-webkit-details-marker {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.ts-theme-menu__trigger:hover,
|
|
45
|
+
.ts-theme-menu[open] .ts-theme-menu__trigger {
|
|
46
|
+
background: var(--ts-color-surface-muted);
|
|
47
|
+
border-color: var(--ts-color-border-strong);
|
|
48
|
+
color: var(--ts-color-text);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ts-theme-menu__trigger:focus-visible {
|
|
52
|
+
outline: 3px solid var(--ts-color-focus);
|
|
53
|
+
outline-offset: 2px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ts-theme-menu__trigger svg {
|
|
57
|
+
display: block;
|
|
58
|
+
fill: currentColor;
|
|
59
|
+
height: 1rem;
|
|
60
|
+
width: 1rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ts-theme-menu__panel {
|
|
64
|
+
background: var(--ts-color-surface);
|
|
65
|
+
border: 1px solid var(--ts-color-border);
|
|
66
|
+
border-radius: var(--ts-radius-lg);
|
|
67
|
+
box-shadow: var(--ts-color-shadow);
|
|
68
|
+
inline-size: min(21rem, calc(100vw - 2rem));
|
|
69
|
+
inset-block-start: calc(100% + var(--ts-space-2));
|
|
70
|
+
inset-inline-end: 0;
|
|
71
|
+
padding: var(--ts-space-3);
|
|
72
|
+
position: absolute;
|
|
73
|
+
z-index: 80;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ts-theme-selector--compact {
|
|
77
|
+
align-items: center;
|
|
78
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ts-theme-selector__summary {
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
gap: var(--ts-space-2);
|
|
85
|
+
min-width: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ts-theme-selector__label {
|
|
89
|
+
color: var(--ts-color-text-muted);
|
|
90
|
+
display: grid;
|
|
91
|
+
font-size: 0.82rem;
|
|
92
|
+
font-weight: 700;
|
|
93
|
+
gap: 0.08rem;
|
|
94
|
+
line-height: 1.2;
|
|
95
|
+
white-space: nowrap;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.ts-theme-selector__label small {
|
|
99
|
+
color: var(--ts-color-text-subtle);
|
|
100
|
+
font-size: 0.72rem;
|
|
101
|
+
font-weight: 600;
|
|
102
|
+
text-transform: capitalize;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.ts-theme-selector__controls {
|
|
106
|
+
display: grid;
|
|
107
|
+
grid-template-columns: minmax(8.5rem, 1fr) minmax(6.5rem, 0.75fr);
|
|
108
|
+
gap: var(--ts-space-2);
|
|
109
|
+
min-width: min(100%, 17rem);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.ts-theme-selector__field {
|
|
113
|
+
display: grid;
|
|
114
|
+
gap: 0.25rem;
|
|
115
|
+
min-width: 0;
|
|
116
|
+
color: var(--ts-color-text-subtle);
|
|
117
|
+
font-size: 0.75rem;
|
|
118
|
+
font-weight: 700;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ts-theme-selector__field select {
|
|
122
|
+
width: 100%;
|
|
123
|
+
min-height: 2.25rem;
|
|
124
|
+
border: 1px solid var(--ts-color-border-strong);
|
|
125
|
+
border-radius: var(--ts-radius-sm);
|
|
126
|
+
background: var(--ts-color-surface);
|
|
127
|
+
color: var(--ts-color-text);
|
|
128
|
+
font: inherit;
|
|
129
|
+
font-size: 0.86rem;
|
|
130
|
+
font-weight: 700;
|
|
131
|
+
padding: 0.42rem 1.75rem 0.42rem 0.62rem;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.ts-theme-selector__field select:focus-visible {
|
|
135
|
+
border-color: var(--ts-color-focus);
|
|
136
|
+
outline: 2px solid var(--ts-color-focus);
|
|
137
|
+
outline-offset: 2px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.ts-theme-swatch {
|
|
141
|
+
display: inline-grid;
|
|
142
|
+
grid-template-columns: repeat(4, 0.85rem);
|
|
143
|
+
gap: 0.16rem;
|
|
144
|
+
align-items: center;
|
|
145
|
+
flex: 0 0 auto;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.ts-theme-swatch__dot {
|
|
149
|
+
display: block;
|
|
150
|
+
width: 0.85rem;
|
|
151
|
+
height: 0.85rem;
|
|
152
|
+
border: 1px solid var(--ts-color-border);
|
|
153
|
+
border-radius: 999px;
|
|
154
|
+
background: var(--ts-preview-swatch-1, var(--ts-color-accent));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.ts-theme-swatch__dot[data-swatch-index="2"] {
|
|
158
|
+
background: var(--ts-preview-swatch-2, var(--ts-color-accent-hover));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.ts-theme-swatch__dot[data-swatch-index="3"] {
|
|
162
|
+
background: var(--ts-preview-swatch-3, var(--ts-color-surface));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.ts-theme-swatch__dot[data-swatch-index="4"] {
|
|
166
|
+
background: var(--ts-preview-swatch-4, var(--ts-color-text));
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@media (max-width: 640px) {
|
|
170
|
+
.ts-theme-selector--compact {
|
|
171
|
+
grid-template-columns: 1fr;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.ts-theme-selector__controls {
|
|
175
|
+
grid-template-columns: 1fr;
|
|
176
|
+
}
|
|
177
|
+
}
|
package/dist/styles/tokens.css
CHANGED
|
@@ -1,24 +1,64 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--
|
|
3
|
-
--
|
|
4
|
-
--
|
|
5
|
-
|
|
6
|
-
--
|
|
7
|
-
--
|
|
8
|
-
--
|
|
9
|
-
--
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
2
|
+
--font-sans: "Aptos", "SF Pro Text", "Segoe UI Variable", "Segoe UI", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
|
|
3
|
+
--font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", ui-serif, Georgia, serif;
|
|
4
|
+
--font-mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", "IBM Plex Mono", ui-monospace, monospace;
|
|
5
|
+
|
|
6
|
+
--ts-color-canvas: #f3f7ef;
|
|
7
|
+
--ts-color-canvas-subtle: #e8efe1;
|
|
8
|
+
--ts-color-surface: #ffffff;
|
|
9
|
+
--ts-color-surface-muted: #e8efe1;
|
|
10
|
+
--ts-color-surface-raised: #fafcf7;
|
|
11
|
+
--ts-color-surface-overlay: rgba(255, 255, 255, 0.88);
|
|
12
|
+
|
|
13
|
+
--ts-color-text: #1f2a20;
|
|
14
|
+
--ts-color-text-muted: #51604d;
|
|
15
|
+
--ts-color-text-subtle: #51604d;
|
|
16
|
+
--ts-color-text-inverse: #ffffff;
|
|
17
|
+
--ts-color-link: #3a6f75;
|
|
18
|
+
--ts-color-link-hover: #3f6f3f;
|
|
19
|
+
|
|
20
|
+
--ts-color-border: #cdd8c6;
|
|
21
|
+
--ts-color-border-muted: #cdd8c6;
|
|
22
|
+
--ts-color-border-strong: #aebca6;
|
|
23
|
+
--ts-color-focus: #3a6f75;
|
|
24
|
+
|
|
25
|
+
--ts-color-accent: #4f7d4e;
|
|
26
|
+
--ts-color-accent-hover: #3f6f3f;
|
|
27
|
+
--ts-color-accent-strong: #2f5a35;
|
|
28
|
+
--ts-color-accent-soft: #dcebd6;
|
|
29
|
+
--ts-color-accent-text: #ffffff;
|
|
30
|
+
|
|
31
|
+
--ts-color-info: #3a6f75;
|
|
32
|
+
--ts-color-info-soft: color-mix(in srgb, #3a6f75 18%, #ffffff);
|
|
33
|
+
--ts-color-info-text: #3a6f75;
|
|
34
|
+
--ts-color-info-border: color-mix(in srgb, #3a6f75 42%, #cdd8c6);
|
|
35
|
+
|
|
36
|
+
--ts-color-success: #287243;
|
|
37
|
+
--ts-color-success-soft: color-mix(in srgb, #287243 18%, #ffffff);
|
|
38
|
+
--ts-color-success-text: #287243;
|
|
39
|
+
--ts-color-success-border: color-mix(in srgb, #287243 42%, #cdd8c6);
|
|
40
|
+
|
|
41
|
+
--ts-color-warning: #8a6a1f;
|
|
42
|
+
--ts-color-warning-soft: color-mix(in srgb, #8a6a1f 18%, #ffffff);
|
|
43
|
+
--ts-color-warning-text: #8a6a1f;
|
|
44
|
+
--ts-color-warning-border: color-mix(in srgb, #8a6a1f 42%, #cdd8c6);
|
|
45
|
+
|
|
46
|
+
--ts-color-danger: #a23e35;
|
|
47
|
+
--ts-color-danger-soft: color-mix(in srgb, #a23e35 16%, #ffffff);
|
|
48
|
+
--ts-color-danger-text: #a23e35;
|
|
49
|
+
--ts-color-danger-border: color-mix(in srgb, #a23e35 42%, #cdd8c6);
|
|
50
|
+
|
|
51
|
+
--ts-color-shadow: 0 1px 2px rgba(31, 35, 40, 0.08);
|
|
52
|
+
--ts-color-grid: rgba(80, 100, 74, 0.12);
|
|
53
|
+
|
|
54
|
+
--ts-radius-sm: 0.375rem;
|
|
55
|
+
--ts-radius-md: 0.5rem;
|
|
56
|
+
--ts-radius-lg: 0.75rem;
|
|
57
|
+
--ts-space-1: 0.25rem;
|
|
58
|
+
--ts-space-2: 0.5rem;
|
|
59
|
+
--ts-space-3: 0.75rem;
|
|
60
|
+
--ts-space-4: 1rem;
|
|
61
|
+
--ts-content-width: 76rem;
|
|
62
|
+
--ts-reading-width: 78ch;
|
|
63
|
+
--ts-shell-width: 1200px;
|
|
24
64
|
}
|