mirror of
https://github.com/mikkelsvartveit/astro-personal-website.git
synced 2025-12-22 19:22:37 +00:00
28 lines
787 B
JavaScript
28 lines
787 B
JavaScript
/** @type {import('tailwindcss').Config} */
|
|
const defaultTheme = require("tailwindcss/defaultTheme");
|
|
const plugin = require("tailwindcss/plugin");
|
|
|
|
export default {
|
|
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
|
|
theme: {
|
|
fontFamily: {
|
|
sans: ["'Nunito'", ...defaultTheme.fontFamily.sans],
|
|
serif: ["'Source Serif Pro'", ...defaultTheme.fontFamily.serif],
|
|
mono: ["'Source Code Pro'", ...defaultTheme.fontFamily.mono],
|
|
},
|
|
extend: {},
|
|
},
|
|
future: {
|
|
hoverOnlyWhenSupported: true,
|
|
},
|
|
plugins: [
|
|
require("@tailwindcss/typography"),
|
|
|
|
plugin(function ({ addVariant }) {
|
|
addVariant(
|
|
"prose-inline-code",
|
|
'&.prose :where(:not(pre)>code):not(:where([class~="not-prose"] *))',
|
|
);
|
|
}),
|
|
],
|
|
};
|