tailwindcss/src/plugins/textStyle.js

30 lines
929 B
JavaScript
Raw Normal View History

2019-01-11 12:29:33 -05:00
export default function() {
return function({ addUtilities, config }) {
addUtilities(
{
'.italic': { 'font-style': 'italic' },
'.roman': { 'font-style': 'normal' },
2019-01-11 12:29:33 -05:00
'.uppercase': { 'text-transform': 'uppercase' },
'.lowercase': { 'text-transform': 'lowercase' },
'.capitalize': { 'text-transform': 'capitalize' },
'.normal-case': { 'text-transform': 'none' },
2019-01-11 12:29:33 -05:00
'.underline': { 'text-decoration': 'underline' },
'.line-through': { 'text-decoration': 'line-through' },
'.no-underline': { 'text-decoration': 'none' },
2019-01-11 12:29:33 -05:00
'.antialiased': {
'-webkit-font-smoothing': 'antialiased',
'-moz-osx-font-smoothing': 'grayscale',
},
'.subpixel-antialiased': {
'-webkit-font-smoothing': 'auto',
'-moz-osx-font-smoothing': 'auto',
},
},
2019-01-11 12:29:33 -05:00
config('modules.textStyle')
)
}
}