Installation
Install the necessary packages and set up your project. This tool automates the process, streamlining your setup with no extra steps required.
Framework Guides
You can choose from a list of frameworks to get started with Intent.
Installation via CLI
Before executing the command, ensure that tailwind is installed. If not, follow the instructions here for installation.
Initial Setup
Begin by executing this command:
We use shadcn CLI to manage the installation of Intent UI components.
Sometimes, you may want to add components individually, such as select
and text-field
. You can easily do this by using the following command:
Add all components
To add all components at once, use @intentui/all
. This will install every available component in Intent UI in a single step.
Overwrite
You can override the existing components by using the -o
flag. This will overwrite the existing files with the new ones.
Formatter
Intent utilizes the Biome formatter for code formatting. To use the Biome formatter with Intent components, we recommend the following configuration:
Manual installation
To begin setting up the design system, start by installing these packages:
Next, add Tailwind Variant, Tailwind Merge, and for utility functions:
Following that, include the Tailwind Animate for managing animations and Intent Icons for icons:
Style and Primitive
After installing the required packages, you can copy the CSS below into your global CSS file and move the primitives to your UI folder. Primitives serve as utilities for managing states, including focusRing
, focusStyles
, and focusButtonStyles
.
Hooks
Hooks are only used in specific components like the Navbar, Sidebar, Popover, and Command Menu. If you're using the Intent CLI, it will handle this automatically; otherwise, download the file below.
Fonts
This is currently using the Inter font. If you want to use a different font, you can define your font-family in your JS or CSS file.
Stylesheet
When you're working with a stylesheet, you can define your @font-face
in your css file.
Next.js
If you're using Next.js, you don't event need css files. Just define your font in your layout file.
Then, apply the fontSans
to the body
tag like this:
Then, you can use the variable in your main css file like this:
For more information, refer to the Tailwind documentation and Next.js documentation.
IntelliSense
If you want your development environment to be more intelligent, you can follow instructions here at Tailwind Variants.
Unlock the full power ofDesign Intent UI