https://github.com/esm-dev/oxide-wasm
A wasm build of the tailwindcss oxide for browsers.
https://github.com/esm-dev/oxide-wasm
Last synced: 10 months ago
JSON representation
A wasm build of the tailwindcss oxide for browsers.
- Host: GitHub
- URL: https://github.com/esm-dev/oxide-wasm
- Owner: esm-dev
- License: mit
- Created: 2025-06-20T12:08:53.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-06-21T03:02:55.000Z (10 months ago)
- Last Synced: 2025-06-21T04:19:09.411Z (10 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oxide-wasm
A wasm build for [tailwindcss-oxide](https://github.com/tailwindlabs/tailwindcss/tree/main/crates/oxide).
## Usage
```js
import init, { extract } from "https://esm.sh/@esm.sh/oxide-wasm";
// load oxide-wasm_bg.wasm
await init();
const code = `
Hello world!
`;
console.log(extract(code));
// [
// "class",
// "text-3xl",
// "font-bold",
// "underline"
// ]
```
## Development Setup
You will need [rust](https://www.rust-lang.org/tools/install) 1.60+ and
[wasm-pack](https://rustwasm.github.io/wasm-pack/installer/).
## Build
```bash
wasm-pack build --target web --no-pack --release
```