mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Source fontStyle options from config
This commit is contained in:
parent
90e28a087a
commit
bef8775818
@ -1,11 +1,11 @@
|
||||
export default function({ variants }) {
|
||||
return function({ addUtilities }) {
|
||||
export default function() {
|
||||
return function({ addUtilities, config }) {
|
||||
addUtilities(
|
||||
{
|
||||
'.italic': { 'font-style': 'italic' },
|
||||
'.not-italic': { 'font-style': 'normal' },
|
||||
},
|
||||
variants
|
||||
config('variants.fontStyle')
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user