diff --git a/src/colors.ts b/src/colors.ts index b176abb..17b0b14 100644 --- a/src/colors.ts +++ b/src/colors.ts @@ -7,13 +7,13 @@ import { type PropertyValue, type RuleSet, type UtilityList, -} from "./plugin"; +} from "./plugin.ts"; import { append_style, darken_class, darken_utility, stylize_utility, -} from "./utils"; +} from "./utils.ts"; export type ColorName = PropertyName; export type ColorScheme = "dark" | "light"; diff --git a/src/deno.json b/src/deno.json new file mode 100644 index 0000000..0d92cba --- /dev/null +++ b/src/deno.json @@ -0,0 +1,7 @@ +{ + "imports": { + "tailwindcss": "npm:tailwindcss@3.4.3", + "tailwindcss/": "npm:/tailwindcss@3.4.3/", + "tailwindcss/plugin": "npm:/tailwindcss@3.4.3/plugin.js" + } +} diff --git a/src/index.ts b/src/index.ts index cb4dc9d..ceebb9a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ import plugin from "tailwindcss/plugin"; import type { PluginAPI } from "tailwindcss/types/config"; -import { Colors, type ColorsConfig, DEFAULT_COLORS } from "./colors"; -import type { PluginWithOptions } from "./plugin"; +import { Colors, type ColorsConfig, DEFAULT_COLORS } from "./colors.ts"; +import type { PluginWithOptions } from "./plugin.ts"; export type RequiredPluginConfig = { colors: boolean | ColorsConfig; diff --git a/src/plugin.ts b/src/plugin.ts index d09ae3b..2ce5373 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -12,7 +12,7 @@ import { stylize_properties_callback, stylize_property, stylize_property_callback, -} from "./utils"; +} from "./utils.ts"; export interface PluginContract { readonly api: PluginAPI; diff --git a/src/utils.ts b/src/utils.ts index 865d468..89d89e0 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -8,7 +8,7 @@ import type { StyleCallback, StyleCallbacks, UtilityList, -} from "./plugin"; +} from "./plugin.ts"; export function darken( darkMode: DarkMode,