Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/leo-atienza-css-first-ui
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
css-first-ui- Description
- None
- License
- MIT
- Instructions
- 449 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- missing YAML frontmatter
- name: missing
- description: missing
Files (6)
- SKILL.md
- container-queries.md · references/
- has-patterns.md · references/
- layer-architecture.md · references/
- native-components.md · references/
- oklch-system.md · references/
SKILL.md (first lines)
<!--
id: SK-084
name: css-first-ui
description: CSS-First UI Engine — Container Queries, :has(), @layer specificity architecture, native Popover+Anchor components, scroll-state queries, OKLCH color, CSS Nesting. Load when building UI components that should minimize JavaScript.
keywords: css-first, container-queries, has-selector, layer, popover, anchor, scroll-state, oklch, css-nesting, style-queries, zero-js, native-components
version: 1.0.0
-->
# CSS-First UI Engine
## When to Use This Skill
Load when building UI components. The CSS-First principle: **use native CSS before any JS library.** Every feature here ships zero JavaScript, is GPU-composited, and requires no hydration.
**Companion:** Load `web-l100` (SK-083) for the full Vanguard architecture — Render Tiers, animation orchestration, and streaming pipeline.
---
## The CSS Revolution — Before/After
### Example 1: Form Validation Styling (was ~50 lines of JS)
```css
/* CSS only — no JS event listeners, no state, no re-renders */
form:has(:invalid) .submit-btn {
opacity: 0.5;
pointer-events: none;
}
form:has(:focus-visible) .form-help {
display: block;
}
.field:has(:user-invalid) .error-message {
display: block;
color: oklch(0.6 0.25 25);
}
```
### Example 2: Responsive Card (was ~30 lines of JS + ResizeObserver)
```css
.card-container { container-type: inline-size; }
.card {
display: grid;
gap: 1rem;
}
@container (min-width: 400px) {
.card { grid-template-columns: 200px 1fr; }
}
@container (min-width: 600px) {
.card { grid-template-columns: 250px 1fr auto; }
}
```
### Example 3: Dropdown Menu (was ~200 lines of JS + Floating UI)
```html
<button popovertarget="menu" style="anchor-name: --menu-btn">Options</button>
<ul id="menu" popover style="
position-anchor: --menu-btn;
position-area: bottom span-left;
margin-block-start: 4px;
">
<li>Edit</li>
<li>Duplicate</li>
<li>Delete</li>
</ul>
```
```css
[popover] {
transition: opacity 0.15s, transform 0.15s, display 0.15s allow-discrete;
opacity: 0; transform: translateY(-4px);
}
[popover]:popover-open {
opacity: 1; transform: translateY(0);
}
@starting-style {
[popover]:popover-open { opacity: 0; transform: translateY(-4px); }
}
```
Zero JavaScript. Light-dismiss. Keyboard accessible. Proper positioning with overflow handling.
---
## @layer Architecture
> Deep patterns: [references/layer-architecture.md](references/layer-architecture.md)
Every project starts with a specificity architecture. `@layer` eliminates specificity wars.
```css
/* globals.css — declare layer order once */
@layer reset, base, tokens, components, utilities, overrides;
/* reset layer — lowest specificity */
@layer reset {
*, *::before, *::after { box-sizing: border-box; margin: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
}
/* tokens layer — design tokens as custom properties */
@layer tokens {
:root {
--color-surface: oklch(0.99 0.005 260);
--color-text: oklch(0.15 0.02 260);
--color-accent: oklch(0.65 0.25 260);
--radius-sm: 0.375rem;
--radius-md: 0.5rem;
color-scheme: light dark;
}
}
/* components layer — your components */
@layer components {From Leo-Atienza/atlas-claude, MIT.
More from Leo-Atienza/atlas-claude
- 0.519score
design-audit
Leo-Atienza
Run technical quality checks across accessibility, performance, theming, responsive design, and anti-patterns.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
codebase-knowledge-graph
Leo-Atienza
Router skill for graph-based codebase/corpus queries.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
smart-swarm
Leo-Atienza
Automatically organize multi-agent teams for complex tasks.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
self-evolve
Leo-Atienza
Detect capability gaps and autonomously create skills, add free MCP servers, or organize agent teams.
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
project-init
Leo-Atienza
Auto-generate project-level CLAUDE.md from templates based on detected stack.
SkillCFreshness: C★ 4Claude Code +9 - 0.513score
weekly-cleanup-scan
Leo-Atienza
Weekly cleanup scan — hooks, disk usage, stale files, MCP health
SkillCFreshness: C★ 4Claude Code +9 - 0.513score
monthly-evolution-report
Leo-Atienza
Monthly evolution report — knowledge growth, usage analysis, optimization suggestions
SkillCFreshness: C★ 4Claude Code +9 - 0.513score
weekly-memory-maintenance
Leo-Atienza
Weekly memory maintenance — prune sessions >30, check INDEX/topics consistency, evolution health
SkillCFreshness: C★ 4Claude Code +9 - 0.513score
skill-usage-audit
Leo-Atienza
Monthly audit of archived skills — auto-unarchive used skills, auto-remove unused ones
SkillCFreshness: C★ 4Claude Code +9 - 0.508score
weekly-dream
Leo-Atienza
Weekly memory consolidation — runs /dream to orient, gather signal, merge, and prune memory files
SkillCFreshness: C★ 4Claude Code +9 - 0.494score
brand-guidelines
Leo-Atienza
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel.
SkillCFreshness: C★ 4Claude Code +9 - 0.280score
ai-native-ui
Leo-Atienza
No description from the publisher yet.
SkillCFreshness: C★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 5
- Open issues
- 0
- Last commit (this folder)
- Jul 20, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Leo-Atienza/atlas-claude
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Leo-Atienza
- 0.519score
design-audit
Leo-Atienza
Run technical quality checks across accessibility, performance, theming, responsive design, and anti-patterns.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
codebase-knowledge-graph
Leo-Atienza
Router skill for graph-based codebase/corpus queries.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
smart-swarm
Leo-Atienza
Automatically organize multi-agent teams for complex tasks.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
self-evolve
Leo-Atienza
Detect capability gaps and autonomously create skills, add free MCP servers, or organize agent teams.
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
project-init
Leo-Atienza
Auto-generate project-level CLAUDE.md from templates based on detected stack.
SkillCFreshness: C★ 4Claude Code +9 - 0.513score
weekly-memory-maintenance
Leo-Atienza
Weekly memory maintenance — prune sessions >30, check INDEX/topics consistency, evolution health
SkillCFreshness: C★ 4Claude Code +9
Cite this page
css-first-ui skill. Agent Mart. https://agentmart.dev/skills/leo-atienza-css-first-ui (last updated 2026-10-24)