An open API service indexing awesome lists of open source software.

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.

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
```