mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
27 lines
877 B
JavaScript
27 lines
877 B
JavaScript
export default function () {
|
|
return function ({ addUtilities, config }) {
|
|
addUtilities({
|
|
'.italic': { 'font-style': 'italic' },
|
|
'.roman': { 'font-style': 'normal' },
|
|
|
|
'.uppercase': { 'text-transform': 'uppercase' },
|
|
'.lowercase': { 'text-transform': 'lowercase' },
|
|
'.capitalize': { 'text-transform': 'capitalize' },
|
|
'.normal-case': { 'text-transform': 'none' },
|
|
|
|
'.underline': { 'text-decoration': 'underline' },
|
|
'.line-through': { 'text-decoration': 'line-through' },
|
|
'.no-underline': { 'text-decoration': 'none' },
|
|
|
|
'.antialiased': {
|
|
'-webkit-font-smoothing': 'antialiased',
|
|
'-moz-osx-font-smoothing': 'grayscale',
|
|
},
|
|
'.subpixel-antialiased': {
|
|
'-webkit-font-smoothing': 'auto',
|
|
'-moz-osx-font-smoothing': 'auto',
|
|
},
|
|
}, config('modules.textStyle'))
|
|
}
|
|
}
|