Last active
June 6, 2023 16:10
-
-
Save cowboyd/026b7516fd2e0f09d37eb14cb20d683e to your computer and use it in GitHub Desktop.
A trivial twind integration using Deno and a server side render
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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