QuestoryAI 提示词平台QuestoryAI 提示词平台QuestoryAI 提示词平台
TeamsBotsSkillsPromptsPromptmasters
Developers
LoginRegister
CC0 2026 QuestoryAI 提示词平台
GitHub

Tailwind CSS taste

Opinionated conventions for building maintainable, consistent UIs with Tailwind CSS. 来源:https://prompts.chat/prompts/cmwaeidio0005jv08cnrky6mf

F
@import-252f10c83610ebca1a059c0b
about 1 hour agoNovember 11, 2026 at 02:00 AM
Coding•Best PracticesCSSFrontendTooling

taste.md

Variables
# Tailwind CSS taste of a utility-first UI engineer - Configure design tokens (colors, spacing, radii, fonts) once in the Tailwind theme and never hardcode hex values or arbitrary pixel sizes in markup. Confidence: 0.90 - Prefer theme-scale utilities over arbitrary values like `w-[437px]`; treat each arbitrary value as a missing token to add or a design to question. Confidence: 0.85 - Extract repeated utility groups into components (React, Vue, Svelte) rather than `@apply` classes in CSS files. Confidence: 0.85 - Reserve `@apply` for styling third-party markup or CMS content you cannot add classes to. Confidence: 0.75 - Use `prettier-plugin-tailwindcss` so class order is automatic and never argued about in review. Confidence: 0.95 - Build class names from complete static strings; never concatenate fragments like `text--500`, because the scanner cannot see them. Confidence: 0.95 - Use `clsx` plus `tailwind-merge` (or a `cn()` helper) so component props can override default classes without conflicts. Confidence: 0.85 - Model component variants with a typed variant helper such as `cva` instead of long ternary chains in `className`. Confidence: 0.80 - Write mobile-first: unprefixed utilities are the base and `sm:`, `md:`, `lg:` only add changes for wider screens. Confidence: 0.90 - Use container queries (`@container`, `@md:`) for reusable components whose layout depends on their slot, not the viewport. Confidence: 0.70 - Implement dark mode with CSS variables behind semantic color names like `bg-surface` and `text-muted`, rather than sprinkling `dark:` on every element. Confidence: 0.80 - Always style keyboard focus with `focus-visible:` rings and never remove outlines without a visible replacement. Confidence: 0.95 - Use the `typography` plugin's `prose` classes for long-form rendered Markdown instead of hand-styling every tag. Confidence: 0.80 - Keep `content`/source paths tight so builds stay fast and unused utilities never ship. Confidence: 0.85 - Use `group-*` and `peer-*` variants for parent and sibling state instead of adding JavaScript for hover or checked styles. Confidence: 0.75 - Respect `motion-reduce:` for animations and keep transitions short, around 150 to 200 ms. Confidence: 0.80 - Split a class list over several lines or into a variant object once it passes roughly 10 to 12 utilities. Confidence: 0.65 - Keep spacing on a consistent scale and use `gap-*` on flex and grid parents instead of margins on children. Confidence: 0.85 - Avoid `!important` modifiers except to override third-party styles you cannot change. Confidence: 0.80 - Document the token palette and the core components in Storybook or a styleguide page so designers and developers share one vocabulary. Confidence: 0.70

Comments (0)

Related Skills

Accessibility Color Contrast Auditor

Skill

Audits foreground/background color pairs for WCAG 2.x contrast (AA and AAA for normal and large text), reports ratios and pass/fail, and notes color-blindness risks. Use when checking UI palettes, design tokens, or asking "is this gray-on-white readable?". Includes a stdlib Python contrast checker with --self-test. 来源:https://prompts.chat/prompts/cmvan99yi000ml6067hv94yay

F@import-252f10c83610ebca1a059c0b
0

Agent Organization Expert

Skill

Multi-agent orchestration skill for team assembly, task decomposition, workflow optimization, and coordination strategies to achieve optimal team performance and resource utilization. 来源:https://prompts.chat/prompts/cmjmk557b000nld04dxe4c3ao

İ@import-bb85aceaa34674ff213c79e1
0

Gitignore Pattern Tester and Reviewer

Skill

Explains every line of a .gitignore, tests it against paths that must be ignored or must stay committable, names the rule that decides each path, and flags mistakes such as negations blocked by an excluded parent folder, inline comments, leading spaces, backslashes, stray **, secrets not covered and .env.example ignored. Returns a fixed file. Includes a stdlib Python checker with --self-test, matched against real git. 来源:https://prompts.chat/prompts/cmvqd0g7l000ela08fer31y84

F@import-252f10c83610ebca1a059c0b
0

Shell Script Safety Reviewer

Skill

Reviews bash and POSIX sh scripts before they run in CI, cron or production. Flags missing strict mode, rm -rf on variables that may be empty, curl piped to a shell, eval, unquoted expansions, unchecked cd, parsing ls, chmod 777, hardcoded secrets, predictable /tmp files, ssh eating a read loop, masked exit codes and bashisms under /bin/sh, then returns a fixed script. Includes a stdlib Python linter with --self-test. 来源:https://prompts.chat/prompts/cmvrsdbhs0013jt07z2gnz1qb

F@import-252f10c83610ebca1a059c0b
0