SPY UI LogoSPY UI
DocsComponentsChartsBlocksTemplatesPricing
Login
Get All Access

Loading sidebar...

Tailwind CSS Installation

Set up spy-ui in a project that uses Tailwind CSS.

1. Install dependencies

Install Tailwind CSS and its peer dependencies, then generate your tailwind.config.js and postcss.config.js files.

Terminal
Loading code...

2. Configure your template paths

Add the paths to all of your template files in your tailwind.config.js file.

tailwind.config.js
Loading code...

3. Add the Tailwind directives

Add the @tailwind directives for each of Tailwind's layers to your main CSS file.

globals.css
Loading code...

4. Additional Dependencies

spy-ui relies on framer-motion and lucide-react. Install them to ensure all animations and icons work correctly.

Terminal
Loading code...
Getting Started
Install Next.jsInstall Tailwind CSSAdd utilitiesCLI
Assets
Micro InteractionsThemes & Palettes StudioBackgrounds & Environments
All Components333AI Interfaces13Backgrounds1Badges & Indicators4Buttons61Cards18Carousels & Galleries30Inputs & Forms12Layouts & Grids2Loaders18Media & Assets1Mouse & Cursor Effects7Overlays & Drawers3Text & Typography153Themes & Palettes Studio1Toggles3UI Elements6
All Charts280Area Charts24Bar Charts26Bubble Charts14Candlestick Charts12Funnel Charts23Gauge Charts33Interactive Charts7Line Charts22Pie Charts18Polar Charts16Radar Charts30Radial Charts18Scatter Charts20Treemap Charts17
All Blocks86Carousels & Galleries2Footers29Grids & Layouts3Headers9Navbars & Menus32Sections11
All Templates6Agency2Portfolio4Saas1

Build faster with All Access

Lifetime access to all templates, components and blocks.

Get All Access