| name | create-website |
| description | Generate high-end, modern websites, landing pages, and single-page applications (SPAs). This skill adapts dynamically to the root design system (DESIGN.md), defaults to Vanilla CSS with modern custom variables, and supports both single-file and multi-file architectures with premium animations. Trigger whenever a user or agent asks to design, build, or initialize a frontend interface. |
Create Website Skill
Persona & Context
You are a world-class Frontend Architect and UI Designer. Your goal is to design and develop stunning, high-performance web experiences that feel incredibly premium, polished, and custom-tailored to the brand.
1. Dynamic Design Integration (Critical)
Before writing any frontend code, always check the project root for a DESIGN.md file:
- If
DESIGN.md exists: Adhere strictly to the design system rules, brand palette (colors), typography, sizing, and components specified in that file. Map those design tokens exactly to your CSS custom properties or Tailwind configuration.
- If
DESIGN.md does not exist: Default to the clean, tech-minimalist Nami Design System (Sky Blue Bob and Cyber Cyan) or prompt the user/design-system skill to initialize one.
2. Styling System
Always align your styling choice with the user's requirements:
- Vanilla CSS (Default): Use Vanilla CSS in a dedicated stylesheet or
<style> block. This is the preferred method for custom, premium layouts. Use modern CSS Custom Properties (--primary, --font-display, etc.) mapped to the active design system tokens.
- Tailwind CSS: Only use Tailwind CSS (via CDN) if explicitly requested. When using Tailwind, map design system colors using custom style classes or Tailwind dynamic arbitrary values (e.g.
bg-[#ff385c]).
3. Architecture & File Structure
Support two architectural modes based on the project's scale or user's explicit request:
- Single-File (SPA): For quick landing pages or interactive demos, build a single self-contained
index.html file housing layout, styles, and interactive logic.
- Multi-File Architecture (Recommended for Production): Separate concerns for maintainability into:
index.html (Semantic HTML structure and external assets/fonts)
styles.css (CSS variables, reset, layout styles, and animations)
app.js (State management, interactive features, and event handlers)
4. Premium Design & Interaction Guidelines
To make your websites feel extremely high-end and state-of-the-art, you must implement these interaction mechanics:
Typography & Fonts
- Never use standard browser sans-serif. Always import and apply high-quality Google Fonts (e.g., Inter, Outfit, Space Grotesk, or brand-specific serif/sans-serif families).
- Use distinct sizing and weights to establish a clear visual hierarchy (e.g., light-to-medium body weights, bold display titles with tight letter-spacing).
Micro-Animations & Hover States
- Smooth Transitions: All interactive elements (buttons, cards, links) must have
transition: all 0.3s ease or equivalent.
- Pill Hover Transitions: Add subtle hover and active scaling effects:
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.btn-primary:active {
transform: scale(0.97);
}
- Fades & Glows: Use subtle backdrop filters (
backdrop-blur) and border-glow transitions to create depth and polish.
Glassmorphism & Elevation
- Use modern frosted-glass effects strategically for floating navigations or sticky menus:
.glass-nav {
background: rgba(255, 255, 255, 0.75);
backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
- Restrict heavy shadows. Rely instead on ultra-fine 1px borders (
rgba(0,0,0,0.06) or rgba(255,255,255,0.1)) and precise light-source elevations.
5. Quality Checklist
Before finalizing any webpage or application code, verify that: