Skip to content

Commit 3b04c08

Browse files
committed
feat: new breakpoints
1 parent 0581368 commit 3b04c08

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/tailwindTheme.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,20 @@ export const tailwindTheme = {
66
theme: {
77
container: {
88
center: true,
9-
padding: "2rem",
9+
padding: '2rem',
1010
screens: {
11-
xs: '375px',
12-
sm: '576px',
13-
md: '768px',
14-
lg: '1024px',
15-
xl: '1280px',
16-
'2xl': '1536px',
17-
'3xl': '1920px',
11+
'2xl': '1400px', // In order to be backward compatible with previous max-width for 2xl we set it to 1400px. All containers will have a max width of 1400px at 2xl screens and above
1812
},
1913
},
14+
screens: { // Overriding default breakpoints - We want to replace rather than extend - all the breakpoints must be clearly defined here
15+
xs: '375px',
16+
sm: '576px',
17+
md: '768px',
18+
lg: '1024px',
19+
xl: '1280px',
20+
'2xl': '1536px',
21+
'3xl': '1920px',
22+
},
2023
extend: {
2124
colors: {
2225
border: "hsl(var(--border))",

0 commit comments

Comments
 (0)