good-css
Skill0 starsChanged 34 days agoMITView on GitHub
Modern CSS techniques that replace breakpoint ladders, wrapper elements and scripts. Use whenever you write, edit or review styles in any form, including plain CSS, Tailwind classes, StyleX, CSS-in-JS and inline styles, and whenever you build or restyle a page or component, even if the user never mentions CSS.
5 other projects use a version of this, 3 of them edited.
Adopted by
Most recently taken up by
- Mahesh-Bishnoi/skillsword for word, first seen Nov 8, 2026
- hsynozdamar-byte/claude-skills-editededited, first seen Oct 17, 2026
- sanmidable/skillsedited, first seen Oct 13, 2026
- transitive-bullshit/skillsedited, first seen Oct 13, 2026
- vojtaholik/good-cssword for word, first seen Oct 8, 2026
Other versions5 projects use a version of this.
Word for word · 2
- vojtaholik/good-css★ 402100% same
- Mahesh-Bishnoi/skills★ 2100% same
Edited · 3
- transitive-bullshit/skills★ 594% same
- hsynozdamar-byte/claude-skills-edited★ 498% same
- sanmidable/skills★ 297% same
Wrote their own version · 0
None found.
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 repository58 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agySkill
- animate-expoSkill
- animateSkill
- animation-performanceSkill
- animation-vocabularySkill
- apple-designSkill
- ask-sonnerSkill
- break-uiSkill
- docs-fishingSkill
- emil-design-engSkill
- explainerSkill
- ffmpeg-skillSkill
- find-animation-opportunitiesSkill
- frontend-designSkill
- improve-animationsSkill
- minimal-change-engineerSkill
- mobile-nativeSkill
- moli-webfetchSkill
- pick-ui-librarySkill
- project-dashboardSkill
- prototypeSkill
- reality-checkerSkill
- review-animationsSkill
- rust-refactoringSkill
- skill-creatorSkill
- using-superpowersSkill
- voice-ai-engineeringSkill
- write-swiftSkill
- agySkill
- animate-expoSkill
- animateSkill
- animation-performanceSkill
- animation-vocabularySkill
- apple-designSkill
- ask-sonnerSkill
- break-uiSkill
- docs-fishingSkill
- emil-design-engSkill
- explainerSkill
- ffmpeg-skillSkill
- find-animation-opportunitiesSkill
- frontend-designSkill
- good-cssSkill
- improve-animationsSkill
- minimal-change-engineerSkill
- mobile-nativeSkill
- moli-webfetchSkill
- pick-ui-librarySkill
- project-dashboardSkill
- prototypeSkill
- reality-checkerSkill
- review-animationsSkill
- rust-refactoringSkill
- skill-creatorSkill
- using-superpowersSkill
- voice-ai-engineeringSkill
- write-swiftSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 0 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Write inline and block properties in place of left, right, top and bottom.
- Very specific: line 17
Write colors in oklch(), with none as the hue of a gray, white or black.
- Very specific: line 18
Put sizes that grow with the screen in one clamp() token.
- Very specific: line 19
Put every :hover rule inside @media (hover: hover) and (pointer: fine).
- Very specific: line 22
Put a transition that moves or scales something inside @media (prefers-reduced-motion: no-preference).
- Very specific: line 42
Never add text-box trim on *, text-rendering: optimizeLegibility, or a reset that puts display: contents or one shared grid cell on every …
“Common” is measured: kept by at least 6 in 10 of the 3 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
Good CSS
One declaration that adapts on its own beats a set of breakpoints, and a CSS feature beats a script. Use JavaScript only where it makes a result nicer that already works without it.
Each technique is a set of properties and values, so it works in any authoring system. Class names in the examples are placeholders. Write the declarations in what the project already uses, whether that is a stylesheet, Tailwind utilities or StyleX objects. Where that system has no shorthand for a declaration, write it the long way, as a Tailwind arbitrary property or a rule in the project's CSS file. Do not swap the technique for a breakpoint.
In all CSS
These need no file.
- Write
inlineandblockproperties in place of left, right, top and bottom. Tailwind has them too, as inmbs-,pe-andinset-bs-, so never writemt-,pr-ortop-. The block ones need Tailwind 4.2. Below it, write them as arbitrary properties, as in[margin-block-start:theme(spacing.4)]. - Write colors in
oklch(), withnoneas the hue of a gray, white or black. Derive a hover, tint or transparent version withcolor-mix(in oklch, …). - Put sizes that grow with the screen in one
clamp()token. - Put every
:hoverrule inside@media (hover: hover) and (pointer: fine). - Style focus with
:focus-visibleandoutline. Never writeoutline: none. - Give everything pressable an
:activestate. - Put a transition that moves or scales something inside
@media (prefers-reduced-motion: no-preference). Name its properties, neverall, and never useease-in. - Cut off overflow with
overflow: clip. Keephiddenfor an element a script scrolls.
Read the entry before you write
Each file holds entries with the CSS and its rules. The rules are the conditions the CSS needs to work, so keep all of them. Read only the files whose row matches what you are about to write. One component matches two or three, and a whole page matches most of them.
| Read | Before you write |
references/foundations.md | a reset or base stylesheet, a set of color tokens, dark mode, a type or spacing scale |
references/layout.md | a page or section container or any centered max-width wrapper, whether or not anything goes edge to edge, a grid of cards, cards whose parts line up, a sidebar, a component placed in slots of different widths, overlapping layers, centered content that can overflow |
references/spacing-and-shape.md | spacing between sections, elements stacked one above another, one item pushed to the far end of a row or column, nested rounded corners |
references/text-and-media.md | text or images that come from a user or a CMS, such as names, titles, excerpts, thumbnails, avatars and embeds, an icon next to a label, a label that looks off-center, numbers in a column |
references/interaction.md | the focus, hover and press states of a button, link, input or card, a small tap target, a clickable card, form validation, a textarea, a parent styled by what it contains, page scroll locked behind a modal |
references/motion.md | easing and duration tokens, one state change that drives several values, a shadow that changes on hover, a transition between pages, the indicator under an active tab |
references/show-and-hide.md | a dialog, popover, dropdown menu or accordion |
references/scroll-and-viewport.md | a carousel, a row that may overflow, a modal body, chat list or drawer that scrolls between a header and a footer, in-page links under a sticky header, an app shell on desktop or on a phone |
Left out on purpose
Never add text-box trim on *, text-rendering: optimizeLegibility, or a reset that puts display: contents or one shared grid cell on every element. references/foundations.md has the reasons.
Browser support
Most entries end with a Support: line. This skill sets no browser floor. Weigh the line against the browsers the project targets, and tell the user when something you used is missing from one of them.
Motion
Whether something should animate, the design or review of motion, springs, gestures and drag, and checks on a real phone belong to Emil Kowalski's skills animate, review-animations, improve-animations, find-animation-opportunities and mobile-native. When they are installed, use them for those jobs, and where one disagrees with a value here, use its value. When they are not, use the entries as written and add no motion beyond what an entry or the task calls for.
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.

