File tree Expand file tree Collapse file tree 6 files changed +14
-22
lines changed Expand file tree Collapse file tree 6 files changed +14
-22
lines changed Original file line number Diff line number Diff line change 1
- import { screens } from "../../tailwind/screens "
1
+ import { screens } from "@/lib/utils/screen "
2
2
3
3
import { useMediaQuery } from "./useMediaQuery"
4
4
Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ import type { SimulatorNav } from "@/components/Simulator/interfaces"
23
23
import allQuizData from "@/data/quizzes"
24
24
import allQuestionData from "@/data/quizzes/questionBank"
25
25
26
+ import { screens } from "./utils/screen"
26
27
import { WALLETS_FILTERS_DEFAULT } from "./constants"
27
28
28
29
import { layoutMapping } from "@/pages/[...slug]"
29
- import twConfig from "@/styles/config"
30
30
31
31
// Credit: https://stackoverflow.com/a/52331580
32
32
export type Unpacked < T > = T extends ( infer U ) [ ] ? U : T
@@ -858,4 +858,4 @@ export type EventCardProps = {
858
858
imageUrl ?: string
859
859
}
860
860
861
- export type BreakpointKey = keyof typeof twConfig . theme . screens
861
+ export type BreakpointKey = keyof typeof screens
Original file line number Diff line number Diff line change
1
+ import type { ScreensConfig } from "tailwindcss/types/config"
2
+
1
3
import type { BreakpointKey } from "../types"
2
4
3
- import twConfig from "@/styles/config"
5
+ export const screens = {
6
+ sm : "480px" ,
7
+ md : "768px" ,
8
+ lg : "992px" ,
9
+ xl : "1280px" ,
10
+ "2xl" : "1536px" ,
11
+ } satisfies ScreensConfig
4
12
5
- export const breakpointAsNumber = Object . entries ( twConfig . theme . screens ) . reduce (
13
+ export const breakpointAsNumber = Object . entries ( screens ) . reduce (
6
14
( acc , curr ) => {
7
15
const [ breakpoint , value ] = curr
8
16
acc [ breakpoint ] = + value . split ( "px" ) [ 0 ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import type { Config } from "tailwindcss"
2
2
import plugin from "tailwindcss/plugin"
3
3
4
- import { screens } from "./tailwind/screens "
4
+ import { screens } from "./src/lib/utils/screen "
5
5
6
6
const config = {
7
7
// TODO: Move to "class" strategy after removing Chakra
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments