Percent Design System
One design language for every Percent project: tokens, React components, the Saudi kit and signature motion. Black and white, English and Arabic, dark and light.
Install
bun add @percentsa/tokens @percentsa/ui @percentsa/motion
@import "tailwindcss";
@import "@percentsa/tokens/theme.css";
@import "@percentsa/ui/styles.css";
@import "@percentsa/motion/styles.css";
/* Fonts are yours: the packages ship none (without these, the device's fonts). */
:root {
--p-font-sans: "Your Sans", system-ui, sans-serif;
--p-font-sans-ar: "Your Arabic", "Your Sans", system-ui, sans-serif;
--p-font-mono: "Your Mono", ui-monospace, monospace;
}<html lang="ar" dir="rtl" data-theme="dark">
…
<PercentProvider lang="ar" link={RouterLink}>
<App />
</PercentProvider>Or copy single components into the project (shadcn CLI).
// components.json: copy single components into the project instead (shadcn CLI)
"registries": {
"@percentsa": {
"url": "https://design.percent.sa/r/{name}.json"
}
}
bunx shadcn add @percentsa/button @percentsa/date-pickerFoundations
The logo, its versions, clear space, sizes, colours, motion and downloads.
Semantic color tokens in both themes.
Families, scale and the Arabic rules.
Radius, density, elevation and z-index.
Durations, easings, the slash angle and the reduced-motion policy.
English and Arabic, RTL rules and built-in strings.
Dark, light and system modes, and project brands.
Use the packages in React Server Components, for example the Next.js App Router.
Components
All components4 pages
11 pages
11 pages
6 pages
19 pages
15 pages
12 pages
10 pages
11 pages
22 pages
2 pages
6 pages
20 pages
7 pages
7 pages
16 pages
3 pages