Skip to content

Commit 92d4fa8

Browse files
committed
feat: add animation to supported properties
1 parent c3a6c58 commit 92d4fa8

3 files changed

Lines changed: 64 additions & 34 deletions

File tree

dist/tailwind.css

Lines changed: 24 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tailwind.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

removeUnsupported.js

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -142,69 +142,77 @@ module.exports = (options = {debug: false}) => {
142142
module.exports.postcss = true
143143

144144
const supportedProperties = {
145-
'color': true,
145+
'animation': true,
146+
'animation-delay': true,
147+
'animation-direction': true,
148+
'animation-duration': true,
149+
'animation-fill-mode': true,
150+
'animation-iteration-count': true,
151+
'animation-name': true,
152+
'animation-timing-function': true,
146153
'background': true,
147154
'background-color': true,
148-
'placeholder-color': true,
149155
'background-image': true,
150-
'background-repeat': ['repeat', 'repeat-x', 'repeat-y', 'no-repeat'],
151156
'background-position': true,
157+
'background-repeat': ['repeat', 'repeat-x', 'repeat-y', 'no-repeat'],
152158
'background-size': true,
153-
'border-color': true,
154-
'border-top-color': true,
155-
'border-right-color': true,
156159
'border-bottom-color': true,
157-
'border-left-color': true,
158-
'border-width': true,
159-
'border-top-width': true,
160-
'border-right-width': true,
160+
'border-bottom-left-radius': true,
161+
'border-bottom-right-radius': true,
161162
'border-bottom-width': true,
163+
'border-color': true,
164+
'border-left-color': true,
162165
'border-left-width': true,
163166
'border-radius': true,
167+
'border-right-color': true,
168+
'border-right-width': true,
169+
'border-top-color': true,
164170
'border-top-left-radius': true,
165171
'border-top-right-radius': true,
166-
'border-bottom-right-radius': true,
167-
'border-bottom-left-radius': true,
172+
'border-top-width': true,
173+
'border-width': true,
174+
'clip-path': true,
175+
'color': true,
168176
'font': true,
169177
'font-family': true,
170178
'font-size': true,
171179
'font-style': ['italic', 'normal'],
172180
'font-weight': true,
173-
'text-align': ['left', 'center', 'right'],
174-
'text-decoration': ['none', 'line-through', 'underline'],
175-
'text-transform': ['none', 'capitalize', 'uppercase', 'lowercase'],
176-
'transform': true,
181+
'height': true,
182+
'horizontal-align': ['left', 'center', 'right', 'stretch'],
177183
'letter-spacing': true,
178184
'line-height': true,
179-
'z-index': true,
180-
'clip-path': true,
181-
'vertical-align': ['top', 'center', 'bottom', 'stretch'],
182-
'horizontal-align': ['left', 'center', 'right', 'stretch'],
183185
'margin': true,
184-
'margin-top': true,
185-
'margin-right': true,
186186
'margin-bottom': true,
187187
'margin-left': true,
188-
'width': true,
189-
'height': true,
190-
'min-width': true,
188+
'margin-right': true,
189+
'margin-top': true,
191190
'min-height': true,
191+
'min-width': true,
192+
'opacity': true,
192193
'padding': true,
193-
'padding-top': true,
194-
'padding-right': true,
195194
'padding-bottom': true,
196195
'padding-left': true,
196+
'padding-right': true,
197+
'padding-top': true,
198+
'placeholder-color': true,
199+
'text-align': ['left', 'center', 'right'],
200+
'text-decoration': ['none', 'line-through', 'underline'],
201+
'text-transform': ['none', 'capitalize', 'uppercase', 'lowercase'],
202+
'transform': true,
203+
'vertical-align': ['top', 'center', 'bottom', 'stretch'],
197204
'visibility': ['visible', 'collapse'],
198-
'opacity': true,
205+
'width': true,
206+
'z-index': true,
199207
}
200208

201209
const unsupportedPseudoSelectors = [
202-
':hover',
203210
':focus-within',
211+
':hover',
204212
]
205213
const unsupportedValues = [
206-
'min-content',
207214
'max-content',
215+
'min-content',
216+
'vh',
208217
'vw',
209-
'vh'
210218
]

0 commit comments

Comments
 (0)