设计系统构建者
- 作者仓库星标 0
- 作者仓库 skills-registry
- 领域
- 设计与多媒体
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @tomevault-io · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
第 1 步:从 site-plan.md 读取心情
如果没有心情,请询问`AskUserQuestion`,有 8 个选项。显示预览颜色。
第2步:更新globals.css
将`@theme inline`块替换为所选心情的调色板。保持`nextjs-scaffold/templates/globals.css.template`的结构。不要触碰底部的强制覆盖`!important`规则。
第3步:更新layout.tsx字体
替换 `next/font/google` 导入以匹配心情的字体配对。使用 `variable:` 属性将它们连接到 CSS 变量。
第 4 步:添加间距 + 标高标记
在`globals.css`中,添加这些标记(8pt网格+3层标高):
第5步:添加交互状态矩阵
对于每种情绪,在 globals.css 注释中记录状态颜色:
第 6 步:减少运动
已在模板 globals.css 中处理。验证`@media (prefers-reduced-motion: reduce)`块是否存在。
第7步:排版比例
显示字体的默认比例(取决于心情): 英雄:`text-5xl sm:text-6xl md:text-7xl lg:text-8xl` 章节标题:`text-3xl md:text-4xl lg:text-5xl` 小节:`text-xl md:text-2xl` 正文:`text-base` (16px) 和 `leading-relaxed`
# design-system-builder
Applies a cohesive design system to the project. One skill, 8 moods, infinite variations.
## When to use
- Right after `nextjs-scaffold` has set up the project
- When user wants to change the whole site's visual direction
- When restyling an existing site to a new mood
## When NOT to use
- User wants one-off style changes (just edit the file directly)
- User has a detailed design spec from a designer (follow that instead)
## Inputs
From `site-plan.md`:
- `mood` (one of 8 - see `references/palettes.md`)
- `vertical` (for font fine-tuning)
## Output
Updated files:
- `src/app/globals.css` - palette + typography + spacing tokens
- `src/lib/constants.ts` - brand colors as constants (optional)
- Design tokens documented in a comment block
## The 8 moods
### 1. Warm luxury
- Palette: cream `#FDF8F0`, gold `#C9A96E`, charcoal `#2C2418`, taupe `#D4C5B2`
- Fonts: Bodoni Moda (display) + Inter (body)
- Feel: fine dining, spa, boutique
### 2. Dark luxury
- Palette: near-black `#0A0A0A`, gold `#D4AF37`, cream `#F5F0E6`, taupe `#4A4035`
- Fonts: Playfair Display (display) + Inter (body)
- Feel: cocktail bars, jewelers, fine dining
### 3. Coastal luxury
- Palette: white `#FEFEFE`, deep navy `#1B3A5B`, sand `#E8DCC4`, seafoam `#A8C8BF`
- Fonts: Cormorant Garamond (display) + Inter (body)
- Feel: resorts, seafood, yacht clubs
### 4. Earthy luxury
- Palette: deep forest `#2D3E2C`, cream `#F7F3E8`, terracotta `#C87E4F`, moss `#8B9A6B`
- Fonts: Playfair Display (display) + Inter (body)
- Feel: farm-to-table, wellness retreats, eco lodges
### 5. Modern minimal
- Palette: off-white `#FAFAFA`, near-black `#1A1A1A`, single accent (electric blue `#0057FF` or neon green `#00D8A8`)
- Fonts: Inter (single font, multiple weights) OR Space Grotesk
- Feel: SaaS, agencies, portfolios
### 6. Bold editorial
- Palette: pure white `#FFFFFF`, pure black `#000000`, single vivid accent (magenta `#EC008C` or electric yellow `#FFD600`)
- Fonts: oversized serif like Fraunces or Canela (display) + Söhne or Inter (body)
- Feel: magazines, creative studios, restaurants with attitude
### 7. Playful
- Palette: pastel bright - peach `#FFB89C`, mint `#B4E4D0`, butter `#FFE699`, dusty rose `#EDA9B9`
- Fonts: DM Serif Display or Fraunces Soft + Inter or DM Sans
- Feel: cafes, kids brands, casual dining, creator economy
### 8. Corporate
- Palette: navy `#0B2545`, slate `#5C6B7D`, off-white `#F4F6F8`, accent blue `#00B4D8`
- Fonts: Inter (single) OR Source Sans Pro
- Feel: B2B SaaS, finance, healthcare, law
## Procedure
### Step 1: Read mood from site-plan.md
If no mood picked, ask `AskUserQuestion` with the 8 options. Show preview colors.
### Step 2: Update globals.css
Replace the `@theme inline` block with the palette for the chosen mood. Keep the structure from `nextjs-scaffold/templates/globals.css.template`. Do NOT touch the force-override `!important` rules at the bottom.
### Step 3: Update layout.tsx fonts
Replace the `next/font/google` imports to match the mood's font pairing. Use the `variable:` prop to wire them up to CSS vars.
### Step 4: Add spacing + elevation tokens
In `globals.css`, add these tokens (8pt grid + 3-tier elevation):
```css
@theme inline {
/* 8pt spacing grid */
--space-1: 0.25rem; /* 4px */
--space-2: 0.5rem; /* 8px */
--space-3: 1rem; /* 16px */
--space-4: 1.5rem; /* 24px */
--space-5: 2rem; /* 32px */
--space-6: 3rem; /* 48px */
--space-7: 4rem; /* 64px */
--space-8: 6rem; /* 96px */
--space-9: 8rem; /* 128px */
/* Elevation - adjust shadow color per mood */
--shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
--shadow-md: 0 4px 12px rgb(0 0 0 / 0.08);
--shadow-lg: 0 12px 24px rgb(0 0 0 / 0.12);
}
```
### Step 5: Add interactive state matrix
For each mood, document the state colors in globals.css comments:
```css
/*
* Interactive states for this mood (warm luxury):
* default: gold
* hover: gold-dark
* focus: gold + 2px ring
* active: gold-dark + slight scale
* disabled: gold at 40% opacity
*/
```
### Step 6: Reduced motion
Already handled in template globals.css. Verify `@media (prefers-reduced-motion: reduce)` block exists.
### Step 7: Typography scale
Default scale for display fonts (mood-dependent):
- Hero: `text-5xl sm:text-6xl md:text-7xl lg:text-8xl`
- Section heading: `text-3xl md:text-4xl lg:text-5xl`
- Subsection: `text-xl md:text-2xl`
- Body: `text-base` (16px) with `leading-relaxed`
- Small: `text-sm`
- Micro: `text-xs uppercase tracking-[0.2em]` (for labels)
Editorial mood uses LARGER sizes (text-7xl hero minimum). Minimal uses SMALLER (text-4xl hero max).
## Gotchas
1. **The font-override `!important` rules are non-negotiable** - see nextjs-scaffold Step 5.
2. **Color ramp matters** - always include light + dark variants of your accent color (gold + gold-dark). Single-tone accents look flat.
3. **Don't use 8 colors** - the palette limits each mood to 4-5 core colors for a reason. Adding more muddies the brand.
4. **Test contrast** - run the accessibility-performance skill to verify WCAG AA (4.5:1 for body text, 3:1 for large text and UI).
5. **Fonts cost performance** - each `next/font/google` import adds a request. Stick to 2 families max (display + body). Add script only if the mood requires it.
6. **Scripts/cursive fonts look cheap unless done well.** If using Dancing Script for a "luxury" brand, make sure it's sparingly (logo area only). Bodoni italic is a better substitute in most cases.
## References
See `references/palettes.md` for full hex codes, Tailwind configs, and sample mood boards.
---
> Source: [avien19/pro-site-builder](https://github.com/avien19/pro-site-builder) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-22 -->
章节与文件索引
按说明文件中的顺序排列。
何时使用
何时不使用
输入
输出
1. 温馨奢华
文件/命令 -> nextjs-scaffold · site-plan.md · mood · references/palettes.md · vertical · src/app/globals.css · src/lib/constants.ts · #FDF8F0
内容校验值 -> 335ac947a9c5
当前原文的自动摘译,尚未人工审校。
何时使用
在
nextjs-scaffold设置项目之后当用户想要改变整个网站的视觉方向时当将现有网站重新设计为新的氛围时何时不使用
用户想要一次性更改样式(只需直接编辑文件) 用户有设计师提供的详细设计规范(请遵循该规范)
输入
来自
site-plan.md:mood(8 个之一 - 参见references/palettes.md)vertical(用于字体微调)输出
更新的文件:
src/app/globals.css- 调色板 + 版式 + 间距标记src/lib/constants.ts- 品牌颜色作为常量(可选) 设计标记记录在注释块中1. 温馨奢华
调色板:奶油色
#FDF8F0、金色#C9A96E、木炭色#2C2418、灰褐色#D4C5B2字体:Bodoni Moda(展示)+ Inter(主体) 感觉:高级餐厅、水疗中心、精品店