/** @type {import('tailwindcss').Config} */ const theme = { scheme: "Rosé Pine Moon", author: "Emilia Dunfelt ", base00: "#232136", base01: "#2a273f", base02: "#393552", base03: "#59546d", base04: "#817c9c", base05: "#e0def4", base06: "#f5f5f7", base07: "#d9d7e1", base08: "#ecebf0", base09: "#eb6f92", base0A: "#f6c177", base0B: "#ea9a97", base0C: "#3e8fb0", base0D: "#9ccfd8", base0E: "#c4a7e7", base0F: "#b9b9bc", } // // Dark // const theme = { // base00: "#282828", // ---- // base01: "#3c3836", // --- // base02: "#504945", // -- // base03: "#665c54", // - // base04: "#bdae93", // + // base05: "#d5c4a1", // ++ // base06: "#ebdbb2", // +++ // base07: "#fbf1c7", // ++++ // base08: "#fb4934", // red // base09: "#fe8019", // orange // base0A: "#fabd2f", // yellow // base0B: "#b8bb26", // green // base0C: "#8ec07c", // aqua/cyan // base0D: "#83a598", // blue // base0E: "#d3869b", // purple // base0F: "#d65d0e", // brown // } // // Light // const theme = { // base00: "#f9f5d7", // ---- // base01: "#ebdbb2", // --- // base02: "#d5c4a1", // -- // base03: "#bdae93", // - // base04: "#665c54", // + // base05: "#504945", // ++ // base06: "#3c3836", // +++ // base07: "#282828", // ++++ // base08: "#9d0006", // red // base09: "#af3a03", // orange // base0A: "#b57614", // yellow // base0B: "#79740e", // green // base0C: "#427b58", // aqua/cyan // base0D: "#076678", // blue // base0E: "#8f3f71", // purple // base0F: "#d65d0e", // brown // } // Utilities from tailwind typography's default config // https://github.com/tailwindlabs/tailwindcss-typography/blob/master/src/styles.js const round = (num) => num .toFixed(7) .replace(/(\.[0-9]+?)0+$/, "$1") .replace(/\.0$/, "") const rem = (px) => `${round(px / 16)}rem` const em = (px, base) => `${round(px / base)}em` module.exports = { content: [ "./pages/**/*.{js,ts,jsx,tsx}", "./styles/**/*.{ts,tsx}", "./components/**/*.{js,ts,jsx,tsx}", ], theme: { fontFamily: { sans: `system-ui, -apple-system, blinkmacsystemfont, segoe ui, helvetica neue, helvetica, ubuntu, roboto, sans-serif, apple color emoji, segoe ui emoji, segoe ui symbol, noto color emoji;`, display: `Jetbrains Mono, system-ui, -apple-system, blinkmacsystemfont, segoe ui, helvetica neue, helvetica, ubuntu, roboto, sans-serif, apple color emoji, segoe ui emoji, segoe ui symbol, noto color emoji;`, mono: `Jetbrains Mono, fira code, ui-monospace, hack, ibm plex mono, monospace, apple color emoji, segoe ui emoji, segoe ui symbol, noto color emoji`, }, extend: { colors: theme, }, typography: { DEFAULT: { css: { color: theme.base07, fontSize: rem(20), lineHeight: round(28 / 16), // Links a: { color: theme.base0A, "&:hover": { color: theme.base0C, }, textDecoration: "underline", fontWeight: "500", }, // Headlines h1: { color: theme.base0E, fontSize: rem(64), marginTop: em(12, 20), marginBottom: em(12, 20), lineHeight: round(24 / 20), fontWeight: "100", }, h2: { color: theme.base0D, fontSize: rem(24), fontWeight: "500", marginTop: em(32, 20), marginBottom: em(12, 20), }, h3: { color: theme.base0D, fontSize: rem(20), fontWeight: "500", marginTop: em(36, 20), marginBottom: em(12, 20), }, h4: { marginTop: em(36, 20), marginBottom: em(12, 20), lineHeight: round(32 / 20), color: theme.base0C, fontWeight: "700", }, "h2 + *": { marginTop: "0", }, "h3 + *": { marginTop: "0", }, "h4 + *": { marginTop: "0", }, // Body p: { marginTop: em(16, 14), marginBottom: em(16, 14), fontSize: rem(20), }, // Blockquotes blockquote: { marginTop: em(16, 14), marginBottom: em(16, 14), backgroundColor: theme.base01, paddingTop: 1, paddingRight: 16, paddingBottom: 1, paddingLeft: 16, borderRadius: rem(4), }, // Lists ol: { marginTop: em(20, 16), marginBottom: em(20, 16), paddingLeft: em(20, 16), listStyleType: "decimal", }, ul: { marginTop: em(20, 16), marginBottom: em(20, 16), paddingLeft: em(20, 16), listStyleType: "disc", }, li: { marginTop: em(8, 16), marginBottom: em(8, 16), }, 'ol[type="A"]': { listStyleType: "upper-alpha", }, 'ol[type="a"]': { listStyleType: "lower-alpha", }, 'ol[type="A" s]': { listStyleType: "upper-alpha", }, 'ol[type="a" s]': { listStyleType: "lower-alpha", }, 'ol[type="I"]': { listStyleType: "upper-roman", }, 'ol[type="i"]': { listStyleType: "lower-roman", }, 'ol[type="I" s]': { listStyleType: "upper-roman", }, 'ol[type="i" s]': { listStyleType: "lower-roman", }, 'ol[type="1"]': { listStyleType: "decimal", }, // Nested lists "ol > li": { paddingLeft: em(6, 14), }, "ul > li": { paddingLeft: em(6, 14), }, "> ul > li p": { marginTop: em(8, 14), marginBottom: em(8, 14), }, "> ul > li > *:first-child": { marginTop: em(16, 14), }, "> ul > li > *:last-child": { marginBottom: em(16, 14), }, "> ol > li > *:first-child": { marginTop: em(16, 14), }, "> ol > li > *:last-child": { marginBottom: em(16, 14), }, "ul ul, ul ol, ol ul, ol ol": { marginTop: em(8, 14), marginBottom: em(8, 14), }, // Dividers hr: { borderColor: theme.base03, marginTop: em(48, 16), marginBottom: em(48, 16), }, "hr + *": { marginTop: "0", }, pre: { fontSize: rem(16), backgroundColor: theme.base01, marginTop: rem(16), marginBottom: rem(16), border: `1px solid ${theme.base02}`, padding: 12, borderRadius: rem(8), overflow: "hidden", }, }, }, }, }, plugins: [require("@tailwindcss/typography")], }