Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Graphite product style kit

Restyle a site, or build a new one, in a dark graphite style: layered surfaces, hairlines, pill buttons and product mock-ups drawn in code.

Esempio

English site
Apri in una nuova scheda

English site

L'esempio funziona in un frame isolato, senza accesso a questa pagina.

Esegui online

Gratis

Esegui l'esempio di Graphite product style kit in un sandbox SandBase e vedi il risultato qui.

Cosa ottieni

Bring your existing site to restyle, or a short brief for a new one. The Skill returns design rules, tokens, components with light and dark themes, motion, a live gallery and a starter page; works with plain CSS.

Come funziona

  1. 01

    Read the rules and gallery

    Graphite Product Style Kit starts with three documents, references/design.md, components.md and patterns.md, which cover every token, component, state and page pattern. Open assets/pack/gallery.html in a browser to see every component and motion in both the dark graphite theme and the derived light theme, and pick from there rather than inventing new parts.

  2. 02

    Restyle pages onto sp- components

    Copy assets/pack/ and assets/fonts/ side by side, then load tokens.css and components.css before the project's own styles, adding motion.js at the end of the body only if you want motion and behaviour. Replace buttons, cards, navigation and forms with sp- components and swap hard-coded colours, radii and shadows for tokens, keeping the site's content and routes.

  3. 03

    Check pages in both themes

    For an existing project, test every restyled page at desktop and phone widths, in both themes and with reduced motion on, using the project's own build. For a one-page site from assets/template.html, run node scripts/inline-assets.mjs and then node scripts/validate.mjs work/index.html --mode site until it exits 0 on Node 18 or newer.

FAQ

What is Graphite Product Style Kit?

Graphite Product Style Kit is a plain-CSS component library in one dark style: a graphite canvas with stacked one-step-lighter surfaces, translucent hairline borders, one tight sans with negative tracking, white pill primary buttons and live product mocks as imagery. It restyles an existing site or builds a new one, and includes an optional example page.

Does Graphite Product Style Kit need JavaScript?

No. Graphite Product Style Kit components render and read correctly with only tokens.css and components.css. motion.js is optional and adds motion plus menus, accordions, tabs, switches, reveals and demos. Without it, components sit in their resting state and scroll-revealed content is simply visible.

Can Graphite Product Style Kit work in a framework project?

Yes. Graphite Product Style Kit's tokens.css and components.css import as global stylesheets, and you use the sp- classes in your components, loading motion.js once on the client for motion. The validator checks single-file pages only, so a restyled multi-page project relies on its own build and tests.

Does Graphite Product Style Kit copy the reference site's content?

No. Graphite Product Style Kit forbids copying text, images, logos or icons of the reference site and never names it in the page. It describes the look through tokens and rules, and the example page uses made-up names such as Tessel and Halyard that the validator flags until replaced.

Is Graphite Product Style Kit billed?

No. Graphite Product Style Kit is CSS, an optional script, fonts and two offline Node scripts, and nothing in it contacts a model, so applying the library adds no SandBase usage. The example page has no image slots, and new pictures are drawn with inline SVG or CSS.