mirror of
https://github.com/spartan-ng/spartan.git
synced 2026-09-22 16:41:38 +08:00
859676a41a
spartan/ui is now Tailwind CSS v4 only. The v3 compatibility layer added complexity across the brain preset, the CLI generators and the docs, all of which is removed here. Brain: - Delete the v3 JavaScript preset (hlm-tailwind-preset.js) and its package export; the v4 CSS preset (hlm-tailwind-preset.css) is now the only preset. - Bump the tailwindcss peer dependency to >=4.0.0 and declare tw-animate-css as a peer, since it is imported by the CSS preset. CLI: - Remove Tailwind version detection and the v3 confirmation prompt; the theme generator always emits the v4 stylesheet (preset import plus OKLCH theme). - Drop the legacy HSL theme table, the v3-only CDK overlay import branch, the vestigial addCdkStyles option and the unused registryItemTailwindSchema. Docs and tooling: - Remove the Tailwind v3 installation and theming sections and snippets. - Drop autoprefixer; Tailwind v4 handles vendor prefixing via @tailwindcss/postcss. BREAKING CHANGE: Tailwind CSS v3 is no longer supported. The @spartan-ng/brain/hlm-tailwind-preset (JS) package export has been removed; use the @spartan-ng/brain/hlm-tailwind-preset.css preset with Tailwind CSS v4. The tailwindcss peer dependency now requires >=4.0.0.
9 lines
189 B
JSON
9 lines
189 B
JSON
{
|
|
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
|
|
"dest": "../../dist/libs/brain",
|
|
"lib": {
|
|
"entryFile": "src/index.ts"
|
|
},
|
|
"assets": ["hlm-tailwind-preset.css"]
|
|
}
|