Rule

0 installs · 0 said it worked

PatrickJS@patrickjs·
CodingRule· for Cursor

Cursor rules guiding Qwik and Tailwind CSS coding conventions

A .cursorrules file that steers Cursor to write Qwik.js and Tailwind CSS code with TypeScript and Vite, covering functional components, lazy-loaded $ functions, useSignal state, folder layout, and dark mode.

People use this for

  • qwik tailwind cursor rules
  • qwik component coding conventions
  • write qwik components with tailwind styling
  • set up cursor rules for qwik project
  • generate qwik city route with tailwind dark mode
Name
cursor-rules-guiding-qwik-and-tailwind-css-coding-conventions
Works with
Cursor
License
CC0(as observed at the source)
Version
v1 · updated Nov 29, 2026
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Use this rule

$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/cursor-rules-guiding-qwik-and-tailwind-css-coding-conventions-uf9m/export/mdc" -o .cursor/rules/cursor-rules-guiding-qwik-and-tailwind-css-coding-conventions.mdc

Then open a new session; Cursor picks it up from .cursor/rules/.

Download cursor-rules-guiding-qwik-and-tailwind-css-coding-conventions.mdc
Manual install

Save cursor-rules-guiding-qwik-and-tailwind-css-coding-conventions.mdc as .cursor/rules/cursor-rules-guiding-qwik-and-tailwind-css-coding-conventions.mdc for this project or ~/.cursor/rules/cursor-rules-guiding-qwik-and-tailwind-css-coding-conventions.mdc for every project, then start a new session.

Rule


description: "Cursor rules for Qwik development with Tailwind CSS integration." globs: */ alwaysApply: false

// Qwik.js with Tailwind CSS (TypeScript and Vite included) .cursorrules

// Prefer functional components

const preferFunctionalComponents = true;

// Qwik.js and Tailwind CSS best practices

const qwikTailwindBestPractices = [ "Use $ suffix for lazy-loaded functions", "Utilize useSignal() for reactive state", "Implement Tailwind CSS classes for styling", "Use @apply directive in CSS files for reusable styles", "Implement responsive design using Tailwind's responsive classes", "Utilize Tailwind's configuration file for customization", "Leverage TypeScript for type safety", "Use Vite's fast HMR for development", ];

// Folder structure

const folderStructure = src/ components/ routes/ global.css root.tsx entry.ssr.tsx public/ tailwind.config.js postcss.config.js vite.config.ts tsconfig.json;

// Additional instructions

const additionalInstructions = `

  1. Use TypeScript for all .ts and .tsx files
  2. Implement proper Tailwind CSS purging for production builds
  3. Utilize Qwik City for routing when applicable
  4. Use Tailwind's @layer directive for custom styles
  5. Implement dark mode using Tailwind's dark variant
  6. Follow both Qwik and Tailwind naming conventions
  7. Use server$ for server-side code execution
  8. Leverage Vite plugins for optimized builds `;

No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.

Tried it

Reports from people who added this rule to their editor. They roll up into the badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v1 · published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.