Using external tailwind

Install tailwind

    npm install tailwindcss @tailwindcss/cli

Remember to add node_modules to .gitignore.

Build / watch

    vertigo build --external-tailwind
    vertigo watch --external-tailwind

Add env variable to project settings if using vscode

    "rust-analyzer.check.extraEnv": {
        "VERTIGO_EXT_TAILWIND": "true"
    },

If tests involves invoking tailwind

    VERTIGO_EXT_TAILWIND=true cargo test

Custom input css file

Place tailwind.css file in the same directory where you use vertigo::main macro (usually src ). Don't use tailwind classes in the same file as vertigo::main macro - those classes could be missing from the final tailwind build.