nextjs-material-ui-tailwind-css-cursorrules-prompt — Cursor rule
A Cursor rule for Next.js projects using TypeScript, Tailwind CSS, Material UI, and App Router. It fits projects built around this stack.
.cursor/rules/nextjs-material-ui-tailwind-css-cursorrules-prompt.mdcWhat nextjs-material-ui-tailwind-css-cursorrules-prompt does
This rule describes a Next.js project with TypeScript, Tailwind CSS, Material UI, shadcn/ui, and Aceternity UI. It sets the use of src/, App Router, and the @/ import alias. Its file pattern is **/*, while automatic application is disabled.
The rule also records project dependencies such as @mui/material, @mui/icons-material, @emotion/react, @emotion/styled, framer-motion, next-auth, prisma, @prisma/client, and ckeditor5. The listed versions include Tailwind CSS 3.4.3 and Next.js 14.2.3.
ESLint is set to No in the project choices, so this rule does not establish an ESLint workflow. Put the file in Cursor’s rules directory, then ask the agent to work within this stack.
What it helps with
- set up a Next.js project stack
- combine Tailwind CSS with Material UI
- use
src/with App Router - record Prisma and NextAuth dependencies
- keep the
@/import alias
Example prompts for the agent
- Create a page under
src/with App Router, using Tailwind CSS and Material UI components. - Add a TypeScript form with
@mui/materialand@emotion/reactto the current project. - Check that this component fits Tailwind CSS, shadcn/ui, and the
@/import alias.
How to install nextjs-material-ui-tailwind-css-cursorrules-prompt
Manually: put the files in place
.cursor/rules/nextjs-material-ui-tailwind-css-cursorrules-prompt.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.claude/rules/nextjs-material-ui-tailwind-css-cursorrules-prompt.mdThe paths frontmatter field limits the files: move globs from the source into paths
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.github/instructions/nextjs-material-ui-tailwind-css-cursorrules-prompt.instructions.mdThe applyTo field sets which files it applies to: move globs from the source into applyTo
Manually: put the files in place
.devin/rules/nextjs-material-ui-tailwind-css-cursorrules-prompt.mdManually: put the files in place
.clinerules/nextjs-material-ui-tailwind-css-cursorrules-prompt.mdStep by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules
Questions about nextjs-material-ui-tailwind-css-cursorrules-prompt
How do I install nextjs-material-ui-tailwind-css-cursorrules-prompt in Cursor?
Place the rule file at .cursor/rules/nextjs-material-ui-tailwind-css-cursorrules-prompt.mdc.
What does nextjs-material-ui-tailwind-css-cursorrules-prompt do?
It guides work on a Next.js project using TypeScript, Tailwind CSS, Material UI, shadcn/ui, and Aceternity UI. It also records the src/ directory, App Router, and @/ alias.
Which project settings does this rule describe?
It specifies Tailwind CSS, src/, App Router, and TypeScript. ESLint is set to No, and the rule is not applied automatically.
Source text
nextjs-material-ui-tailwind-css-cursorrules-prompt.mdc · CC0-1.0
---
description: "Cursor rules for Next.js development with Material UI and Tailwind CSS integration."
globs: **/*
alwaysApply: false
---
Ce projet s'appel Portfolio2
Il est basé sur Next.Js, il a tailwindcss, materialui, shadcn/ui et aceternityui
What is your project named? portfolio2
Would you like to use TypeScript? Yes
Would you like to use ESLint? No
Would you like to use Tailwind CSS? Yes
Would you like to use `src/` directory? Yes
Would you like to use App Router? (recommended) Yes
Would you like to customize the default import alias (@/)? No
What import alias would you like configured? @/
Nola liste des dépendance
"dependencies": {
"@ckeditor/ckeditor5-react": "^6.3.0",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@mui/icons-material": "^5.15.18",
"@mui/material": "^5.15.18",
"@mui/styled-engine-sc": "^6.0.0-alpha.18",
"@prisma/client": "^5.14.0",
"autoprefixer": "^10.4.19",
"bcryptjs": "^2.4.3",
"ckeditor5": "^41.4.2",
"clsx": "^2.1.1",
"framer-motion": "^11.2.5",
"init": "^0.1.2",
"next": "^14.2.3",
"next-auth": "^4.24.7",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"shadcn-ui": "^0.8.0",
"styled-components": "^6.1.11",
"tailwind-merge": "^2.3.0"
},
"devDependencies": {
"@types/bcryptjs": "^2.4.6",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"postcss": "^8.4.38",
"prisma": "^5.14.0",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
}
© PatrickJS · CC0-1.0 · PatrickJS/awesome-cursorrules