OpenAI & ChatGPT · Foto: Kevin Rheese, CC BY 2.0
CSS taste
Zuletzt aktualisiert:
Typ
Prompt
Lizenz
CC0-1.0 (Public Domain)
Anwendungsfeld
Prompt-Bibliothek
Voraussetzungen
Keine besonderen — direkt loslegen.
Formulierte CSS-Stilregeln eines Frontend-Entwicklers mit Konfidenzwerten für automatisierte Reviews.
Der Prompt
# CSS taste of a design-minded frontend developer
- Use Tailwind CSS utility classes for component styling in application code. Confidence: 0.80
- Define colors, spacing, radii and fonts as design tokens in CSS custom properties. Confidence: 0.90
- Never hardcode hex colors inside components; always reference a token. Confidence: 0.85
- Build layouts with flexbox and grid, with gap for spacing instead of margins between siblings. Confidence: 0.90
- Design mobile first and add min-width breakpoints for larger screens. Confidence: 0.85
- Use container queries for components that live in containers of different widths. Confidence: 0.75
- Use rem for font sizes and spacing, and px only for hairline borders. Confidence: 0.80
- Use clamp() for fluid typography instead of many breakpoint overrides. Confidence: 0.75
- Keep specificity flat: single class selectors, no IDs, and no !important outside utilities. Confidence: 0.90
- Use cascade layers to order reset, base, components and utilities. Confidence: 0.70
- Support dark mode with prefers-color-scheme plus tokens, not duplicated component styles. Confidence: 0.85
- Respect prefers-reduced-motion and disable non-essential animation when it is set. Confidence: 0.90
- Never remove focus outlines; style them with :focus-visible instead. Confidence: 0.95
- Meet WCAG AA contrast for all text and interactive elements. Confidence: 0.90
- Animate only transform and opacity for smooth, cheap transitions. Confidence: 0.85
- Use logical properties such as margin-inline so layouts work in right-to-left languages. Confidence: 0.75
- Use the system font stack or self-hosted variable fonts with font-display: swap. Confidence: 0.80
- Set aspect-ratio and width and height on media to prevent layout shift. Confidence: 0.85
- Use native CSS nesting sparingly and never more than two levels deep. Confidence: 0.70
- Sort Tailwind classes automatically with the Prettier plugin. Confidence: 0.80
- Extract a component when the same long class list repeats, not an @apply class. Confidence: 0.75
- Make sure nothing scrolls horizontally at a 320px viewport width. Confidence: 0.85
So nutzt du es
Den Prompt-Text kopieren (Button oben) und als System-Prompt bzw. erste Nachricht in ChatGPT, Claude oder einem lokalen Modell einfügen. In ChatGPT lässt er sich unter „Anweisungen für ChatGPT“ dauerhaft hinterlegen.
Der Prompt-Text ist englisch — er funktioniert trotzdem in deutschen Unterhaltungen. Für deutsche Antworten einfach am Ende ergänzen: „Antworte auf Deutsch.“
Im Detail
Diese Sammlung formuliert die CSS-Vorlieben eines designorientierten Frontend-Entwicklers als konkrete Regeln mit Konfidenzwerten, von Tailwind-Utility-Klassen über Design-Token in CSS-Custom-Properties bis zu Mobile-First-Breakpoints und Container Queries. Statt vager Stilratschläge liefert sie als System-Prompt eine klare, begründete Linie, an der sich ein Modell bei CSS-Reviews oder beim Schreiben neuer Styles orientieren kann – inklusive flacher Spezifität ohne IDs und !important. Lohnt sich für Teams, die einheitliche Code-Reviews automatisieren oder einer KI vorab ihren Styleguide mitgeben wollen, statt Abweichungen jedes Mal einzeln zu korrigieren. Die Konfidenzwerte signalisieren, welche Regeln hart und welche eher Empfehlung sind.
Praxis-Tipp
Fügen Sie die Taste-Liste als System-Prompt vor einem CSS-Review ein und lassen Sie das Modell abweichenden Code konkret gegen die Regeln mit Konfidenzwert begründen.
Siehe auch
Lizenz & Quelle
- Lizenz: CC0-1.0 (Public Domain)
- Quelle: awesome-chatgpt-prompts (GitHub)
So einfach geht’s
- 01
Anrufen oder schreiben
Anruf, WhatsApp oder Formular. Die Ersteinschätzung am Telefon ist kostenlos.
- 02
Termin oder Fernhilfe
Ich komme zu Ihnen oder helfe per Fernhilfe am Bildschirm. Den Kostenrahmen erfahren Sie, bevor ich anfange.
- 03
Erledigt, bezahlt wird danach
Es läuft, und Sie wissen, wie es geht. Bei telefonisch vereinbarten Terminen zahlen Sie nach dem Termin bar, mit Karte oder auf Rechnung.
Inhalt ansehen (css-taste.txt)
Lade …
Erfahrungen & Kommentare.
Funktioniert der Prompt bei Ihnen? Tipps, Stolperfallen, Varianten — teilen Sie es mit der Community.
Lade Kommentare …
Passt dazu.
aa/cli taste
Legt feste Tech- und Stilvorgaben für CLI-Projekte fest (pnpm, TypeScript, Commander.js, klare Ordnerstruktur).
Accessibility Auditor
Lässt die KI als Accessibility-Experte auf WCAG-2.2- und Section-508-Konformität prüfen.
Act as a Senior Codebase Auditor & Tech Debt Refactorer
Lässt die KI wie ein Senior-Engineer Altcode auf toten Code, Duplikate und unnötige Komplexität prüfen.
