chore: update twind import map defaults in init.ts (#291)

This commit is contained in:
Luca Casonato
2022-06-27 14:35:34 +02:00
committed by GitHub
parent a2c97fdeac
commit 34fc5514f9
15 changed files with 37 additions and 28 deletions
+6 -3
View File
@@ -1,7 +1,9 @@
export * from "twind";
import { IS_BROWSER } from "$fresh/runtime.ts";
import { apply, setup, tw } from "$twind";
import * as colors from "$twind/colors";
export { apply, setup, tw };
import * as colors from "twind/colors";
import { setup } from "twind";
export const theme = {
colors: {
blue: colors.blue,
@@ -13,6 +15,7 @@ export const theme = {
transparent: "transparent",
},
};
if (IS_BROWSER) {
setup({ theme: { colors } });
}