add tailwind to project

This commit is contained in:
Liam Fitzpatrick 2024-12-11 17:33:17 -05:00
parent 9ced4492fe
commit 80ff760388
5 changed files with 1414 additions and 0 deletions

1
website/.gitignore vendored
View File

@ -2,6 +2,7 @@
# will have compiled files and executables
debug/
target/
node_modules/
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html

1381
website/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

16
website/package.json Normal file
View File

@ -0,0 +1,16 @@
{
"name": "leptos-tailwind",
"version": "1.0.0",
"description": "<picture>\r <source srcset=\"https://raw.githubusercontent.com/leptos-rs/leptos/main/docs/logos/Leptos_logo_Solid_White.svg\" media=\"(prefers-color-scheme: dark)\">\r <img src=\"https://raw.githubusercontent.com/leptos-rs/leptos/main/docs/logos/Leptos_logo_RGB.svg\" alt=\"Leptos Logo\">\r </picture>",
"main": "index.js",
"scripts": {
"build": "npx tailwindcss -i ./input.css -o ./style/output.css",
"watch": "npx tailwindcss -i ./input.css -o ./style/output.css --watch"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"tailwindcss": "^3.4.1"
}
}

View File

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

View File

@ -0,0 +1,13 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: {
files: ["*.html", "./src/**/*.rs"],
transform: {
rs: (content) => content.replace(/(?:^|\s)class:/g, ' '),
},
},
theme: {
extend: {},
},
plugins: [],
}