coworking-stream-guide/tailwind.config.cjs
2023-06-17 16:24:00 +08:00

38 lines
842 B
JavaScript

/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {},
},
plugins: [
function ({ addComponents, theme }) {
addComponents({
h1: {
fontSize: theme("fontSize.3xl"),
fontWeight: theme("fontWeight.bold"),
marginBottom: theme("margin.2"),
},
h2: {
fontSize: theme("fontSize.2xl"),
fontWeight: theme("fontWeight.bold"),
marginBottom: theme("margin.1"),
},
h3: {
fontSize: theme("fontSize.xl"),
fontWeight: theme("fontWeight.bold"),
marginBottom: theme("margin.1"),
},
ul: {
listStyleType: "disc",
listStylePosition: "inside",
},
a: {
textDecoration: "underline",
},
p: {
marginBottom: theme("margin.6"),
},
});
},
],
};