leptos/examples/tailwind_actix
Joseph Cruz 65b7603192
fix(ci): address clippy issue (#2278)
* fix(ci): address clippy issue
* fix(ci): add missing nightly specifications
* fix(ci):  set all nightly references
* chore(ci): do not lint example crates
2024-02-09 16:30:11 -05:00
..
end2end examples: rename Tailwind examples (#1875) 2023-10-13 16:20:26 -04:00
public examples: rename Tailwind examples (#1875) 2023-10-13 16:20:26 -04:00
src remove `cfg-if` from all examples 2024-01-19 14:16:58 -05:00
style examples: rename Tailwind examples (#1875) 2023-10-13 16:20:26 -04:00
.gitignore examples: rename Tailwind examples (#1875) 2023-10-13 16:20:26 -04:00
Cargo.toml examples: fix typos in examples (#2260) 2024-02-05 05:20:53 -05:00
LICENSE examples: rename Tailwind examples (#1875) 2023-10-13 16:20:26 -04:00
Makefile.toml examples: rename Tailwind examples (#1875) 2023-10-13 16:20:26 -04:00
README.md examples: rename Tailwind examples (#1875) 2023-10-13 16:20:26 -04:00
rust-toolchain.toml fix(ci): address clippy issue (#2278) 2024-02-09 16:30:11 -05:00
tailwind.config.js examples: rename Tailwind examples (#1875) 2023-10-13 16:20:26 -04:00

README.md

Leptos Starter Template

This is a template demonstrating how to integrate TailwindCSS with the Leptos web framework and the cargo-leptos tool.

Getting Started

See the Examples README for setup and run instructions.

Tailwind

You can install Tailwind using npm:

npm install -D tailwindcss

If you'd rather not use npm, you can install the Tailwind binary here.

Setting up with VS Code and Additional Tools

If you're using VS Code, add the following to your settings.json

  "emmet.includeLanguages": {
    "rust": "html",
    "*.rs": "html"
  },
  "tailwindCSS.includeLanguages": {
      "rust": "html",
      "*.rs": "html"
  },
  "files.associations": {
      "*.rs": "rust"
  },
  "editor.quickSuggestions": {
    "other": "on",
    "comments": "on",
    "strings": true
  },
  "css.validate": false,

Install Tailwind CSS Intellisense.

Install VS Browser extension (allows you to open a browser at the right window).

Allow vscode Ports forward: 3000, 3001.

Attribution

Many thanks to GreatGreg for putting together this guide. You can find the original, with added details, here.