SDAIA UI ships six brands. Sdaia-DGA is the default; the other five are Spectrum, Canvas, Dessert, Dune and Carbon. A brand changes the colour palette, the typefaces and the corner radii, and for Dessert and Dune also the spacing scale. Components, behavior, accessibility and RTL support are the same in every brand.
| Brand | Class and typeface |
|---|---|
| Sdaia-DGA (default) | No class. IBM Plex Sans Arabic. |
| Spectrum | brand-spectrum. Inter. |
| Canvas | brand-canvas. The Apple system font (SF Pro), which the tool does not install. |
| Dessert | brand-dessert. Roboto, with a larger spacing scale. |
| Dune | brand-dune. Assistant, with a larger spacing scale. |
| Carbon | brand-carbon. Inter for headings, Roboto Mono for body text. |
Choose a brand when you run init
init asks which brand to use, because the brand decides which typeface it installs. To skip the question, pass --brand:
npx sdaia-ui@latest init --brand spectrumFor a brand other than Sdaia-DGA, init installs the brand's font packages, imports them in your app entry (app/layout.tsx, pages/_app.tsx or src/main.tsx) and prints the class to add.
Apply the brand
Add the brand class to the <html> element. Every component inside follows it. Sdaia-DGA needs no class.
// app/layout.tsxexport default function RootLayout({ children }: { children: React.ReactNode }) { return (In the Pages Router, put the class on <Html> in pages/_document.tsx; in Vite, on <html> in index.html.
Brands and dark mode
Put the dark-mode class (theme-dark or dark) next to the brand class, on the same element. Each brand has its own dark palette.
<html lang="ar" dir="rtl" class="brand-spectrum theme-dark">Switching brands at runtime
There is no brand provider or hook. To switch brands, change the class on <html> from your own code, for example from a settings page. init installs only the chosen brand's typeface, so install the fonts of every brand you switch to (for example npm install @fontsource/inter) and import weights 400–700 in your app entry.
A brand for one part of the page
The class also works on any wrapper, so one section can use another brand. Overlays that render outside the section (Modal, Dropdown menus) copy the brand class from the element that opened them. In dark mode, put the dark-mode class on the same wrapper as the brand class.