@jaimevalasek/aioson 1.30.1 → 1.30.2
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/CHANGELOG.md +9 -0
- package/docs/design-previews/cognitive-core-ui-auth.html +95 -0
- package/docs/design-previews/cognitive-core-ui-kanban.html +231 -0
- package/docs/design-previews/cognitive-core-ui-list-detail.html +174 -0
- package/docs/design-previews/cognitive-core-ui-preview.css +1315 -0
- package/docs/design-previews/cognitive-core-ui-settings.html +142 -0
- package/docs/design-previews/cognitive-core-ui-website.html +190 -1009
- package/docs/design-previews/cognitive-core-ui.html +281 -463
- package/docs/design-previews/index.html +83 -31
- package/package.json +1 -1
- package/src/constants.js +567 -511
- package/template/.aioson/docs/play/README.md +2 -0
- package/template/.aioson/docs/play/agent-usage-guide.md +7 -1
- package/template/.aioson/docs/play/app-compatibility-guide.md +6 -1
- package/template/.aioson/docs/play/auth-services-and-testing.md +16 -1
- package/template/.aioson/docs/play/manifest-and-runtime.md +23 -0
- package/template/.aioson/skills/design/aurora-command-ui/SKILL.md +266 -243
- package/template/.aioson/skills/design/aurora-command-ui/references/art-direction.md +293 -293
- package/template/.aioson/skills/design/aurora-command-ui/references/components.md +827 -827
- package/template/.aioson/skills/design/aurora-command-ui/references/dashboards.md +250 -250
- package/template/.aioson/skills/design/aurora-command-ui/references/design-tokens.md +585 -585
- package/template/.aioson/skills/design/aurora-command-ui/references/motion.md +365 -365
- package/template/.aioson/skills/design/aurora-command-ui/references/patterns.md +485 -482
- package/template/.aioson/skills/design/aurora-command-ui/references/websites.md +386 -387
- package/template/.aioson/skills/design/bold-editorial-ui/SKILL.md +228 -205
- package/template/.aioson/skills/design/bold-editorial-ui/references/art-direction.md +338 -338
- package/template/.aioson/skills/design/bold-editorial-ui/references/components.md +977 -977
- package/template/.aioson/skills/design/bold-editorial-ui/references/dashboards.md +218 -218
- package/template/.aioson/skills/design/bold-editorial-ui/references/design-tokens.md +326 -326
- package/template/.aioson/skills/design/bold-editorial-ui/references/motion.md +461 -461
- package/template/.aioson/skills/design/bold-editorial-ui/references/patterns.md +293 -293
- package/template/.aioson/skills/design/bold-editorial-ui/references/websites.md +352 -352
- package/template/.aioson/skills/design/clean-saas-ui/SKILL.md +233 -210
- package/template/.aioson/skills/design/clean-saas-ui/references/art-direction.md +319 -319
- package/template/.aioson/skills/design/clean-saas-ui/references/components.md +365 -365
- package/template/.aioson/skills/design/clean-saas-ui/references/dashboards.md +196 -196
- package/template/.aioson/skills/design/clean-saas-ui/references/design-tokens.md +244 -244
- package/template/.aioson/skills/design/clean-saas-ui/references/motion.md +235 -235
- package/template/.aioson/skills/design/clean-saas-ui/references/patterns.md +215 -215
- package/template/.aioson/skills/design/clean-saas-ui/references/websites.md +295 -295
- package/template/.aioson/skills/design/cognitive-core-ui/SKILL.md +239 -203
- package/template/.aioson/skills/design/cognitive-core-ui/references/art-direction.md +339 -339
- package/template/.aioson/skills/design/cognitive-core-ui/references/components.md +417 -407
- package/template/.aioson/skills/design/cognitive-core-ui/references/dashboards.md +289 -272
- package/template/.aioson/skills/design/cognitive-core-ui/references/design-tokens.md +525 -524
- package/template/.aioson/skills/design/cognitive-core-ui/references/motion.md +279 -279
- package/template/.aioson/skills/design/cognitive-core-ui/references/patterns.md +355 -289
- package/template/.aioson/skills/design/cognitive-core-ui/references/websites.md +443 -437
- package/template/.aioson/skills/design/glassmorphism-ui/SKILL.md +245 -222
- package/template/.aioson/skills/design/glassmorphism-ui/references/art-direction.md +159 -159
- package/template/.aioson/skills/design/glassmorphism-ui/references/components.md +498 -498
- package/template/.aioson/skills/design/glassmorphism-ui/references/dashboards.md +236 -236
- package/template/.aioson/skills/design/glassmorphism-ui/references/design-tokens.md +274 -274
- package/template/.aioson/skills/design/glassmorphism-ui/references/motion.md +355 -355
- package/template/.aioson/skills/design/glassmorphism-ui/references/patterns.md +198 -198
- package/template/.aioson/skills/design/glassmorphism-ui/references/websites.md +307 -307
- package/template/.aioson/skills/design/interface-design/SKILL.md +68 -47
- package/template/.aioson/skills/design/interface-design/references/components-and-states.md +105 -105
- package/template/.aioson/skills/design/interface-design/references/design-directions.md +101 -101
- package/template/.aioson/skills/design/interface-design/references/handoff-and-quality.md +92 -71
- package/template/.aioson/skills/design/interface-design/references/intent-and-domain.md +74 -74
- package/template/.aioson/skills/design/interface-design/references/tokens-and-depth.md +173 -173
- package/template/.aioson/skills/design/neo-brutalist-ui/SKILL.md +236 -213
- package/template/.aioson/skills/design/neo-brutalist-ui/references/art-direction.md +228 -228
- package/template/.aioson/skills/design/neo-brutalist-ui/references/components.md +855 -855
- package/template/.aioson/skills/design/neo-brutalist-ui/references/dashboards.md +334 -334
- package/template/.aioson/skills/design/neo-brutalist-ui/references/design-tokens.md +342 -342
- package/template/.aioson/skills/design/neo-brutalist-ui/references/motion.md +286 -286
- package/template/.aioson/skills/design/neo-brutalist-ui/references/patterns.md +458 -458
- package/template/.aioson/skills/design/neo-brutalist-ui/references/websites.md +723 -723
- package/template/.aioson/skills/design/premium-command-center-ui/SKILL.md +83 -62
- package/template/.aioson/skills/design/premium-command-center-ui/references/operations.md +74 -74
- package/template/.aioson/skills/design/premium-command-center-ui/references/patterns.md +116 -116
- package/template/.aioson/skills/design/premium-command-center-ui/references/validation.md +47 -47
- package/template/.aioson/skills/design/premium-command-center-ui/references/visual-system.md +215 -215
- package/template/.aioson/skills/design/pt.squarespace.com/.skill-meta.json +31 -31
- package/template/.aioson/skills/design/pt.squarespace.com/SKILL.md +94 -66
- package/template/.aioson/skills/design/pt.squarespace.com/references/components.md +366 -366
- package/template/.aioson/skills/design/pt.squarespace.com/references/design-tokens.md +150 -150
- package/template/.aioson/skills/design/pt.squarespace.com/references/motion.md +270 -270
- package/template/.aioson/skills/design/pt.squarespace.com/references/patterns.md +189 -189
- package/template/.aioson/skills/design/pt.squarespace.com/references/websites.md +161 -161
- package/template/.aioson/skills/design/warm-craft-ui/SKILL.md +232 -209
- package/template/.aioson/skills/design/warm-craft-ui/references/art-direction.md +324 -324
- package/template/.aioson/skills/design/warm-craft-ui/references/components.md +508 -508
- package/template/.aioson/skills/design/warm-craft-ui/references/dashboards.md +223 -223
- package/template/.aioson/skills/design/warm-craft-ui/references/design-tokens.md +374 -374
- package/template/.aioson/skills/design/warm-craft-ui/references/motion.md +356 -356
- package/template/.aioson/skills/design/warm-craft-ui/references/patterns.md +288 -288
- package/template/.aioson/skills/design/warm-craft-ui/references/websites.md +289 -289
|
@@ -1,203 +1,239 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: cognitive-core-ui
|
|
3
|
-
description:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
|
57
|
-
|
|
|
58
|
-
|
|
|
59
|
-
|
|
|
60
|
-
|
|
|
61
|
-
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
- **
|
|
77
|
-
- **
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
- Background
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
- Text
|
|
91
|
-
- Text
|
|
92
|
-
- Text
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
- Background
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
- Text
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
-
|
|
105
|
-
-
|
|
106
|
-
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
│
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
│
|
|
120
|
-
│
|
|
121
|
-
│
|
|
122
|
-
│ │
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
-
|
|
129
|
-
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
132
|
-
-
|
|
133
|
-
-
|
|
134
|
-
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
- Treat `references/
|
|
140
|
-
-
|
|
141
|
-
-
|
|
142
|
-
-
|
|
143
|
-
-
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
-
|
|
161
|
-
-
|
|
162
|
-
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
-
|
|
179
|
-
-
|
|
180
|
-
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
1
|
+
---
|
|
2
|
+
name: cognitive-core-ui
|
|
3
|
+
description: >-
|
|
4
|
+
Cognitive Core UI is the visual identity system for premium, command-center-style interfaces inspired by the Synthetic Minds platform. Use it when `design_skill: cognitive-core-ui` is set in project.context.md OR when the user explicitly asks for "cognitive core", "synthetic minds layout", "cognitive core style", "that dark layout", "dark dashboard command center", or similar. Supports dashboards, admin panels, detail/profile pages, landing pages, and websites — all with dark (default) and light themes via a single toggle. Do NOT use this skill unless explicitly selected.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Cognitive Core UI
|
|
8
|
+
|
|
9
|
+
The Cognitive Core system sits at the intersection of **military-grade data dashboard** and **refined SaaS UI** — dense, structured, and polished. This is the visual identity of the Synthetic Minds platform.
|
|
10
|
+
|
|
11
|
+
**This is one visual system.** Never combine it with another design skill.
|
|
12
|
+
|
|
13
|
+
## Package structure
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
.aioson/skills/design/cognitive-core-ui/
|
|
17
|
+
SKILL.md ← you are here (load this first)
|
|
18
|
+
references/
|
|
19
|
+
art-direction.md ← intent, domain exploration, expression modes, signature moves, anti-generic tests
|
|
20
|
+
design-tokens.md ← CSS variables dark + light, typography, token scope guardrails
|
|
21
|
+
components.md ← All reusable components (nav, stat card, badges, table, modal, DNA panel, etc.)
|
|
22
|
+
patterns.md ← Page layouts: dashboard shell, detail/profile, settings, auth, list-detail
|
|
23
|
+
dashboards.md ← Dashboard presets: inventory, control center, analytics, ops cockpit, CRM
|
|
24
|
+
websites.md ← Landing page, frontpage, institutional layouts + anti-patterns
|
|
25
|
+
motion.md ← Animations: keyframes, entrance sequences, scroll reveal, loading states
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Activation rules
|
|
29
|
+
|
|
30
|
+
- Apply this package **only** when `project.context.md` contains `design_skill: "cognitive-core-ui"` or the user explicitly chooses it.
|
|
31
|
+
- If another design skill is selected, do **not** load this package.
|
|
32
|
+
- Never auto-select this skill — always require explicit confirmation.
|
|
33
|
+
- If no skill is set yet, the active agent must ask or confirm before applying.
|
|
34
|
+
|
|
35
|
+
## Responsibility boundary
|
|
36
|
+
|
|
37
|
+
This skill defines:
|
|
38
|
+
- Visual direction and aesthetic DNA
|
|
39
|
+
- Design tokens (colors, typography, spacing, radius, shadows)
|
|
40
|
+
- Component vocabulary and anatomy
|
|
41
|
+
- Page composition patterns
|
|
42
|
+
- Theme switching behavior (dark/light)
|
|
43
|
+
|
|
44
|
+
This skill does **not** decide:
|
|
45
|
+
- Stack (React, Vue, Blade, HTML, etc.)
|
|
46
|
+
- Output format (single file, multi-file, CSS modules, Tailwind, etc.)
|
|
47
|
+
- Icon library choice
|
|
48
|
+
- Whether a theme toggle exists in the product (the agent decides)
|
|
49
|
+
|
|
50
|
+
## Loading guide
|
|
51
|
+
|
|
52
|
+
Always load only what the current task needs:
|
|
53
|
+
|
|
54
|
+
| Task | Load |
|
|
55
|
+
|---|---|
|
|
56
|
+
| Any UI work | `references/design-tokens.md` |
|
|
57
|
+
| Reusable components | `references/design-tokens.md` + `references/components.md` |
|
|
58
|
+
| Dashboard or admin panel | `references/art-direction.md` + `references/design-tokens.md` + `references/components.md` + `references/patterns.md` + `references/dashboards.md` |
|
|
59
|
+
| Detail / profile page | `references/art-direction.md` + `references/design-tokens.md` + `references/components.md` + `references/patterns.md` |
|
|
60
|
+
| Landing page or website | `references/art-direction.md` + `references/design-tokens.md` + `references/components.md` + `references/websites.md` |
|
|
61
|
+
| Motion / animation | add `references/motion.md` when animation materially improves the result |
|
|
62
|
+
| Full UI build | all seven reference files |
|
|
63
|
+
|
|
64
|
+
## Visual signature — three pillars
|
|
65
|
+
|
|
66
|
+
1. **Command-center authority** — Dense information when the product is operational. Monospaced labels are used as metadata rails, not as the default reading style. Large numeric stat readouts. Everything feels like a mission control panel.
|
|
67
|
+
2. **Premium refinement** — Three depth levels minimum (void → base → surface → elevated). Subtle borders (`rgba(255,255,255,0.06)` in dark). Teal/cyan as the only accent — used for active states, borders, glow effects. Never harsh contrasts.
|
|
68
|
+
3. **Structured rhythm** — Tab navigation, sidebar trees, card grids, section headers with icons. Information is organized into labeled zones. One focal block per viewport.
|
|
69
|
+
|
|
70
|
+
## Theme system
|
|
71
|
+
|
|
72
|
+
```html
|
|
73
|
+
<div data-theme="dark"> <!-- or data-theme="light" -->
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
- **Dark (default)**: Dashboards, monitoring, analytics, dev tools, anything data-heavy or operational
|
|
77
|
+
- **Light**: Client-facing apps, content-heavy pages, e-commerce admin, institutional websites
|
|
78
|
+
- **Both with toggle**: When the user asks, or when the target audience varies
|
|
79
|
+
|
|
80
|
+
If the user does not specify: default to **dark with a theme toggle** in the top bar.
|
|
81
|
+
|
|
82
|
+
## Visual DNA (from reference screenshots)
|
|
83
|
+
|
|
84
|
+
### Colors — dark theme
|
|
85
|
+
- Background void: `#060910`
|
|
86
|
+
- Background base: `#0B0F15` (main app background)
|
|
87
|
+
- Surface: `#111827` (cards)
|
|
88
|
+
- Elevated: `#1A2332` (hover, inset sections)
|
|
89
|
+
- Primary accent: `#22D3EE` (teal/cyan) — active tabs, badges, glow, borders
|
|
90
|
+
- Text heading: `#F9FAFB`
|
|
91
|
+
- Text primary: `#E5E7EB`
|
|
92
|
+
- Text secondary: `#9CA3AF`
|
|
93
|
+
- Text muted: `#6B7280`
|
|
94
|
+
|
|
95
|
+
### Colors — light theme
|
|
96
|
+
- Background void: `#F1F5F9`
|
|
97
|
+
- Background base: `#F8FAFC`
|
|
98
|
+
- Surface: `#FFFFFF`
|
|
99
|
+
- Primary accent: `#0891B2` (deeper teal for legibility)
|
|
100
|
+
- Text heading: `#0F172A`
|
|
101
|
+
- Text primary: `#334155`
|
|
102
|
+
|
|
103
|
+
### Typography
|
|
104
|
+
- Headings: `Inter`, usually `weight-bold (700)` or `weight-black (800)` only for hero/page title emphasis, `letter-spacing: 0`
|
|
105
|
+
- Body: `Inter`, `weight-normal (400)`, `line-height: 1.6`
|
|
106
|
+
- Labels (supporting only): `JetBrains Mono`, `weight-semibold`, `uppercase`, `letter-spacing: 0`, `font-size: 0.675rem`
|
|
107
|
+
- Stats: `Inter`, `weight-bold (700)`, `font-size: 2.75rem`
|
|
108
|
+
|
|
109
|
+
### Layout structure (dashboards)
|
|
110
|
+
```
|
|
111
|
+
┌──────────────────────────────────────────────────────────┐
|
|
112
|
+
│ TOP BAR: [Logo + Name] [Tab Nav (center)] [Actions] │
|
|
113
|
+
├──────────────────────────────────────────────────────────┤
|
|
114
|
+
│ [Optional: breadcrumbs] │
|
|
115
|
+
│ PROFILE/HEADER ZONE: avatar + name + badges + stat cards│
|
|
116
|
+
├──────────────────────────────────────────────────────────┤
|
|
117
|
+
│ TAB NAVIGATION (full width) │
|
|
118
|
+
├───────────┬──────────────────────────────────────────────┤
|
|
119
|
+
│ SIDEBAR │ CONTENT │
|
|
120
|
+
│ 200px │ SECTION HEADER (mono label + icon) │
|
|
121
|
+
│ tree nav │ CARD GRID (auto-fit, minmax constrained) │
|
|
122
|
+
│ │ SECTION HEADER │
|
|
123
|
+
│ │ CARD GRID │
|
|
124
|
+
└───────────┴──────────────────────────────────────────────┘
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Signature details
|
|
128
|
+
- Monospace uppercase labels on major sections, stats, IDs, and metadata rails only
|
|
129
|
+
- Badge chips with teal/cyan glow in dark mode
|
|
130
|
+
- Progress bars with colored semantic fills (green/red/amber/purple)
|
|
131
|
+
- Featured quote blocks: italic large text + mono attribution
|
|
132
|
+
- Cards with `1px` border + subtle hover glow (never box shadows only)
|
|
133
|
+
- Active tab: teal bottom border `3px` + teal text
|
|
134
|
+
- Sidebar active item: `border-left: 3px solid var(--accent)` + `bg-elevated`
|
|
135
|
+
- Theme transition: `250ms ease` on background, color, border-color, box-shadow
|
|
136
|
+
|
|
137
|
+
## Application rules
|
|
138
|
+
|
|
139
|
+
- Treat `references/design-tokens.md` as the source of truth for ALL tokens.
|
|
140
|
+
- Treat `references/art-direction.md` as the source of truth for expression, signature move, and anti-generic decisions.
|
|
141
|
+
- Resolve the page variant before composing: dashboard uses dense operational rhythm; website/landing page uses more whitespace, hero typography, and narrative hierarchy.
|
|
142
|
+
- Never combine this package with `interface-design`, `premium-command-center-ui`, or any other design skill in the same task.
|
|
143
|
+
- Reuse the project's component library if one exists — map Cognitive Core tokens onto it instead of rebuilding primitives.
|
|
144
|
+
- Adapt code examples to the active stack. Reference snippets are design specifications, not copy-paste code.
|
|
145
|
+
- Accessibility, responsiveness, and production semantics are the agent's responsibility (not this skill).
|
|
146
|
+
|
|
147
|
+
## Execution quality gates
|
|
148
|
+
|
|
149
|
+
These gates override any reference file when they conflict.
|
|
150
|
+
|
|
151
|
+
Before implementation:
|
|
152
|
+
- Load the relevant references from the loading guide; do not build from this SKILL.md alone.
|
|
153
|
+
- Decide the surface type (app, dashboard, landing page, marketing site, tool, game) and one domain-specific signature move before writing layout code.
|
|
154
|
+
- Establish the token layer first: fonts, colors, spacing, radius, shadow/depth, motion, breakpoints, and component states. Do not scatter raw colors, one-off shadows, arbitrary font sizes, or ad hoc radii.
|
|
155
|
+
- Use intentional font delivery. Prefer local/framework font APIs when available; if a named font cannot be loaded, define a credible fallback stack and preserve the intended contrast.
|
|
156
|
+
- For websites and landing pages, use visual assets that reveal the product, place, person, object, UI state, or domain. Do not ship a hero made only of gradients, icons, and cards.
|
|
157
|
+
- For landing-page heroes, make the brand, product, place, person, or literal offer visible in the first viewport; include a real or generated bitmap/product visual when inspection matters.
|
|
158
|
+
- Use icons from the project's icon library or lucide when available. Do not use text pills where a standard icon button/control is expected.
|
|
159
|
+
- Build responsive constraints with grid minmax, aspect-ratio, fixed control heights, and overflow rules so text, controls, tables, cards, and media cannot overlap or resize unpredictably.
|
|
160
|
+
- Use discrete text tokens and stable line-height. Do not use viewport-width font scaling or negative letter-spacing.
|
|
161
|
+
- Do not put cards inside cards. If a reference says nested card, use an unframed row, divider, inset section, or modal unless an existing component contract explicitly requires that hierarchy.
|
|
162
|
+
- Use motion as product feedback: hover, focus, active, loading, reveal, navigation, and state transitions. Always include a prefers-reduced-motion fallback.
|
|
163
|
+
|
|
164
|
+
Before delivery:
|
|
165
|
+
- Inspect the result at mobile and desktop widths. If a browser is available, use screenshots; otherwise perform static CSS/DOM review.
|
|
166
|
+
- Fix overlap, clipped text, illegible contrast, missing states, unsupported font loading, missing assets, raw palette drift, and generic template composition before presenting.
|
|
167
|
+
- Do not add isolated blurred-circle background decorations. If a reference suggests that pattern, reinterpret it as a subtle full-bleed ambient field or remove it.
|
|
168
|
+
|
|
169
|
+
## Cognitive Core app stability gates
|
|
170
|
+
|
|
171
|
+
For apps, dashboards, admin panels, profile pages, and split views, these rules are blocking:
|
|
172
|
+
|
|
173
|
+
- Build page shells with CSS grid areas or explicit app regions (`topbar`, `tabs`, `sidebar`, `content`, `rail`). Do not compose the shell from loose flex columns that depend on magic viewport subtraction.
|
|
174
|
+
- Every scrollable region must have `min-width: 0` and `min-height: 0` on its grid/flex parent chain. Missing either is a layout bug.
|
|
175
|
+
- Sidebars are desktop regions, not mobile full-page stacks. On small screens, collapse sidebar/navigation into horizontal tabs, a drawer, or a compact filter rail.
|
|
176
|
+
- Use `grid-template-columns: minmax(0, ...)` for app regions and `repeat(auto-fit, minmax(min(100%, Npx), 1fr))` for card grids.
|
|
177
|
+
- Stat rows must be responsive grids, not `flex-wrap` rows that produce uneven orphan cards.
|
|
178
|
+
- Keep all letter spacing at `0`. Cognitive Core gets its character from mono labels, rhythm, borders, and hierarchy, not expanded tracking that clips text.
|
|
179
|
+
- Prefer inset rows, dividers, tables, and disclosure bodies over cards inside cards.
|
|
180
|
+
- Auth screens and hero backgrounds may use full-bleed ambient fields, never isolated circular glow elements behind content.
|
|
181
|
+
|
|
182
|
+
## Intent before visuals
|
|
183
|
+
|
|
184
|
+
Before choosing layout, answer all three:
|
|
185
|
+
|
|
186
|
+
1. Who is the human using this page right now?
|
|
187
|
+
2. What is the main action or decision they must complete?
|
|
188
|
+
3. How should this interface feel in concrete words, not generic labels?
|
|
189
|
+
|
|
190
|
+
Bad answers:
|
|
191
|
+
- "for users"
|
|
192
|
+
- "manage data"
|
|
193
|
+
- "clean and modern"
|
|
194
|
+
|
|
195
|
+
Good answers:
|
|
196
|
+
- "operations lead checking what needs intervention in under 30 seconds"
|
|
197
|
+
- "sales manager comparing pipeline risk before a weekly meeting"
|
|
198
|
+
- "calm, cold, exact, premium, slightly tactical"
|
|
199
|
+
|
|
200
|
+
## Workflow discipline
|
|
201
|
+
|
|
202
|
+
Extracted from stronger design-system practice, this skill must behave like a controlled system, not a moodboard:
|
|
203
|
+
|
|
204
|
+
1. Audit the current page or existing UI before changing visuals.
|
|
205
|
+
2. Explore the product domain and choose one expression mode from `references/art-direction.md`.
|
|
206
|
+
3. Name one signature move and repeat it intentionally across the page.
|
|
207
|
+
4. Consolidate repeating patterns instead of inventing new card/button/table variants for each screen.
|
|
208
|
+
5. Build from tokens first, then components, then page composition.
|
|
209
|
+
6. Validate state parity before finishing: default, hover, active, focus, disabled.
|
|
210
|
+
7. Validate contrast before shipping: body text must meet WCAG AA, controls must stay legible in all themes and states.
|
|
211
|
+
|
|
212
|
+
## Non-negotiable quality gates
|
|
213
|
+
|
|
214
|
+
- Never use a lighter hover state if it reduces text contrast.
|
|
215
|
+
- Never put near-white text on a bright accent in light theme. Use a darker accent or a darker foreground token.
|
|
216
|
+
- Do not use mono for navigation groups, paragraphs, or long button copy.
|
|
217
|
+
- Do not use `weight-black` as the default heading weight across the entire app.
|
|
218
|
+
- Keep one spacing rhythm per surface: 4px/8px increments, aligned text edges, consistent control heights.
|
|
219
|
+
- When a layout feels chaotic, reduce variant count first. Do not add more decorative layers.
|
|
220
|
+
- Hardcoded colors, arbitrary shadows, and one-off font choices are design-system failures, not creative flourishes.
|
|
221
|
+
- Sameness is failure. If the result could be mistaken for a default AI dashboard or centered SaaS hero, iterate before presenting.
|
|
222
|
+
- Every full page must have one memorable structural or visual signature, not just "good spacing and cards".
|
|
223
|
+
- Do not reuse the same hero, stat-row, or card-grid composition across unrelated products without a domain reason.
|
|
224
|
+
|
|
225
|
+
## Delivery modes
|
|
226
|
+
|
|
227
|
+
### Greenfield
|
|
228
|
+
1. Choose page variant (dashboard, detail, settings, landing, institutional)
|
|
229
|
+
2. Load relevant references
|
|
230
|
+
3. Apply token scope from `design-tokens.md`
|
|
231
|
+
4. Compose layout from `patterns.md` or `websites.md`
|
|
232
|
+
5. Build components from `components.md`
|
|
233
|
+
|
|
234
|
+
### Brownfield
|
|
235
|
+
1. Audit existing UI before rewriting
|
|
236
|
+
2. Map Cognitive Core tokens onto the existing component library
|
|
237
|
+
3. Fix token scope issues (font/color variables must be on the correct container)
|
|
238
|
+
4. Consolidate duplicate variants before introducing new ones
|
|
239
|
+
5. Prefer targeted upgrades over full rewrites unless the user asks for a redesign
|