This repo contains a tool to generate Rust code from Tailwind CSS and a set of macros for working with that generated code. See the docs for those crates for more details. tailwindcss-to-rust tailwindcss-to-rust-macros