@gemboss/website-ui 0.0.0-stage → 0.1.0

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 (42) hide show
  1. package/AGENTS.md +174 -0
  2. package/CHANGELOG.md +19 -0
  3. package/README.md +117 -2
  4. package/bin/gemboss-website.mjs +78 -0
  5. package/bin/lib/check.mjs +642 -0
  6. package/bin/lib/gap.mjs +189 -0
  7. package/bin/lib/init.mjs +99 -0
  8. package/bin/lib/upgrade.mjs +155 -0
  9. package/bin/lib/util.mjs +147 -0
  10. package/css/base.css +107 -0
  11. package/css/components.css +236 -0
  12. package/css/footer.css +53 -0
  13. package/css/header.css +231 -0
  14. package/css/layout.css +59 -0
  15. package/css/sections.css +173 -0
  16. package/css/tokens.css +198 -0
  17. package/demo/index.html +629 -0
  18. package/demo/theme-example.html +133 -0
  19. package/docs/components.md +299 -0
  20. package/docs/markup-contract.md +115 -0
  21. package/docs/philosophy.md +69 -0
  22. package/docs/theming.md +95 -0
  23. package/js/website.js +149 -0
  24. package/package.json +50 -4
  25. package/skill/SKILL.md +48 -0
  26. package/system.json +120 -0
  27. package/templates/footer.html +40 -0
  28. package/templates/header.html +60 -0
  29. package/templates/page.html +134 -0
  30. package/templates/sections/cta.html +15 -0
  31. package/templates/sections/faq.html +24 -0
  32. package/templates/sections/features.html +32 -0
  33. package/templates/sections/hero.html +25 -0
  34. package/templates/sections/logos.html +15 -0
  35. package/templates/sections/pricing.html +39 -0
  36. package/templates/sections/quote.html +13 -0
  37. package/templates/sections/showcase.html +24 -0
  38. package/templates/sections/split.html +25 -0
  39. package/templates/sections/stats.html +26 -0
  40. package/templates/sections/steps.html +17 -0
  41. package/website.css +1064 -0
  42. package/website.min.css +1 -0
@@ -0,0 +1,173 @@
1
+ /* sections: hero, logos, stats, features, split, showcase, steps, quote, pricing, CTA. */
2
+
3
+ /* hero: the first screen. __wash is the one place the wash hues may appear. */
4
+ .gw-hero { position: relative; isolation: isolate; padding-block: 48px 64px; }
5
+ .gw-hero__wash {
6
+ position: absolute;
7
+ inset: 0;
8
+ z-index: -1;
9
+ pointer-events: none;
10
+ background:
11
+ radial-gradient(640px 460px at 88% -10%, color-mix(in srgb, var(--gw-accent) 16%, transparent), transparent 62%),
12
+ radial-gradient(560px 480px at 6% 108%, color-mix(in srgb, var(--gw-wash-violet) 12%, transparent), transparent 62%),
13
+ radial-gradient(420px 320px at 52% 118%, color-mix(in srgb, var(--gw-wash-mint) 10%, transparent), transparent 62%);
14
+ }
15
+ .gw-hero h1 .gw-dim { display: block; }
16
+ .gw-hero > .gw-wrap > .gw-window { margin-top: 48px; }
17
+ .gw-hero--center { text-align: center; }
18
+ .gw-hero--center > .gw-wrap > * { margin-inline: auto; }
19
+ .gw-hero--center .gw-actions { justify-content: center; }
20
+ .gw-hero--compact { padding-block: 40px 48px; }
21
+ .gw-hero--compact h1 { font-size: var(--gw-display-h2); }
22
+ @media (min-width: 768px) {
23
+ .gw-hero { padding-block: 80px 96px; }
24
+ .gw-hero--compact { padding-block: 64px; }
25
+ .gw-hero .gw-lead { font-size: 20px; }
26
+ .gw-hero > .gw-wrap > .gw-window { margin-top: 64px; }
27
+ }
28
+ @media (max-width: 479px) {
29
+ :is(.gw-hero, .gw-cta) .gw-actions > .gw-btn { flex: 1 1 100%; }
30
+ }
31
+
32
+ /* logos: a proof strip of real logos or wordmarks */
33
+ .gw-logos { padding-block: 40px; border-block: 1px solid var(--gw-line); }
34
+ .gw-logos p { color: var(--gw-muted); font-size: 13px; text-align: center; }
35
+ .gw-logos ul {
36
+ display: flex;
37
+ flex-wrap: wrap;
38
+ align-items: center;
39
+ justify-content: center;
40
+ gap: 16px 40px;
41
+ margin-top: 20px;
42
+ padding: 0;
43
+ list-style: none;
44
+ }
45
+ .gw-logos li { color: var(--gw-muted); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
46
+ .gw-logos img { width: auto; height: 28px; }
47
+
48
+ /* stats: three or four facts, each with its source */
49
+ .gw-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
50
+ .gw-stats__value { font-size: var(--gw-display-h2); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
51
+ .gw-stats__label { margin-top: 8px; max-width: 28ch; color: var(--gw-muted); font-size: 14px; }
52
+ .gw-stats__source { margin-top: 8px; color: var(--gw-muted); font-size: 12px; }
53
+ @media (min-width: 480px) { .gw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
54
+ @media (min-width: 1080px) {
55
+ .gw-stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
56
+ .gw-stats__item { padding: 4px 24px; border-left: 1px solid var(--gw-line); }
57
+ .gw-stats__item:first-child { padding-left: 0; border-left: 0; }
58
+ }
59
+
60
+ /* features: icon, title, one or two lines (inside .gw-grid--2|3|4) */
61
+ .gw-features { row-gap: 40px; }
62
+ .gw-feature .gw-icon { width: 40px; height: 40px; border: 1px solid var(--gw-line); border-radius: var(--gw-radius-action); background: var(--gw-surface); color: var(--gw-accent); }
63
+
64
+ /* split: text beside a figure; stacks on phones, text first */
65
+ .gw-split { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 40px; }
66
+ @media (min-width: 768px) {
67
+ .gw-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
68
+ .gw-split--reverse > :first-child { order: 2; }
69
+ }
70
+ .gw-split h2 { font-size: 30px; }
71
+ @media (min-width: 1080px) { .gw-split { gap: 64px; } }
72
+
73
+ /* showcase: a night band with a large screen and two or three points */
74
+ .gw-showcase .gw-window { max-width: 960px; margin-inline: auto; }
75
+ .gw-showcase .gw-window + * { margin-top: 48px; }
76
+
77
+ /* steps: numbered, how it works */
78
+ .gw-steps {
79
+ display: grid;
80
+ grid-template-columns: minmax(0, 1fr);
81
+ gap: 32px 24px;
82
+ margin: 0;
83
+ padding: 0;
84
+ list-style: none;
85
+ counter-reset: gw-step;
86
+ }
87
+ .gw-steps > li { counter-increment: gw-step; }
88
+ .gw-steps > li::before {
89
+ content: counter(gw-step, decimal-leading-zero);
90
+ display: block;
91
+ margin-bottom: 16px;
92
+ padding-bottom: 12px;
93
+ border-bottom: 1px solid var(--gw-line);
94
+ color: var(--gw-accent-strong);
95
+ font-size: 13px;
96
+ font-weight: 600;
97
+ font-variant-numeric: tabular-nums;
98
+ }
99
+ .gw-steps h3 { font-size: 20px; }
100
+ .gw-steps p { margin-top: 8px; color: var(--gw-muted); font-size: 16px; }
101
+ @media (min-width: 768px) { .gw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
102
+ @media (min-width: 1080px) { .gw-steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
103
+
104
+ /* quote: one real testimonial, with name, role and company */
105
+ .gw-quote {
106
+ max-width: 880px;
107
+ margin-inline: auto;
108
+ padding: 40px 24px;
109
+ border: 1px solid var(--gw-line);
110
+ border-radius: var(--gw-radius-panel);
111
+ background: var(--gw-surface);
112
+ text-align: center;
113
+ }
114
+ .gw-quote::before {
115
+ content: "";
116
+ display: block;
117
+ width: 32px;
118
+ height: 24px;
119
+ margin: 0 auto 24px;
120
+ background: var(--gw-accent);
121
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Cpath d='M0 24V14C0 6 4 1 12 0l1 4c-4 1-6 4-6 8h5v12zm19 0V14c0-8 4-13 12-14l1 4c-4 1-6 4-6 8h5v12z'/%3E%3C/svg%3E") center / contain no-repeat;
122
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Cpath d='M0 24V14C0 6 4 1 12 0l1 4c-4 1-6 4-6 8h5v12zm19 0V14c0-8 4-13 12-14l1 4c-4 1-6 4-6 8h5v12z'/%3E%3C/svg%3E") center / contain no-repeat;
123
+ }
124
+ .gw-quote blockquote { font-size: 24px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; text-wrap: balance; }
125
+ .gw-quote figcaption { margin-top: 24px; color: var(--gw-muted); font-size: 14px; }
126
+ .gw-quote figcaption b { color: var(--gw-ink); }
127
+ .gw-quote figcaption img { width: 40px; height: 40px; margin: 0 auto 12px; border-radius: var(--gw-radius-chip); }
128
+ @media (min-width: 768px) {
129
+ .gw-quote { padding: 64px; }
130
+ .gw-quote blockquote { font-size: 30px; }
131
+ }
132
+
133
+ /* pricing: plan cards; the featured one has a hairline in the accent, never a fill */
134
+ .gw-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: start; gap: 16px; }
135
+ .gw-plan {
136
+ display: flex;
137
+ flex-direction: column;
138
+ padding: 24px;
139
+ border: 1px solid var(--gw-line);
140
+ border-radius: var(--gw-radius-panel);
141
+ background: var(--gw-surface);
142
+ box-shadow: var(--gw-shadow);
143
+ }
144
+ .gw-plan--featured { border-color: var(--gw-accent); }
145
+ .gw-plan { position: relative; }
146
+ .gw-plan > .gw-badge { align-self: flex-start; }
147
+ .gw-plan > .gw-badge:first-child { position: absolute; top: -12px; left: 24px; }
148
+ .gw-plan > .gw-badge:first-child + * { margin-top: 0; }
149
+ .gw-plan h3 { font-size: 20px; }
150
+ :where(.gw-plan) p { color: var(--gw-muted); font-size: 14px; }
151
+ .gw-plan__price {
152
+ display: flex;
153
+ flex-wrap: wrap;
154
+ align-items: baseline;
155
+ gap: 6px;
156
+ color: var(--gw-ink);
157
+ font-size: var(--gw-display-h2);
158
+ font-weight: 600;
159
+ letter-spacing: -0.03em;
160
+ line-height: 1.1;
161
+ font-variant-numeric: tabular-nums;
162
+ }
163
+ .gw-plan__price small { color: var(--gw-muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }
164
+ .gw-plan .gw-list--check { font-size: 14px; }
165
+ @media (min-width: 768px) {
166
+ .gw-plan { padding: 32px; }
167
+ .gw-plan > .gw-badge:first-child { left: 32px; }
168
+ }
169
+
170
+ /* CTA: the closing call to action, centred; put it in a night band or a soft section */
171
+ .gw-cta { max-width: 780px; margin-inline: auto; text-align: center; }
172
+ .gw-cta .gw-lead { margin-inline: auto; }
173
+ .gw-cta .gw-actions { justify-content: center; }
package/css/tokens.css ADDED
@@ -0,0 +1,198 @@
1
+ /* @gemboss/website-ui tokens. GENERATED from system.json by scripts/build.mjs: do not edit by hand. */
2
+ :root {
3
+ color-scheme: light;
4
+ --gw-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
5
+ --gw-text-11: 11px;
6
+ --gw-text-12: 12px;
7
+ --gw-text-13: 13px;
8
+ --gw-text-14: 14px;
9
+ --gw-text-16: 16px;
10
+ --gw-text-18: 18px;
11
+ --gw-text-20: 20px;
12
+ --gw-text-22: 22px;
13
+ --gw-text-24: 24px;
14
+ --gw-text-30: 30px;
15
+ --gw-display-h1: clamp(40px, 4.6vw, 68px);
16
+ --gw-display-h2: clamp(32px, 3.4vw, 52px);
17
+ --gw-display-weight: 600;
18
+ --gw-display-tracking: -0.03em;
19
+ --gw-heading-weight: 650;
20
+ --gw-heading-tracking: -0.022em;
21
+ --gw-heading-leading: 1.08;
22
+ --gw-body-size: 18px;
23
+ --gw-body-leading: 1.6;
24
+ --gw-space-0: 0;
25
+ --gw-space-2: 2px;
26
+ --gw-space-4: 4px;
27
+ --gw-space-6: 6px;
28
+ --gw-space-8: 8px;
29
+ --gw-space-12: 12px;
30
+ --gw-space-16: 16px;
31
+ --gw-space-20: 20px;
32
+ --gw-space-24: 24px;
33
+ --gw-space-32: 32px;
34
+ --gw-space-40: 40px;
35
+ --gw-space-48: 48px;
36
+ --gw-space-64: 64px;
37
+ --gw-space-80: 80px;
38
+ --gw-space-96: 96px;
39
+ --gw-space-120: 120px;
40
+ --gw-space-section: clamp(56px, 38px + 5vw, 110px);
41
+ --gw-radius-0: 0;
42
+ --gw-radius-4: 4px;
43
+ --gw-radius-6: 6px;
44
+ --gw-radius-8: 8px;
45
+ --gw-radius-12: 12px;
46
+ --gw-radius-16: 16px;
47
+ --gw-radius-20: 20px;
48
+ --gw-radius-999: 999px;
49
+ --gw-radius-action: 8px;
50
+ --gw-radius-chip: 999px;
51
+ --gw-radius-card: 12px;
52
+ --gw-radius-panel: 16px;
53
+ --gw-shadow: 0 1px 2px rgba(31,30,29,.04), 0 2px 6px rgba(31,30,29,.06);
54
+ --gw-shadow-sm: 0 1px 2px rgba(31,30,29,.04);
55
+ --gw-shadow-raised: 0 4px 16px rgba(31,30,29,.10);
56
+ --gw-wrap: 1120px;
57
+ --gw-wrap-narrow: 780px;
58
+ --gw-gutter: 22px;
59
+ --gw-header-height: 64px;
60
+ --gw-button-height: 40px;
61
+ --gw-tap-min: 44px;
62
+ --gw-ease: cubic-bezier(.22,1,.36,1);
63
+ --gw-reveal-ms: 700ms;
64
+ --gw-wash-pink: #ff6f5e;
65
+ --gw-wash-violet: #7c8af7;
66
+ --gw-wash-sky: #43b0ff;
67
+ --gw-wash-mint: #1fcf9f;
68
+ /* accent primitives: the only colours a brand overrides (docs/theming.md) */
69
+ --gw-accent-light: #5661f5;
70
+ --gw-accent-strong-light: #3a44de;
71
+ --gw-accent-soft-light: #eef0fe;
72
+ --gw-on-accent-light: #ffffff;
73
+ --gw-accent-dark: #7c84ff;
74
+ --gw-accent-strong-dark: #a3a9ff;
75
+ --gw-accent-soft-dark: #1f2140;
76
+ --gw-on-accent-dark: #0d0d12;
77
+ --gw-bg: #ffffff;
78
+ --gw-bg-soft: #f2f3f5;
79
+ --gw-surface: #ffffff;
80
+ --gw-ink: #1b1c1e;
81
+ --gw-ink-2: #3b3d42;
82
+ --gw-muted: #686b71;
83
+ --gw-line: #e5e7ea;
84
+ --gw-line-strong: #d5d8dd;
85
+ --gw-action: #1b1c1e;
86
+ --gw-action-hover: #000000;
87
+ --gw-on-action: #ffffff;
88
+ --gw-accent: var(--gw-accent-light);
89
+ --gw-accent-strong: var(--gw-accent-strong-light);
90
+ --gw-accent-soft: var(--gw-accent-soft-light);
91
+ --gw-on-accent: var(--gw-on-accent-light);
92
+ --gw-success: #007f5f;
93
+ --gw-success-soft: #e3f1df;
94
+ --gw-warning: #9a6700;
95
+ --gw-night: #0c0e14;
96
+ --gw-night-2: #141722;
97
+ --gw-on-night: #e3e4e8;
98
+ --gw-on-night-muted: #9aa3ff;
99
+ }
100
+ @media (prefers-color-scheme: dark) {
101
+ :root:not([data-theme="light"]) {
102
+ color-scheme: dark;
103
+ --gw-bg: #0d0d12;
104
+ --gw-bg-soft: #121318;
105
+ --gw-surface: #16171d;
106
+ --gw-ink: #e3e4e8;
107
+ --gw-ink-2: #c4c6cc;
108
+ --gw-muted: #9a9ca6;
109
+ --gw-line: #2a2b33;
110
+ --gw-line-strong: #383944;
111
+ --gw-action: #f2f3f5;
112
+ --gw-action-hover: #ffffff;
113
+ --gw-on-action: #0d0d12;
114
+ --gw-accent: var(--gw-accent-dark);
115
+ --gw-accent-strong: var(--gw-accent-strong-dark);
116
+ --gw-accent-soft: var(--gw-accent-soft-dark);
117
+ --gw-on-accent: var(--gw-on-accent-dark);
118
+ --gw-success: #34c38f;
119
+ --gw-success-soft: #132a22;
120
+ --gw-warning: #e0b341;
121
+ --gw-night: #0a0b10;
122
+ --gw-night-2: #12141c;
123
+ --gw-on-night: #e3e4e8;
124
+ --gw-on-night-muted: #9aa3ff;
125
+ }
126
+ }
127
+ :root[data-theme="dark"] {
128
+ color-scheme: dark;
129
+ --gw-bg: #0d0d12;
130
+ --gw-bg-soft: #121318;
131
+ --gw-surface: #16171d;
132
+ --gw-ink: #e3e4e8;
133
+ --gw-ink-2: #c4c6cc;
134
+ --gw-muted: #9a9ca6;
135
+ --gw-line: #2a2b33;
136
+ --gw-line-strong: #383944;
137
+ --gw-action: #f2f3f5;
138
+ --gw-action-hover: #ffffff;
139
+ --gw-on-action: #0d0d12;
140
+ --gw-accent: var(--gw-accent-dark);
141
+ --gw-accent-strong: var(--gw-accent-strong-dark);
142
+ --gw-accent-soft: var(--gw-accent-soft-dark);
143
+ --gw-on-accent: var(--gw-on-accent-dark);
144
+ --gw-success: #34c38f;
145
+ --gw-success-soft: #132a22;
146
+ --gw-warning: #e0b341;
147
+ --gw-night: #0a0b10;
148
+ --gw-night-2: #12141c;
149
+ --gw-on-night: #e3e4e8;
150
+ --gw-on-night-muted: #9aa3ff;
151
+ }
152
+ :root[data-theme="light"] {
153
+ color-scheme: light;
154
+ --gw-bg: #ffffff;
155
+ --gw-bg-soft: #f2f3f5;
156
+ --gw-surface: #ffffff;
157
+ --gw-ink: #1b1c1e;
158
+ --gw-ink-2: #3b3d42;
159
+ --gw-muted: #686b71;
160
+ --gw-line: #e5e7ea;
161
+ --gw-line-strong: #d5d8dd;
162
+ --gw-action: #1b1c1e;
163
+ --gw-action-hover: #000000;
164
+ --gw-on-action: #ffffff;
165
+ --gw-accent: var(--gw-accent-light);
166
+ --gw-accent-strong: var(--gw-accent-strong-light);
167
+ --gw-accent-soft: var(--gw-accent-soft-light);
168
+ --gw-on-accent: var(--gw-on-accent-light);
169
+ --gw-success: #007f5f;
170
+ --gw-success-soft: #e3f1df;
171
+ --gw-warning: #9a6700;
172
+ --gw-night: #0c0e14;
173
+ --gw-night-2: #141722;
174
+ --gw-on-night: #e3e4e8;
175
+ --gw-on-night-muted: #9aa3ff;
176
+ }
177
+ /* night band: the dark palette inside, on the night ground, in both themes */
178
+ .gw-band--night, .gw-showcase {
179
+ color-scheme: dark;
180
+ --gw-bg: var(--gw-night);
181
+ --gw-bg-soft: var(--gw-night-2);
182
+ --gw-surface: var(--gw-night-2);
183
+ --gw-ink: #e3e4e8;
184
+ --gw-ink-2: #c4c6cc;
185
+ --gw-muted: #9a9ca6;
186
+ --gw-line: #2a2b33;
187
+ --gw-line-strong: #383944;
188
+ --gw-action: #f2f3f5;
189
+ --gw-action-hover: #ffffff;
190
+ --gw-on-action: #0d0d12;
191
+ --gw-accent: var(--gw-accent-dark);
192
+ --gw-accent-strong: var(--gw-accent-strong-dark);
193
+ --gw-accent-soft: var(--gw-accent-soft-dark);
194
+ --gw-on-accent: var(--gw-on-accent-dark);
195
+ --gw-success: #34c38f;
196
+ --gw-success-soft: #132a22;
197
+ --gw-warning: #e0b341;
198
+ }