css-expert
Skill0 starsChanged 13 months agoMITView on GitHub
Expert in modern CSS, Tailwind CSS, responsive design, animations, and CSS architecture. Use for styling, layout, and design implementation.
In this repository13 other files it gives its agents.
- system-designSkill
- nodejs-expertSkill
- codex-coderSkill
- terraformSkill
- mermaid-diagramsSkill
- technical-writerSkill
- react-expertSkill
- vue-expertSkill
- kubernetes-expertSkill
- android-expertSkill
- ios-expertSkill
- security-expertSkill
- ux-designerSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
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 200
Mobile-First: - Start with mobile styles, enhance for larger screens
- Distinctive: line 203
Accessibility: - Ensure sufficient contrast, focus states
- Distinctive: line 204
Maintainability: - Use consistent naming, avoid deep nesting
- Distinctive: line 205
Responsive Images: - Use srcset and picture elements
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CSS & Styling Expert
Purpose
Provide expert-level CSS development assistance including modern CSS features, Tailwind CSS, responsive design, animations, and maintainable CSS architecture.
When to Use This Skill
- Creating responsive layouts with Flexbox and Grid
- Implementing custom designs with CSS
- Tailwind CSS configuration and usage
- CSS animations and transitions
- CSS-in-JS solutions
- Design system implementation
- Performance optimization
- Cross-browser compatibility
Modern CSS Features
1. CSS Grid
.grid-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1rem;
padding: 1rem;
}
.grid-item {
grid-column: span 2;
}2. Flexbox
.flex-container {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
}3. Custom Properties
:root {
--primary-color: #3b82f6;
--spacing-unit: 0.5rem;
--border-radius: 0.375rem;
}
.component {
color: var(--primary-color);
padding: calc(var(--spacing-unit) * 2);
border-radius: var(--border-radius);
}4. Container Queries
.card-container {
container-type: inline-size;
container-name: card;
}
@container card (min-width: 400px) {
.card-title {
font-size: 2rem;
}
}Responsive Design
Mobile-First Approach
/* Mobile styles (default) */
.container {
padding: 1rem;
}
/* Tablet and up */
@media (min-width: 768px) {
.container {
padding: 2rem;
}
}
/* Desktop and up */
@media (min-width: 1024px) {
.container {
padding: 3rem;
max-width: 1200px;
margin: 0 auto;
}
}Tailwind CSS Patterns
Component Composition
<div class="flex items-center justify-between p-4 bg-white rounded-lg shadow-md">
<h2 class="text-xl font-semibold text-gray-800">Title</h2>
<button class="px-4 py-2 text-white bg-blue-500 rounded hover:bg-blue-600 transition-colors">
Action
</button>
</div>Custom Tailwind Configuration
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
brand: {
50: '#f0f9ff',
500: '#3b82f6',
900: '#1e3a8a'
}
},
spacing: {
'128': '32rem',
}
}
}
}Animations
CSS Transitions
.button {
transition: all 0.3s ease-in-out;
}
.button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}CSS Animations
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.element {
animation: fadeInUp 0.6s ease-out;
}CSS Architecture
BEM Methodology
/* Block */
.card { }
/* Element */
.card__title { }
.card__content { }
/* Modifier */
.card--featured { }
.card__title--large { }CSS Modules
/* component.module.css */
.container {
padding: 1rem;
}
.title {
font-size: 1.5rem;
color: var(--primary);
}Best Practices
- Mobile-First - Start with mobile styles, enhance for larger screens
- Use Modern Features - Leverage Grid, Flexbox, Custom Properties
- Performance - Minimize repaints, use will-change sparingly
- Accessibility - Ensure sufficient contrast, focus states
- Maintainability - Use consistent naming, avoid deep nesting
- Responsive Images - Use srcset and picture elements
- Dark Mode - Support prefers-color-scheme
This skill ensures modern, responsive, and maintainable styling solutions.
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.

