update tailwind

This commit is contained in:
Romulus21
2025-03-14 23:30:10 +01:00
parent b806fbab96
commit 88b7f72e81
7 changed files with 2446 additions and 54 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,5 @@
Todos.db Todos.db
node_modules/
target/ target/
site/ site/
style/output.css style/output.css

View File

@@ -13,6 +13,6 @@ deploy:
install: install:
cargo leptos build --release cargo leptos build --release
sudo systemctl stop rust_leptos.service sudo systemctl stop rust_leptos.service
scp target/release/rust_leptos /var/www/rust_leptos/rust_leptos cp target/release/rust_leptos /var/www/rust_leptos/rust_leptos
#scp -r target/site /var/www/rust_leptos/ cp -r target/site /var/www/rust_leptos/
sudo systemctl start rust_leptos.service sudo systemctl start rust_leptos.service

View File

@@ -1,27 +1,23 @@
@import 'tailwindcss'; @import "tailwindcss";
@config './tailwind.config.js'; @theme {
/*--font-display: "Satoshi", "sans-serif";*/
/*--breakpoint-3xl: 120rem;*/
--color-prim: oklch(27.95% 0.0085 255.57);
--color-prim-light: oklch(30.28% 0.0092 248.13);
--color-second: oklch(99.11% 0 0);
--color-second-dark: oklch(66.55% 0.0038 247.88);
--color-third: oklch(61.47% 0.2541 24.53);
--color-third-light: oklch(64.41% 0.2245 24.53);
--color-fourth: oklch(83.29% 0.161 80.36);
--color-green: oklch(76.97% 0.261916 142.4953);
/* --text-4xl: 4rem;
The default border color has changed to `currentColor` in Tailwind CSS v4, --text-4xl--line-height: calc(2.5 / 2.25);
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);
}
} }
body { body {
@apply dark:bg-prim dark:text-second @apply dark:bg-prim dark:text-second;
} }
.active-link { .active-link {

1881
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

9
package.json Normal file
View File

@@ -0,0 +1,9 @@
{
"dependencies": {
"@tailwindcss/cli": "^4.0.14",
"@tailwindcss/vite": "^4.0.14"
},
"devDependencies": {
"tailwindcss": "^4.0.14"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -1,35 +1,12 @@
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
module.exports = { module.exports = {
content: { content: {
relative: true,
files: ["*.html", "./src/**/*.rs"], files: ["*.html", "./src/**/*.rs"],
}, },
safelist: ['rotate-90', '-rotate-90'],
theme: { theme: {
extend: { extend: {},
colors: {
prim: {
lightest: "#2E3235",
light: "#2B2F33",
DEFAULT: "#26292D",
},
second: {
DEFAULT: "#FEFEFE",
dark: "#929496",
},
third: {
light: "#F96662",
DEFAULT: "#FC443D",
},
fourth: {
light: "#FFD885",
DEFAULT: "#FEBB2E",
},
green: "#00DA00",
},
fontSize: {
"4xl": ["4rem", "1.3"],
},
},
}, },
plugins: [], plugins: [],
}; }