feat: tailwindcss & daisyui beta

This commit is contained in:
Per Stark
2025-01-21 08:44:08 +01:00
parent 8fc9145f5a
commit b3f6f8f3dd
5 changed files with 4179 additions and 8249 deletions

View File

@@ -1,3 +1,24 @@
@tailwind base; @import 'tailwindcss';
@tailwind components; @plugin "daisyui";
@tailwind utilities; @plugin "@tailwindcss/typography";
@config '../tailwind.config.js';
/*
The default border color has changed to `currentColor` in Tailwind CSS v4,
so we've added these compatibility styles to make sure everything still
looks the same as it did with Tailwind CSS v3.
If we ever want to remove these styles, we need to add an explicit border
color utility to any element that depends on these defaults.
*/
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentColor);
}
}

File diff suppressed because it is too large Load Diff

5440
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,19 +1,13 @@
{ {
"scripts": { "scripts": {
"build:css": "postcss assets/input.css -o assets/style.css", "dev": "npx @tailwindcss/cli --input assets/input.css --output assets/style.css --watch"
"watch:css": "postcss assets/input.css -o assets/style.css --watch",
"build:tailwind": "tailwindcss --input assets/input.css --output assets/style.css",
"watch:tailwind": "tailwindcss --input assets/input.css --output assets/style.css --watch",
"dev": "npm-run-all --parallel watch:css watch:tailwind"
}, },
"devDependencies": { "devDependencies": {
"@tailwindcss/typography": "^0.5.15", "@tailwindcss/typography": "^0.5.15",
"autoprefixer": "^10.4.20", "daisyui": "^5.0.0-beta.1",
"cssnano": "^7.0.6", "tailwindcss": "^4.0.0-beta.9"
"daisyui": "^4.12.23", },
"npm-run-all": "^4.1.5", "dependencies": {
"postcss": "^8.4.49", "@tailwindcss/cli": "^4.0.0-beta.9"
"postcss-cli": "^11.0.0",
"tailwindcss": "^3.4.17"
} }
} }

View File

@@ -24,9 +24,6 @@ module.exports = {
}, },
}, },
}, },
plugins: [
require("@tailwindcss/typography"),
require('daisyui')],
daisyui: { daisyui: {
themes: ["light", "dark"], themes: ["light", "dark"],
}, },