Skip to content

Commit 802de19

Browse files
committed
🎨 Define custom width (#1956)
1 parent ca1a422 commit 802de19

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/app.css

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ body {
1212
font-style: normal;
1313
}
1414

15-
@layer utilities {
16-
.w-1\/7 {
17-
width: 14.285714%;
18-
}
19-
.w-1\/8 {
20-
width: 12.5%;
21-
}
22-
}
23-
2415
#root {
2516
@apply w-full max-w-screen-xl;
2617
}

tailwind.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ const config = {
8282
screens: {
8383
xs: '420px',
8484
},
85+
width: {
86+
'1/7': '14.2857143%',
87+
'1/8': '12.5%',
88+
'1/9': '11.1111111%',
89+
'1/10': '10%',
90+
},
8591
},
8692
},
8793
} as Config;

0 commit comments

Comments
 (0)