AI
How to use AI properly.
Use claude-3-5-sonnet-20241022 for the best result in coding.
AI Cursor rules
Under the directory .cursor/rules
, you'll find a list of pre-configured rules, for exemple:
tailwind-css-v4.mdc
to help AI with best practices and use the latest version of tailwindcss.nextjs-react-typescript.mdc
to help AI with common rules for Next.js, React and Typescript.
A lot of different rules can be added, you can find a lot here: Cursor Directory.
AI to create Hero, Section etc...
- claude-3-5-sonnet20241022 for generic UI demands within Cursor.
- Go to v0.dev, generate a first iteration, and then navigate back to cursor with the code as starter.
Prompt for UI
How to avoid having a generic item and something more different? Context
is what matters.
Let's take an exemple at how to make different cards design.
- Navigate to kokonut/ui - Cards and copy the code.
- Open a prompt in Cursor, paste the code and type the following prompt:
Always use this concept with context, never start from zero without context, you'll endup with the same kind of boring design.
Image Prompt for UI
AI is getting much better than it can create well basic design from an image. Just drag and drop image in cursor, and most likely can create you version
Looking for beautiful UI Components and templates? Go to KokonutUI - Pro (paid) or KokonutUI for free components.