Frontend CSS
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle frontend CSS.
When to use this skill
- When writing Tailwind CSS utility classes in component markup
- When creating scoped component styles in
<style>blocks within .astro files - When configuring Tailwind (tailwind.config.mjs) with custom colors, spacing, or breakpoints
- When defining global styles in CSS files (e.g., src/styles/global.css)
- When implementing CSS custom properties (CSS variables) for design tokens
- When creating responsive layouts using CSS Grid or Flexbox
- When implementing media queries for different screen sizes
- When setting up dark mode theming with CSS or Tailwind's dark: variant
- When writing CSS animations, transitions, or keyframe animations
- When using BEM methodology for class naming in custom CSS
- When optimizing CSS performance (critical CSS, lazy loading, purging unused styles)
Instructions
For details, refer to the information provided in this file: frontend CSS
微信扫一扫