One color. A whole theme. Contracted React components, a perceptual color engine, and a Figma kit that CI checks the code against.
翻訳待ち
Loading the full README.
Read the full README ↗One color. A whole theme.
Pick a source color and Graphite builds the scales, the thirty-two roles and both themes, checking contrast as it goes. Thirty-six React components read those roles, each held by CI to a written contract and to the Figma kit.
Set up a Next.js project with Tailwind, then add the init item, your theme and the Tailwind bridge:
npx shadcn@latest add https://www.graphite-ui.com/r/init.json https://www.graphite-ui.com/r/theme/0f766e.json https://www.graphite-ui.com/r/tailwind.json
Then add components:
npx shadcn@latest add https://www.graphite-ui.com/r/button.json
Swap 0f766e for your own hex, or build a theme in Create and take the code. The Quick start walks through it, and What you can use today covers the theme, the Figma kit and the components.
There is no npm package. Components install as source files you own, the way shadcn/ui works.
Visit graphite-ui.com/docs.
Please read the contributing guide. Questions go to Discussions.
Licensed under the MIT license. The Graphite UI, Simorka Designs and SD System names and logos are not covered; see TRADEMARKS.md.