Files
sweet/www/twind.config.ts
T
Luca CasonatoandElias Sjögreen 1b3c9f2569 fix(plugin/twind): load configuration as module (#705)
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>
2022-09-07 00:44:46 +02:00

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;