prototype
MAmattpocock/skills337k近 7 天新增 4,978 个 star
Foundational: apply while planning or first building a page or feature, because these choices are expensive to change later. Build a theme system from a few inputs (Linear uses three: accent color, background color, contrast) and derive every other color token from them, instead of hand-defining dozens of variables per theme. Gives users personal themes without letting them make it ugly. Use when adding theming, custom themes, dark mode variants, brand/accent color customization, or when a design has too many hand-picked color tokens.
When: upfront, when colors and theming are first set up; converting a pile of hand-picked tokens later is a big job. Fine shade tuning can wait.
Before their redesign, every Linear theme needed 98 variables defined by hand. Now a theme is three inputs: accent, background, contrast. A system derives the ~90 tokens from those. Simple enough to maintain, powerful enough to feel personal, constrained enough that users can't make it look horrible. Related: design-color-on-color (shading on known backgrounds).
--base-bg, --accent, --contrast (a 0–1 or low/normal/high scale). Dark vs light falls out of the background's lightness; don't make it a separate theme.:root {
--base-bg: oklch(0.99 0.005 260);
--accent: oklch(0.6 0.18 270);
--contrast: 1; /* 0.7 low … 1.4 high */
--dir: 1; /* -1 when background is dark */
--bg-raised: oklch(from var(--base-bg) calc(l - 0.02 * var(--dir)) c h);
--border: oklch(from var(--base-bg) calc(l - 0.08 * var(--dir) * var(--contrast)) c h);
--text-2: oklch(from var(--base-bg) calc(l - 0.45 * var(--dir) * var(--contrast)) calc(c * 2) h);
--text-1: oklch(from var(--base-bg) calc(l - 0.8 * var(--dir) * var(--contrast)) c h);
--accent-hover: oklch(from var(--accent) calc(l + 0.05 * var(--dir)) c h);
}
MAmattpocock/skills337k近 7 天新增 4,978 个 star
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
FIfirecrawl/firecrawl215k近 7 天新增 5,595 个 star
用 React、Tailwind 和 shadcn/ui 构建多组件页面。
ANanthropics/skills203k近 7 天新增 3,265 个 star