• Home
  • Components
  • ObsidianUI
  • Docs
  • Templates
ObsidianUIObsidianUI
  • Installation
  • Install Next.js
  • Install Tailwind CSS
  • Add utilities
  • CLI
  • Components
  • AI Input
  • Animated Tab Bar
  • Apple Spotlight
  • Circle Menu
  • Creepy Button
  • Dialog Form
  • Eagle Vision
  • Expandable Bento Grid
  • Flip Fade Text
  • Flip Scroll
  • Flip Text
  • Floating Navigation
  • Flow Scroll
  • Folder Preview
  • Dock
  • Glitch Text
  • Glow Border Card
  • Glowing Effect
  • Glowing Scroll Indicator
  • Horizontal Scroll
  • Icon Wheel
  • Image Pile
  • Infinite Moving Cards
  • Interactive Book
  • Interest Picker
  • Jelly Loader
  • Leave Rating
  • Light Lines
  • Liquid Ocean
  • 3D Displacement Text
  • Magnet Tabs
  • Mask Cursor Effect
  • Masked Avatars
  • Masonry Grid
  • Neumorphism 3D Button
  • OTP Input
  • Perspective Grid
  • Photo Gallery
  • Pixelated Carousel
  • Pixelated Image Trail
  • Retro Pixel Button
  • Rolling Ball Scroll Indicator
  • Rubik Cube
  • Scroll Effect
  • Sine Wave
  • Social Flip Button
  • Spotlight Navbar
  • Stacked Logos
  • Staggered Grid
  • Testimonials Card
  • Trading Card
  • Hover Img
DocumentationInstall Tailwind CSS

Install Tailwind CSS

Configure Tailwind CSS in your Next.js project.


1

Install Packages

If you already have a Next.js project without Tailwind CSS, install it:

npm install tailwindcss @tailwindcss/postcss postcss
2

Configure PostCSS

Create or update your postcss.config.mjs file:

export default {
plugins: {
"@tailwindcss/postcss": {},
},
};
3

Add CSS Import

Add the Tailwind CSS import to your global CSS file (src/app/globals.css):

@import "tailwindcss";
Install Next.jsAdd utilities
Made byAthrix.me❤️