Skip to content

Commit

Permalink
Change twind references to @twind/core
Browse files Browse the repository at this point in the history
  • Loading branch information
EccentricVamp committed Nov 20, 2022
1 parent 4b26905 commit 379fe8c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { dom } from "twind";
import { dom } from "@twind/core";
import { FreshwindUserConfig, setup, STYLE_ELEMENT_ID } from "./shared.ts";

export default function hydrate(options: FreshwindUserConfig) {
Expand Down
2 changes: 1 addition & 1 deletion plugin.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Plugin } from "$fresh/server.ts";
import { setup, stringify } from "twind";
import { setup, stringify } from "@twind/core";
import { FreshwindUserConfig, STYLE_ELEMENT_ID } from "./shared.ts";

export default function twind(config: FreshwindUserConfig): Plugin {
Expand Down
8 changes: 7 additions & 1 deletion shared.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { options as preactOptions, VNode } from "preact";
import { getSheet, setup as twSetup, Sheet, tw, TwindUserConfig } from "twind";
import {
getSheet,
setup as twSetup,
Sheet,
tw,
TwindUserConfig,
} from "@twind/core";

export const STYLE_ELEMENT_ID = "__FRSH_TWIND";

Expand Down

0 comments on commit 379fe8c

Please sign in to comment.