opencodekit 0.18.27 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/template/.opencode/agent/vision.md +57 -1
- package/dist/template/.opencode/memory.db +0 -0
- package/dist/template/.opencode/memory.db-shm +0 -0
- package/dist/template/.opencode/memory.db-wal +0 -0
- package/dist/template/.opencode/opencode.json +114 -379
- package/dist/template/.opencode/package.json +1 -1
- package/dist/template/.opencode/skill/design-taste-frontend/SKILL.md +226 -0
- package/dist/template/.opencode/skill/figma-go/SKILL.md +65 -0
- package/dist/template/.opencode/skill/full-output-enforcement/SKILL.md +49 -0
- package/dist/template/.opencode/skill/high-end-visual-design/SKILL.md +98 -0
- package/dist/template/.opencode/skill/industrial-brutalist-ui/SKILL.md +92 -0
- package/dist/template/.opencode/skill/minimalist-ui/SKILL.md +85 -0
- package/dist/template/.opencode/skill/pencil/SKILL.md +68 -0
- package/dist/template/.opencode/skill/redesign-existing-projects/SKILL.md +178 -0
- package/dist/template/.opencode/skill/stitch-design-taste/DESIGN.md +121 -0
- package/dist/template/.opencode/skill/stitch-design-taste/SKILL.md +184 -0
- package/package.json +7 -3
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: minimalist-ui
|
|
3
|
+
description: Clean editorial-style interfaces. Warm monochrome palette, typographic contrast, flat bento grids, muted pastels. No gradients, no heavy shadows.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Protocol: Premium Utilitarian Minimalism UI Architect
|
|
7
|
+
|
|
8
|
+
## 1. Protocol Overview
|
|
9
|
+
Name: Premium Utilitarian Minimalism & Editorial UI
|
|
10
|
+
Description: An advanced frontend engineering directive for generating highly refined, ultra-minimalist, "document-style" web interfaces analogous to top-tier workspace platforms. This protocol strictly enforces a high-contrast warm monochrome palette, bespoke typographic hierarchies, meticulous structural macro-whitespace, bento-grid layouts, and an ultra-flat component architecture with deliberate muted pastel accents. It actively rejects standard generic SaaS design trends.
|
|
11
|
+
|
|
12
|
+
## 2. Absolute Negative Constraints (Banned Elements)
|
|
13
|
+
The AI must strictly avoid the following generic web development defaults:
|
|
14
|
+
- DO NOT use the "Inter", "Roboto", or "Open Sans" typefaces.
|
|
15
|
+
- DO NOT use generic, thin-line icon libraries like "Lucide", "Feather", or standard "Heroicons".
|
|
16
|
+
- DO NOT use Tailwind's default heavy drop shadows (e.g., `shadow-md`, `shadow-lg`, `shadow-xl`). Shadows must be practically non-existent or heavily customized to be ultra-diffuse and low opacity (< 0.05).
|
|
17
|
+
- DO NOT use primary colored backgrounds for large elements or sections (e.g., no bright blue, green, or red hero sections).
|
|
18
|
+
- DO NOT use gradients, neon colors, or 3D glassmorphism (beyond subtle navbar blurs).
|
|
19
|
+
- DO NOT use `rounded-full` (pill shapes) for large containers, cards, or primary buttons.
|
|
20
|
+
- DO NOT use emojis anywhere in code, markup, text content, headings, or alt text. Replace with proper icons or clean SVG primitives.
|
|
21
|
+
- DO NOT use generic placeholder names like "John Doe", "Acme Corp", or "Lorem Ipsum". Use realistic, contextual content.
|
|
22
|
+
- DO NOT use AI copywriting clichés: "Elevate", "Seamless", "Unleash", "Next-Gen", "Game-changer", "Delve". Write plain, specific language.
|
|
23
|
+
|
|
24
|
+
## 3. Typographic Architecture
|
|
25
|
+
The interface must rely on extreme typographic contrast and premium font selection to establish an editorial feel.
|
|
26
|
+
- Primary Sans-Serif (Body, UI, Buttons): Use clean, geometric, or system-native fonts with character. Target: `font-family: 'SF Pro Display', 'Geist Sans', 'Helvetica Neue', 'Switzer', sans-serif`.
|
|
27
|
+
- Editorial Serif (Hero Headings & Quotes): Target: `font-family: 'Lyon Text', 'Newsreader', 'Playfair Display', 'Instrument Serif', serif`. Apply tight tracking (`letter-spacing: -0.02em` to `-0.04em`) and tight line-height (`1.1`).
|
|
28
|
+
- Monospace (Code, Keystrokes, Meta-data): Target: `font-family: 'Geist Mono', 'SF Mono', 'JetBrains Mono', monospace`.
|
|
29
|
+
- Text Colors: Body text must never be absolute black (`#000000`). Use off-black/charcoal (`#111111` or `#2F3437`) with a generous `line-height` of `1.6` for legibility. Secondary text should be muted gray (`#787774`).
|
|
30
|
+
|
|
31
|
+
## 4. Color Palette (Warm Monochrome + Spot Pastels)
|
|
32
|
+
Color is a scarce resource, utilized only for semantic meaning or subtle accents.
|
|
33
|
+
- Canvas / Background: Pure White `#FFFFFF` or Warm Bone/Off-White `#F7F6F3` / `#FBFBFA`.
|
|
34
|
+
- Primary Surface (Cards): `#FFFFFF` or `#F9F9F8`.
|
|
35
|
+
- Structural Borders / Dividers: Ultra-light gray `#EAEAEA` or `rgba(0,0,0,0.06)`.
|
|
36
|
+
- Accent Colors: Exclusively use highly desaturated, washed-out pastels for tags, inline code backgrounds, or subtle icon backgrounds.
|
|
37
|
+
- Pale Red: `#FDEBEC` (Text: `#9F2F2D`)
|
|
38
|
+
- Pale Blue: `#E1F3FE` (Text: `#1F6C9F`)
|
|
39
|
+
- Pale Green: `#EDF3EC` (Text: `#346538`)
|
|
40
|
+
- Pale Yellow: `#FBF3DB` (Text: `#956400`)
|
|
41
|
+
|
|
42
|
+
## 5. Component Specifications
|
|
43
|
+
- Bento Box Feature Grids:
|
|
44
|
+
- Utilize asymmetrical CSS Grid layouts.
|
|
45
|
+
- Cards must have exactly `border: 1px solid #EAEAEA`.
|
|
46
|
+
- Border-radius must be crisp: `8px` or `12px` maximum.
|
|
47
|
+
- Internal padding must be generous (e.g., `24px` to `40px`).
|
|
48
|
+
- Primary Call-To-Action (Buttons):
|
|
49
|
+
- Solid background `#111111`, text `#FFFFFF`.
|
|
50
|
+
- Slight border-radius (`4px` to `6px`). No box-shadow.
|
|
51
|
+
- Hover state should be a subtle color shift to `#333333` or a micro-scale `transform: scale(0.98)`.
|
|
52
|
+
- Tags & Status Badges:
|
|
53
|
+
- Pill-shaped (`border-radius: 9999px`), very small typography (`text-xs`), uppercase with wide tracking (`letter-spacing: 0.05em`).
|
|
54
|
+
- Background must use the defined Muted Pastels.
|
|
55
|
+
- Accordions (FAQ):
|
|
56
|
+
- Strip all container boxes. Separate items only with a `border-bottom: 1px solid #EAEAEA`.
|
|
57
|
+
- Use a clean, sharp `+` and `-` icon for the toggle state.
|
|
58
|
+
- Keystroke Micro-UIs:
|
|
59
|
+
- Render shortcuts as physical keys using `<kbd>` tags: `border: 1px solid #EAEAEA`, `border-radius: 4px`, `background: #F7F6F3`, using the Monospace font.
|
|
60
|
+
- Faux-OS Window Chrome:
|
|
61
|
+
- When mocking up software, wrap it in a minimalist container with a white top bar containing three small, light gray circles (replicating macOS window controls).
|
|
62
|
+
|
|
63
|
+
## 6. Iconography & Imagery Directives
|
|
64
|
+
- System Icons: Use "Phosphor Icons (Bold or Fill weights)" or "Radix UI Icons" for a technical, slightly thicker-stroke aesthetic. Standardize stroke width across all icons.
|
|
65
|
+
- Illustrations: Monochromatic, rough continuous-line ink sketches on a white background, featuring a single offset geometric shape filled with a muted pastel color.
|
|
66
|
+
- Photography: Use high-quality, desaturated images with a warm tone. Apply subtle overlays (`opacity: 0.04` warm grain) to blend photos into the monochrome palette. Never use oversaturated stock photos. Use reliable placeholders like `https://picsum.photos/seed/{context}/1200/800` when real assets are unavailable.
|
|
67
|
+
- Hero & Section Backgrounds: Sections should not feel empty and flat. Use subtle full-width background imagery at very low opacity, soft radial light spots (`radial-gradient` with warm tones at `opacity: 0.03`), or minimal geometric line patterns to add depth without breaking the clean aesthetic.
|
|
68
|
+
|
|
69
|
+
## 7. Subtle Motion & Micro-Animations
|
|
70
|
+
Motion should feel invisible — present but never distracting. The goal is quiet sophistication, not spectacle.
|
|
71
|
+
- Scroll Entry: Elements fade in gently as they enter the viewport. Use `translateY(12px)` + `opacity: 0` resolving over `600ms` with `cubic-bezier(0.16, 1, 0.3, 1)`. Use `IntersectionObserver`, never `window.addEventListener('scroll')`.
|
|
72
|
+
- Hover States: Cards lift with an ultra-subtle shadow shift (`box-shadow` transitioning from `0 0 0` to `0 2px 8px rgba(0,0,0,0.04)` over `200ms`). Buttons respond with `scale(0.98)` on `:active`.
|
|
73
|
+
- Staggered Reveals: Lists and grid items enter with a cascade delay (`animation-delay: calc(var(--index) * 80ms)`). Never mount everything at once.
|
|
74
|
+
- Background Ambient Motion: Optional. A single, very slow-moving radial gradient blob (`animation-duration: 20s+`, `opacity: 0.02-0.04`) drifting behind hero sections. Must be applied to a `position: fixed; pointer-events: none` layer. Never on scrolling containers.
|
|
75
|
+
- Performance: Animate exclusively via `transform` and `opacity`. No layout-triggering properties (`top`, `left`, `width`, `height`). Use `will-change: transform` sparingly and only on actively animating elements.
|
|
76
|
+
|
|
77
|
+
## 8. Execution Protocol
|
|
78
|
+
When tasked with writing frontend code (HTML, React, Tailwind, Vue) or designing a layout:
|
|
79
|
+
1. Establish the macro-whitespace first. Use massive vertical padding between sections (e.g., `py-24` or `py-32` in Tailwind).
|
|
80
|
+
2. Constrain the main typography content width to `max-w-4xl` or `max-w-5xl`.
|
|
81
|
+
3. Apply the custom typographic hierarchy and monochromatic color variables immediately.
|
|
82
|
+
4. Ensure every card, divider, and border adheres strictly to the `1px solid #EAEAEA` rule.
|
|
83
|
+
5. Add scroll-entry animations to all major content blocks.
|
|
84
|
+
6. Ensure sections have visual depth through imagery, ambient gradients, or subtle textures — no empty flat backgrounds.
|
|
85
|
+
7. Provide code that reflects this high-end, uncluttered, editorial aesthetic natively without requiring manual adjustments.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pencil
|
|
3
|
+
description: Pencil design-as-code workflow (CLI + MCP). Create/edit .pen files and export visuals.
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
tags: [design, pencil, mcp, cli]
|
|
6
|
+
mcp:
|
|
7
|
+
pencil:
|
|
8
|
+
command: /Applications/Pencil.app/Contents/Resources/app.asar.unpacked/out/mcp-server-darwin-arm64
|
|
9
|
+
args: ["--app", "desktop"]
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Pencil Skill
|
|
13
|
+
|
|
14
|
+
## When to Use
|
|
15
|
+
|
|
16
|
+
- Create or modify UI designs as code using `.pen` files.
|
|
17
|
+
- Export PNG/JPEG/WEBP/PDF for review or handoff.
|
|
18
|
+
- Run headless, scriptable design changes via CLI/MCP tools.
|
|
19
|
+
|
|
20
|
+
## Prerequisites
|
|
21
|
+
|
|
22
|
+
### Install CLI
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install -g @pencil.dev/cli
|
|
26
|
+
pencil version
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Authenticate
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pencil login
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### MCP Server
|
|
36
|
+
|
|
37
|
+
- Starts automatically when Pencil runs (extension or desktop).
|
|
38
|
+
- Verify in Cursor: Settings → Tools & MCP.
|
|
39
|
+
- In Codex CLI: run Pencil first, then `/mcp`.
|
|
40
|
+
|
|
41
|
+
## Quick Start
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Create new design
|
|
45
|
+
pencil --out design.pen --prompt "Create a login page with email, password, CTA"
|
|
46
|
+
|
|
47
|
+
# Modify existing design
|
|
48
|
+
pencil --in design.pen --out design-v2.pen --prompt "Add a sidebar nav"
|
|
49
|
+
|
|
50
|
+
# Export to image
|
|
51
|
+
pencil --in design.pen --export design.png --export-scale 2
|
|
52
|
+
|
|
53
|
+
# Interactive MCP shell
|
|
54
|
+
pencil interactive -o design.pen
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Core MCP Tools (examples)
|
|
58
|
+
|
|
59
|
+
- `get_editor_state({ include_schema: true })`
|
|
60
|
+
- `get_guidelines()`
|
|
61
|
+
- `batch_design({ operations: "..." })`
|
|
62
|
+
- `get_screenshot({ nodeId: "..." })`
|
|
63
|
+
- `export_nodes({ nodeIds: ["..."], format: "png" })`
|
|
64
|
+
|
|
65
|
+
## Notes
|
|
66
|
+
|
|
67
|
+
- Pencil uses `.pen` files as the source of truth.
|
|
68
|
+
- Use taste-skill for design quality, Pencil for execution.
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: redesign-existing-projects
|
|
3
|
+
description: Upgrades existing websites and apps to premium quality. Audits current design, identifies generic AI patterns, and applies high-end design standards without breaking functionality. Works with any CSS framework or vanilla CSS.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Redesign Skill
|
|
7
|
+
|
|
8
|
+
## How This Works
|
|
9
|
+
|
|
10
|
+
When applied to an existing project, follow this sequence:
|
|
11
|
+
|
|
12
|
+
1. **Scan** — Read the codebase. Identify the framework, styling method (Tailwind, vanilla CSS, styled-components, etc.), and current design patterns.
|
|
13
|
+
2. **Diagnose** — Run through the audit below. List every generic pattern, weak point, and missing state you find.
|
|
14
|
+
3. **Fix** — Apply targeted upgrades working with the existing stack. Do not rewrite from scratch. Improve what's there.
|
|
15
|
+
|
|
16
|
+
## Design Audit
|
|
17
|
+
|
|
18
|
+
### Typography
|
|
19
|
+
|
|
20
|
+
Check for these problems and fix them:
|
|
21
|
+
|
|
22
|
+
- **Browser default fonts or Inter everywhere.** Replace with a font that has character. Good options: `Geist`, `Outfit`, `Cabinet Grotesk`, `Satoshi`. For editorial/creative projects, pair a serif header with a sans-serif body.
|
|
23
|
+
- **Headlines lack presence.** Increase size for display text, tighten letter-spacing, reduce line-height. Headlines should feel heavy and intentional.
|
|
24
|
+
- **Body text too wide.** Limit paragraph width to roughly 65 characters. Increase line-height for readability.
|
|
25
|
+
- **Only Regular (400) and Bold (700) weights used.** Introduce Medium (500) and SemiBold (600) for more subtle hierarchy.
|
|
26
|
+
- **Numbers in proportional font.** Use a monospace font or enable tabular figures (`font-variant-numeric: tabular-nums`) for data-heavy interfaces.
|
|
27
|
+
- **Missing letter-spacing adjustments.** Use negative tracking for large headers, positive tracking for small caps or labels.
|
|
28
|
+
- **All-caps subheaders everywhere.** Try lowercase italics, sentence case, or small-caps instead.
|
|
29
|
+
- **Orphaned words.** Single words sitting alone on the last line. Fix with `text-wrap: balance` or `text-wrap: pretty`.
|
|
30
|
+
|
|
31
|
+
### Color and Surfaces
|
|
32
|
+
|
|
33
|
+
- **Pure `#000000` background.** Replace with off-black, dark charcoal, or tinted dark (`#0a0a0a`, `#121212`, or a dark navy).
|
|
34
|
+
- **Oversaturated accent colors.** Keep saturation below 80%. Desaturate accents so they blend with neutrals instead of screaming.
|
|
35
|
+
- **More than one accent color.** Pick one. Remove the rest. Consistency beats variety.
|
|
36
|
+
- **Mixing warm and cool grays.** Stick to one gray family. Tint all grays with a consistent hue (warm or cool, not both).
|
|
37
|
+
- **Purple/blue "AI gradient" aesthetic.** This is the most common AI design fingerprint. Replace with neutral bases and a single, considered accent.
|
|
38
|
+
- **Generic `box-shadow`.** Tint shadows to match the background hue. Use colored shadows (e.g., dark blue shadow on a blue background) instead of pure black at low opacity.
|
|
39
|
+
- **Flat design with zero texture.** Add subtle noise, grain, or micro-patterns to backgrounds. Pure flat vectors feel sterile.
|
|
40
|
+
- **Perfectly even gradients.** Break the uniformity with radial gradients, noise overlays, or mesh gradients instead of standard linear 45-degree fades.
|
|
41
|
+
- **Inconsistent lighting direction.** Audit all shadows to ensure they suggest a single, consistent light source.
|
|
42
|
+
- **Random dark sections in a light mode page (or vice versa).** A single dark-background section breaking an otherwise light page looks like a copy-paste accident. Either commit to a full dark mode or keep a consistent background tone throughout. If contrast is needed, use a slightly darker shade of the same palette — not a sudden jump to `#111` in the middle of a cream page.
|
|
43
|
+
- **Empty, flat sections with no visual depth.** Sections that are just text on a plain background feel unfinished. Add high-quality background imagery (blurred, overlaid, or masked), subtle patterns, or ambient gradients. Use reliable placeholder sources like `https://picsum.photos/seed/{name}/1920/1080` when real assets are not available. Experiment with background images behind hero sections, feature blocks, or CTAs — even a subtle full-width photo at low opacity adds presence.
|
|
44
|
+
|
|
45
|
+
### Layout
|
|
46
|
+
|
|
47
|
+
- **Everything centered and symmetrical.** Break symmetry with offset margins, mixed aspect ratios, or left-aligned headers over centered content.
|
|
48
|
+
- **Three equal card columns as feature row.** This is the most generic AI layout. Replace with a 2-column zig-zag, asymmetric grid, horizontal scroll, or masonry layout.
|
|
49
|
+
- **Using `height: 100vh` for full-screen sections.** Replace with `min-height: 100dvh` to prevent layout jumping on mobile browsers (iOS Safari viewport bug).
|
|
50
|
+
- **Complex flexbox percentage math.** Replace with CSS Grid for reliable multi-column structures.
|
|
51
|
+
- **No max-width container.** Add a container constraint (around 1200-1440px) with auto margins so content doesn't stretch edge-to-edge on wide screens.
|
|
52
|
+
- **Cards of equal height forced by flexbox.** Allow variable heights or use masonry when content varies in length.
|
|
53
|
+
- **Uniform border-radius on everything.** Vary the radius: tighter on inner elements, softer on containers.
|
|
54
|
+
- **No overlap or depth.** Elements sit flat next to each other. Use negative margins to create layering and visual depth.
|
|
55
|
+
- **Symmetrical vertical padding.** Top and bottom padding are always identical. Adjust optically — bottom padding often needs to be slightly larger.
|
|
56
|
+
- **Dashboard always has a left sidebar.** Try top navigation, a floating command menu, or a collapsible panel instead.
|
|
57
|
+
- **Missing whitespace.** Double the spacing. Let the design breathe. Dense layouts work for data dashboards, not for marketing pages.
|
|
58
|
+
- **Buttons not bottom-aligned in card groups.** When cards have different content lengths, CTAs end up at random heights. Pin buttons to the bottom of each card so they form a clean horizontal line regardless of content above.
|
|
59
|
+
- **Feature lists starting at different vertical positions.** In pricing tables or comparison cards, the list of features should start at the same Y position across all columns. Use consistent spacing above the list or fixed-height title/price blocks.
|
|
60
|
+
- **Inconsistent vertical rhythm in side-by-side elements.** When placing cards, columns, or panels next to each other, align shared elements (titles, descriptions, prices, buttons) across all items. Misaligned baselines make the layout look broken.
|
|
61
|
+
- **Mathematical alignment that looks optically wrong.** Centering by the math doesn't always look centered to the eye. Icons next to text, play buttons in circles, or text in buttons often need 1-2px optical adjustments to feel right.
|
|
62
|
+
|
|
63
|
+
### Interactivity and States
|
|
64
|
+
|
|
65
|
+
- **No hover states on buttons.** Add background shift, slight scale, or translate on hover.
|
|
66
|
+
- **No active/pressed feedback.** Add a subtle `scale(0.98)` or `translateY(1px)` on press to simulate a physical click.
|
|
67
|
+
- **Instant transitions with zero duration.** Add smooth transitions (200-300ms) to all interactive elements.
|
|
68
|
+
- **Missing focus ring.** Ensure visible focus indicators for keyboard navigation. This is an accessibility requirement, not optional.
|
|
69
|
+
- **No loading states.** Replace generic circular spinners with skeleton loaders that match the layout shape.
|
|
70
|
+
- **No empty states.** An empty dashboard showing nothing is a missed opportunity. Design a composed "getting started" view.
|
|
71
|
+
- **No error states.** Add clear, inline error messages for forms. Do not use `window.alert()`.
|
|
72
|
+
- **Dead links.** Buttons that link to `#`. Either link to real destinations or visually disable them.
|
|
73
|
+
- **No indication of current page in navigation.** Style the active nav link differently so users know where they are.
|
|
74
|
+
- **Scroll jumping.** Anchor clicks jump instantly. Add `scroll-behavior: smooth`.
|
|
75
|
+
- **Animations using `top`, `left`, `width`, `height`.** Switch to `transform` and `opacity` for GPU-accelerated, smooth animation.
|
|
76
|
+
|
|
77
|
+
### Content
|
|
78
|
+
|
|
79
|
+
- **Generic names like "John Doe" or "Jane Smith".** Use diverse, realistic-sounding names.
|
|
80
|
+
- **Fake round numbers like `99.99%`, `50%`, `$100.00`.** Use organic, messy data: `47.2%`, `$99.00`, `+1 (312) 847-1928`.
|
|
81
|
+
- **Placeholder company names like "Acme Corp", "Nexus", "SmartFlow".** Invent contextual, believable brand names.
|
|
82
|
+
- **AI copywriting cliches.** Never use "Elevate", "Seamless", "Unleash", "Next-Gen", "Game-changer", "Delve", "Tapestry", or "In the world of...". Write plain, specific language.
|
|
83
|
+
- **Exclamation marks in success messages.** Remove them. Be confident, not loud.
|
|
84
|
+
- **"Oops!" error messages.** Be direct: "Connection failed. Please try again."
|
|
85
|
+
- **Passive voice.** Use active voice: "We couldn't save your changes" instead of "Mistakes were made."
|
|
86
|
+
- **All blog post dates identical.** Randomize dates to appear real.
|
|
87
|
+
- **Same avatar image for multiple users.** Use unique assets for every distinct person.
|
|
88
|
+
- **Lorem Ipsum.** Never use placeholder latin text. Write real draft copy.
|
|
89
|
+
- **Title Case On Every Header.** Use sentence case instead.
|
|
90
|
+
|
|
91
|
+
### Component Patterns
|
|
92
|
+
|
|
93
|
+
- **Generic card look (border + shadow + white background).** Remove the border, or use only background color, or use only spacing. Cards should exist only when elevation communicates hierarchy.
|
|
94
|
+
- **Always one filled button + one ghost button.** Add text links or tertiary styles to reduce visual noise.
|
|
95
|
+
- **Pill-shaped "New" and "Beta" badges.** Try square badges, flags, or plain text labels.
|
|
96
|
+
- **Accordion FAQ sections.** Use a side-by-side list, searchable help, or inline progressive disclosure.
|
|
97
|
+
- **3-card carousel testimonials with dots.** Replace with a masonry wall, embedded social posts, or a single rotating quote.
|
|
98
|
+
- **Pricing table with 3 towers.** Highlight the recommended tier with color and emphasis, not just extra height.
|
|
99
|
+
- **Modals for everything.** Use inline editing, slide-over panels, or expandable sections instead of popups for simple actions.
|
|
100
|
+
- **Avatar circles exclusively.** Try squircles or rounded squares for a less generic look.
|
|
101
|
+
- **Light/dark toggle always a sun/moon switch.** Use a dropdown, system preference detection, or integrate it into settings.
|
|
102
|
+
- **Footer link farm with 4 columns.** Simplify. Focus on main navigational paths and legally required links.
|
|
103
|
+
|
|
104
|
+
### Iconography
|
|
105
|
+
|
|
106
|
+
- **Lucide or Feather icons exclusively.** These are the "default" AI icon choice. Use Phosphor, Heroicons, or a custom set for differentiation.
|
|
107
|
+
- **Rocketship for "Launch", shield for "Security".** Replace cliche metaphors with less obvious icons (bolt, fingerprint, spark, vault).
|
|
108
|
+
- **Inconsistent stroke widths across icons.** Audit all icons and standardize to one stroke weight.
|
|
109
|
+
- **Missing favicon.** Always include a branded favicon.
|
|
110
|
+
- **Stock "diverse team" photos.** Use real team photos, candid shots, or a consistent illustration style instead of uncanny stock imagery.
|
|
111
|
+
|
|
112
|
+
### Code Quality
|
|
113
|
+
|
|
114
|
+
- **Div soup.** Use semantic HTML: `<nav>`, `<main>`, `<article>`, `<aside>`, `<section>`.
|
|
115
|
+
- **Inline styles mixed with CSS classes.** Move all styling to the project's styling system.
|
|
116
|
+
- **Hardcoded pixel widths.** Use relative units (`%`, `rem`, `em`, `max-width`) for flexible layouts.
|
|
117
|
+
- **Missing alt text on images.** Describe image content for screen readers. Never leave `alt=""` or `alt="image"` on meaningful images.
|
|
118
|
+
- **Arbitrary z-index values like `9999`.** Establish a clean z-index scale in the theme/variables.
|
|
119
|
+
- **Commented-out dead code.** Remove all debug artifacts before shipping.
|
|
120
|
+
- **Import hallucinations.** Check that every import actually exists in `package.json` or the project dependencies.
|
|
121
|
+
- **Missing meta tags.** Add proper `<title>`, `description`, `og:image`, and social sharing meta tags.
|
|
122
|
+
|
|
123
|
+
### Strategic Omissions (What AI Typically Forgets)
|
|
124
|
+
|
|
125
|
+
- **No legal links.** Add privacy policy and terms of service links in the footer.
|
|
126
|
+
- **No "back" navigation.** Dead ends in user flows. Every page needs a way back.
|
|
127
|
+
- **No custom 404 page.** Design a helpful, branded "page not found" experience.
|
|
128
|
+
- **No form validation.** Add client-side validation for emails, required fields, and format checks.
|
|
129
|
+
- **No "skip to content" link.** Essential for keyboard users. Add a hidden skip-link.
|
|
130
|
+
- **No cookie consent.** If required by jurisdiction, add a compliant consent banner.
|
|
131
|
+
|
|
132
|
+
## Upgrade Techniques
|
|
133
|
+
|
|
134
|
+
When upgrading a project, pull from these high-impact techniques to replace generic patterns:
|
|
135
|
+
|
|
136
|
+
### Typography Upgrades
|
|
137
|
+
- **Variable font animation.** Interpolate weight or width on scroll or hover for text that feels alive.
|
|
138
|
+
- **Outlined-to-fill transitions.** Text starts as a stroke outline and fills with color on scroll entry or interaction.
|
|
139
|
+
- **Text mask reveals.** Large typography acting as a window to video or animated imagery behind it.
|
|
140
|
+
|
|
141
|
+
### Layout Upgrades
|
|
142
|
+
- **Broken grid / asymmetry.** Elements that deliberately ignore column structure — overlapping, bleeding off-screen, or offset with calculated randomness.
|
|
143
|
+
- **Whitespace maximization.** Aggressive use of negative space to force focus on a single element.
|
|
144
|
+
- **Parallax card stacks.** Sections that stick and physically stack over each other during scroll.
|
|
145
|
+
- **Split-screen scroll.** Two halves of the screen sliding in opposite directions.
|
|
146
|
+
|
|
147
|
+
### Motion Upgrades
|
|
148
|
+
- **Smooth scroll with inertia.** Decouple scrolling from browser defaults for a heavier, cinematic feel.
|
|
149
|
+
- **Staggered entry.** Elements cascade in with slight delays, combining Y-axis translation with opacity fade. Never mount everything at once.
|
|
150
|
+
- **Spring physics.** Replace linear easing with spring-based motion for a natural, weighty feel on all interactive elements.
|
|
151
|
+
- **Scroll-driven reveals.** Content entering through expanding masks, wipes, or draw-on SVG paths tied to scroll progress.
|
|
152
|
+
|
|
153
|
+
### Surface Upgrades
|
|
154
|
+
- **True glassmorphism.** Go beyond `backdrop-filter: blur`. Add a 1px inner border and a subtle inner shadow to simulate edge refraction.
|
|
155
|
+
- **Spotlight borders.** Card borders that illuminate dynamically under the cursor.
|
|
156
|
+
- **Grain and noise overlays.** A fixed, pointer-events-none overlay with subtle noise to break digital flatness.
|
|
157
|
+
- **Colored, tinted shadows.** Shadows that carry the hue of the background rather than using generic black.
|
|
158
|
+
|
|
159
|
+
## Fix Priority
|
|
160
|
+
|
|
161
|
+
Apply changes in this order for maximum visual impact with minimum risk:
|
|
162
|
+
|
|
163
|
+
1. **Font swap** — biggest instant improvement, lowest risk
|
|
164
|
+
2. **Color palette cleanup** — remove clashing or oversaturated colors
|
|
165
|
+
3. **Hover and active states** — makes the interface feel alive
|
|
166
|
+
4. **Layout and spacing** — proper grid, max-width, consistent padding
|
|
167
|
+
5. **Replace generic components** — swap cliche patterns for modern alternatives
|
|
168
|
+
6. **Add loading, empty, and error states** — makes it feel finished
|
|
169
|
+
7. **Polish typography scale and spacing** — the premium final touch
|
|
170
|
+
|
|
171
|
+
## Rules
|
|
172
|
+
|
|
173
|
+
- Work with the existing tech stack. Do not migrate frameworks or styling libraries.
|
|
174
|
+
- Do not break existing functionality. Test after every change.
|
|
175
|
+
- Before importing any new library, check the project's dependency file first.
|
|
176
|
+
- If the project uses Tailwind, check the version (v3 vs v4) before modifying config.
|
|
177
|
+
- If the project has no framework, use vanilla CSS.
|
|
178
|
+
- Keep changes reviewable and focused. Small, targeted improvements over big rewrites.
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# Design System: Taste Standard
|
|
2
|
+
**Skill:** stitch-design-taste
|
|
3
|
+
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Configuration — Set Your Style
|
|
7
|
+
Adjust these dials before using this design system. They control how creative, dense, and animated the output should be. Pick the level that fits your project.
|
|
8
|
+
|
|
9
|
+
| Dial | Level | Description |
|
|
10
|
+
|------|-------|-------------|
|
|
11
|
+
| **Creativity** | `8` | `1` = Ultra-minimal, Swiss, silent, monochrome. `5` = Balanced, clean but with personality. `10` = Expressive, editorial, bold typography experiments, inline images in headlines, strong asymmetry. Default: `8` |
|
|
12
|
+
| **Density** | `4` | `1` = Gallery-airy, massive whitespace. `5` = Balanced sections. `10` = Cockpit-dense, data-heavy. Default: `4` |
|
|
13
|
+
| **Variance** | `8` | `1` = Predictable, symmetric grids. `5` = Subtle offsets. `10` = Artsy chaotic, no two sections alike. Default: `8` |
|
|
14
|
+
| **Motion Intent** | `6` | `1` = Static, no animation noted. `5` = Subtle hover/entrance cues. `10` = Cinematic orchestration noted in every component. Default: `6` |
|
|
15
|
+
|
|
16
|
+
> **How to use:** Change the numbers above to match your project's vibe. At **Creativity 1–3**, the system produces clean, quiet, Notion-like interfaces. At **Creativity 7–10**, expect inline image typography, dramatic scale contrast, and strong editorial layouts. The rest of the rules below adapt to your chosen levels.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 1. Visual Theme & Atmosphere
|
|
21
|
+
A restrained, gallery-airy interface with confident asymmetric layouts and fluid spring-physics motion. The atmosphere is clinical yet warm — like a well-lit architecture studio where every element earns its place through function. Density is balanced (Level 4), variance runs high (Level 8) to prevent symmetrical boredom, and motion is fluid but never theatrical (Level 6). The overall impression: expensive, intentional, alive.
|
|
22
|
+
|
|
23
|
+
## 2. Color Palette & Roles
|
|
24
|
+
- **Canvas White** (#F9FAFB) — Primary background surface. Warm-neutral, never clinical blue-white
|
|
25
|
+
- **Pure Surface** (#FFFFFF) — Card and container fill. Used with whisper shadow for elevation
|
|
26
|
+
- **Charcoal Ink** (#18181B) — Primary text. Zinc-950 depth — never pure black
|
|
27
|
+
- **Steel Secondary** (#71717A) — Body text, descriptions, metadata. Zinc-500 warmth
|
|
28
|
+
- **Muted Slate** (#94A3B8) — Tertiary text, timestamps, disabled states
|
|
29
|
+
- **Whisper Border** (rgba(226,232,240,0.5)) — Card borders, structural 1px lines. Semi-transparent for depth
|
|
30
|
+
- **Diffused Shadow** (rgba(0,0,0,0.05)) — Card elevation. Wide-spreading, 40px blur, -15px offset. Never harsh
|
|
31
|
+
|
|
32
|
+
### Accent Selection (Pick ONE per project)
|
|
33
|
+
- **Emerald Signal** (#10B981) — For growth, success, positive data dashboards
|
|
34
|
+
- **Electric Blue** (#3B82F6) — For productivity, SaaS, developer tools
|
|
35
|
+
- **Deep Rose** (#E11D48) — For creative, editorial, fashion-adjacent projects
|
|
36
|
+
- **Amber Warmth** (#F59E0B) — For community, social, warm-toned products
|
|
37
|
+
|
|
38
|
+
### Banned Colors
|
|
39
|
+
- Purple/Violet neon gradients — the "AI Purple" aesthetic
|
|
40
|
+
- Pure Black (#000000) — always Off-Black or Zinc-950
|
|
41
|
+
- Oversaturated accents above 80% saturation
|
|
42
|
+
- Mixed warm/cool gray systems within one project
|
|
43
|
+
|
|
44
|
+
## 3. Typography Rules
|
|
45
|
+
- **Display:** `Geist`, `Satoshi`, `Cabinet Grotesk`, or `Outfit` — Track-tight (`-0.025em`), controlled fluid scale, weight-driven hierarchy (700–900). Not screaming. Leading compressed (`1.1`). Alternatives forced — `Inter` is BANNED for premium contexts
|
|
46
|
+
- **Body:** Same family at weight 400 — Relaxed leading (`1.65`), 65ch max-width, Steel Secondary color (#71717A)
|
|
47
|
+
- **Mono:** `Geist Mono` or `JetBrains Mono` — For code blocks, metadata, timestamps. When density exceeds Level 7, all numbers switch to monospace
|
|
48
|
+
- **Scale:** Display at `clamp(2.25rem, 5vw, 3.75rem)`. Body at `1rem/1.125rem`. Mono metadata at `0.8125rem`
|
|
49
|
+
|
|
50
|
+
### Banned Fonts
|
|
51
|
+
- `Inter` — banned everywhere in premium/creative contexts
|
|
52
|
+
- Generic serif fonts (`Times New Roman`, `Georgia`, `Garamond`, `Palatino`) — BANNED. If serif is needed for editorial/creative, use only distinctive modern serifs like `Fraunces`, `Gambarino`, `Editorial New`, or `Instrument Serif`. Never use default browser serif stacks. Serif is always BANNED in dashboards or software UIs regardless
|
|
53
|
+
|
|
54
|
+
## 4. Component Stylings
|
|
55
|
+
* **Buttons:** Flat surface, no outer glow. Primary: accent fill with white text. Secondary: ghost/outline. Active state: `-1px translateY` or `scale(0.98)` for tactile push. Hover: subtle background shift, never glow
|
|
56
|
+
* **Cards/Containers:** Generously rounded corners (`2.5rem`). Pure white fill. Whisper border (`1px`, semi-transparent). Diffused shadow (`0 20px 40px -15px rgba(0,0,0,0.05)`). Internal padding `2rem–2.5rem`. Used ONLY when elevation communicates hierarchy — high-density layouts replace cards with `border-top` dividers or negative space
|
|
57
|
+
* **Inputs/Forms:** Label positioned above input. Helper text optional. Error text below in Deep Rose. Focus ring in accent color, `2px` offset. No floating labels. Standard `0.5rem` gap between label-input-error stack
|
|
58
|
+
* **Navigation:** Sleek, sticky. Icons scale on hover (Dock Magnification optional). No hamburger on desktop. Clean horizontal with generous spacing
|
|
59
|
+
* **Loaders:** Skeletal shimmer matching exact layout dimensions and rounded corners. Shifting light reflection across placeholder shapes. Never circular spinners
|
|
60
|
+
* **Empty States:** Composed illustration or icon composition with guidance text. Never just "No data found"
|
|
61
|
+
* **Error States:** Inline, contextual. Red accent underline or border. Clear recovery action
|
|
62
|
+
|
|
63
|
+
## 5. Hero Section
|
|
64
|
+
The Hero is the first impression — it must be striking, creative, and never generic.
|
|
65
|
+
- **Inline Image Typography:** Embed small, contextual photos or visuals directly between words or letters in the headline. Example: "We build [photo of hands typing] digital [photo of screen] products" — images sit inline at type-height, rounded, acting as visual punctuation between words. This is the signature creative technique
|
|
66
|
+
- **No Overlapping Elements:** Text must never overlap images or other text. Every element has its own clear spatial zone. No z-index stacking of content layers, no absolute-positioned headlines over images. Clean separation always
|
|
67
|
+
- **No Filler Text:** "Scroll to explore", "Swipe down", scroll arrow icons, bouncing chevrons, and any instructional UI chrome are BANNED. The user knows how to scroll. Let the content pull them in naturally
|
|
68
|
+
- **Asymmetric Structure:** Centered Hero layouts are BANNED at this variance level. Use Split Screen (50/50), Left-Aligned text / Right visual, or Asymmetric Whitespace with large empty zones
|
|
69
|
+
- **CTA Restraint:** Maximum one primary CTA button. No secondary "Learn more" links. No redundant micro-copy below the headline
|
|
70
|
+
|
|
71
|
+
## 6. Layout Principles
|
|
72
|
+
- **Grid-First:** CSS Grid for all structural layouts. Never flexbox percentage math (`calc(33% - 1rem)` is BANNED)
|
|
73
|
+
- **No Overlapping:** Elements must never overlap each other. No absolute-positioned layers stacking content on content. Every element occupies its own grid cell or flow position. Clean, separated spatial zones
|
|
74
|
+
- **Feature Sections:** The "3 equal cards in a row" pattern is BANNED. Use 2-column Zig-Zag, asymmetric Bento grids (2fr 1fr 1fr), or horizontal scroll galleries
|
|
75
|
+
- **Containment:** All content within `max-width: 1400px`, centered. Generous horizontal padding (`1rem` mobile, `2rem` tablet, `4rem` desktop)
|
|
76
|
+
- **Full-Height:** Use `min-height: 100dvh` — never `height: 100vh` (iOS Safari address bar jump)
|
|
77
|
+
- **Bento Architecture:** For feature grids, use Row 1: 3 columns | Row 2: 2 columns (70/30 split). Each tile contains a perpetual micro-animation
|
|
78
|
+
|
|
79
|
+
## 7. Responsive Rules
|
|
80
|
+
Every screen must work flawlessly across all viewports. **Responsive is not optional — it is a hard requirement. Every single element must be tested at 375px, 768px, and 1440px.**
|
|
81
|
+
- **Mobile-First Collapse (< 768px):** All multi-column layouts collapse to a strict single column. `width: 100%`, `padding: 1rem`, `gap: 1.5rem`. No exceptions
|
|
82
|
+
- **No Horizontal Scroll:** Horizontal overflow on mobile is a critical failure. All elements must fit within viewport width. If any element causes horizontal scroll, the design is broken
|
|
83
|
+
- **Typography Scaling:** Headlines scale down gracefully via `clamp()`. Body text stays `1rem` minimum. Never shrink body below `14px`. Headlines must remain readable on 375px screens
|
|
84
|
+
- **Touch Targets:** All interactive elements minimum `44px` tap target. Generous spacing between clickable items. Buttons must be full-width on mobile
|
|
85
|
+
- **Image Behavior:** Hero and inline images scale proportionally. Inline typography images (photos between words) stack below the headline on mobile instead of inline
|
|
86
|
+
- **Navigation:** Desktop horizontal nav collapses to a clean mobile menu (slide-in or full-screen overlay). No tiny hamburger icons without labels
|
|
87
|
+
- **Cards & Grids:** Bento grids and asymmetric layouts revert to stacked single-column cards with full-width. Maintain internal padding (`1rem`)
|
|
88
|
+
- **Spacing Consistency:** Vertical section gaps reduce proportionally on mobile (`clamp(3rem, 8vw, 6rem)`). Never cramped, never excessively airy
|
|
89
|
+
- **Testing Viewports:** Designs must be verified at: `375px` (iPhone SE), `390px` (iPhone 14), `768px` (iPad), `1024px` (small laptop), `1440px` (desktop)
|
|
90
|
+
|
|
91
|
+
## 8. Motion & Interaction (Code-Phase Intent)
|
|
92
|
+
> **Note:** Stitch generates static screens — it does not animate. This section documents the **intended motion behavior** so that the coding agent (Antigravity, Cursor, etc.) knows exactly how to implement animations when building the exported design into a live product.
|
|
93
|
+
|
|
94
|
+
- **Physics Engine:** Spring-based exclusively. `stiffness: 100, damping: 20`. No linear easing anywhere. Premium, weighty feel on all interactive elements
|
|
95
|
+
- **Perpetual Micro-Loops:** Every active dashboard component has an infinite-loop state — Pulse on status dots, Typewriter on search bars, Float on feature icons, Shimmer on loading states
|
|
96
|
+
- **Staggered Orchestration:** Lists and grids mount with cascaded delays (`animation-delay: calc(var(--index) * 100ms)`). Waterfall reveals, never instant mount
|
|
97
|
+
- **Layout Transitions:** Smooth re-ordering via shared element IDs. Items swap positions with physics, simulating real-time intelligence
|
|
98
|
+
- **Hardware Rules:** Animate ONLY `transform` and `opacity`. Never `top`, `left`, `width`, `height`. Grain/noise filters on fixed, pointer-events-none pseudo-elements only
|
|
99
|
+
- **Performance:** CPU-heavy perpetual animations isolated in microscopic leaf components. Never trigger parent re-renders. Target 60fps minimum
|
|
100
|
+
|
|
101
|
+
## 9. Anti-Patterns (Banned)
|
|
102
|
+
- No emojis — anywhere in UI, code, or alt text
|
|
103
|
+
- No `Inter` font — use `Geist`, `Outfit`, `Cabinet Grotesk`, `Satoshi`
|
|
104
|
+
- No generic serif fonts (`Times New Roman`, `Georgia`, `Garamond`) — if serif is needed, use distinctive modern serifs only (`Fraunces`, `Instrument Serif`)
|
|
105
|
+
- No pure black (`#000000`) — Off-Black or Zinc-950 only
|
|
106
|
+
- No neon outer glows or default box-shadow glows
|
|
107
|
+
- No oversaturated accent colors above 80%
|
|
108
|
+
- No excessive gradient text on large headers
|
|
109
|
+
- No custom mouse cursors
|
|
110
|
+
- No overlapping elements — text never overlaps images or other content. Clean spatial separation always
|
|
111
|
+
- No 3-column equal card layouts for features
|
|
112
|
+
- No centered Hero sections (at this variance level)
|
|
113
|
+
- No filler UI text: "Scroll to explore", "Swipe down", "Discover more below", scroll arrows, bouncing chevrons — all BANNED
|
|
114
|
+
- No generic names: "John Doe", "Sarah Chan", "Acme", "Nexus", "SmartFlow"
|
|
115
|
+
- No fake round numbers: `99.99%`, `50%`, `1234567` — use organic data: `47.2%`, `+1 (312) 847-1928`
|
|
116
|
+
- No AI copywriting clichés: "Elevate", "Seamless", "Unleash", "Next-Gen", "Revolutionize"
|
|
117
|
+
- No broken Unsplash links — use `picsum.photos/seed/{id}/800/600` or SVG UI Avatars
|
|
118
|
+
- No generic `shadcn/ui` defaults — customize radii, colors, shadows to match this system
|
|
119
|
+
- No `z-index` spam — use only for Navbar, Modal, Overlay layer contexts
|
|
120
|
+
- No `h-screen` — always `min-h-[100dvh]`
|
|
121
|
+
- No circular loading spinners — skeletal shimmer only
|