claude-design
Token-only design polish for landing: accent scale check, optional font / radius overrides in design.ts
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Token-only design polish for landing: accent scale check, optional font / radius overrides in design.ts
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Fill packages/landing/src/content/site.ts from brief.md. The landing template already ships to the venture via platform-modules in bootstrap Step 1 — this skill only populates content.
Frontend development task
Apply color palette, typography, logo, and visual branding from brief
Remove sample entities and UI not present in the brief
Generate dashboard page with Recent blocks for each entity from brief
Generate one complete entity vertical slice (backend + frontend)
| name | claude-design |
| description | Token-only design polish for landing: accent scale check, optional font / radius overrides in design.ts |
| agent | _builder |
| argument-hint | <venture-name> |
Runs after
/populate-landing. Canonical-structure policy means this skill only touches the token system — never layout, never component markup, never page set.
branding.accent — ensure it's a valid hex. If not set, abort with error.--accent, --accent-hover, --accent-bg,
--accent-border, --accent-glow all render on the page via accentCssOverrides(hex) in
src/lib/accent-scale.ts.design.ts:
overrides.borderRadius.{button, block, xl} — only when brief explicitly requests a
different radius language (sharper corners, pill vs slab, etc.).overrides.borderWidth — only when brief requests a thicker/thinner border aesthetic.overrides.fontSans / overrides.fontMono — only when brief specifies a non-default font
stack (the default is the Apple system font stack).design.ts explaining any overrides chosen, or stating
"defaults — brief gave no token-level direction."src/components/*, src/app/*, src/lib/*, or globals.css.showSectionNumbers, noiseOpacity, accentOrbOpacity, or any other layout-affecting
knob to design.overrides. Those fields no longer exist in the schema.Given branding.accent = "#168e8e":
src/lib/accent-scale.ts accentCssOverrides(hex) emits a :root block overriding both
--accent* (generic) and --accent-teal* (back-compat) names.src/app/layout.tsx injects this block inline via <style dangerouslySetInnerHTML>.var(--accent-teal) / bg-accent-teal class / etc. — no edits needed.The 9-step buildAccentScale() helper is available for any future component that needs a full
scale; current canonical components use the 6 derived tokens.
design.ts shapeimport type { DesignConfig } from './design'
export const design: DesignConfig = {
rationale:
'<venture-name> — canonical structure. Accent #<hex> derived from brief. No token overrides — default Apple font stack, default radii.',
// overrides: {
// borderRadius: { button: '9999px', block: '16px', xl: '28px' },
// borderWidth: '1px',
// fontSans: '"Inter", sans-serif',
// fontMono: '"JetBrains Mono", monospace',
// },
}
design.ts exists with a one-sentence rationale.branding.accent is a valid hex.overrides contains only borderRadius, borderWidth, fontSans, fontMono (or is
omitted entirely).pnpm tsc --noEmit exits 0.pnpm build exits 0.pnpm dev responds 200 at localhost:3000 and on every canonical route.branding.accent to a very different hex (e.g. #2e7d4a)
rebuilds with no layout change — only accent-colored elements shift.packages/landing/ — pages and components are fixed).grep -E "Skill\(" SKILL.md
Should return zero matches. No external skill dependencies.