Skip to content

Commit 63889ba

Browse files
committed
Fix: import err from tailwind config
1 parent 8df1943 commit 63889ba

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

esbuild.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const options = {
3131
},
3232
plugins: [cleaner],
3333
legalComments: "none",
34-
external: ["react", "react-dom", "@dreamworld/addon-redux", "tailwindcss-scoped-preflight"]
34+
external: ["react", "react-dom", "@dreamworld/addon-redux"]
3535
};
3636

3737
build({

src/hooks/breakpoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useEffect, useState } from "react";
2-
import { screens } from "../../tailwind.config";
2+
import { screens } from "../utils/tailwind";
33

44
const calculateBreakpoints = () =>
55
Object.entries(screens).reduce((acc, [key, value]) => {

src/utils/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { ids, selectors } from "@/constants";
44
export * from "./d3";
55
export * from "./transformer";
66
export * from "./workspace";
7+
export * from "./tailwind";
78

89
export const fallible = (fn: Function) => {
910
try {

src/utils/tailwind.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export const screens = {
2+
xs: "400px",
3+
xsm: "450px",
4+
sm: "640px",
5+
md: "768px",
6+
lg: "1024px",
7+
xl: "1280px",
8+
xxl: "1536px"
9+
};

tailwind.config.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
import animate from "tailwindcss-animate";
22
import { isolateInsideOfContainer, scopedPreflightStyles } from "tailwindcss-scoped-preflight";
3-
4-
export const screens = {
5-
xs: "400px",
6-
xsm: "450px",
7-
sm: "640px",
8-
md: "768px",
9-
lg: "1024px",
10-
xl: "1280px",
11-
xxl: "1536px"
12-
};
3+
import { screens } from "./src/utils/tailwind";
134

145
/** @type {import('tailwindcss').Config} */
156
export default {

0 commit comments

Comments
 (0)