Open firedev opened 1 year ago
Did you ever figure this out?
@malachaifrazier just made it myself:
h1, .h1 {
@apply text-4xl font-bold mb-4 mt-8;
}
h2, .h2 {
@apply text-3xl font-bold mb-3 mt-6;
}
h3, .h3 {
@apply text-2xl font-bold mb-2 mt-4;
}
code {
@apply px-4 py-2 font-bold;
}
p {
@apply mb-4;
}
ul, ol {
@apply mb-4;
}
ol {
@apply list-decimal mb-4 ml-8;
}
It's working for me. I added the plugin require in my tailwind.config.js:
module.exports = {
content: [
'./src/**/*.{html,md,liquid,erb,serb,rb}',
'./frontend/javascript/**/*.js',
],
theme: { ... },
plugins: [
require('@tailwindcss/typography'),
],
}
Hi. Tried to add it to
package.json
andpostcss.config.js
butclass="prose"
did nothing.and