modern-css-vanilla

Installation
SKILL.md

Modern CSS Vanilla

When to use this skill

  • Writing custom CSS/SCSS (not utilizing Tailwind).
  • Refactoring legacy stylesheets.
  • Implementing complex layouts.

1. New Selectors

  • :has(): The parent selector. div:has(> img) selects divs containing an image.
  • :is() / :where(): For grouping selectors. :where() has 0 specificity (useful for resets).

2. Layouts

  • Container Queries:
    .card-container { container-type: inline-size; }
    @container (min-width: 500px) { ... }
    
  • Grid: Use display: grid for 2D layouts; flex for 1D.
Installs
6
GitHub Stars
2
First Seen
Feb 21, 2026
modern-css-vanilla — sraloff/gravityboots