diff --git a/docs/book/src/interlude_styling.md b/docs/book/src/interlude_styling.md index 64b6ee9ea..eaba34226 100644 --- a/docs/book/src/interlude_styling.md +++ b/docs/book/src/interlude_styling.md @@ -36,7 +36,7 @@ fn Home() -> impl IntoView { } ``` -It can be a little complicated to set up the Tailwind integration at first, but you can check out our two examples of how to use Tailwind with a [client-side-rendered `trunk` application](https://github.com/leptos-rs/leptos/tree/main/examples/tailwind_csr_trunk) or with a [server-rendered `cargo-leptos` application](https://github.com/leptos-rs/leptos/tree/main/examples/tailwind). `cargo-leptos` also has some [built-in Tailwind support](https://github.com/leptos-rs/cargo-leptos#site-parameters) that you can use as an alternative to Tailwind’s CLI. +It can be a little complicated to set up the Tailwind integration at first, but you can check out our two examples of how to use Tailwind with a [client-side-rendered `trunk` application](https://github.com/leptos-rs/leptos/tree/main/examples/tailwind_csr) or with a [server-rendered `cargo-leptos` application](https://github.com/leptos-rs/leptos/tree/main/examples/tailwind_actix). `cargo-leptos` also has some [built-in Tailwind support](https://github.com/leptos-rs/cargo-leptos#site-parameters) that you can use as an alternative to Tailwind’s CLI. ## Stylers: Compile-time CSS Extraction diff --git a/examples/Makefile.toml b/examples/Makefile.toml index 32ff7ab4d..4373546f6 100644 --- a/examples/Makefile.toml +++ b/examples/Makefile.toml @@ -18,7 +18,6 @@ CARGO_MAKE_CRATE_WORKSPACE_MEMBERS = [ "hackernews", "hackernews_axum", "js-framework-benchmark", - "leptos-tailwind-axum", "login_with_token_csr_only", "parent_child", "router", @@ -27,8 +26,9 @@ CARGO_MAKE_CRATE_WORKSPACE_MEMBERS = [ "ssr_modes", "ssr_modes_axum", "suspense_tests", - "tailwind", - "tailwind_csr_trunk", + "tailwind_actix", + "tailwind_csr", + "tailwind_axum", "timer", "todo_app_sqlite", "todo_app_sqlite_axum", diff --git a/examples/leptos-tailwind-axum/.gitignore b/examples/tailwind_actix/.gitignore similarity index 100% rename from examples/leptos-tailwind-axum/.gitignore rename to examples/tailwind_actix/.gitignore diff --git a/examples/tailwind/Cargo.toml b/examples/tailwind_actix/Cargo.toml similarity index 100% rename from examples/tailwind/Cargo.toml rename to examples/tailwind_actix/Cargo.toml diff --git a/examples/tailwind/LICENSE b/examples/tailwind_actix/LICENSE similarity index 100% rename from examples/tailwind/LICENSE rename to examples/tailwind_actix/LICENSE diff --git a/examples/tailwind/Makefile.toml b/examples/tailwind_actix/Makefile.toml similarity index 100% rename from examples/tailwind/Makefile.toml rename to examples/tailwind_actix/Makefile.toml diff --git a/examples/tailwind/README.md b/examples/tailwind_actix/README.md similarity index 100% rename from examples/tailwind/README.md rename to examples/tailwind_actix/README.md diff --git a/examples/leptos-tailwind-axum/end2end/package-lock.json b/examples/tailwind_actix/end2end/package-lock.json similarity index 100% rename from examples/leptos-tailwind-axum/end2end/package-lock.json rename to examples/tailwind_actix/end2end/package-lock.json diff --git a/examples/leptos-tailwind-axum/end2end/package.json b/examples/tailwind_actix/end2end/package.json similarity index 100% rename from examples/leptos-tailwind-axum/end2end/package.json rename to examples/tailwind_actix/end2end/package.json diff --git a/examples/leptos-tailwind-axum/end2end/playwright.config.ts b/examples/tailwind_actix/end2end/playwright.config.ts similarity index 100% rename from examples/leptos-tailwind-axum/end2end/playwright.config.ts rename to examples/tailwind_actix/end2end/playwright.config.ts diff --git a/examples/tailwind/end2end/tests/example.spec.ts b/examples/tailwind_actix/end2end/tests/example.spec.ts similarity index 100% rename from examples/tailwind/end2end/tests/example.spec.ts rename to examples/tailwind_actix/end2end/tests/example.spec.ts diff --git a/examples/leptos-tailwind-axum/public/favicon.ico b/examples/tailwind_actix/public/favicon.ico similarity index 100% rename from examples/leptos-tailwind-axum/public/favicon.ico rename to examples/tailwind_actix/public/favicon.ico diff --git a/examples/tailwind/rust-toolchain.toml b/examples/tailwind_actix/rust-toolchain.toml similarity index 100% rename from examples/tailwind/rust-toolchain.toml rename to examples/tailwind_actix/rust-toolchain.toml diff --git a/examples/tailwind/src/app.rs b/examples/tailwind_actix/src/app.rs similarity index 100% rename from examples/tailwind/src/app.rs rename to examples/tailwind_actix/src/app.rs diff --git a/examples/tailwind/src/lib.rs b/examples/tailwind_actix/src/lib.rs similarity index 100% rename from examples/tailwind/src/lib.rs rename to examples/tailwind_actix/src/lib.rs diff --git a/examples/tailwind/src/main.rs b/examples/tailwind_actix/src/main.rs similarity index 100% rename from examples/tailwind/src/main.rs rename to examples/tailwind_actix/src/main.rs diff --git a/examples/leptos-tailwind-axum/style/tailwind.css b/examples/tailwind_actix/style/tailwind.css similarity index 100% rename from examples/leptos-tailwind-axum/style/tailwind.css rename to examples/tailwind_actix/style/tailwind.css diff --git a/examples/tailwind/tailwind.config.js b/examples/tailwind_actix/tailwind.config.js similarity index 100% rename from examples/tailwind/tailwind.config.js rename to examples/tailwind_actix/tailwind.config.js diff --git a/examples/tailwind/.gitignore b/examples/tailwind_axum/.gitignore similarity index 100% rename from examples/tailwind/.gitignore rename to examples/tailwind_axum/.gitignore diff --git a/examples/leptos-tailwind-axum/Cargo.toml b/examples/tailwind_axum/Cargo.toml similarity index 100% rename from examples/leptos-tailwind-axum/Cargo.toml rename to examples/tailwind_axum/Cargo.toml diff --git a/examples/leptos-tailwind-axum/Makefile.toml b/examples/tailwind_axum/Makefile.toml similarity index 100% rename from examples/leptos-tailwind-axum/Makefile.toml rename to examples/tailwind_axum/Makefile.toml diff --git a/examples/leptos-tailwind-axum/README.md b/examples/tailwind_axum/README.md similarity index 100% rename from examples/leptos-tailwind-axum/README.md rename to examples/tailwind_axum/README.md diff --git a/examples/tailwind/end2end/package-lock.json b/examples/tailwind_axum/end2end/package-lock.json similarity index 100% rename from examples/tailwind/end2end/package-lock.json rename to examples/tailwind_axum/end2end/package-lock.json diff --git a/examples/tailwind/end2end/package.json b/examples/tailwind_axum/end2end/package.json similarity index 100% rename from examples/tailwind/end2end/package.json rename to examples/tailwind_axum/end2end/package.json diff --git a/examples/tailwind/end2end/playwright.config.ts b/examples/tailwind_axum/end2end/playwright.config.ts similarity index 100% rename from examples/tailwind/end2end/playwright.config.ts rename to examples/tailwind_axum/end2end/playwright.config.ts diff --git a/examples/leptos-tailwind-axum/end2end/tests/example.spec.ts b/examples/tailwind_axum/end2end/tests/example.spec.ts similarity index 100% rename from examples/leptos-tailwind-axum/end2end/tests/example.spec.ts rename to examples/tailwind_axum/end2end/tests/example.spec.ts diff --git a/examples/leptos-tailwind-axum/package-lock.json b/examples/tailwind_axum/package-lock.json similarity index 100% rename from examples/leptos-tailwind-axum/package-lock.json rename to examples/tailwind_axum/package-lock.json diff --git a/examples/leptos-tailwind-axum/package.json b/examples/tailwind_axum/package.json similarity index 100% rename from examples/leptos-tailwind-axum/package.json rename to examples/tailwind_axum/package.json diff --git a/examples/tailwind/public/favicon.ico b/examples/tailwind_axum/public/favicon.ico similarity index 100% rename from examples/tailwind/public/favicon.ico rename to examples/tailwind_axum/public/favicon.ico diff --git a/examples/leptos-tailwind-axum/rust-toolchain.toml b/examples/tailwind_axum/rust-toolchain.toml similarity index 100% rename from examples/leptos-tailwind-axum/rust-toolchain.toml rename to examples/tailwind_axum/rust-toolchain.toml diff --git a/examples/leptos-tailwind-axum/src/app.rs b/examples/tailwind_axum/src/app.rs similarity index 100% rename from examples/leptos-tailwind-axum/src/app.rs rename to examples/tailwind_axum/src/app.rs diff --git a/examples/leptos-tailwind-axum/src/fallback.rs b/examples/tailwind_axum/src/fallback.rs similarity index 100% rename from examples/leptos-tailwind-axum/src/fallback.rs rename to examples/tailwind_axum/src/fallback.rs diff --git a/examples/leptos-tailwind-axum/src/lib.rs b/examples/tailwind_axum/src/lib.rs similarity index 100% rename from examples/leptos-tailwind-axum/src/lib.rs rename to examples/tailwind_axum/src/lib.rs diff --git a/examples/leptos-tailwind-axum/src/main.rs b/examples/tailwind_axum/src/main.rs similarity index 100% rename from examples/leptos-tailwind-axum/src/main.rs rename to examples/tailwind_axum/src/main.rs diff --git a/examples/tailwind/style/tailwind.css b/examples/tailwind_axum/style/tailwind.css similarity index 100% rename from examples/tailwind/style/tailwind.css rename to examples/tailwind_axum/style/tailwind.css diff --git a/examples/leptos-tailwind-axum/tailwind.config.js b/examples/tailwind_axum/tailwind.config.js similarity index 100% rename from examples/leptos-tailwind-axum/tailwind.config.js rename to examples/tailwind_axum/tailwind.config.js diff --git a/examples/tailwind_csr_trunk/.gitignore b/examples/tailwind_csr/.gitignore similarity index 100% rename from examples/tailwind_csr_trunk/.gitignore rename to examples/tailwind_csr/.gitignore diff --git a/examples/tailwind_csr_trunk/Cargo.toml b/examples/tailwind_csr/Cargo.toml similarity index 100% rename from examples/tailwind_csr_trunk/Cargo.toml rename to examples/tailwind_csr/Cargo.toml diff --git a/examples/tailwind_csr_trunk/LICENSE b/examples/tailwind_csr/LICENSE similarity index 100% rename from examples/tailwind_csr_trunk/LICENSE rename to examples/tailwind_csr/LICENSE diff --git a/examples/tailwind_csr_trunk/Makefile.toml b/examples/tailwind_csr/Makefile.toml similarity index 100% rename from examples/tailwind_csr_trunk/Makefile.toml rename to examples/tailwind_csr/Makefile.toml diff --git a/examples/tailwind_csr_trunk/README.md b/examples/tailwind_csr/README.md similarity index 100% rename from examples/tailwind_csr_trunk/README.md rename to examples/tailwind_csr/README.md diff --git a/examples/tailwind_csr_trunk/Trunk.toml b/examples/tailwind_csr/Trunk.toml similarity index 100% rename from examples/tailwind_csr_trunk/Trunk.toml rename to examples/tailwind_csr/Trunk.toml diff --git a/examples/tailwind_csr_trunk/end2end/package-lock.json b/examples/tailwind_csr/end2end/package-lock.json similarity index 100% rename from examples/tailwind_csr_trunk/end2end/package-lock.json rename to examples/tailwind_csr/end2end/package-lock.json diff --git a/examples/tailwind_csr_trunk/end2end/package.json b/examples/tailwind_csr/end2end/package.json similarity index 100% rename from examples/tailwind_csr_trunk/end2end/package.json rename to examples/tailwind_csr/end2end/package.json diff --git a/examples/tailwind_csr_trunk/end2end/playwright.config.ts b/examples/tailwind_csr/end2end/playwright.config.ts similarity index 100% rename from examples/tailwind_csr_trunk/end2end/playwright.config.ts rename to examples/tailwind_csr/end2end/playwright.config.ts diff --git a/examples/tailwind_csr_trunk/end2end/tests/example.spec.ts b/examples/tailwind_csr/end2end/tests/example.spec.ts similarity index 100% rename from examples/tailwind_csr_trunk/end2end/tests/example.spec.ts rename to examples/tailwind_csr/end2end/tests/example.spec.ts diff --git a/examples/tailwind_csr_trunk/index.html b/examples/tailwind_csr/index.html similarity index 100% rename from examples/tailwind_csr_trunk/index.html rename to examples/tailwind_csr/index.html diff --git a/examples/tailwind_csr_trunk/input.css b/examples/tailwind_csr/input.css similarity index 100% rename from examples/tailwind_csr_trunk/input.css rename to examples/tailwind_csr/input.css diff --git a/examples/tailwind_csr_trunk/public/favicon.ico b/examples/tailwind_csr/public/favicon.ico similarity index 100% rename from examples/tailwind_csr_trunk/public/favicon.ico rename to examples/tailwind_csr/public/favicon.ico diff --git a/examples/tailwind_csr_trunk/src/app.rs b/examples/tailwind_csr/src/app.rs similarity index 100% rename from examples/tailwind_csr_trunk/src/app.rs rename to examples/tailwind_csr/src/app.rs diff --git a/examples/tailwind_csr_trunk/src/main.rs b/examples/tailwind_csr/src/main.rs similarity index 100% rename from examples/tailwind_csr_trunk/src/main.rs rename to examples/tailwind_csr/src/main.rs diff --git a/examples/tailwind_csr_trunk/style/output.css b/examples/tailwind_csr/style/output.css similarity index 100% rename from examples/tailwind_csr_trunk/style/output.css rename to examples/tailwind_csr/style/output.css diff --git a/examples/tailwind_csr_trunk/tailwind.config.js b/examples/tailwind_csr/tailwind.config.js similarity index 100% rename from examples/tailwind_csr_trunk/tailwind.config.js rename to examples/tailwind_csr/tailwind.config.js