Theming
Add Theme to Adalt UI
Usage
Initialize Tailwind CSS on your Next.js app, use the official Tailwind CSS plugin:
ESM-Only
Use ESM syntax on your configuration file.
Global Styles
By using the Tailwind CSS plugin, or the pre-built stylesheet, your default border, text and background colors will be changed.
Light/Dark Modes
Adalt supports light/dark modes with next-themes
.
The Theme Provider is a part of Root Provider.
See Root Provider to learn more.
RTL Layout
RTL (Right-to-left) layout is supported. To enable RTL, pass the dir
prop to body.
Also pass the same prop to root provider to configure Radix UI RTL layout.
Layout Width
Customise the max width of docs layout with CSS Variables.
Themes
The design system was inspired by Shadcn UI, you can easily customize all the properties using CSS variables.
Only a subset of colors are provided by Adalt UI.
It may not be compatible with Shadcn UI.
Tailwind CSS Plugin
The official Tailwind CSS plugin introduces new colors and extra utilities including steps
.
Presets
It comes with many theme presets out-of-the-box, you can pick one you prefer rather than the default one.
Typography
We use the Tailwind CSS Typography plugin internally, you can customize it with CSS.
The Tailwind CSS plugin overrides the default configuration for the Typography plugin. You can use the prose
utility directly.
Colors
Adalt UI has its own colors, animations, and utilities.
It adds the colors with a fd-
prefix, you can reference them with the prefix like bg-fd-background
.
To remove the prefix, enable addGlobalColors
.
Layout Width
Customise the max width of docs layout with Tailwind CSS plugin.
Last updated on