Quickstart
Get started with flowbite-angular by including it into your project using NPM
Introduction
Flowbite Angular can easily be integrated into your project using NPM. It functions as a common Angular library.
Require via NPM
Make sure that TailwindCSS is installed.
npm install tailwindcss @tailwindcss/postcss postcssInstall Flowbite as a dependency using NPM by running this command:
npm install flowbite-angular ng-primitives @ng-icons/coreTailwindCSS configuration
Make sure to use the flowbite-angular configuration preset in your styles.css
If your
node_modulesfolder is located above the parent directory (e.g., in a monorepo setup), you may need to adjust the path with additional../to correctly reference it, such as@source "../../../node_modules/flowbite-angular";.
@import 'tailwindcss';
@source "../node_modules/flowbite-angular";If you want a working
primarycolor definition, seeTheming page
PostCSS configuration
Create a postcss.config.json file in the root of your project and add the @tailwindcss/postcss plugin to your PostCSS configuration.
{
"plugins": {
"@tailwindcss/postcss": {}
}
}