@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.
Files changed (73) hide show
  1. package/dist/components/content/ContentStatusLegend.astro +4 -4
  2. package/dist/components/docs/BookFontControls.astro +9 -9
  3. package/dist/components/docs/DesktopSidebarToggle.astro +8 -8
  4. package/dist/components/docs/Footer.astro +6 -6
  5. package/dist/components/docs/PageTitle.astro +1 -1
  6. package/dist/components/docs/ThemeSelect.astro +3 -1
  7. package/dist/components/forms/ContactForm.astro +21 -21
  8. package/dist/components/forms/FooterSubscribeForm.astro +9 -9
  9. package/dist/components/site/BookList.astro +7 -7
  10. package/dist/components/site/CTASection.astro +4 -4
  11. package/dist/components/site/ChronicleList.astro +6 -6
  12. package/dist/components/site/Hero.astro +3 -3
  13. package/dist/components/site/PathCard.astro +5 -5
  14. package/dist/components/site/ProfileList.astro +5 -5
  15. package/dist/components/site/RouteNotFound.astro +5 -5
  16. package/dist/components/site/SectionIntro.astro +3 -3
  17. package/dist/components/site/StageBanner.astro +2 -2
  18. package/dist/components/site/TrustCallout.astro +3 -3
  19. package/dist/components/ui/data/ActionList.astro +51 -0
  20. package/dist/components/ui/data/Badge.astro +19 -0
  21. package/dist/components/ui/data/DataTable.astro +51 -0
  22. package/dist/components/ui/data/KeyValueList.astro +28 -0
  23. package/dist/components/ui/data/MetricCard.astro +25 -0
  24. package/dist/components/ui/data/MetricGrid.astro +27 -0
  25. package/dist/components/ui/data/StatusPill.astro +20 -0
  26. package/dist/components/ui/forms/Button.astro +52 -0
  27. package/dist/components/ui/forms/Field.astro +39 -0
  28. package/dist/components/ui/forms/FormActions.astro +12 -0
  29. package/dist/components/ui/forms/PasswordMeter.astro +80 -0
  30. package/dist/components/ui/forms/RadioGroup.astro +55 -0
  31. package/dist/components/ui/forms/Select.astro +44 -0
  32. package/dist/components/ui/forms/TextInput.astro +58 -0
  33. package/dist/components/ui/forms/Textarea.astro +45 -0
  34. package/dist/components/ui/layout/PageHeader.astro +45 -0
  35. package/dist/components/ui/shell/AppShell.astro +110 -0
  36. package/dist/components/ui/shell/BottomNav.astro +35 -0
  37. package/dist/components/ui/shell/ProjectHeader.astro +66 -0
  38. package/dist/components/ui/shell/PublicShell.astro +108 -0
  39. package/dist/components/ui/shell/RailNav.astro +35 -0
  40. package/dist/components/ui/shell/TopBar.astro +52 -0
  41. package/dist/components/ui/surface/Card.astro +46 -0
  42. package/dist/components/ui/surface/EmptyState.astro +45 -0
  43. package/dist/components/ui/surface/Panel.astro +54 -0
  44. package/dist/components/ui/theme/ThemeMenu.astro +32 -0
  45. package/dist/components/ui/theme/ThemePreviewSwatch.astro +18 -0
  46. package/dist/components/ui/theme/ThemeScript.astro +105 -0
  47. package/dist/components/ui/theme/ThemeSelector.astro +202 -0
  48. package/dist/components/ui/types.js +0 -0
  49. package/dist/dev.js +14 -2
  50. package/dist/layouts/AuthoredEntryLayout.astro +27 -27
  51. package/dist/layouts/BookLayout.astro +10 -10
  52. package/dist/layouts/ContentLayout.astro +4 -4
  53. package/dist/layouts/MainLayout.astro +27 -25
  54. package/dist/layouts/NoteLayout.astro +6 -6
  55. package/dist/layouts/ProfileLayout.astro +17 -17
  56. package/dist/pages/404.astro +6 -6
  57. package/dist/pages/contact.astro +4 -4
  58. package/dist/pages/docs-runtime/[...slug].astro +12 -12
  59. package/dist/pages/docs-runtime/index.astro +13 -13
  60. package/dist/pages/index.astro +28 -28
  61. package/dist/pages/ui/index.astro +216 -0
  62. package/dist/site.js +3 -2
  63. package/dist/styles/app-shell.css +398 -0
  64. package/dist/styles/forms.css +258 -0
  65. package/dist/styles/global.css +119 -119
  66. package/dist/styles/prose.css +11 -11
  67. package/dist/styles/theme.css +177 -0
  68. package/dist/styles/tokens.css +62 -22
  69. package/dist/styles/ui.css +551 -0
  70. package/dist/utils/content-status.js +5 -5
  71. package/dist/utils/site-config.js +2 -2
  72. package/dist/utils/theme.js +352 -40
  73. 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
+ }
@@ -1,24 +1,64 @@
1
1
  :root {
2
- --site-bg: #f4ede0;
3
- --site-bg-elevated: #ede4d2;
4
- --site-bg-soft: #f8f3e9;
5
- --site-panel: rgba(244, 237, 224, 0.86);
6
- --site-panel-strong: #e7dcc8;
7
- --site-border: rgba(88, 77, 61, 0.16);
8
- --site-border-strong: rgba(104, 132, 98, 0.34);
9
- --site-grid: rgba(132, 154, 132, 0.14);
10
- --site-text: #2e261c;
11
- --site-text-muted: #4d4638;
12
- --site-text-soft: #6b665b;
13
- --site-accent: #c7dbc4;
14
- --site-accent-strong: #5f7c5f;
15
- --site-accent-soft: #e9f0e5;
16
- --site-blue: #86aac0;
17
- --site-blue-strong: #456679;
18
- --site-blue-soft: #e4eef3;
19
- --site-warm: #d7b07b;
20
- --site-warm-strong: #7c5a2d;
21
- --site-shadow: 0 24px 56px rgba(75, 60, 32, 0.08);
22
- --site-radius: 0.65rem;
23
- --site-max: 76rem;
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
  }