style-components

CSS Component Builder 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 "style-components" with this command: npx skills add iurygdeoliveira/labsis-kit/iurygdeoliveira-labsis-kit-style-components

CSS Component Builder Skill

Use this skill when styling new Filament components or Refactoring existing styles.

Philosophy

We do NOT put all CSS in app.css . We treat CSS like modular components.

Rules

  1. File Location
  • Create new CSS files in resources/css/filament/admin/components/[category]/[name].css .

  • Example: resources/css/filament/admin/components/sidebar/item.css .

  1. Registration
  • Register the new file in vite.config.js input array.

  • Import it in the Filament Panel Provider (app/Providers/Filament/AdminPanelProvider.php -> ->viteTheme(...) ) or verify auto-injection usage.

  1. Tailwind v4 Architecture
  • CSS-First Config: Use @theme inside your CSS files, not tailwind.config.js .

  • Import: Use @import "tailwindcss"; at the top of your main CSS.

  • Variables: Use native CSS variables defined in @theme (e.g., --color-primary-500 ).

  • Colors: Prefer oklch for new colors.

  1. Dark Mode

Use the dark: variant or CSS nesting:

.my-component { background: var(--color-white);

@media (prefers-color-scheme: dark) {
    background: var(--color-gray-900);
}

}

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

scaffold-filament-resource

No summary provided by upstream source.

Repository SourceNeeds Review
General

scaffold-filament-page

No summary provided by upstream source.

Repository SourceNeeds Review
General

scaffold-controller

No summary provided by upstream source.

Repository SourceNeeds Review
General

scaffold-policy

No summary provided by upstream source.

Repository SourceNeeds Review