Replies: 3 comments
-
Any news whether this will be implemented? |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you'd like to add this to your project right now, remember to use Tailwind's const plugin = require('tailwindcss/plugin')
const utilities = plugin(({ addUtilities }) => {
addUtilities({
'.inset-center': {
top: '50%',
left: '50%',
'@apply -translate-x-1/2 -translate-y-1/2': {},
},
'.inset-y-center': {
top: '50%',
'@apply -translate-y-1/2': {},
},
'.inset-x-center': {
left: '50%',
'@apply -translate-x-1/2': {},
},
})
})
module.exports = utilities |
Beta Was this translation helpful? Give feedback.
0 replies
-
Any updates? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There is a utility class I use a lot in my app to center an element:
Would it be useful to add it to Tailwind? We currently have theses classes:
P-S: I made a cheat sheet about Tailwind if it can help you code faster.
Beta Was this translation helpful? Give feedback.
All reactions