Cursor में किसी भी वेबसाइट का डिज़ाइन कैसे इस्तेमाल करें

Stylepack किसी भी सार्वजनिक वेबसाइट को डिज़ाइन पैक में बदल देता है: DESIGN.md, BEHAVIOR.md, design tokens, Tailwind थीम और स्क्रीनशॉट। यहाँ बताया गया है कि उसे Cursor को कैसे सौंपें, ताकि वह जो बनाए, वह आपकी चुनी साइट जैसा दिखे और वैसा ही व्यवहार करे।

चरण

नीचे के पाथ में example.com इस्तेमाल हुआ है। पैक के पेज पर उनमें आपकी चुनी साइट का नाम होता है।

  1. साइट का पता Stylepack में पेस्ट करें और उसका पैक डाउनलोड करें। गैलरी के पैक अभी तैयार हैं।
  2. पैक को अपने प्रोजेक्ट में unzip करें, ताकि फ़ोल्डर design/example.com-design-pack/ पर रहे।
  3. Agent chat में @ टाइप करें और design/example.com-design-pack फ़ोल्डर चुनें, ताकि उसकी फ़ाइलें अटैच हो जाएँ।
  4. नीचे दिया prompt पेस्ट करें और भरें कि आप क्या बनवाना चाहते हैं।
  5. वैकल्पिक: इसे हर चैट में लागू करने के लिए .cursor/rules/design.mdc में एक rule जोड़ें, जिसमें लिखा हो: "For all UI work, follow design/example.com-design-pack/DESIGN.md and design/example.com-design-pack/BEHAVIOR.md, match design/example.com-design-pack/screenshots/, and use design/example.com-design-pack/tokens.css."

Prompt

Prompt अंग्रेज़ी में ही रहता है: उसमें पैक की फ़ाइलों के नाम हैं, और आपकी भाषा कोई भी हो, आपका AI उसे पढ़ लेता है।

Use the design pack in `design/example.com-design-pack/` as the source of truth for how the UI looks and behaves. It was measured from https://example.com/.

1. Read DESIGN.md (colours, type, spacing, radii, shadows, components) and BEHAVIOR.md (hover, focus, tooltips, menus, motion, scrolling, forms, responsive rules, dark mode) before writing any code.
2. Look at every image in `design/example.com-design-pack/screenshots/` and match the composition, density, whitespace and image treatment. Tokens do not carry those; the screenshots do.
3. Style everything with `design/example.com-design-pack/tokens.css` (or `tailwind.css` if this project uses Tailwind v4). Do not invent colours, radii, shadows or font sizes that are not in the pack.
4. Load the fonts named in DESIGN.md. Where a font is not freely available, use the stand-in it names at the same sizes and weights.
5. Match the breakpoints and hover, focus and motion rules in BEHAVIOR.md. Build both themes.

Now build: [describe the page or app you want]

When you are done, compare the result with the screenshots at desktop and phone widths, fix the biggest visual difference first, and repeat.

दूसरे टूल की गाइड