Design & media

Kold Frontend Design

Try it

Use when building, implementing, or refactoring frontend UI — components, pages, layouts, interactions, or any visual work in pure HTML/CSS/JS. Use when inte...

What it does

When this skill is active, every visual artifact you produce must be precise, token-driven, accessible, and aesthetically sound. Pure HTML/CSS/JS only.

The skill document

Kold Frontend Design Skill

When this skill is active, every visual artifact you produce must be precise, token-driven, accessible, and aesthetically sound. Pure HTML/CSS/JS only.

Core Principles

  1. Design tokens first — every color, spacing, radius, shadow, and type scale value comes from a CSS custom property
  2. OKLch for colors — define colors in oklch(); reference them via var(--ds-*); never hardcode bare oklch() in component rules
  3. Mobile-first responsive — design for smallest viewport first, scale up
  4. Accessibility baseline — WCAG AA; every interactive element has a name, every image has alt text
  5. Progressive enhancement — components work without JavaScript
  6. Aesthetic judgment — consider typography, color harmony, spacing rhythm, visual hierarchy as integral to the work, not afterthoughts

Design Token Reference

Color Structure

/* Light mode (:root) */
--ds-color-bg:         oklch(97% 0.012 80);
--ds-color-surface:    oklch(99% 0.005 80);
--ds-color-border:     oklch(89% 0.012 80);
--ds-color-fg:         oklch(20% 0.02 60);
--ds-color-accent:     oklch(52% 0.08 115);

/* Dark mode ([data-theme="dark"]) — override every token */
[data-theme="dark"] {
  --ds-color-bg:       oklch(15% 0.008 75);
  --ds-color-surface:  oklch(20% 0.008 75);
  --ds-color-fg:       oklch(84% 0.008 72);
  --ds-color-accent:   oklch(57% 0.065 115);
}

Spacing Scale

Base: 4px. Tokens: --ds-space-1 (4px) through --ds-space-32 (128px).

Typography Scale

--ds-font-display: serif stack
--ds-font-body:    sans-serif stack
--ds-font-mono:    monospace stack

Type scale (rem): caption .75 · body 1 · h4 1.5 · h3 1.875 · h2 2.25 · h1 3

Radius Scale

sm: 2px · md: 4px · lg: 8px · xl: 12px · 2xl: 16px

Common Patterns

Button


  Label

.ds-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-2) var(--ds-space-4);
  border-radius: var(--ds-radius-md);
  font: inherit;
  cursor: pointer;
}
.ds-btn--primary {
  background: var(--ds-color-accent);
  color: var(--ds-color-surface-raised);
}

Icon-only button requires aria-label.

Card

Base class + modifier pattern. No nested modifier chains like .parent .child--active.

Stack / Cluster Layout

Use layout helper classes. Never use ad-hoc margin tricks.

Anti-Patterns

WrongRight
color: oklch(52% 0.08 115)color: var(--ds-color-accent)
padding: 16pxpadding: var(--ds-space-4)
iconicon
``class + CSS token
No [data-theme="dark"] overrideoverride every color token

Dark Mode Rules

  • Never use pure #000 — use warm gray oklch(15% 0.008 75)
  • Dark mode accent is ~5-10% lighter than light mode accent
  • Every color token declared in :root needs a [data-theme="dark"] override

Pre-Commit Checklist

Before finishing any task:

  • All colors use var(--ds-*) tokens, no bare oklch/hex/rgb in component rules
  • All spacing uses --ds-space-* tokens, no magic numbers
  • Dark mode overrides exist for every color token
  • Icon-only buttons have aria-label
  • Images have alt text
  • Semantic HTML (no `` without href in unexpected places)
  • No inline style= except for genuinely dynamic values
  • Component is responsive (tested at 375px width)
  • Aesthetic quality: spacing rhythm, typography scale, color harmony checked

Related skills

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván1 installs

Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.

by fly0pants

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván1 installs

Adaptive web scraping in Python that bypasses anti-bot systems and scales from single requests to concurrent crawls.

by d4vinci399 installs28 stars

Query Twitter/X profiles, tweets, follower events, and KOL data through the 6551 REST API.

by infra403840 installs27 stars

More from cgartlab

Browse all skills

Build EDIC-style UI, pages, docs, and emails with OKLch design tokens, editorial olive green, and CJK-optimized typography.

by cgartlab8 installs1 stars

Use when reviewing frontend code for design quality — checking design token usage, hardcoded values, dark mode coverage, accessibility compliance, CSS consistency, semantic HTML, or framework API usage. Use when auditing a component, page, or design system for issues. Trigger phrases: '帮我 review 这段代

by sooyoon-eth