Port textAlign module to plugin

This commit is contained in:
Adam Wathan 2019-01-09 13:12:28 -05:00
parent 7e2e27818c
commit fbeadb76cc
4 changed files with 12 additions and 12 deletions

10
src/plugins/textAlign.js Normal file
View file

@ -0,0 +1,10 @@
export default function () {
return function ({ addUtilities, config }) {
addUtilities({
'.text-left': { 'text-align': 'left' },
'.text-center': { 'text-align': 'center' },
'.text-right': { 'text-align': 'right' },
'.text-justify': { 'text-align': 'justify' },
}, config('modules.textAlign'))
}
}