modern-css-vanilla

When to use this skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "modern-css-vanilla" with this command: npx skills add sraloff/gravityboots/sraloff-gravityboots-modern-css-vanilla

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).

  1. Layouts
  • Container Queries: .card-container { container-type: inline-size; } @container (min-width: 500px) { ... }

  • Grid: Use display: grid for 2D layouts; flex for 1D.

  1. Architecture
  • Layers: Use @layer to control cascade order explicitly (e.g., @layer reset, base, theme, utilities ).

  • Variables: Use Custom Properties (--brand-color ) for theming.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

caddy-modern-config

No summary provided by upstream source.

Repository SourceNeeds Review
General

apache-lamp-config

No summary provided by upstream source.

Repository SourceNeeds Review
General

mysql-lamp-legacy

No summary provided by upstream source.

Repository SourceNeeds Review
General

postgresql-core-schema

No summary provided by upstream source.

Repository SourceNeeds Review