feat: twind plugin (#513)

This adds a first-party twind plugin to use twind for styling.
This commit is contained in:
Luca Casonato
2022-08-09 21:41:11 +02:00
committed by GitHub
parent fd4e2bbe17
commit 660e0f5fef
20 changed files with 296 additions and 238 deletions
-21
View File
@@ -1,21 +0,0 @@
export * from "twind";
import { IS_BROWSER } from "$fresh/runtime.ts";
import * as colors from "twind/colors";
import { setup } from "twind";
export const theme = {
colors: {
blue: colors.blue,
black: colors.black,
gray: colors.gray,
green: colors.green,
white: colors.white,
yellow: colors.yellow,
transparent: "transparent",
},
};
if (IS_BROWSER) {
setup({ theme: { colors } });
}