This commit loads the Twind configuration as an actual module rather than evaluating it on the server and then serializing. This allows usage of unserializable plugin functions. Co-authored-by: Elias Sjögreen <eliassjogreen1@gmail.com>
18 lines
382 B
TypeScript
18 lines
382 B
TypeScript
import { Options } from "$fresh/plugins/twind.ts";
|
|
import * as colors from "twind/colors";
|
|
|
|
export default {
|
|
selfURL: import.meta.url,
|
|
theme: {
|
|
colors: {
|
|
blue: colors.blue,
|
|
black: colors.black,
|
|
gray: colors.gray,
|
|
green: colors.green,
|
|
white: colors.white,
|
|
yellow: colors.yellow,
|
|
transparent: "transparent",
|
|
},
|
|
},
|
|
} as Options;
|