modern-css
Skill11 starsChanged 10 days agoMITView on GitHub
Use when writing or refactoring CSS architecture, design tokens, layout systems, cascade strategy, responsive styling, themes or motion preferences.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- radiovisual/claude-skillstheir own version, first seen Nov 16, 2026
- moderncss/skillstheir own version, first seen Nov 15, 2026
- caidanw/skillstheir own version, first seen Nov 8, 2026
- jeferson-sb/skillstheir own version, first seen Oct 13, 2026
- jeferson-sb/react-native-perf-skillstheir own version, first seen Oct 13, 2026
- gitkraken/vscode-gitlenstheir own version, first seen Oct 8, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- gitkraken/vscode-gitlens★ 10ksame name
- pass-agent/loomkin★ 179same name
- ccheney/robust-skills★ 60same name
- caidanw/skills★ 11same name
- moderncss/skills★ 8same name
- jorgegorka/master-of-puppets★ 4same name
- magarcia/skills★ 4same name
- jeferson-sb/react-native-perf-skills★ 3same name
- jeferson-sb/skills★ 3same name
- mikezupper/modern-css-skill★ 2same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- accessibility-automationSkill
- accessibility-reviewSkill
- accessible-componentsSkill
- accessible-motionSkill
- animation-performanceSkill
- anti-slop-uiSkill
- api-securitySkill
- authentication-sessionsSkill
- authorization-access-controlSkill
- component-engineeringSkill
- core-web-vitalsSkill
- design-directionSkill
- design-system-architectureSkill
- document-head-seoSkill
- font-performanceSkill
- forms-and-validationSkill
- frontend-architectureSkill
- gsap-fundamentalsSkill
- icon-engineeringSkill
- image-asset-optimizationSkill
- independent-reviewSkill
- interactive-storytellingSkill
- javascript-performanceSkill
- keyboard-focusSkill
- motion-design-systemsSkill
- network-cachingSkill
- performance-auditingSkill
- performance-testingSkill
- premium-landing-pagesSkill
- quickstart-onboardingSkill
- rendering-performanceSkill
- responsive-engineeringSkill
- screen-reader-testingSkill
- scrolltrigger-experiencesSkill
- secrets-configurationSkill
- secure-application-designSkill
- secure-input-outputSkill
- security-reviewSkill
- security-testingSkill
- semantic-accessibilitySkill
- visual-design-reviewSkill
- visual-reference-analysisSkill
- wcag-auditingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
31 rules. 0 are common, 31 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
31
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use platform CSS capabilities to create maintainable, resilient styles without unnecessary dependencies or unsupported browser assumptions.
- Distinctive: line 19
Use clear ownership for reset, tokens, base elements, layout, components and utilities.
- Distinctive: line 20
Consider cascade layers when the project has competing style sources or needs predictable precedence.
- Distinctive: line 21
Keep selector specificity low and avoid !important except for documented integration constraints.
- Distinctive: line 25
Use semantic token names for roles such as surface, text, border and action rather than naming every token after a visual color.
- Distinctive: line 27
Do not introduce tokens for one-off values without a reuse or consistency reason.
- Distinctive: line 29
Use Grid for two-dimensional placement and Flexbox for one-dimensional alignment.
- Distinctive: line 30
Use intrinsic sizing and minmax() to avoid brittle fixed widths.
- Distinctive: line 31
Use container queries for reusable components that respond to their own available space.
- Distinctive: line 32
Use logical properties for writing-mode and direction resilience.
- Distinctive: line 33
Avoid layout hacks based on arbitrary transforms or absolute positioning when normal flow works.
- Distinctive: line 38
Use color-scheme only when the actual UI supports the corresponding browser-native surfaces.
- Distinctive: line 40
Avoid expensive broad selectors and unnecessary animation of layout properties.
- Distinctive: line 41
Prefer transform and opacity for motion when appropriate, but verify compositing and rendering rather than assuming every transform is free.
- Distinctive: line 43
Remove obsolete styles only after checking all consumers.
- Distinctive: line 45
Test supported browsers and responsive conditions.
- Distinctive: line 46
Check focus, hover, reduced motion, dark/light themes and forced colors as relevant.
- Distinctive: line 48
Run existing CSS lint/build checks.
- Distinctive: line 52
Prefer readable CSS over compressed one-liners.
- Distinctive: line 53
Avoid unexplained magic numbers and conflicting duplicate declarations.
- Distinctive: line 54
Do not use !important to compensate for unclear cascade ownership.
- Distinctive: line 55
Do not rely on CSS visual reordering that conflicts with DOM reading order.
- Distinctive: line 56
Do not hide focus outlines without an equally visible replacement.
- Distinctive: line 57
Do not use color alone to communicate validation or status.
- Distinctive: line 58
Do not add browser-specific hacks without a documented support requirement.
- Distinctive: line 59
Do not assume the newest CSS feature is supported by every target browser.
- Distinctive: line 68
Use feature queries such as @supports when a newer feature is an enhancement rather than a baseline requirement.
- Distinctive: line 70
Use cascade layers to establish intentional precedence between reset, vendor, base, components and utilities.
- Distinctive: line 71
Prefer logical properties for direction-aware spacing and sizing.
- Distinctive: line 72
Test forced-colors/high-contrast modes and ensure borders, icons and focus indicators remain perceivable.
- Distinctive: line 73
Avoid using content-visibility, containment or will-change as blanket performance switches.
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Modern CSS Engineering
Objective
Use platform CSS capabilities to create maintainable, resilient styles without unnecessary dependencies or unsupported browser assumptions.
Workflow
- Inspect the current system
- Identify CSS methodology, build tooling, preprocessor, browser support policy and existing tokens.
- Review global styles, resets, component boundaries and specificity hotspots.
- Preserve established conventions unless they cause a concrete problem.
- Define a deliberate cascade
- Use clear ownership for reset, tokens, base elements, layout, components and utilities.
- Consider cascade layers when the project has competing style sources or needs predictable precedence.
- Keep selector specificity low and avoid !important except for documented integration constraints.
- Scope component styles to avoid accidental leakage.
- Build tokens around decisions
- Centralize repeated color, spacing, typography, radius, shadow, border and motion values.
- Use semantic token names for roles such as surface, text, border and action rather than naming every token after a visual color.
- Define theme changes through tokens instead of duplicating whole component styles.
- Do not introduce tokens for one-off values without a reuse or consistency reason.
- Choose layout primitives
- Use Grid for two-dimensional placement and Flexbox for one-dimensional alignment.
- Use intrinsic sizing and minmax() to avoid brittle fixed widths.
- Use container queries for reusable components that respond to their own available space.
- Use logical properties for writing-mode and direction resilience.
- Avoid layout hacks based on arbitrary transforms or absolute positioning when normal flow works.
- Handle states and preferences
- Provide focus-visible styling and meaningful hover/active/disabled states.
- Respect prefers-reduced-motion and avoid motion as the only status signal.
- Support forced colors and increased contrast when relevant.
- Use color-scheme only when the actual UI supports the corresponding browser-native surfaces.
- Optimize safely
- Avoid expensive broad selectors and unnecessary animation of layout properties.
- Prefer transform and opacity for motion when appropriate, but verify compositing and rendering rather than assuming every transform is free.
- Reserve image/media dimensions to reduce layout shifts.
- Remove obsolete styles only after checking all consumers.
- Verify
- Test supported browsers and responsive conditions.
- Check focus, hover, reduced motion, dark/light themes and forced colors as relevant.
- Inspect computed styles and layout shifts in a real browser when available.
- Run existing CSS lint/build checks.
CSS quality rules
- Prefer readable CSS over compressed one-liners.
- Avoid unexplained magic numbers and conflicting duplicate declarations.
- Do not use !important to compensate for unclear cascade ownership.
- Do not rely on CSS visual reordering that conflicts with DOM reading order.
- Do not hide focus outlines without an equally visible replacement.
- Do not use color alone to communicate validation or status.
- Do not add browser-specific hacks without a documented support requirement.
- Do not assume the newest CSS feature is supported by every target browser; check compatibility against the project's support policy.
Completion criteria
Styles have clear cascade ownership, reusable semantic tokens where justified, robust intrinsic layouts, accessible interaction states and verified browser behavior.
Progressive enhancement and resilience
- Use feature queries such as @supports when a newer feature is an enhancement rather than a baseline requirement.
- Establish fallback layout behavior before introducing container queries, advanced selectors or newer color functions when the declared browser support requires it.
- Use cascade layers to establish intentional precedence between reset, vendor, base, components and utilities; layer order participates in the cascade and can outweigh selector specificity.
- Prefer logical properties for direction-aware spacing and sizing; test right-to-left and vertical writing modes when required.
- Test forced-colors/high-contrast modes and ensure borders, icons and focus indicators remain perceivable.
- Avoid using content-visibility, containment or will-change as blanket performance switches; measure behavior and verify focus, find-in-page and layout implications.
For each progressive enhancement, state the baseline behavior and the enhancement. Check actual browser support against the project's policy.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

