plugins/astro-expert/skills/astro-styling/SKILL.md
Use when styling Astro components with scoped CSS, CSS Modules, Tailwind CSS, UnoCSS, or Sass. Covers class:list directive, global styles, CSS custom properties, and Vite-powered preprocessors.
npx skillsauth add fusengine/agents astro-stylingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Before ANY implementation, use TeamCreate to spawn 3 agents:
After implementation, run fuse-ai-pilot:sniper for validation.
.astro components with component-scoped CSSclass:list for conditional class application| Method | Scope | When to Use |
|--------|-------|-------------|
| <style> in .astro | Component | Default — scoped to component |
| <style is:global> | Global | Base styles, resets |
| CSS Modules .module.css | Component | Framework components (React, Vue) |
| Tailwind CSS | Utility | Rapid UI development |
| UnoCSS | Utility | Lightweight, configurable atomic CSS |
| Sass/SCSS | Component/Global | Advanced features, variables, mixins |
| Topic | Reference | When to Consult | |-------|-----------|-----------------| | Scoped CSS | scoped-css.md | Component styling | | CSS Modules | css-modules.md | Framework components | | Global styles | global-styles.md | Resets, base styles | | Tailwind | tailwind.md | Utility-first CSS | | UnoCSS | unocss.md | Atomic CSS engine | | Sass/SCSS | sass.md | Preprocessor features | | CSS Variables | css-variables.md | Design tokens, themes |
| Template | When to Use | |----------|-------------| | scoped-component.md | Component with scoped + conditional classes | | tailwind-setup.md | Full Tailwind CSS project setup | | unocss-setup.md | Full UnoCSS project setup |
<style> in .astro files by defaultis:global in components — Reserve for layouts and global filesis:global inside non-layout componentstesting
Copy self-audit and ban-lists — filler verbs/hype adjectives, slop placeholder names, fake-precise numbers, Title Case headlines, humor in error copy ('Oops!'), em-dash crutch, one copy register per page.
development
Logged-in web apps — dashboards, auth flows, settings, onboarding, data tables, command palettes, modals, toasts. Register `product`: density and glance-speed over marketing polish, no hero/CTA-tricks, every data surface covers empty/loading/error explicitly, tables and dataviz follow preattentive-processing rules.
development
Marketing sites, landing pages, campaign pages — register `brand` (design IS the product). Structure comes from the register's POV + a macrostructure pick, never from copying an inspiration site's section flow. Hero discipline, deviated section order, asymmetric grids, and a silhouette lookalike-test gate before ship.
development
Token-strategy core — OKLCH color rules, neutral tinting, accent-commitment levels, type scale, 8pt spacing grid, touch targets, and the canonical output format of design-system.md (the file the harness gates on). This is routing step 1 of design-method/SKILL.md — read it before design-web/design-webapp/design-ios/design-android, before picking or auditing a single color/type/spacing value.