Files
sweet/www/utils/twind.ts
T
Luca Casonato 80598d07fd feat: use import maps instead of deps files (#209)
This commit updates fresh to use import maps instead of deps files in generated projects.
2022-05-23 19:35:15 +02:00

19 lines
436 B
TypeScript

import { IS_BROWSER } from "$fresh/runtime.ts";
import { apply, setup, tw } from "$twind";
import * as colors from "$twind/colors";
export { apply, setup, tw };
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 } });
}