@bdspark/sparkng-tailwindcss
v22.0.6
Published
Tailwind CSS utilities for SparkNG Libraries for Angular v22
Maintainers
Readme
@bdspark/sparkng-tailwindcss
Tailwind CSS utilities for SparkNG — first-class integration between SparkNG theming and Tailwind CSS, plus the animation utilities missing from core Tailwind.
This package ships two libraries: a CSS package compatible with Tailwind CSS v4, and a JS plugin for Tailwind CSS v3.
Installation
npm install @bdspark/sparkng-tailwindcssTailwind CSS v4
In the CSS file that contains the tailwindcss import, add the import for this package as well.
@import 'tailwindcss';
@import '@bdspark/sparkng-tailwindcss';Tailwind CSS v3
Use the plugins option in your Tailwind config file.
import SparkUiTailwind from '@bdspark/sparkng-tailwindcss';
export default {
// ...
plugins: [SparkUiTailwind]
};Features
- Semantic color utilities backed by the SparkNG theme (e.g.
bg-primary,text-surface-500,text-muted-color) that work in both styled and unstyled modes. - Animation utilities:
animate-*keyframes, duration, delay, direction, fill-mode, iteration, play-state, timing-function, and enter/leave helpers. - Variants such as
p-darkfor dark-mode styling of SparkNG components.
See the SparkNG Tailwind documentation for usage details.
