Getting Started
UI was designed for usage with Next.js and TailwindCSS. Here’s how to set up your project in just a few steps:
-
Create a project with Next.js (optional)
Start by creating a new project with Next.js. If you already have an existing project, you can skip this step.
Terminal window pnpm create next-app@latestTerminal window bun create next-app@latestTerminal window yarn create next-app@latestTerminal window npx create-next-app@latestRemember to choose to use Tailwind CSS when creating the project.
-
Update the dependencies
After creating a project with Next.js, you will have already installed some obvious dependencies from a React-based project. Please, check your
package.jsonfile to see if your React, React-DOM, Tailwind CSS and Typescript versions are compatible with Inpulse UI.{"devDependencies": {..."@types/react": "*","@types/react-dom": "*","typescript": "^5.0",...}"dependencies": {..."react": "^18.2 || ^19.0","react-dom": "^18.2 || ^19.0","tailwindcss": "^4.1",...}}The following dependencies are mandatory for all UI components to work properly. Please add them to your
package.jsonfile.{"dependencies": {..."@inpulse-ui/core": "^4.0","@inpulse-ui/slot": "^3.0.2","tailwind-merge": "^3.3","tailwind-variants": "^2.1"...}}The dependencies below are required for some specific components, specially if you’re dealing with forms. You can install them in a case-by-case basis to keep your project lightweight. Please check the
peerDependenciesof each component’s package for more information.If you don’t want to worry about this right now, you can install all at once to avoid any issues during the development.
{"dependencies": {..."@hookform/resolvers": "^5.2","@inpulse-ds/button": "^3.0","@inpulse-ui/icons": "^4.0.1","@inpulse-ui/loading": "^3.0.2","@inpulse-ui/visually-hidden": "^3.0.2","date-fns": "^4.1","react-hook-form": "^7.6","zod": "^4.0"...}}After editing the
package.jsonfile, run the installation command.Terminal window pnpm iTerminal window bun iTerminal window yarn iTerminal window npm i -
Configure shortcuts (optional)
We use
@as a shortcut when importing files. This configuration can be done intsconfig.json.{"compilerOptions": {"baseUrl": ".","paths": {"@/*": ["./*"]}}} -
Load component styles
Locate the
globals.cssfile inside thestylesfolder and add the following lines to import the components styles./* Init Inpulse UI styles */@import "@inpulse-ui/core/theme.css";@import "@inpulse-ui/core/utilities.css";@source "../../node_modules/@inpulse-ui";
Done! You can now start adding the components you need to your project. Happy coding!
Built with by Jo Santana in Brazil.
© 2026 Inpulse. All rights reserved.