modern-css
Explains modern CSS techniques including Masonry and Container Queries to improve stylesheet performance and maintainability.
Install
mkdir -p .claude/skills/modern-css && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4582" && unzip -o skill.zip -d .claude/skills/modern-css && rm skill.zipInstalls to .claude/skills/modern-css
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Specialized knowledge for writing modern high-quality CSS. Trigger this skill when starting a new CSS project/file, when the user asks about new CSS features (e.g. Masonry, View Transitions, Container Queries, Scroll-driven animations), or requests refactoring of legacy styles to modern standards.Key capabilities
- →Implements modern CSS layout techniques like container queries and subgrid
- →Provides color manipulation using modern color spaces like oklch
- →Enables scroll-driven animations and view transitions
- →Supports advanced typography features like text-box trim and balance
- →Offers interactive component patterns for popovers and dialogs
How it works
The skill provides a reference for modern CSS features and best practices, encouraging the use of standard web platform capabilities over JavaScript libraries.
Inputs & outputs
When to use modern-css
- →Implement modern CSS layout techniques
- →Build scroll-driven animations
- →Use container queries for responsive components
- →Add view transitions to web apps
About modern-css
This skill teaches modern CSS development techniques, ensuring high performance and maintainable stylesheets. It covers advanced browser capabilities like Masonry and Container Queries.
Specialized knowledge for writing modern high-quality CSS. Trigger this skill when starting a new CSS project/file, when the user asks about new CSS features (e.g. Masonry, View Transitions, Container Queries, Scroll-driven animations), or requests refactoring of legacy styles to modern standards.
When not to use it
- →When working with legacy browsers that do not support modern CSS features
- →When a simple, non-performant CSS solution is sufficient
Limitations
- →Limited availability of certain features in older browsers
- →Requires progressive enhancement for non-baseline features
How it compares
It prioritizes native CSS solutions for layout and animation instead of relying on external JavaScript libraries.
Compared to similar skills
modern-css side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| modern-css (this skill) | 1 | 7mo | No flags | Intermediate |
| frontend-design | 481 | 5mo | No flags | Advanced |
| screenshot-to-code | 204 | 5mo | No flags | Beginner |
| web-artifacts-builder | 49 | 7mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by paulirish
View all by paulirish →You might also like
frontend-design
anthropics
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
screenshot-to-code
OneWave-AI
Convert UI screenshots into working HTML/CSS/React/Vue code. Detects design patterns, components, and generates responsive layouts. Use this when users provide screenshots of websites, apps, or UI designs and want code implementation.
web-artifacts-builder
anthropics
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
svelte-ui-design
XIYO
ALWAYS use this skill for ANY Svelte component styling, design, or UI work. Svelte 5 UI design system using Tailwind CSS 4, Skeleton Labs design tokens/presets/Tailwind Components, and Bits UI headless components. Covers class composition, color systems, interactive components, forms, overlays, and all visual design.
skeleton-svelte
martinemde
Use this skill when working with Skeleton UI components in Svelte projects. It provides guidelines for Skeleton's component composition pattern, theme-aware color system, design presets, and layout patterns. Trigger when building UI components, styling elements, creating layouts, or working with Skeleton-specific features in Svelte 5 and SvelteKit 2+ projects.
responsive-design
wshobson
Implement modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first breakpoint strategies. Use when building adaptive interfaces, implementing fluid layouts, or creating component-level responsive behavior.