Updated npm and installed daisyUI and tailwind

This commit is contained in:
BOTAlex 2024-10-09 11:32:22 +02:00
parent ac789d8a40
commit 04202dd936
6 changed files with 1404 additions and 234 deletions

1614
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -15,11 +15,15 @@
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@zerodevx/svelte-img": "^2.1.0",
"autoprefixer": "^10.4.20",
"daisyui": "^4.12.12",
"postcss": "^8.4.47",
"sass": "^1.77.4",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"svelte-highlight": "^7.6.0",
"svelte-parallax": "^0.6.0",
"tailwindcss": "^3.4.13",
"typescript": "^5.0.0",
"vite": "^5.0.3",
"vite-plugin-svgr": "^4.2.0"

6
postcss.config.js Normal file
View File

@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

3
src/lib/app.css Normal file
View File

@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

View File

@ -1,5 +1,7 @@
<!-- If url contains "hideOnPrint" param, then detect if start printing then hide elements -->
<script lang="ts">
import "$lib/app.css";
import { fly } from 'svelte/transition';
import MediaQuery from 'svelte-media-queries';
export let hideOnPrint: boolean;

9
tailwind.config.js Normal file
View File

@ -0,0 +1,9 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {},
},
plugins: [require('daisyui'),],
}