我是following the docs为 Typography Tailwind 插件构建名为“maincolors”的自定义颜色主题,如下所示:
theme: {
colors: {
dark: '#1c1c1c',
midup: '#565656',
middle: '#969393',
light: '#e3e3e3',
white: '#ffffff',
black: '#000000',
},
extend: {
typography: ({theme}) => ({
maincolors: {
css: {
'--tw-prose-headings': theme('colors.dark'),
},
},
},
}
现在,如何将“maincolors”主题应用到前面?
最佳答案
我找到了:
class="prose prose-maincolors"
关于tailwind-css - 如何应用 Tailwind Typography 自定义颜色主题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75754847/