Jak użyć designu dowolnej strony w Claude Code

Stylepack zamienia dowolną publiczną stronę w pakiet designu: DESIGN.md, BEHAVIOR.md, tokeny designu, motyw Tailwind i zrzuty ekranu. Oto jak przekazać go narzędziu Claude Code, aby to, co zbuduje, wyglądało i działało jak wybrana przez Ciebie strona.

Kroki

Ścieżki poniżej używają example.com. Na stronie pakietu zawierają nazwę wybranej przez Ciebie strony.

  1. Wklej adres strony do Stylepack i pobierz jej pakiet. Pakiety z galerii są gotowe od razu.
  2. Rozpakuj pakiet w projekcie tak, aby folder znalazł się w design/example.com-design-pack/.
  3. Opcjonalnie: skopiuj folder także do .claude/skills/example-com-design/. SKILL.md w środku sprawia, że Claude Code sam wczytuje pakiet za każdym razem, gdy buduje UI.
  4. Wklej poniższy prompt do Claude Code i uzupełnij, co ma zostać zbudowane.

Prompt

Prompt zostaje po angielsku: wymienia pliki z pakietu, a Twoja AI czyta go w każdym języku.

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.

Przewodniki dla innych narzędzi