Style Library
Solidjs Tailwind — coding rules
Guidestack rulesCursor rules for Solid.js development with Tailwind CSS integration.
Prompt
Paste into any AI assistant before describing what to build — or attach it to a project below.
// Solid.js with Tailwind CSS .cursorrules // Prefer functional components const preferFunctionalComponents = true; // Solid.js and Tailwind CSS best practices const solidjsTailwindBestPractices = [ "Use createSignal() for reactive state", "Implement Tailwind CSS classes for styling", "Utilize @apply directive in CSS files for reusable styles", "Implement responsive design using Tailwind's responsive classes", "Use Tailwind's configuration file for customization", "Implement dark mode using Tailwind's dark variant", ]; // Folder structure const folderStructure = ` src/ components/ pages/ styles/ App.jsx index.jsx public/ index.html tailwind.config.js postcss.config.js `; // Additional instructions const additionalInstructions = ` 1. Use JSX for component templates 2. Implement proper Tailwind CSS purging for production builds 3. Utilize Solid Router for routing when applicable 4. Use Tailwind's @layer directive for custom styles 5. Implement utility-first CSS approach 6. Follow both Solid.js and Tailwind naming conventions 7. Use JIT (Just-In-Time) mode for faster development `;
Use it in an app
Create a free account to attach this style to a project: the hub adds it to the prompt your AI assistant gets, so it builds every page in this look.
From awesome-cursorrules (CC0-1.0, commit b044f95).View source