Cursor rule
.cursor/rules/project-ui-style-guide.mdcStyling and theming standards for the project UI
Cursor rules
Quality
77/100
Scores the file, not the repository.Length
398 words
10 headings · 1 code blocksRepository
3
— · pushed 123 days agoLast changed
3 days ago
First indexed 3 days ago.1234567# Styling and Theming Standards89This project follows the default styling conventions recommended by ShadCN UI, using Tailwind CSS as the utility-first framework.1011## Theme Guidelines1213- The base theme uses **black and white** tones with **grey variants** for accents and depth.14- The visual style must reflect **clean, minimal UIs**:15 - Flat backgrounds16 - Soft borders17 - Neutral color hierarchy18- Avoid vibrant or saturated colors unless explicitly needed for semantic purpose (e.g., error, success).19- Use **consistent corner radius** and **balanced spacing** to maintain visual harmony and aesthetic flow.2021## Accessibility & WCAG Compliance2223- All components must follow the latest **WCAG guidelines**.24- Maintain sufficient color contrast between text and background.25- Ensure all interactive elements are keyboard accessible and include appropriate ARIA roles or labels where needed.26- The UI should be **accessible and visually pleasant** at the same time — clean but inclusive.2728## Tailwind Usage2930- Use Tailwind utility classes directly in JSX where possible.31- Avoid writing custom CSS unless necessary (e.g., for complex layout or animation).32- Use `@apply` only in global or shared style definitions, not inside component JSX.33- Prefer spacing, sizing, and typography scales from Tailwind's default config.3435## ShadCN Defaults3637- Follow ShadCN CLI-generated component defaults.38- Extend ShadCN components via wrapper components or `className` props only.39- Do not modify original ShadCN UI files directly (`src/components/lib/shadcn/ui/`).4041## Color Usage4243- Background: `bg-white`, `bg-black`, `bg-gray-50`, `bg-gray-100`, etc.44- Text: `text-black`, `text-white`, `text-gray-700`, `text-gray-500`45- Border: `border-gray-200`, `border-gray-300`46- Interactive: `hover:bg-gray-100`, `focus:outline-none`, `disabled:opacity-50`4748## Spacing & Layout4950- Use consistent spacing utilities (`p-x`, `m-x`) for alignment.51- Avoid hardcoded pixel values; use Tailwind spacing scale.52- Maintain vertical rhythm with margin/padding spacing between sections.5354## Typography5556- Use Tailwind typography scale for font sizes.57- Stick to a single readable sans-serif font defined in the theme config.58- Avoid multiple font families or mixing serif with sans-serif.5960## Components6162- Use `rounded` utilities to ensure consistent border radius.63- Use `shadow` utilities minimally for subtle depth.64- Ensure all components are responsive and mobile-friendly by default.6566## Example6768```tsx69return (70 <div className="bg-white text-gray-800 p-4 rounded border border-gray-200 shadow-sm">71 <h2 className="text-lg font-semibold">Section Title</h2>72 <p className="text-sm text-gray-600">This is a clean, minimal UI block.</p>73 </div>74);75```7677This style guide ensures that the application maintains a consistent, modern aesthetic that is both visually pleasing and accessible to all users.78
Also in PluteoJS/next-js-typescript-starter
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| PluteoJS/next-js-typescript-starter.cursor/rules/project-structure.mdc · 3 | Cursor rules | stylearch | 33/100 | 3 days ago | |
| PluteoJS/next-js-typescript-starter.cursor/rules/react-component.mdc · 3 | Cursor rules | stylearchtypesui+1 | 66/100 | 3 days ago | |
| PluteoJS/next-js-typescript-starter.cursor/rules/react-typescript.mdc · 3 | Cursor rules | stylearchtypesui | 58/100 | 3 days ago | |
| PluteoJS/next-js-typescript-starter.cursor/rules/shadcn-usage.mdc · 3 | Cursor rules | uido-not | 40/100 | 3 days ago | |
| PluteoJS/next-js-typescript-starter.cursor/rules/typescript-coding.mdc · 3 | Cursor rules | styletypesdocs | 58/100 | 3 days ago | |
| PluteoJS/next-js-typescript-starterCLAUDE.md · 3 | CLAUDE.md | lint-formatarchtypesdo-not | 88/100 | 3 days ago | |
| PluteoJS/next-js-typescript-startersrc/components/CLAUDE.md · 3 | CLAUDE.md | archdo-not | 47/100 | 3 days ago | |
| PluteoJS/next-js-typescript-startersrc/services/CLAUDE.md · 3 | CLAUDE.md | setuparchtypessecurity+1 | 54/100 | 3 days ago | |
| PluteoJS/next-js-typescript-startersrc/store/CLAUDE.md · 3 | CLAUDE.md | stylearch | 58/100 | 3 days ago |
Diff against .cursor/rules/project-structure.mdc Diff against .cursor/rules/react-component.mdc Diff against .cursor/rules/react-typescript.mdc Diff against .cursor/rules/shadcn-usage.mdc Diff against .cursor/rules/typescript-coding.mdc Diff against CLAUDE.md Diff against src/components/CLAUDE.md Diff against src/services/CLAUDE.md Diff against src/store/CLAUDE.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago |
