Skip to content

Instantly share code, notes, and snippets.

@cowboyd
Last active June 6, 2023 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cowboyd/026b7516fd2e0f09d37eb14cb20d683e to your computer and use it in GitHub Desktop.
Save cowboyd/026b7516fd2e0f09d37eb14cb20d683e to your computer and use it in GitHub Desktop.
A trivial twind integration using Deno and a server side render
import { setup, virtual, tw, stringify } from "https://esm.sh/@twind/core@1.1.3";
const sheet = virtual();
setup({}, sheet);
const classnames = tw("grid grid-cols-2");
console.dir({
"sheet.target === tw.target": sheet.target === tw.target,
classnames,
target: sheet.target,
cssText: stringify(sheet.target),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment