tailwindcss/src/plugins/justifyContent.js
2019-08-18 09:41:06 +02:00

28 lines
652 B
JavaScript

export default function() {
return function({ addUtilities, variants }) {
addUtilities(
{
'.justify-start': {
'justify-content': 'flex-start',
},
'.justify-end': {
'justify-content': 'flex-end',
},
'.justify-center': {
'justify-content': 'center',
},
'.justify-between': {
'justify-content': 'space-between',
},
'.justify-around': {
'justify-content': 'space-around',
},
'.justify-evenly': {
'justify-content': 'space-evenly',
},
},
variants('justifyContent')
)
}
}