Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/docs/docs/customize/theming/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ keyword: ThemingPage
You can use the theme directive from tailwind to define any style related classes, such as the color
palette, fonts, breakpoints, and more.

Here is the `primary` color theme used for this documentation :

```css
@theme {
/* Primary */
Expand Down
23 changes: 21 additions & 2 deletions apps/docs/docs/getting-started/quickstart/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Angular library.
Make sure that TailwindCSS is installed.

```bash
npm install tailwindcss
npm install tailwindcss @tailwindcss/postcss postcss
```

Install Flowbite as a dependency using NPM by running this command:
Expand All @@ -25,8 +25,27 @@ npm install flowbite-angular ng-primitives @ng-icons/core

Make sure to use the flowbite-angular configuration preset in your styles.css

> **Note** If your `node_modules` folder 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";`.

```css
@import 'tailwindcss';

@source "node_modules/flowbite-angular";
@source "../node_modules/flowbite-angular";
```

> **Note** If you want a working `primary` color definition, see `*ThemingPage` 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.

```json
{
"plugins": {
"@tailwindcss/postcss": {}
}
}
```
4 changes: 2 additions & 2 deletions libs/flowbite-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
"@angular/cdk": ">=20.0.0 < 21.0.0",
"@angular/core": ">=20.0.0 < 21.0.0",
"@ng-icons/core": "^31.3.0",
"@ng-primitives/state": "^0.57.0",
"@ng-primitives/state": ">=0.57.0",
"@tailwindcss/postcss": "^4.0.0",
"ng-primitives": "^0.57.0",
"ng-primitives": ">=0.57.0",
"rxjs": "^7.4.0",
"tailwind-merge": "2.5.5",
"tailwindcss": "^4.0.0"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@
"@ng-doc/core": "20.1.0",
"@ng-doc/ui-kit": "20.1.0",
"@ng-icons/core": "^31.3.0",
"@ng-primitives/state": "^0.57.0",
"@ng-primitives/state": "0.78.0",
"@nx/devkit": "21.2.2",
"@tailwindcss/postcss": "^4.0.0",
"express": "4.18.3",
"ng-primitives": "^0.57.0",
"ng-primitives": "0.86.0",
"postcss": "^8.5.3",
"rxjs": "^7.4.0",
"tailwind-merge": "2.5.5",
Expand Down
57 changes: 42 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.