Herhangi bir sitenin tasarımı Cursor ile nasıl kullanılır

Stylepack, herkese açık herhangi bir web sitesini bir tasarım paketine çevirir: DESIGN.md, BEHAVIOR.md, tasarım token’ları, bir Tailwind teması ve ekran görüntüleri. İşte Cursor aracının, seçtiğiniz siteye benzeyen ve onun gibi davranan bir arayüz kurması için ona paketi nasıl vereceğiniz.

Adımlar

Aşağıdaki yollar example.com kullanır. Bir paket sayfasında, seçtiğiniz sitenin adını taşırlar.

  1. Sitenin adresini Stylepack içine yapıştırın ve paketini indirin. Galeri içindeki paketler hemen hazır.
  2. Zip dosyasını projenize açın, klasör design/example.com-design-pack/ konumunda dursun.
  3. Agent chat içinde @ yazın ve dosyaları eklemek için design/example.com-design-pack klasörünü seçin.
  4. Aşağıdaki prompt’u yapıştırın ve ne yapılmasını istediğinizi yazın.
  5. İsteğe bağlı: her sohbette geçerli olsun diye .cursor/rules/design.mdc dosyasına şunu söyleyen bir kural ekleyin: "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 İngilizce kalır: paketteki dosyaları adlarıyla anar ve yapay zekanız onu her dilde okuyabilir.

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.

Diğer araçlar için rehberler