Move the typography plugin config into extend
https://tailwindcss.com/docs/upgrading-to-v2#update-typography-and-forms-plugins https://github.com/tailwindlabs/tailwindcss-typography/releases/tag/v0.3.0
This commit is contained in:
parent
3b0b7d37e3
commit
dc70dd5e87
|
@ -21,38 +21,38 @@ module.exports = {
|
|||
whitelist: ['bg-gray-200']
|
||||
},
|
||||
theme: {
|
||||
typography: (theme) => ({
|
||||
default: {
|
||||
css: {
|
||||
a: {
|
||||
color: theme('colors.blue.500')
|
||||
},
|
||||
code: {
|
||||
backgroundColor: theme('colors.gray.150'),
|
||||
fontWeight: theme('fontWeight.normal'),
|
||||
paddingBottom: theme('spacing.px'),
|
||||
paddingLeft: theme('spacing.1'),
|
||||
paddingRight: theme('spacing.1'),
|
||||
paddingTop: theme('spacing.px')
|
||||
},
|
||||
h2: {
|
||||
marginBottom: theme('spacing.2'),
|
||||
marginTop: theme('spacing.8')
|
||||
},
|
||||
pre: {
|
||||
backgroundColor: theme('colors.gray.150'),
|
||||
borderRadius: '0',
|
||||
color: theme('colors.gray.800'),
|
||||
padding: theme('spacing.6')
|
||||
},
|
||||
'code::before': false,
|
||||
'code::after': false,
|
||||
'pre code::before': false,
|
||||
'pre code::after': false
|
||||
}
|
||||
}
|
||||
}),
|
||||
extend: {
|
||||
typography: (theme) => ({
|
||||
DEFAULT: {
|
||||
css: {
|
||||
a: {
|
||||
color: theme('colors.blue.500')
|
||||
},
|
||||
code: {
|
||||
backgroundColor: theme('colors.gray.150'),
|
||||
fontWeight: theme('fontWeight.normal'),
|
||||
paddingBottom: theme('spacing.px'),
|
||||
paddingLeft: theme('spacing.1'),
|
||||
paddingRight: theme('spacing.1'),
|
||||
paddingTop: theme('spacing.px')
|
||||
},
|
||||
h2: {
|
||||
marginBottom: theme('spacing.2'),
|
||||
marginTop: theme('spacing.8')
|
||||
},
|
||||
pre: {
|
||||
backgroundColor: theme('colors.gray.150'),
|
||||
borderRadius: '0',
|
||||
color: theme('colors.gray.800'),
|
||||
padding: theme('spacing.6')
|
||||
},
|
||||
'code::before': false,
|
||||
'code::after': false,
|
||||
'pre code::before': false,
|
||||
'pre code::after': false
|
||||
}
|
||||
}
|
||||
}),
|
||||
colors: {
|
||||
inherit: 'inherit',
|
||||
|
||||
|
|
Loading…
Reference in a new issue