feat: use import maps instead of deps files (#209)
This commit updates fresh to use import maps instead of deps files in generated projects.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export * as gfm from "https://deno.land/x/gfm@0.1.19/mod.ts";
|
||||
import "https://esm.sh/prismjs@1.27.0/components/prism-jsx.js?no-check";
|
||||
import "https://esm.sh/prismjs@1.27.0/components/prism-typescript.js?no-check";
|
||||
import "https://esm.sh/prismjs@1.27.0/components/prism-tsx.js?no-check";
|
||||
|
||||
export { parse as frontMatter } from "https://deno.land/x/frontmatter@v0.1.4/mod.ts";
|
||||
@@ -0,0 +1,18 @@
|
||||
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 } });
|
||||
}
|
||||
Reference in New Issue
Block a user