create-ailk 0.46.6 → 0.48.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.
- package/README.md +180 -43
- package/component-catalog.json +223 -285
- package/component-catalog.md +1 -1
- package/dist/apply-design.d.ts +26 -68
- package/dist/apply-design.js +150 -322
- package/dist/cli.js +152 -17
- package/dist/compare-chrome.d.ts +108 -0
- package/dist/compare-chrome.js +481 -0
- package/dist/compare-look.d.ts +94 -0
- package/dist/compare-look.js +378 -0
- package/dist/copy.js +1 -1
- package/dist/design-compile.d.ts +17 -21
- package/dist/design-compile.js +32 -56
- package/dist/design-files.d.ts +93 -0
- package/dist/design-files.js +312 -0
- package/dist/design-home.d.ts +4 -2
- package/dist/design-home.js +88 -6
- package/dist/design-names.d.ts +13 -0
- package/dist/design-names.js +76 -0
- package/dist/design-package.d.ts +46 -56
- package/dist/design-package.js +285 -288
- package/dist/design-presets.d.ts +41 -0
- package/dist/design-presets.js +83 -4
- package/dist/design-scaffold.d.ts +12 -2
- package/dist/design-scaffold.js +72 -34
- package/dist/generated/design-settings.d.ts +56 -0
- package/dist/generated/design-settings.js +237 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/inventory.d.ts +3 -2
- package/dist/inventory.js +10 -4
- package/dist/lib/design-checks.d.ts +46 -0
- package/dist/lib/design-checks.js +79 -1
- package/dist/lib/env-catalog.js +5 -1
- package/dist/lib/module-license-gate.d.ts +1 -1
- package/dist/lib/module-license-gate.js +1 -1
- package/dist/lib/render-verdict.d.ts +13 -1
- package/dist/lib/render-verdict.js +41 -1
- package/dist/look-hub.d.ts +44 -0
- package/dist/look-hub.js +130 -0
- package/dist/look-record.d.ts +35 -0
- package/dist/look-record.js +85 -0
- package/dist/look-samples.d.ts +66 -0
- package/dist/look-samples.js +456 -0
- package/dist/look-settings.d.ts +53 -0
- package/dist/look-settings.js +363 -0
- package/dist/module-architecture.js +12 -0
- package/dist/parse-args.d.ts +10 -6
- package/dist/parse-args.js +26 -13
- package/dist/programmatic.d.ts +1 -19
- package/dist/programmatic.js +65 -103
- package/dist/retired-design-bodies.d.ts +29 -0
- package/dist/retired-design-bodies.js +51 -0
- package/dist/seed-flows.d.ts +1 -1
- package/dist/seed-flows.js +12 -14
- package/dist/seed-workspace.d.ts +4 -1
- package/dist/seed-workspace.js +139 -17
- package/dist/site-chrome.d.ts +41 -41
- package/dist/site-chrome.js +50 -70
- package/dist/site-fonts.d.ts +10 -14
- package/dist/site-fonts.js +5 -1
- package/dist/starter-grid.d.ts +2 -2
- package/dist/strip-look-copies.d.ts +67 -0
- package/dist/strip-look-copies.js +591 -0
- package/dist/template-manifest.d.ts +6 -14
- package/dist/template-manifest.js +0 -9
- package/dist/template-record.d.ts +3 -1
- package/dist/template-record.js +3 -1
- package/dist/topology.d.ts +15 -0
- package/dist/topology.js +60 -0
- package/dist/update.d.ts +57 -1
- package/dist/update.js +742 -13
- package/package.json +3 -4
- package/site-templates/aliases/hub.TEMPLATE-MANIFEST.json +2 -31
- package/site-templates/designs/minimalism/DESIGN.md +163 -297
- package/site-templates/designs/minimalism/LOOK.md +42 -0
- package/site-templates/designs/minimalism/design.yaml +167 -0
- package/site-templates/designs/standard/DESIGN.md +145 -149
- package/site-templates/designs/standard/LOOK.md +42 -0
- package/site-templates/designs/standard/design.yaml +72 -0
- package/site-templates/marketing-site/TEMPLATE-MANIFEST.json +2 -31
- package/site-templates/marketing-site/TEMPLATE-MANIFEST.md +1 -25
- package/site-templates/marketing-site-free/TEMPLATE-MANIFEST.json +2 -31
- package/site-templates/marketing-site-free/TEMPLATE-MANIFEST.md +1 -25
- package/site-templates/shapes/local-business-service/TEMPLATE-MANIFEST.json +2 -31
- package/site-templates/shapes/local-business-service/TEMPLATE-MANIFEST.md +1 -25
- package/site-templates/shapes/organization-service/TEMPLATE-MANIFEST.json +2 -31
- package/site-templates/shapes/organization-service/TEMPLATE-MANIFEST.md +1 -25
- package/site-templates/shapes/person-service/TEMPLATE-MANIFEST.json +2 -31
- package/site-templates/shapes/person-service/TEMPLATE-MANIFEST.md +1 -25
- package/site-templates/shapes/person-service/content/_site.mdx +0 -26
- package/templates/.claude/rules/extending.md +3 -2
- package/templates/.env.example +11 -4
- package/templates/CLAUDE.md +1 -1
- package/templates/DESIGN.md +145 -149
- package/templates/README.md +15 -16
- package/templates/apps/api/.env.example +29 -4
- package/templates/apps/api/CLAUDE.md +7 -4
- package/templates/apps/api/src/__tests__/vercel-handler.test.ts +176 -2
- package/templates/apps/api/src/lib/__mocks__/prisma.ts +30 -4
- package/templates/apps/api/src/vercel-handler.ts +32 -2
- package/templates/apps/mcp/.env.example +8 -0
- package/templates/apps/mcp/CLAUDE.md +5 -3
- package/templates/apps/web/.env.example +10 -3
- package/templates/apps/web/CLAUDE.md +31 -4
- package/templates/apps/web/app/[locale]/layout.tsx +141 -77
- package/templates/apps/web/app/llms.txt/__tests__/site-listing.test.ts +13 -3
- package/templates/apps/web/app/not-found.tsx +11 -11
- package/templates/apps/web/auth.ts +48 -35
- package/templates/apps/web/jest.config.cjs +5 -0
- package/templates/apps/web/lib/__tests__/hub-site-config.test.ts +542 -10
- package/templates/apps/web/lib/__tests__/library-fonts.test.ts +35 -0
- package/templates/apps/web/lib/__tests__/page-chrome-navigation.test.ts +233 -0
- package/templates/apps/web/lib/__tests__/page-chrome.test.ts +123 -26
- package/templates/apps/web/lib/__tests__/section-look.test.ts +150 -0
- package/templates/apps/web/lib/__tests__/site-identity-feature-list.test.ts +19 -1
- package/templates/apps/web/lib/__tests__/site-navigation.test.ts +288 -0
- package/templates/apps/web/lib/__tests__/site-theme.test.ts +81 -289
- package/templates/apps/web/lib/deck-page.ts +3 -10
- package/templates/apps/web/lib/deploy-fonts.ts +12 -0
- package/templates/apps/web/lib/hub-site-config.ts +237 -29
- package/templates/apps/web/lib/library-fonts.ts +41 -0
- package/templates/apps/web/lib/mcp-oauth.ts +11 -4
- package/templates/apps/web/lib/page-chrome.ts +105 -20
- package/templates/apps/web/lib/section-look.ts +28 -0
- package/templates/apps/web/lib/site-design.ts +205 -0
- package/templates/apps/web/lib/site-navigation.ts +208 -0
- package/templates/apps/web/lib/site-theme-head.ts +98 -13
- package/templates/apps/web/lib/site-theme.ts +40 -62
- package/templates/apps/web/messages/en.json +0 -6
- package/templates/apps/web/next.config.mjs +213 -11
- package/templates/apps/web/package.json +2 -0
- package/templates/apps/web/site-pages.config.tsx +4 -2
- package/templates/content/_site.mdx +0 -26
- package/templates/design.yaml +75 -0
- package/templates/project.yaml +14 -0
- package/versions.json +52 -51
- package/site-templates/marketing-site/DESIGN.md +0 -259
- package/site-templates/marketing-site-free/DESIGN.md +0 -259
- package/site-templates/saas-product/DESIGN.md +0 -259
- package/templates/apps/web/lib/__tests__/deck-page.test.ts +0 -288
- package/templates/apps/web/lib/__tests__/site-theme-head.test.ts +0 -70
- package/templates/apps/web/lib/site-chrome.ts +0 -46
- package/templates/apps/web/lib/site-fonts.ts +0 -15
package/templates/DESIGN.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Standard
|
|
3
|
-
description: "The standard design
|
|
3
|
+
description: "The standard design: the black-on-white foundation any shape wears by default, with full navigation, a multi-column footer and the document-scroll home."
|
|
4
4
|
colors:
|
|
5
5
|
bg: "#ffffff"
|
|
6
6
|
fg: "#000000"
|
|
@@ -11,32 +11,23 @@ colors:
|
|
|
11
11
|
brand: "#000000"
|
|
12
12
|
fg-on-brand: "#ffffff"
|
|
13
13
|
accent: "#000000"
|
|
14
|
+
placeholder: "#dbdbdb"
|
|
14
15
|
bg-dark: "#000000"
|
|
15
16
|
fg-dark: "#ffffff"
|
|
16
17
|
border-dark: "#ffffff"
|
|
17
18
|
brand-dark: "#ffffff"
|
|
19
|
+
fg-on-brand-dark: "#000000"
|
|
18
20
|
text-muted-dark: "#cccccc"
|
|
19
|
-
|
|
20
|
-
corners: square
|
|
21
|
-
eyebrowCase: sentence
|
|
22
|
-
placeholders: fill
|
|
23
|
-
checkmarks: plain
|
|
24
|
-
layout:
|
|
25
|
-
nav: full
|
|
26
|
-
footer: columns
|
|
27
|
-
announcementBanner: false
|
|
28
|
-
home: default
|
|
29
|
-
copy:
|
|
30
|
-
density: standard
|
|
21
|
+
placeholder-dark: "#2a2a2a"
|
|
31
22
|
typography:
|
|
32
23
|
display:
|
|
33
|
-
fontFamily: "system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, sans-serif"
|
|
24
|
+
fontFamily: "system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif"
|
|
34
25
|
fontSize: "3.5rem"
|
|
35
26
|
fontWeight: 700
|
|
36
27
|
lineHeight: 1.1
|
|
37
28
|
letterSpacing: "normal"
|
|
38
29
|
heading-section:
|
|
39
|
-
fontFamily: "system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, sans-serif"
|
|
30
|
+
fontFamily: "system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif"
|
|
40
31
|
fontSize: "3rem"
|
|
41
32
|
fontWeight: 700
|
|
42
33
|
lineHeight: 1.1
|
|
@@ -46,19 +37,28 @@ typography:
|
|
|
46
37
|
fontWeight: 700
|
|
47
38
|
lineHeight: 1.375
|
|
48
39
|
letterSpacing: "normal"
|
|
40
|
+
heading-panel:
|
|
41
|
+
fontSize: "1.25rem"
|
|
42
|
+
fontWeight: 600
|
|
43
|
+
lineHeight: 1.375
|
|
44
|
+
letterSpacing: "normal"
|
|
49
45
|
body:
|
|
50
|
-
fontFamily: "system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, sans-serif"
|
|
46
|
+
fontFamily: "system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif"
|
|
51
47
|
fontSize: "1.125rem"
|
|
52
48
|
fontWeight: 400
|
|
53
49
|
lineHeight: 1.5
|
|
54
|
-
|
|
50
|
+
body-sm:
|
|
51
|
+
fontSize: "0.875rem"
|
|
52
|
+
fontWeight: 400
|
|
53
|
+
lineHeight: 1.5
|
|
54
|
+
label:
|
|
55
55
|
fontSize: "0.875rem"
|
|
56
56
|
fontWeight: 600
|
|
57
57
|
lineHeight: 1.4
|
|
58
|
-
letterSpacing: "
|
|
58
|
+
letterSpacing: "normal"
|
|
59
59
|
rounded:
|
|
60
|
-
|
|
61
|
-
card: "0
|
|
60
|
+
control: "0"
|
|
61
|
+
card: "0"
|
|
62
62
|
spacing:
|
|
63
63
|
section: "7rem"
|
|
64
64
|
section-mobile: "4rem"
|
|
@@ -66,194 +66,190 @@ spacing:
|
|
|
66
66
|
grid: "1.5rem"
|
|
67
67
|
container: "1280px"
|
|
68
68
|
measure: "36rem"
|
|
69
|
+
components:
|
|
70
|
+
button-primary:
|
|
71
|
+
backgroundColor: "{colors.brand}"
|
|
72
|
+
textColor: "{colors.fg-on-brand}"
|
|
73
|
+
rounded: "{rounded.control}"
|
|
74
|
+
padding: "0 1rem"
|
|
75
|
+
height: "2.75rem"
|
|
76
|
+
button-primary-hover:
|
|
77
|
+
backgroundColor: "{colors.bg}"
|
|
78
|
+
textColor: "{colors.fg}"
|
|
79
|
+
button-secondary:
|
|
80
|
+
backgroundColor: "transparent"
|
|
81
|
+
textColor: "{colors.fg}"
|
|
82
|
+
rounded: "{rounded.control}"
|
|
83
|
+
padding: "0 1rem"
|
|
84
|
+
height: "2.75rem"
|
|
85
|
+
button-compact:
|
|
86
|
+
backgroundColor: "transparent"
|
|
87
|
+
textColor: "{colors.fg}"
|
|
88
|
+
rounded: "{rounded.control}"
|
|
89
|
+
padding: "0 1rem"
|
|
90
|
+
height: "2.25rem"
|
|
91
|
+
card:
|
|
92
|
+
backgroundColor: "{colors.surface}"
|
|
93
|
+
textColor: "{colors.fg}"
|
|
94
|
+
rounded: "{rounded.card}"
|
|
95
|
+
padding: "{spacing.card}"
|
|
96
|
+
image-placeholder:
|
|
97
|
+
backgroundColor: "{colors.placeholder}"
|
|
98
|
+
rounded: "{rounded.card}"
|
|
99
|
+
nav:
|
|
100
|
+
backgroundColor: "{colors.bg}"
|
|
101
|
+
textColor: "{colors.text-muted}"
|
|
102
|
+
height: "4rem"
|
|
69
103
|
---
|
|
70
104
|
|
|
71
|
-
|
|
72
|
-
Source template: _base (the AI Launch Kit base scaffold)
|
|
73
|
-
Design: standard
|
|
74
|
-
Version: create-ailk {{CREATE_AILK_VERSION}}
|
|
75
|
-
|
|
76
|
-
This is the `standard` design's DESIGN.md. Its one authored source is
|
|
77
|
-
create-ailk's site-templates/designs/standard/DESIGN.md; every template on
|
|
78
|
-
this design ships a copy of it that differs only in the "Source template"
|
|
79
|
-
line above, and a template installed with `--template <name>` replaces the
|
|
80
|
-
base scaffold's DESIGN.md with its own. The impeccable design skill reads
|
|
81
|
-
it at the start of every design session, so an agent building a new page
|
|
82
|
-
stays on-system.
|
|
83
|
-
Edit the canonical file, never a copy — a test holds every copy to it.
|
|
84
|
-
|
|
85
|
-
The tokens above describe what the site RENDERS today. The design's own
|
|
86
|
-
colours and shape knobs live in content/_site.mdx `theme:`, which
|
|
87
|
-
`create-ailk apply-design` replaces wholesale; the owner's brand colours and
|
|
88
|
-
fonts live beside it in `brand.colors` and `brand.fonts`, which applying a
|
|
89
|
-
design never rewrites. Radius and spacing are platform defaults a site
|
|
90
|
-
cannot override yet — see "Where this is heading" below.
|
|
91
|
-
-->
|
|
92
|
-
|
|
93
|
-
# Standard
|
|
105
|
+
# Design System: Standard
|
|
94
106
|
|
|
95
107
|
## Overview
|
|
96
108
|
|
|
97
|
-
|
|
109
|
+
**Creative North Star: "The Well-Made Wireframe"**
|
|
110
|
+
|
|
111
|
+
The foundation reads like a well-made wireframe: nothing on the page but the words, black on white, with hairlines where other sites use shadows and colour. It is the look of a site whose owner has not chosen a brand yet and does not pretend otherwise. Every placeholder reads as a placeholder, and the structure of the argument is what the visitor sees. A brand is applied on top of it; it is not one.
|
|
98
112
|
|
|
99
|
-
Every page is composed from the AI Launch Kit component library (`@working-theory/ui`). Nothing is hand-built: a page is a list of registered sections, each with a bounded set of variants. Each section is one full-width band with a lot of air around it.
|
|
113
|
+
Every page is composed from the AI Launch Kit component library (`@working-theory/ui`). Nothing is hand-built: a page is a list of registered sections, each with a bounded set of variants. Each section is one full-width band with a lot of air around it, and the air is what separates one band from the next.
|
|
114
|
+
|
|
115
|
+
The pacing is that of a classic wireframe marketing kit: bold system-sans headings at normal tracking, a generous vertical rhythm, square corners, flat grey blocks where images will go.
|
|
116
|
+
|
|
117
|
+
**Key Characteristics:**
|
|
118
|
+
|
|
119
|
+
- Black ink on a white ground; no accent colour, no tint, no gradient.
|
|
120
|
+
- Square corners on every control, card and image block.
|
|
121
|
+
- Containers drawn with a 1px black hairline, never a fill.
|
|
122
|
+
- One system sans, bold for headings, regular for copy.
|
|
123
|
+
- Whitespace, not rules, between sections (7rem a band on desktop).
|
|
124
|
+
- Solid grey image placeholders that plainly say "image goes here".
|
|
125
|
+
- Dark mode is the exact inversion: black ground, white ink, white hairlines.
|
|
100
126
|
|
|
101
127
|
## Colors
|
|
102
128
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
| Key | Value | Compiles to |
|
|
106
|
-
| ------------------- | --------- | -------------------------------------------------------------------------------------------------------------- |
|
|
107
|
-
| `bg` | `#ffffff` | `light.bg` |
|
|
108
|
-
| `fg` | `#000000` | `light.text` |
|
|
109
|
-
| `surface` | `#ffffff` | `light.surface` |
|
|
110
|
-
| `surface-secondary` | `#ffffff` | `light.bgMuted` |
|
|
111
|
-
| `border` | `#000000` | `light.border` |
|
|
112
|
-
| `text-muted` | `#333333` | `light.textMuted` |
|
|
113
|
-
| `brand` | `#000000` | `light.primary` |
|
|
114
|
-
| `fg-on-brand` | `#ffffff` | `light.primaryFg` |
|
|
115
|
-
| `accent` | `#000000` | `light.accent` |
|
|
116
|
-
| `bg-dark` | `#000000` | `dark.bg`, `dark.bgMuted` (fallback of L1), `dark.surface` (fallback of L2), `dark.primaryFg` (fallback of L4) |
|
|
117
|
-
| `fg-dark` | `#ffffff` | `dark.text` |
|
|
118
|
-
| `border-dark` | `#ffffff` | `dark.border` |
|
|
119
|
-
| `brand-dark` | `#ffffff` | `dark.primary`, `dark.accent` (fallback of L5) |
|
|
120
|
-
| `text-muted-dark` | `#cccccc` | `dark.textMuted` |
|
|
121
|
-
|
|
122
|
-
<!-- generated:end -->
|
|
129
|
+
Two inks and one grey: the palette is black, white, a near-black for running copy, and a flat grey reserved for image placeholders.
|
|
123
130
|
|
|
124
131
|
### Primary
|
|
125
132
|
|
|
126
|
-
**Black** (`brand`
|
|
133
|
+
- **Black** (`brand`): fills the primary button, with a white label (`fg-on-brand`). It is also the heading ink (`fg`), the hairline (`border`) and the accent (`accent`), so links, outlines and filled controls all read as the same single colour.
|
|
127
134
|
|
|
128
135
|
### Neutral
|
|
129
136
|
|
|
130
|
-
|
|
137
|
+
- **White** (`bg`, `surface`, `surface-secondary`): the page ground and every card. Cards are white, not tinted; the muted surface is white too.
|
|
138
|
+
- **Near-black** (`text-muted`): body copy, section sub-heads, navigation links and footer links. Well above AA on white.
|
|
139
|
+
- **Placeholder grey** (`placeholder`): the solid fill of an image placeholder, with a small, slightly darker image glyph centred in it. It appears nowhere else.
|
|
131
140
|
|
|
132
|
-
Dark mode inverts: black ground, white ink, white
|
|
141
|
+
Dark mode inverts the same roles: black ground (`bg-dark`), white ink (`fg-dark`), white hairlines (`border-dark`), a white primary button with a black label (`brand-dark`, `fg-on-brand-dark`), light-grey running copy (`text-muted-dark`) and a raised dark-grey placeholder (`placeholder-dark`).
|
|
133
142
|
|
|
134
143
|
### Named Rules
|
|
135
144
|
|
|
136
|
-
|
|
145
|
+
**The Rules, Not Fills Rule.** Rules, not fills. A container is drawn with a black hairline on the white ground. Grey fills are reserved for image placeholders.
|
|
137
146
|
|
|
138
|
-
|
|
147
|
+
**The One Ink Rule.** There is no accent colour. `accent` is black. Colour arrives only through a deliberate brand pass, never page by page.
|
|
139
148
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
| Role | Family | Size | Weight | Line height | Tracking |
|
|
143
|
-
| ----------------- | ------------------------------------------------------------------------ | ---------- | ------ | ----------- | -------- |
|
|
144
|
-
| `display` | `system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, sans-serif` | `3.5rem` | 700 | 1.1 | `normal` |
|
|
145
|
-
| `heading-section` | `system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, sans-serif` | `3rem` | 700 | 1.1 | `normal` |
|
|
146
|
-
| `heading-item` | — | `2rem` | 700 | 1.375 | `normal` |
|
|
147
|
-
| `body` | `system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, sans-serif` | `1.125rem` | 400 | 1.5 | — |
|
|
148
|
-
| `eyebrow` | — | `0.875rem` | 600 | 1.4 | `0.05em` |
|
|
149
|
+
## Typography
|
|
149
150
|
|
|
150
|
-
|
|
151
|
+
**Display Font:** the system sans (system-ui, with -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue as fallbacks)
|
|
152
|
+
**Body Font:** the same system sans
|
|
151
153
|
|
|
152
|
-
|
|
154
|
+
**Character:** One face throughout and no web font. Hierarchy comes from size and weight alone: bold headings at normal tracking over regular-weight copy.
|
|
153
155
|
|
|
154
156
|
### Hierarchy
|
|
155
157
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
158
|
+
- **Display** (700, 3.5rem, line-height 1.1): the hero headline, one per page. 2.5rem below 1024px. Wraps at about half the container beside the hero image.
|
|
159
|
+
- **Section heading** (700, 3rem, line-height 1.1): the heading of each band, always under the hero. 2.25rem below 1024px. Capped at 48rem wide; left-aligned by default, centred in the comparison and integrations bands.
|
|
160
|
+
- **Item heading** (700, 2rem, line-height 1.375): feature and step titles. 1.5rem below 1024px.
|
|
161
|
+
- **Panel heading** (600, 1.25rem, line-height 1.375): the title inside an outlined comparison panel.
|
|
162
|
+
- **Body** (400, 1.125rem, line-height 1.5): hero and section copy in near-black, capped at the measure (36rem, about 70 characters a line).
|
|
163
|
+
- **Small body** (400, 0.875rem, line-height 1.5): the description under an item heading, footer links, and inline text links (500 weight, underlined with a hairline).
|
|
164
|
+
- **Label** (600, 0.875rem, line-height 1.4, sentence case, normal tracking): the small label that sits with a section heading or names a panel ("Old Way", "New Way"). Rendered as written, in black.
|
|
163
165
|
|
|
164
|
-
|
|
166
|
+
### Named Rules
|
|
165
167
|
|
|
166
|
-
The
|
|
168
|
+
**The Bold At Normal Tracking Rule.** Headings are weight 700 with no letter-spacing adjustment. Do not tighten or track them out.
|
|
167
169
|
|
|
168
|
-
|
|
170
|
+
**The One Face Rule.** No second typeface. The owner's fonts arrive through the brand settings, not through a page.
|
|
169
171
|
|
|
170
|
-
|
|
172
|
+
## Layout
|
|
171
173
|
|
|
172
|
-
|
|
173
|
-
| -------------------- | --------- |
|
|
174
|
-
| `nav` | `full` |
|
|
175
|
-
| `footer` | `columns` |
|
|
176
|
-
| `announcementBanner` | `false` |
|
|
177
|
-
| `home` | `default` |
|
|
174
|
+
A centred container (1280px, with 2rem side padding at desktop, 1.5rem from 768px, 1rem below) holds every band. Each section is a full-width band with 7rem of padding above and below (4rem below 1024px). No rule or background shift separates one band from the next; the whitespace does.
|
|
178
175
|
|
|
179
|
-
|
|
180
|
-
| ---------------- | -------- |
|
|
181
|
-
| `section` | `7rem` |
|
|
182
|
-
| `section-mobile` | `4rem` |
|
|
183
|
-
| `card` | `1.5rem` |
|
|
184
|
-
| `grid` | `1.5rem` |
|
|
185
|
-
| `container` | `1280px` |
|
|
186
|
-
| `measure` | `36rem` |
|
|
176
|
+
The design's layout settings: full navigation, a multi-column footer, the default document-scroll home, and the home-only announcement banner off.
|
|
187
177
|
|
|
188
|
-
|
|
178
|
+
The home runs: a two-column hero (copy left, image right, equal halves), a logo strip, a centred comparison of two outlined panels, a three-up feature grid, a centred integrations band, a full-container media band, a three-up steps grid, an outlined split call-to-action panel, a two-column manifesto, and a demo band.
|
|
189
179
|
|
|
190
|
-
|
|
180
|
+
Grids are three-up at desktop, two-up from 320px and one column below, with a 2rem column gap and a 3rem row gap between uncarded items; outlined panels sit 3rem apart. Card grids use the 1.5rem grid gap. Two-column bands collapse to a single column below 1024px. Breakpoints: 320 / 768 / 1024 / 1440. Nothing scrolls sideways at 390px.
|
|
191
181
|
|
|
192
|
-
##
|
|
182
|
+
## Elevation & Depth
|
|
193
183
|
|
|
194
|
-
|
|
184
|
+
Flat. Surfaces carry no shadow at rest or on hover; depth is conveyed by the black hairline alone. The one shadow in the system belongs to a floating overlay: the cookie-consent panel that sits above the page carries a soft drop shadow together with its hairline, because it is the only thing not in the document flow.
|
|
195
185
|
|
|
196
|
-
|
|
197
|
-
<!-- generated:end -->
|
|
186
|
+
### Shadow Vocabulary
|
|
198
187
|
|
|
199
|
-
|
|
188
|
+
- **Floating overlay** (`box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)`): the cookie-consent panel only.
|
|
200
189
|
|
|
201
|
-
|
|
190
|
+
### Named Rules
|
|
202
191
|
|
|
203
|
-
|
|
204
|
-
| -------- | --------- |
|
|
205
|
-
| `button` | `0.5rem` |
|
|
206
|
-
| `card` | `0.75rem` |
|
|
192
|
+
**The Flat In Flow Rule.** Anything in the document flow is flat. A shadow is permitted only on a surface that floats above the page.
|
|
207
193
|
|
|
208
|
-
|
|
209
|
-
| ------------------------- | ---------- |
|
|
210
|
-
| `treatments.corners` | `square` |
|
|
211
|
-
| `treatments.eyebrowCase` | `sentence` |
|
|
212
|
-
| `treatments.placeholders` | `fill` |
|
|
213
|
-
| `treatments.checkmarks` | `plain` |
|
|
194
|
+
## Shapes
|
|
214
195
|
|
|
215
|
-
|
|
196
|
+
Square corners everywhere (the design sets `corners: square`, which zeroes every radius): buttons, cards, panels, image placeholders, the consent panel. Borders are 1px black hairlines. Image placeholders are solid grey blocks with no outline (`placeholders: fill`). Check and cross marks in lists are bare glyphs in the text ink, with no circle badge (`checkmarks: plain`). Section labels render in sentence case (`eyebrowCase: sentence`).
|
|
216
197
|
|
|
217
|
-
|
|
198
|
+
Without the square-corners setting the platform's base radii apply (0.5rem on controls, 0.75rem on cards); this design never shows them.
|
|
218
199
|
|
|
219
200
|
## Components
|
|
220
201
|
|
|
202
|
+
All components are the library's own; a page never restyles them.
|
|
203
|
+
|
|
221
204
|
### Buttons
|
|
222
205
|
|
|
223
|
-
|
|
206
|
+
Blunt and literal: a black rectangle or an outlined one.
|
|
207
|
+
|
|
208
|
+
- **Shape:** square corners (0), 1rem horizontal padding, label at 1rem and weight 500.
|
|
209
|
+
- **Primary:** black fill, white label, 2.75rem tall in a hero or call-to-action panel.
|
|
210
|
+
- **Secondary:** transparent with a 1px black outline and black label, the same height, sitting beside the primary.
|
|
211
|
+
- **Compact:** the outlined button at 2.25rem tall, used for the action that closes a section, paired with an underlined text link.
|
|
212
|
+
- **Hover / Focus:** hover inverts the primary (white fill, black label) over 150ms; transitions are colour-only and respect reduced motion. Focus shows a 2px ring in the brand ink.
|
|
224
213
|
|
|
225
214
|
### Cards / Containers
|
|
226
215
|
|
|
227
|
-
|
|
216
|
+
- **Corner Style:** square (0).
|
|
217
|
+
- **Background:** white.
|
|
218
|
+
- **Shadow Strategy:** none (see Elevation & Depth).
|
|
219
|
+
- **Border:** 1px black hairline.
|
|
220
|
+
- **Internal Padding:** 1.5rem (`card`). An image placeholder inside a panel runs edge to edge above the padded copy.
|
|
228
221
|
|
|
229
|
-
|
|
222
|
+
Outlined panels are used where two things are set against each other or one offer is framed: the comparison pair and the split call-to-action. Feature and step items are plain and uncarded: an icon or a grey image block, an item heading, a line of small body copy, and a text link.
|
|
223
|
+
|
|
224
|
+
### Image placeholders
|
|
230
225
|
|
|
231
|
-
|
|
226
|
+
Solid grey block, square, no outline, a small image glyph centred. Used at every image slot until the owner supplies an image: the hero, panel media, the media band, step images.
|
|
227
|
+
|
|
228
|
+
### Navigation
|
|
232
229
|
|
|
233
|
-
|
|
230
|
+
- **Style:** wordmark left; page links right of centre; an outlined and a filled button at the far right. A 1px black hairline separates the bar (about 4rem tall) from the page. The bar scrolls with the document.
|
|
231
|
+
- **Typography:** links at 1rem, weight 400, in near-black.
|
|
232
|
+
- **Buttons:** 2.625rem tall with a 0.875rem label at weight 500, square. The outlined one carries a 2px outline.
|
|
233
|
+
- **Product menu:** the Product link opens, on hover or keyboard, a two-column panel whose items each show an icon, a title and a one-line description.
|
|
234
|
+
- **Mobile:** below 1024px the links collapse behind a single menu button.
|
|
234
235
|
|
|
235
|
-
|
|
236
|
+
### Footer
|
|
236
237
|
|
|
237
|
-
|
|
238
|
-
| ------------------------------------------------------ | ------------------------------------------------------------------------------------------------- |
|
|
239
|
-
| Square corners on buttons, cards and inputs | `theme.corners: square` in `_site.mdx` |
|
|
240
|
-
| Section label in sentence case, bold, no tracking | `theme.eyebrowCase: sentence` |
|
|
241
|
-
| Solid grey image placeholders, no outline | `theme.placeholders: fill` |
|
|
242
|
-
| Bare check and cross marks, no circle badge | `theme.checkmarks: plain` |
|
|
243
|
-
| Plain, uncarded feature and step items | per section: `itemStyle: plain`, and `variant: steps` for an image beside a numbered list |
|
|
244
|
-
| A left hero whose headline wraps at half the container | `measure: narrow` on the hero (pricing); `gapBelow: tight` where a list follows the hero directly |
|
|
245
|
-
| A three-up post grid on the blog index | `blog-list` `variant: grid` (cover · date · read time · title · excerpt · Read more) |
|
|
246
|
-
| A plans section that leads its page | drop the hero; the pricing section owns the `<h1>` (`ownsPageTitle`) |
|
|
238
|
+
A multi-column footer: the wordmark, then four link columns (five grid columns in all at desktop, two from 768px, one below). Column links are small body copy in near-black. A bottom bar carries the theme switch, the copyright line at 0.75rem, legal links, social icons and the language picker. No rule separates the footer from the page.
|
|
247
239
|
|
|
248
240
|
## Do's and Don'ts
|
|
249
241
|
|
|
242
|
+
### Do:
|
|
243
|
+
|
|
250
244
|
- **Do** keep every page built from registered sections. If a section you need does not exist, request it rather than writing one-off markup.
|
|
251
|
-
- **Do** set your brand colours (`primary`, `primaryFg`, `accent`, per mode) in
|
|
252
|
-
- **
|
|
253
|
-
- **
|
|
254
|
-
- **
|
|
245
|
+
- **Do** set your brand colours (`primary`, `primaryFg`, `accent`, per mode) in the site file's `brand.colors` and your fonts (`display`, `body`) in `brand.fonts`; they reach every section and survive applying another design, which replaces the `theme:` block.
|
|
246
|
+
- **Do** draw a container with a 1px black hairline on white, with square corners.
|
|
247
|
+
- **Do** let whitespace separate sections: 7rem a band on desktop, 4rem below 1024px.
|
|
248
|
+
- **Do** change the look through the design's settings (corners, label case, placeholders, check marks) and per-section options (plain or carded items, hero measure), not through page-level styling.
|
|
255
249
|
|
|
256
|
-
|
|
250
|
+
### Don't:
|
|
257
251
|
|
|
258
|
-
- **
|
|
259
|
-
- **
|
|
252
|
+
- **Don't** add a colour accent. The foundation's one idea is black on white; a brand pass adds colour deliberately, through `brand.colors`.
|
|
253
|
+
- **Don't** replace a black hairline with a shadow or a grey fill. Shadows belong only to a surface floating above the page; grey belongs only to image placeholders.
|
|
254
|
+
- **Don't** hard-code a radius, a tracking value or a colour into a page. Shape and colour arrive through the design's settings, or not at all.
|
|
255
|
+
- **Don't** round a corner on one component. Corners are square everywhere or the setting changes for the whole site.
|
package/templates/README.md
CHANGED
|
@@ -85,21 +85,20 @@ To add a new page, ask Claude Code to run `/ailk:growth-ops page add` — it wri
|
|
|
85
85
|
|
|
86
86
|
Everything that makes this site yours lives in three places. Nothing in `apps/*` or `packages/*` needs to change to rebrand, re-theme or rewrite the site.
|
|
87
87
|
|
|
88
|
-
| To change…
|
|
89
|
-
|
|
|
90
|
-
| Site name, canonical URL, default locale
|
|
91
|
-
| Who the site is (the entity answer engines read)
|
|
92
|
-
| Your brand colours, light and dark
|
|
93
|
-
| Your fonts
|
|
94
|
-
| The design's own colours
|
|
95
|
-
|
|
|
96
|
-
|
|
|
97
|
-
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
To change the whole look, apply another design: `pnpm create ailk@latest apply-design <name|path>` in the site root, with a shipped design name (`standard`, `minimalism`) or a folder holding a `DESIGN.md`. It rewrites `theme:`, the generated `apps/web/lib/site-chrome.ts` and the look fields of your sections; it never touches your routes, your copy or the `brand:` block. That is why your own colours belong in `brand.colors`, not `theme.colors`: applying a design replaces `theme:` wholesale. A design other than `standard` needs a Pro or Pro Plus key. The [theme and brand guide](https://ailaunchkit.ai/docs/guides/customize-theme-and-brand) is where the full walkthrough will live.
|
|
88
|
+
| To change… | Edit |
|
|
89
|
+
| -------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
|
90
|
+
| Site name, canonical URL, default locale | `content/_site.mdx` — `siteName`, `baseUrl`, `defaultLocale` |
|
|
91
|
+
| Who the site is (the entity answer engines read) | `content/_site.mdx` — `siteIdentity` (`kind`, `name`, `url`, `logo`, `description`, `sameAs`) |
|
|
92
|
+
| Your brand colours, light and dark | `content/_site.mdx` — `brand.colors.light` / `brand.colors.dark` (`primary`, `primaryFg`, `accent`) |
|
|
93
|
+
| Your fonts | `content/_site.mdx` — `brand.fonts` (`display`, `body`) |
|
|
94
|
+
| The design's own colours, corners, type and layout | The site's hub design record — the Admin's Look page, or `create-ailk apply-design` |
|
|
95
|
+
| Every page's copy and section order | `content/en/<Type>/<slug>.mdx` — the frontmatter `sections[]`; each section's `data` is its copy and its layout options |
|
|
96
|
+
| Header links, footer columns, social links | `apps/web/lib/nav-config.ts` — generated at scaffold, yours to edit; labels come from `apps/web/messages/<locale>.json` |
|
|
97
|
+
| Logo and brand assets | `apps/web/public/` and the `logo` field in `siteIdentity` |
|
|
98
|
+
|
|
99
|
+
Two things carry the look. The design is your site's hub design record — its colours, shape knobs, type and layout — which the seed writes when the site is scaffolded and the site reads on every request; with no record the site renders the base look. `brand:` in `content/_site.mdx` is yours — the logomark, `brand.colors` and `brand.fonts`, set on top of whatever design the site wears. There is no token file to fork and no provider to wrap.
|
|
100
|
+
|
|
101
|
+
To change the whole look, choose another on the Admin's Look page, or apply another design: `pnpm create ailk@latest apply-design <name|path>` in the site root, with an agent key in your shell, with a shipped design name (`standard`, `minimalism`) or a folder holding a `design.yaml`. It writes your site's hub design record with an agent key holding the `site-design` grant and changes no file — not your routes, your copy or the `brand:` block — and the site shows it on its next request. A design other than `standard` needs a Pro or Pro Plus key. The [theme and brand guide](https://ailaunchkit.ai/docs/guides/customize-theme-and-brand) is where the full walkthrough will live.
|
|
103
102
|
|
|
104
103
|
A rebrand touches only the files in this table. If you find yourself editing a component, stop: the trait you want is either a section option (check the section's `data` fields), a theme knob, or a feature request for the [upstream library](https://github.com/working-theory-labs/ai-launch-kit).
|
|
105
104
|
|
|
@@ -182,7 +181,7 @@ pnpm create ailk@latest <dir> --shape <shape>
|
|
|
182
181
|
AILK_LICENSE_KEY=<your key> pnpm create ailk@latest <dir> --shape <shape>
|
|
183
182
|
```
|
|
184
183
|
|
|
185
|
-
`<shape>` is one of `organization-product`, `organization-service`, `local-business-service`, `person-service`. `--modules` trims the level's modules, or adds the commerce add-on or the workspace module. `--design minimalism` picks the other look, and `--design <folder>` renders the starter in a design of your own (a folder holding a `
|
|
184
|
+
`<shape>` is one of `organization-product`, `organization-service`, `local-business-service`, `person-service`. `--modules` trims the level's modules, or adds the commerce add-on or the workspace module. `--design minimalism` picks the other look, and `--design <folder>` renders the starter in a design of your own (a folder holding a `design.yaml`); either needs a paid key. `DESIGN.md` at the site root is the design's guide: read it, do not edit it.
|
|
186
185
|
|
|
187
186
|
To add a paid module to this site in place, set the key and run `add-module` in the site root:
|
|
188
187
|
|
|
@@ -45,10 +45,17 @@ FRONTEND_URL=http://localhost:3000
|
|
|
45
45
|
# =============================================================================
|
|
46
46
|
# Admin URL (admin-team-invitation-accept)
|
|
47
47
|
# =============================================================================
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
#
|
|
51
|
-
#
|
|
48
|
+
# Required when the Admin is not at admin.<FRONTEND_URL host> — a hub at
|
|
49
|
+
# account.example.com derives admin.account.example.com, so an Admin at
|
|
50
|
+
# admin.example.com needs it set. The hub Admin's absolute https URL (http only
|
|
51
|
+
# on a loopback host). A team invitation's email and copied link open its
|
|
52
|
+
# sign-in, which leads to /invitations/<id>. Unset — or not a valid https URL,
|
|
53
|
+
# which is logged once — the link uses admin.<FRONTEND_URL host>, with a
|
|
54
|
+
# leading www. dropped. The Admin's Workforce and Invite people pages refuse to
|
|
55
|
+
# send until the link's address is the Admin's own. Use the production Admin's
|
|
56
|
+
# address, never a preview deployment's. For local development only: a stack
|
|
57
|
+
# on localhost derives no address, so set it to the local Admin's
|
|
58
|
+
# http://localhost:<port>.
|
|
52
59
|
# AILK_ADMIN_URL=https://admin.example.com
|
|
53
60
|
|
|
54
61
|
# =============================================================================
|
|
@@ -301,3 +308,21 @@ STRIPE_WEBHOOK_SECRET=whsec_xxx
|
|
|
301
308
|
# unknown_site_key, which is the correct closed default but gives no clue at
|
|
302
309
|
# boot — so set this if the deployment accepts listings.
|
|
303
310
|
# AILK_LISTING_PUBLIC_KEY=
|
|
311
|
+
|
|
312
|
+
# --- Asset file storage (#12428) ---
|
|
313
|
+
# Where the workspace asset store keeps its files. Chosen once per process:
|
|
314
|
+
# - both store tokens set → Vercel Blob, one public and one private store
|
|
315
|
+
# - neither, AILK_ASSET_DIR set (not production) → a local folder
|
|
316
|
+
# - otherwise → the database rows, as before the move
|
|
317
|
+
# One token without the other is a misconfiguration: the hub keeps the
|
|
318
|
+
# database and logs `asset-files.misconfigured` once. The tokens are the
|
|
319
|
+
# read-write tokens Vercel writes when the hub's two stores are connected to the
|
|
320
|
+
# API project's PRODUCTION environment with the prefixes ASSETS_PUBLIC_BLOB and
|
|
321
|
+
# ASSETS_PRIVATE_BLOB (runbook: docs/internal/runbooks/asset-file-move.md). A
|
|
322
|
+
# hub not on Vercel sets the same two names. Never set them on a preview, the
|
|
323
|
+
# Admin or a site.
|
|
324
|
+
# ASSETS_PUBLIC_BLOB_READ_WRITE_TOKEN=
|
|
325
|
+
# ASSETS_PRIVATE_BLOB_READ_WRITE_TOKEN=
|
|
326
|
+
#
|
|
327
|
+
# A development hub keeps files in a folder, so nothing needs a live store.
|
|
328
|
+
# AILK_ASSET_DIR=./.data/assets
|