What is SDAIA UI?
SDAIA UI is the design system of the Saudi Data and Artificial Intelligence Authority (SDAIA). It provides design tokens, React components and usage guidelines for building consistent products in Arabic and English.
Which frameworks are supported?
Next.js (App Router or Pages Router, with or without a src/ folder) and Vite + React with TypeScript. Other frameworks are not supported yet.
How do I install it?
Run init in your project, then add components with add. The Installation page has step-by-step guides for Next.js and Vite + React.
npx sdaia-ui@latest init
Which name do I pass to add?
The name in the component page address works, for example npx sdaia-ui@latest add alerts or add file-upload. You can pass several names at once, or --all for every component.
Where are components installed, and how do I import them?
Each component is copied into its own folder, named after the component: src/components/ui/Button, or components/ui/Button in a project without a src/ folder. Import it through the @/ alias:
import { Button } from '@/components/ui/Button';How do I get updates?
Run npx sdaia-ui@latest diff to see what changed for the components you installed, then npx sdaia-ui@latest update <name> (or update --all). Files you edited yourself are kept unless you pass --force.
Do I need Tailwind CSS?
Yes, version 4. If your project does not have it, init offers to install it.
Does SDAIA UI support Arabic and right-to-left layouts?
Yes. Components follow the document direction: set lang="ar" and dir="rtl" on the <html> element, or pass dir="rtl" to a single component. init installs IBM Plex Sans Arabic for you.
Does it support dark mode?
Yes. Toggle the theme-dark class on the <html> element: it switches both the design tokens and Tailwind dark: styles. A plain dark class works the same way.
Can I change a component after installing it?
Yes. The source files are in your project, so you can edit them like the rest of your code. update keeps your edits unless you pass --force.