import { autoDarkColor } from "https://deno.land/x/fresh@1.5.4/plugins/twindv1_deps.ts";
Looks for a matching dark color within a tailwind color palette (50
, 100
, 200
, ..., 800
, 900
).
defineConfig({
darkColor: autoDarkColor,
})
Note: Does not work for arbitrary values like [theme(colors.gray.500)]
or [theme(colors.gray.500, #ccc)]
.
Parameters
unnamed 2: Context<any>
to use
Returns
the dark color if found