Communitygithub.com

marnixGeerkens/rocketlauncher-claude-code

Tailwind CSS v4 Grundlagen. CSS-first-Konfiguration, Container-Queries, moderne Muster, Design-Token-Architektur.

Was ist rocketlauncher-claude-code?

Dieses Skill für AI-Agenten bietet eine umfassende Referenz zu Tailwind CSS v4 (Stand 2025). Es konzentriert sich auf die CSS-native Konfiguration, die die JavaScript-basierte Konfiguration aus v3 ablöst. Der Agent lernt Container Queries, das moderne OKLCH-Farbsystem, responsive Muster mit mobilem First-Ansatz und bewährte Methoden für die Erstellung von Design-Token-Architekturen. Es behandelt sowohl die grundlegenden Konzepte (Oxide Engine, CSS-Nesting, CSS-Variablen) als auch fortgeschrittene Layouts mit Flexbox und Grid. Das Skill ist für Entwickler gedacht, die mit Claude Code, Cursor oder Codex arbeiten und moderne, effiziente CSS-Workflows ohne alte Konfigurationsdateien nutzen möchten.

Funktioniert mit✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/marnixGeerkens/rocketlauncher-claude-code/tree/HEAD/components/skills/creative-design/tailwind-patterns

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Tailwind CSS Muster (v4 - 2025)

Moderne Utility-first-CSS mit CSS-nativer Konfiguration.


1. Tailwind v4 Architektur

Was sich gegenüber v3 geändert hat

v3 (Legacy)v4 (Aktuell)
tailwind.config.jsCSS-basierte @theme-Direktive
PostCSS-PluginOxide-Engine (10x schneller)
JIT-ModusNativ, immer aktiv
Plugin-SystemCSS-native Features
@apply-DirektiveFunktioniert noch, wird aber nicht empfohlen

v4 Kernkonzepte

KonzeptBeschreibung
CSS-firstKonfiguration in CSS, nicht in JavaScript
Oxide EngineRust-basierter Compiler, viel schneller
Native NestingCSS-Verschachtelung ohne PostCSS
CSS-VariablenAlle Tokens als --*-Variablen verfügbar

2. CSS-basierte Konfiguration

Theme-Definition

@theme {
  /* Farben - semantische Namen verwenden */
  --color-primary: oklch(0.7 0.15 250);
  --color-surface: oklch(0.98 0 0);
  --color-surface-dark: oklch(0.15 0 0);
  
  /* Abstandsskala */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  
  /* Typografie */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

Erweitern vs. Überschreiben

AktionVerwendung
ErweiternNeue Werte neben den Standardwerten hinzufügen
ÜberschreibenStandard-Skala vollständig ersetzen
Semantische TokensProjektspezifische Namensgebung (primary, surface)

3. Container Queries (v4 nativ)

Breakpoint vs. Container

TypReagiert auf
Breakpoint (md:)Viewport-Breite
Container (@container)Breite des übergeordneten Elements

Container Query Verwendung

MusterKlassen
Container definieren@container auf dem Elternelement
Container-Breakpoint@sm:, @md:, @lg: auf Kindelementen
Benannte Container@container/card für Spezifität

Wann verwenden

SzenarioVerwendung
Layouts auf SeitenebeneViewport-Breakpoints
Responsive auf KomponentenebeneContainer Queries
Wiederverwendbare KomponentenContainer Queries (kontextunabhängig)

4. Responsives Design

Breakpoint-System

PräfixMin. BreiteZiel
(keines)0pxMobile-First-Basis
sm:640pxGroßes Smartphone / kleines Tablet
md:768pxTablet
lg:1024pxLaptop
xl:1280pxDesktop
2xl:1536pxGroßer Desktop

Mobile-First-Prinzip

  1. Mobile Styles zuerst schreiben (ohne Präfix)
  2. Überschreibungen für größere Bildschirme mit Präfixen hinzufügen
  3. Beispiel: w-full md:w-1/2 lg:w-1/3

5. Dark Mode

Konfigurationsstrategien

MethodeVerhaltenVerwendung
class.dark-Klasse schaltet umManueller Theme-Umschalter
mediaFolgt SystemeinstellungKeine Benutzersteuerung
selectorBenutzerdefinierter Selektor (v4)Komplexe Theming

Dark Mode Muster

ElementHellDunkel
Hintergrundbg-whitedark:bg-zinc-900
Texttext-zinc-900dark:text-zinc-100
Rahmenborder-zinc-200dark:border-zinc-700

6. Moderne Layout-Muster

Flexbox-Muster

MusterKlassen
Zentrieren (beide Achsen)flex items-center justify-center
Vertikaler Stapelflex flex-col gap-4
Horizontale Reiheflex gap-4
Verteiltflex justify-between items-center
Umbruch-Rasterflex flex-wrap gap-4

Grid-Muster

MusterKlassen
Auto-fit responsivgrid grid-cols-[repeat(auto-fit,minmax(250px,1fr))]
Asymmetrisch (Bento)grid grid-cols-3 grid-rows-2 mit Spans
Sidebar-Layoutgrid grid-cols-[auto_1fr]

Hinweis: Bevorzugen Sie asymmetrische/Bento-Layouts gegenüber symmetrischen 3-Spalten-Rastern.


7. Modernes Farbsystem

OKLCH vs. RGB/HSL

FormatVorteil
OKLCHWahrnehmungsgleichmäßig, besser für Design
HSLIntuitiver Farbton/Sättigung
RGBLegacy-Kompatibilität

Farb-Token-Architektur

EbeneBeispielZweck
Primitiv--blue-500Rohfarbwerte
Semantisch--color-primaryZweckbasierte Benennung
Komponente--button-bgKomponentenspezifisch

8. Typografie-System

Schriftarten-Stapel-Muster

TypEmpfohlen
Serifenlos'Inter', 'SF Pro', system-ui, sans-serif
Mono'JetBrains Mono', 'Fira Code', monospace
Display'Outfit', 'Poppins', sans-serif

Schriftgrößen-Skala

KlasseGrößeVerwendung
text-xs0.75remLabels, Bildunterschriften
text-sm0.875remSekundärtext
text-base1remFließtext
text-lg1.125remEinleitungstext
text-xl+1.25rem+Überschriften

9. Animation & Übergänge

Eingebaute Animationen

KlasseEffekt
animate-spinKontinuierliche Drehung
animate-pingAufmerksamkeitssignal
animate-pulseSubtiler Deckkraft-Puls
animate-bounceHüpfeffekt

Übergangs-Muster

MusterKlassen
Alle Eigenschaftentransition-all duration-200
Spezifischetransition-colors duration-150
Mit Beschleunigungease-out oder ease-in-out
Hover-Effekthover:scale-105 transition-transform

10. Komponentenextraktion

Wann extrahieren

SignalAktion
Dieselbe Klassenkombination 3+ MalKomponente extrahieren
Komplexe ZustandsvariantenKomponente extrahieren
Design-System-ElementKomponente extrahieren + dokumentieren

Extraktionsmethoden

MethodeVerwendung
React/Vue-KomponenteDynamisch, JS erforderlich
@apply in CSSStatisch, kein JS erforderlich
Design-TokensWiederverwendbare Werte

11. Anti-Patterns

NichtSondern
Überall beliebige WerteDesign-System-Skala verwenden
!importantSpezifität korrigieren
Inline style=Utility-Klassen verwenden
Doppelte lange KlassenlistenKomponente extrahieren
v3-Konfiguration mit v4 mischenVollständig auf CSS-first migrieren
@apply stark verwendenKomponenten bevorzugen

12. Leistungsprinzipien

PrinzipImplementierung
Unbenutzte entfernenAutomatisch in v4
Dynamik vermeidenKeine Template-String-Klassen
Oxide verwendenStandard in v4, 10x schneller
Builds cachenCI/CD-Caching

Denken Sie daran: Tailwind v4 ist CSS-first. Nutzen Sie CSS-Variablen, Container Queries und native Funktionen. Die Konfigurationsdatei ist jetzt optional.

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

marnixGeerkens/rocketlauncher-claude-code

When the user wants to optimize, improve, or increase conversions on any marketing page — including homepage, landing pages, pricing pages, feature pages, or blog posts. Also use when the user says "CRO," "conversion rate optimization," "this page isn't converting," "improve conversions," or "why isn't this page working." For signup/registration flows, see signup-flow-cro. For post-signup activation, see onboarding-cro. For forms outside of signup, see form-cro. For popups/modals, see popup-cro.

marnixGeerkens/rocketlauncher-claude-code

Balance visual design with ATS compatibility for creative roles. Use when the user is in design, art, writing, marketing creative, or any visual/creative field and needs a resume that looks distinctive but still parses.

marnixGeerkens/rocketlauncher-claude-code

Transform resume bullets into detailed portfolio case studies with context, action, and outcome. Use when the user mentions portfolio, case study, project write-up, or expanding a resume bullet into a longer narrative.

marnixGeerkens/rocketlauncher-claude-code

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities. Use when: portfolio, personal website, showcase work, developer portfolio, designer portfolio.

marnixGeerkens/rocketlauncher-claude-code

Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.

marnixGeerkens/rocketlauncher-claude-code

Frontend development guidelines for React/TypeScript applications. Modern patterns including Suspense, lazy loading, useSuspenseQuery, file organization with features directory, MUI v7 styling, TanStack Router, performance optimization, and TypeScript best practices. Use when creating components, pages, features, fetching data, styling, routing, or working with frontend code.

marnixGeerkens/rocketlauncher-claude-code

Next.js App Router principles. Server Components, data fetching, routing patterns.

marnixGeerkens/rocketlauncher-claude-code

Expert integration of Supabase Auth with Next.js App Router Use when: supabase auth next, authentication next.js, login supabase, auth middleware, protected route.

marnixGeerkens/rocketlauncher-claude-code

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

marnixGeerkens/rocketlauncher-claude-code

Create API handoff documentation for frontend developers. Use when backend work is complete and needs to be documented for frontend integration, or user says 'create handoff', 'document API', 'frontend handoff', or 'API documentation'.

marnixGeerkens/rocketlauncher-claude-code

Document frontend data needs for backend developers. Use when frontend needs to communicate API requirements to backend, or user says 'backend requirements', 'what data do I need', 'API requirements', or is describing data needs for a UI.

marnixGeerkens/rocketlauncher-claude-code

Comprehensive Python library for astronomy and astrophysics. This skill should be used when working with astronomical data including celestial coordinates, physical units, FITS files, cosmological calculations, time systems, tables, world coordinate systems (WCS), and astronomical data analysis. Use when tasks involve coordinate transformations, unit conversions, FITS file manipulation, cosmological distance calculations, time scale conversions, or astronomical data processing.

marnixGeerkens/rocketlauncher-claude-code

Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.

Verwandte Skills