Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a wasm module #15808

Closed
wants to merge 4 commits into from
Closed

Conversation

SelfMadeSystem
Copy link

@SelfMadeSystem SelfMadeSystem commented Jan 24, 2025

Motivation

Now that Tailwind CSS is using Oxide and Lightning CSS, it is no longer possible to run Tailwind CSS in the browser. This is primarily a problem for websites like StackBlitz and uiverse.io that allow users to create and share web projects in the browser. Having a Tailwind CSS WASM module would allow these websites to continue to support the latest version of Tailwind CSS.

Possible use-cases for a Tailwind CSS WASM module are:

Approach

For now, I copy-pasted the existing node module code and ported it from napi to wasm-bindgen. I would like to add additional features later.

To Do

  • Add CI/CD
  • Add tests
  • npm packaging (@tailwindcss/oxide-wasm)
    • Made a package.json & README.md for it
    • Actually ship it somehow
  • Integration with existing Tailwind CSS utilities for use in environments like StackBlitz
  • Definitely a lot more lol

@SelfMadeSystem
Copy link
Author

SelfMadeSystem commented Jan 24, 2025

I realized that oxide isn't what I thought it was lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant