Skip to content

Commit e694a72

Browse files
no need for variant anymore,change default DEFAULT
1 parent 5c4d048 commit e694a72

File tree

3 files changed

+12
-75
lines changed

3 files changed

+12
-75
lines changed

notes.org

+3
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44

55

66
* TODO Have a look on how to use org file, and then export it to markdown files, don't commit markdown, push org only.
7+
8+
* TODO update the cheatsheet generator, and remove most of the stuff from tailwindcss config, we don't needed anymore because we use JIT.
9+
* TODO We also don't need to enable most of the modifiers because they are generated as needed.

src/_css/components/button.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
}
4949

5050
.tooltip {
51-
@apply cursor-pointer relative inline-block border-b-1 border-dotted;
51+
@apply cursor-pointer relative inline-block border-b border-dotted;
5252

5353
}
5454

src/_css/tailwind.config.js

+8-74
Original file line numberDiff line numberDiff line change
@@ -193,18 +193,17 @@ module.exports = {
193193
},
194194
borderColor: (theme) => ({
195195
...theme('colors'),
196-
default: theme('colors.gray.300', 'currentColor'),
196+
DEFAULT: theme('colors.gray.300', 'currentColor'),
197197
}),
198198
borderRadius: {
199199
none: '0',
200200
sm: '0.125rem',
201-
default: '0.25rem',
201+
DEFAULT: '0.25rem',
202202
lg: '0.5rem',
203203
full: '9999px',
204204
},
205205
borderWidth: {
206-
default: '1px',
207-
1: '1px',
206+
DEFAULT: '1px',
208207
0: '0',
209208
0.125: '0.125rem',
210209
0.25: '0.25rem',
@@ -221,7 +220,7 @@ module.exports = {
221220
8: '8px',
222221
},
223222
boxShadow: {
224-
default:
223+
DEFAULT:
225224
'0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)',
226225
md:
227226
'0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
@@ -236,7 +235,7 @@ module.exports = {
236235
},
237236
cursor: {
238237
auto: 'auto',
239-
default: 'default',
238+
DEFAULT: 'default',
240239
pointer: 'pointer',
241240
wait: 'wait',
242241
text: 'text',
@@ -254,11 +253,11 @@ module.exports = {
254253
},
255254
flexGrow: {
256255
0: '0',
257-
default: '1',
256+
DEFAULT: '1',
258257
},
259258
flexShrink: {
260259
0: '0',
261-
default: '1',
260+
DEFAULT: '1',
262261
},
263262
fontFamily: {
264263
sans: [
@@ -420,72 +419,7 @@ module.exports = {
420419
50: '50',
421420
},
422421
},
423-
variants: {
424-
alignContent: ['responsive'],
425-
alignItems: ['responsive'],
426-
alignSelf: ['responsive'],
427-
appearance: ['responsive'],
428-
backgroundAttachment: ['responsive'],
429-
backgroundColor: ['responsive', 'hover', 'focus'],
430-
backgroundPosition: ['responsive'],
431-
backgroundRepeat: ['responsive'],
432-
backgroundSize: ['responsive'],
433-
borderCollapse: ['responsive'],
434-
borderColor: ['responsive', 'hover', 'focus'],
435-
borderRadius: ['responsive'],
436-
borderStyle: ['responsive'],
437-
borderWidth: ['responsive'],
438-
boxShadow: ['responsive', 'hover', 'focus'],
439-
cursor: ['responsive'],
440-
display: ['responsive'],
441-
fill: ['responsive'],
442-
flex: ['responsive'],
443-
flexDirection: ['responsive'],
444-
flexGrow: ['responsive'],
445-
flexShrink: ['responsive'],
446-
flexWrap: ['responsive'],
447-
float: ['responsive'],
448-
fontFamily: ['responsive'],
449-
fontSize: ['responsive'],
450-
fontSmoothing: ['responsive'],
451-
fontStyle: ['responsive'],
452-
fontWeight: ['responsive', 'hover', 'focus'],
453-
height: ['responsive'],
454-
inset: ['responsive'],
455-
justifyContent: ['responsive'],
456-
letterSpacing: ['responsive'],
457-
lineHeight: ['responsive'],
458-
listStylePosition: ['responsive'],
459-
listStyleType: ['responsive'],
460-
margin: ['responsive'],
461-
maxHeight: ['responsive'],
462-
maxWidth: ['responsive'],
463-
minHeight: ['responsive'],
464-
minWidth: ['responsive'],
465-
objectFit: ['responsive'],
466-
objectPosition: ['responsive'],
467-
opacity: ['responsive'],
468-
order: ['responsive'],
469-
outline: ['responsive', 'focus'],
470-
overflow: ['responsive'],
471-
padding: ['responsive'],
472-
pointerEvents: ['responsive'],
473-
position: ['responsive'],
474-
resize: ['responsive'],
475-
stroke: ['responsive'],
476-
tableLayout: ['responsive'],
477-
textAlign: ['responsive'],
478-
textColor: ['responsive', 'hover', 'focus'],
479-
textDecoration: ['responsive', 'hover', 'focus'],
480-
textTransform: ['responsive'],
481-
userSelect: ['responsive'],
482-
verticalAlign: ['responsive'],
483-
visibility: ['responsive', 'hover', 'group-hover'],
484-
whitespace: ['responsive'],
485-
width: ['responsive'],
486-
wordBreak: ['responsive'],
487-
zIndex: ['responsive'],
488-
},
422+
variants: {},
489423
corePlugins: {},
490424
plugins: [],
491425
}

0 commit comments

Comments
 (0)