Skip to content

Commit edf0ba6

Browse files
committed
Use fewer spacing values, better curate fractional widths per plugin
This saves a tremendous amount of file size and none of the stuff that is cut here is important.
1 parent 8474177 commit edf0ba6

File tree

1 file changed

+55
-33
lines changed

1 file changed

+55
-33
lines changed

stubs/defaultConfig.stub.js

+55-33
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,8 @@ module.exports = {
4343
8: '2rem',
4444
9: '2.25rem',
4545
10: '2.5rem',
46-
11: '2.75rem',
4746
12: '3rem',
48-
13: '3.25rem',
4947
14: '3.5rem',
50-
15: '3.75rem',
5148
16: '4rem',
5249
20: '5rem',
5350
24: '6rem',
@@ -64,33 +61,6 @@ module.exports = {
6461
72: '18rem',
6562
80: '20rem',
6663
96: '24rem',
67-
'1/2': '50%',
68-
'1/3': '33.333333%',
69-
'2/3': '66.666667%',
70-
'1/4': '25%',
71-
'2/4': '50%',
72-
'3/4': '75%',
73-
'1/5': '20%',
74-
'2/5': '40%',
75-
'3/5': '60%',
76-
'4/5': '80%',
77-
'1/6': '16.666667%',
78-
'2/6': '33.333333%',
79-
'3/6': '50%',
80-
'4/6': '66.666667%',
81-
'5/6': '83.333333%',
82-
'1/12': '8.333333%',
83-
'2/12': '16.666667%',
84-
'3/12': '25%',
85-
'4/12': '33.333333%',
86-
'5/12': '41.666667%',
87-
'6/12': '50%',
88-
'7/12': '58.333333%',
89-
'8/12': '66.666667%',
90-
'9/12': '75%',
91-
'10/12': '83.333333%',
92-
'11/12': '91.666667%',
93-
full: '100%',
9464
},
9565
backgroundColor: (theme) => theme('colors'),
9666
backgroundImage: {
@@ -252,6 +222,20 @@ module.exports = {
252222
auto: 'auto',
253223
...theme('spacing'),
254224
...negative(theme('spacing')),
225+
'1/2': '50%',
226+
'1/3': '33.333333%',
227+
'2/3': '66.666667%',
228+
'1/4': '25%',
229+
'2/4': '50%',
230+
'3/4': '75%',
231+
full: '100%',
232+
'-1/2': '-50%',
233+
'-1/3': '-33.333333%',
234+
'-2/3': '-66.666667%',
235+
'-1/4': '-25%',
236+
'-2/4': '-50%',
237+
'-3/4': '-75%',
238+
'-full': '-100%',
255239
}),
256240
letterSpacing: {
257241
tighter: '-0.05em',
@@ -288,8 +272,9 @@ module.exports = {
288272
...negative(theme('spacing')),
289273
}),
290274
maxHeight: (theme) => ({
291-
screen: '100vh',
292275
...theme('spacing'),
276+
full: '100%',
277+
screen: '100vh',
293278
}),
294279
maxWidth: (theme, { breakpoints }) => ({
295280
none: 'none',
@@ -381,6 +366,33 @@ module.exports = {
381366
width: (theme) => ({
382367
auto: 'auto',
383368
...theme('spacing'),
369+
'1/2': '50%',
370+
'1/3': '33.333333%',
371+
'2/3': '66.666667%',
372+
'1/4': '25%',
373+
'2/4': '50%',
374+
'3/4': '75%',
375+
'1/5': '20%',
376+
'2/5': '40%',
377+
'3/5': '60%',
378+
'4/5': '80%',
379+
'1/6': '16.666667%',
380+
'2/6': '33.333333%',
381+
'3/6': '50%',
382+
'4/6': '66.666667%',
383+
'5/6': '83.333333%',
384+
'1/12': '8.333333%',
385+
'2/12': '16.666667%',
386+
'3/12': '25%',
387+
'4/12': '33.333333%',
388+
'5/12': '41.666667%',
389+
'6/12': '50%',
390+
'7/12': '58.333333%',
391+
'8/12': '66.666667%',
392+
'9/12': '75%',
393+
'10/12': '83.333333%',
394+
'11/12': '91.666667%',
395+
full: '100%',
384396
screen: '100vw',
385397
min: 'min-content',
386398
max: 'max-content',
@@ -554,10 +566,20 @@ module.exports = {
554566
translate: (theme, { negative }) => ({
555567
...theme('spacing'),
556568
...negative(theme('spacing')),
557-
'-full': '-100%',
558-
'-1/2': '-50%',
559569
'1/2': '50%',
570+
'1/3': '33.333333%',
571+
'2/3': '66.666667%',
572+
'1/4': '25%',
573+
'2/4': '50%',
574+
'3/4': '75%',
560575
full: '100%',
576+
'-1/2': '-50%',
577+
'-1/3': '-33.333333%',
578+
'-2/3': '-66.666667%',
579+
'-1/4': '-25%',
580+
'-2/4': '-50%',
581+
'-3/4': '-75%',
582+
'-full': '-100%',
561583
}),
562584
skew: {
563585
'-12': '-12deg',

0 commit comments

Comments
 (0)