nightshift-design
Use when designing, building, writing, OR validating any nightshift interface, marketing page, doc, slide, mock, prototype, or brand asset — covers the night-sky dark theme, terracotta accent, Inter + JetBrains Mono type, design tokens, React UI-kit components, the technical no-hype brand voice, and a runnable adherence gate (token-drift + WCAG-AA contrast + lint). Trigger on "nightshift", "design with the brand", "terminal/pipeline UI", "ships while you sleep", "check brand adherence", "validate nightshift design".
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- nightshift-design
- description
- Use when designing, building, writing, OR validating any nightshift interface, marketing page, doc, slide, mock, prototype, or brand asset — covers the night-sky dark theme, terracotta accent, Inter + JetBrains Mono type, design tokens, React UI-kit components, the technical no-hype brand voice, and a runnable adherence gate (token-drift + WCAG-AA contrast + lint). Trigger on "nightshift", "design with the brand", "terminal/pipeline UI", "ships while you sleep", "check brand adherence", "validate nightshift design".
- user-invocable
- true
02 资源文件 88
- 参考文档_adherence.oxlintrc.json752 B
- 参考文档_component-metadata.json7.5 KB
- 脚本_ds_bundle.js67.9 KB
- 参考文档_ds_manifest.json33.7 KB
- 其他.thumbnail8.3 KB
- 资产文件assets/favicon.svg645 B
- 资产文件assets/github-social-card.html12.5 KB
- 资产文件assets/github-social-card.png139.7 KB
- 资产文件assets/logo-card.html10.8 KB
- 资产文件assets/logo-light.svg1.3 KB
- 资产文件assets/logo.svg1.2 KB
- 资产文件assets/logomark.svg1.0 KB
- 资产文件assets/og-card.html12.3 KB
- 资产文件assets/readme-banner.html11.3 KB
- 脚本components/core/Badge.d.ts541 B
- 其他components/core/Badge.jsx2.0 KB
- 参考文档components/core/Badge.prompt.md507 B
- 脚本components/core/Button.d.ts858 B
- 其他components/core/Button.jsx3.4 KB
- 参考文档components/core/Button.prompt.md630 B
- 脚本components/core/Card.d.ts496 B
- 其他components/core/Card.jsx1.3 KB
- 参考文档components/core/Card.prompt.md501 B
- 参考文档components/core/core.card.html12.2 KB
- 脚本components/core/InstallSnippet.d.ts576 B
- 其他components/core/InstallSnippet.jsx2.8 KB
- 参考文档components/core/InstallSnippet.prompt.md452 B
- 脚本components/data/AgentCard.d.ts749 B
- 其他components/data/AgentCard.jsx2.8 KB
- 参考文档components/data/AgentCard.prompt.md622 B
- 脚本components/data/CommandCard.d.ts594 B
- 其他components/data/CommandCard.jsx2.1 KB
- 参考文档components/data/CommandCard.prompt.md599 B
- 参考文档components/data/data.card.html12.0 KB
- 脚本components/data/Table.d.ts679 B
- 其他components/data/Table.jsx2.1 KB
- 参考文档components/data/Table.prompt.md537 B
- 脚本components/site/Footer.d.ts405 B
- 其他components/site/Footer.jsx2.8 KB
- 参考文档components/site/Footer.prompt.md511 B
- 脚本components/site/NavBar.d.ts511 B
- 其他components/site/NavBar.jsx4.2 KB
- 参考文档components/site/NavBar.prompt.md457 B
- 参考文档components/site/site.card.html11.0 KB
- 脚本components/terminal/CodeBlock.d.ts552 B
- 其他components/terminal/CodeBlock.jsx4.4 KB
- 参考文档components/terminal/CodeBlock.prompt.md543 B
- 脚本components/terminal/Pipeline.d.ts734 B
- 其他components/terminal/Pipeline.jsx2.4 KB
- 参考文档components/terminal/Pipeline.prompt.md673 B
- 参考文档components/terminal/terminal.card.html12.1 KB
- 脚本components/terminal/Terminal.d.ts914 B
- 其他components/terminal/Terminal.jsx3.1 KB
- 参考文档components/terminal/Terminal.prompt.md643 B
- 参考文档guidelines/color-accent.card.html10.4 KB
- 参考文档guidelines/color-backgrounds.card.html10.5 KB
- 参考文档guidelines/color-cool.card.html10.4 KB
- 参考文档guidelines/color-semantic.card.html10.9 KB
- 参考文档guidelines/color-text.card.html10.5 KB
- 参考文档guidelines/elevation.card.html10.4 KB
- 参考文档guidelines/radius.card.html10.5 KB
- 参考文档guidelines/spacing-scale.card.html10.4 KB
- 参考文档guidelines/type-body.card.html10.2 KB
- 参考文档guidelines/type-display.card.html10.1 KB
- 参考文档guidelines/type-mono.card.html10.4 KB
- 参考文档guidelines/type-scale.card.html10.3 KB
- 参考文档package.json500 B
- 参考文档README.md9.6 KB
- 参考文档references/adherence-checklist.md2.5 KB
- 参考文档references/components.md7.8 KB
- 参考文档references/patterns.md4.5 KB
- 参考文档references/tokens.md9.4 KB
- 参考文档references/voice-and-content.md3.0 KB
- 脚本scripts/check-contrast.mjs2.5 KB
- 脚本scripts/check-tokens.mjs1.6 KB
- 其他styles.css374 B
- 参考文档templates/page-starter.html3.9 KB
- 其他tokens/base.css1.9 KB
- 其他tokens/colors.css4.8 KB
- 其他tokens/fonts.css448 B
- 其他tokens/spacing.css4.3 KB
- 其他tokens/typography.css2.4 KB
- 参考文档ui_kits/docs/index.html11.1 KB
- 其他ui_kits/docs/layout.jsx10.7 KB
- 参考文档ui_kits/docs/README.md708 B
- 参考文档ui_kits/marketing/index.html12.2 KB
- 参考文档ui_kits/marketing/README.md1.3 KB
- 其他ui_kits/marketing/sections.jsx14.3 KB
03 SKILL.md 正文
nightshift — Design System
Overview
nightshift is a Claude Code plugin that turns one terminal into a full AI software-delivery team — PM, architect, tech lead, engineers, QA — driven from the issue tracker. Tagline: "Your AI software team that ships while you sleep."
The design is nocturnal, calm, technical, no-hype. Audience is senior devs who live in the terminal and smell marketing instantly. Every artifact must feel credible, fast, technical — a premium dev-tool, never a generic SaaS splash. Lead with proof (terminal output, numbers), never adjectives.
The brand name is always lowercase — nightshift. Never "Nightshift" or "NightShift".
When to Use
- Building nightshift UI (production React, or static HTML mocks/slides/prototypes)
- Writing nightshift copy (landing page, docs, README, social)
- Producing brand assets (OG cards, banners, logo lockups)
- Any artifact that must match the brand
Two output modes (ask which if unclear):
- Throwaway visual (slide, mock, prototype) → copy assets out, emit static HTML files the user can open.
- Production code → read the token CSS + component sources, design as a brand expert.
If invoked with no guidance, ask what they want to build, ask a few sharp questions, then act as the expert designer.
Build workflow — follow every time
- Load the relevant reference(s) below before writing any UI. Don't design from memory of this summary — the detail files carry exact values. Token values are authoritative in
tokens/*.css, mirrored machine-readable in_ds_manifest.json— query the manifest for an exact hex, never guess one. - Use DS components (
references/components.md) where they exist; hand-build only the rest, followingreferences/patterns.mdrecipes. Never invent a value that has a token. - Start static mocks from
templates/page-starter.html(inherits all tokens + signature motifs); diff againstui_kits/marketing+ui_kits/docsas the golden full-page references. - Gate before done: run
npm run validate(token-drift + WCAG-AA contrast + oxlint), then walkreferences/adherence-checklist.mdfor the human-only checks. Every box passes or is deliberately N/A.
Reference files (read on demand)
| Need | File |
|---|---|
| Every token, exact value, semantic alias, base resets | references/tokens.md |
| Every component's full props/usage + product data (agents, commands) | references/components.md |
| Brand voice, casing, signature phrases, do/don't copy | references/voice-and-content.md |
| Recipes: hero, card, button, starfield, moon-glow, page scaffold, icons | references/patterns.md |
| Pre-ship adherence checklist | references/adherence-checklist.md |
| Copy-paste static page starter | templates/page-starter.html |
The raw source of truth still lives in tokens/, components/, guidelines/, ui_kits/, assets/ — read those for deepest fidelity.
Content voice — match in every artifact
- Technical peer, not marketer. Confident, dry, specific. Lead with mechanism and proof.
- Person:
"you"for the reader;"it"/"the agents"for the product. First person rare, only collective ("we"). - Casing: brand
nightshiftalways lowercase. Agent/command names lowercase mono:product-manager,/auto,qa-engineer. Headings sentence case, never Title Case. - Numbers as proof: "11 specialized agents," "10 slash commands," "install in 60 seconds." Concrete counts beat adjectives.
- Structure: thesis → mechanism → proof. Claim it, explain how, then show terminal output.
- Mono for anything you'd type: commands, agent names, file paths, branch names, Conventional Commit lines → JetBrains Mono. That's the "terminal texture."
- Signature phrases: "ships while you sleep," "a team, not a megaprompt," "generic agents, per-repo config," "the lifecycle is the product," "spec before plan, plan before code, review before merge, tests as the gate."
- Emoji: sparingly. The 🌙 moon is the one brand glyph. In product UI prefer the SVG moon mark + mono
//eyebrows over emoji. Never sprinkle emoji through body copy. - Don't: over-claim ("replaces your team"), use empty intensifiers ("powerful/revolutionary"), or Title-Case the brand.
Design tokens (quick reference)
Import the single entry point: styles.css (@import manifest of tokens/*.css). Use semantic aliases in components, not raw scale values. Exact hex values are not listed here on purpose — they live once in tokens/colors.css (mirrored in _ds_manifest.json); read them there so this summary can't drift. npm run check:tokens fails the build if any doc hex stops matching the CSS.
Color — dark-mode-first (semantic aliases — use these, not raw scale)
| Role | Alias |
|---|---|
| Page / void / sunken bg | --bg-page · --bg-void · --bg-sunken |
| Surfaces | --surface-card · --surface-raised · --surface-overlay · --surface-terminal |
| Accent (the one pointing color) | --accent · --accent-hover · --accent-press (terracotta) |
| Link / focus (cool indigo) | --link · --link-hover · --focus-ring |
| Text | --text-strong · --text-body · --text-muted · --text-dim · --text-on-accent |
| States | --success · --warning · --danger · --info (terminal-true) |
| Hairlines | --border-soft · --border-default · --border-strong · --border-accent |
| Code syntax | --code-comment/-keyword/-string/-fn/-num/-punct/-prompt |
Exact values + raw scale (--night-*, --terra-*, --moon-*, --indigo-*) → references/tokens.md or tokens/colors.css.
Type — Inter + JetBrains Mono
--font-sansInter — display, headings, body.--font-monoJetBrains Mono — code, labels, UI chrome, eyebrows.- Display:
--fw-extra(800), tracking--tracking-tight(-0.02em). - Signature eyebrow: mono, uppercase, terracotta,
--tracking-eyebrow(0.16em) — e.g.// HOW IT WORKS. - Scale:
--text-2xs11 ·xs12 ·sm13 ·base15 ·md17 ·lg20 ·xl25 ·2xl32 ·3xl42 ·4xl56 ·5xl72 ·6xl92 (px). - Leading:
tight1.06snug1.22normal1.5relaxed1.65.
Spacing / radius / elevation / motion
- Spacing: 4px base —
--space-1..32(4,8,12,16,20,24,32,40,48,64,80,96,128). - Radius: SHARP — all
--radius-*are0(site override at the token layer); only true circles use--radius-round: 50%(star dots, gate rings, traffic lights, status dots). Retired scale: 4/6/10/14/20/28/999. - Elevation: deep soft shadows
--elev-1..4. On dark, always pair shadow with a 1px hairline — shadow alone won't read. - Glow (the "light in the dark"):
--glow-accent(terracotta, primary buttons + active pipeline stages),--glow-cool(indigo focus),--glow-focus(3px indigo ring — always visible, never removed). - Motion:
--ease-outcubic-bezier(.22,1,.36,1) at--dur-fast120 /--dur-base200 /--dur-slow360ms. Restrained, quick. - Layout:
--container-max1200 ·--container-prose720 ·--nav-height64.
Components
React, namespace window.NightshiftDesignSystem_983007. Each component has a .d.ts + .prompt.md (read for full API); each group a *.card.html specimen.
| Group | Components |
|---|---|
| core/ | Button, Badge, Card, InstallSnippet |
| terminal/ | Terminal (+ TermLine), CodeBlock, Pipeline |
| site/ | NavBar, Footer |
| data/ | AgentCard, CommandCard, Table |
Button example — variants primary (filled terracotta + glow) · secondary (raised + hairline) · ghost (text, fills on hover) · danger (red outline); sizes sm|md|lg; props mono (command labels), loading, disabled, iconLeft/iconRight, fullWidth:
<Button variant="primary" size="md">Install plugin</Button>
<Button variant="ghost" mono>/auto</Button>
Signature moves (do these to read as nightshift)
- Mono
// uppercase eyebrowsin terracotta above section headings. - The terminal window surface (traffic-light dots,
--surface-terminal) with streaming/autopipeline output — lines reveal one at a time, then loop. The one "alive" motion. - Faint starfield (tiny low-opacity radial dots) + soft moon glow (single blurred terracotta/indigo radial) behind heroes. No photography, no loud gradients.
- Glow on primary buttons and active pipeline stages.
- Hairline border on every card —
--surface-cardfill, sharp corners (radius 0), deep soft shadow, hairline does the separating. Featured cards get accent ring + glow. - Hover lifts (
translateY(-1px)buttons,-2pxcards) + warms border to accent. - Unicode flow glyphs from the terminal:
→ ↓ ✓ ✗ ● ▌ ⌘ //. Real UI icons → Lucide (1.5px stroke, CDN) — a documented substitution; source ships no icon set. - Brand mark: crescent-moon
assets/logomark.svg(terracotta crescent, soft glow, two stars), 28px in nav.
Common mistakes
- Title-casing the brand → always
nightshift. - Marketing adjectives ("powerful", "revolutionary") → show the
/autorun instead. - Shadow with no hairline on dark → invisible card edge. Always add the 1px border.
- Removing focus ring → keep
--glow-focusalways visible. - Emoji in body UI → use the SVG moon mark + mono
//eyebrows. - Light-mode assumptions → this system is dark-first.
File index
references/— agent-facing digest:tokens.md,components.md,voice-and-content.md,patterns.md,adherence-checklist.md.templates/page-starter.html— copy-paste static page wired to the tokens + signature motifs._ds_manifest.json— authoritative machine index: every token (withdefinedIn), component, asset. Query for exact values instead of guessing.package.json+scripts/check-tokens.mjs+scripts/check-contrast.mjs— thenpm run validategate: token-drift, WCAG-AA contrast, oxlint (_adherence.oxlintrc.json).styles.css→tokens/—colors.css,typography.css,spacing.css(radius/elevation/motion),fonts.css,base.css.components/{core,terminal,site,data}/—.jsx+.d.ts+.prompt.md+ group*.card.html.guidelines/*.card.html— color/type/spacing specimen cards.ui_kits/marketing/andui_kits/docs/— full-page references (hero, agent grid, install, docs sidebar).assets/—logomark.svg,logo.svg(dark bg),logo-light.svg(light bg — "night" in ink, "shift" in terracotta),favicon.svg,og-card.html,readme-banner.html,logo-card.html.README.md— full brand brief and product context. Source of truth: whimzyLive/nightshift-ai.
Caveats: fonts via Google Fonts (self-host for production); Lucide + logomark are documented original substitutions.
04 同仓库更多 Skills
designing-in-patterns
Use when designing, planning or auditing UI against a component library — naming surfaces with the repo's pattern vocabulary, deciding reuse versus extend versus new, exploring compositions, or writing the reuse table (component-plan.md, a spec's `## Reuse`, a UI audit). Carries the design method; the repo's own vocabulary, bundle and board rules come from project-context and the designer override.
typeorm
Use when defining TypeORM entities, writing migrations, or building repository/query-builder code in TypeScript. Covers entity and relation decorators, the Data Mapper pattern, migrations, the query builder, transactions, and multi-database configuration.
hono-api
Use when building or extending REST APIs with Hono + @hono/zod-openapi. Covers schema-first route declaration with createRoute, feature-grouped composable routers, a class-based service layer behind interfaces, the strategy pattern for multi-event webhooks, typed request validation, and auto-generated OpenAPI docs.
electrodb
Use when defining DynamoDB entities, modeling indexes, or writing queries/mutations with the ElectroDB ORM. Covers entity schema, access patterns, CRUD operations, update expressions, and single-table design patterns.
atomic-design
Use when structuring or decomposing any frontend UI into reusable components, regardless of framework. Applies Brad Frost's atomic design methodology — atoms, molecules, organisms, templates, and pages — to guide consistent component hierarchy, naming, and composition decisions.
writing-docs
Use when writing, restructuring, or reviewing any prose documentation — a tutorial, how-to guide, reference page, or explanation/conceptual doc — for a public docs site (e.g. Mintlify MDX, docs/, README material), a getting-started guide, an API/CLI reference page, or a "why we built it this way" conceptual page. Applies the Diátaxis framework (see https://diataxis.fr/) — every document belongs to exactly one of the four quadrants (tutorial / how-to guide / reference / explanation), and mixing quadrants inside one document is the single most common documentation failure. Covers the four-quadrant compass for picking the right form, per-quadrant structure templates, an anti-pattern list for quadrant drift, and generic voice/craft rules — repo-specific voice and target output format (e.g. Mintlify MDX) are resolved from the repo's docs-manifest (falling back to project-context), never hardcoded here.