2022-10-07 13:55:39 +08:00
|
|
|
// @ts-check
|
2023-08-16 23:29:22 +08:00
|
|
|
const { fontFamily } = require('tailwindcss/defaultTheme')
|
2022-07-17 21:40:41 +08:00
|
|
|
const colors = require('tailwindcss/colors')
|
|
|
|
|
2023-08-16 23:29:22 +08:00
|
|
|
/** @type {import("tailwindcss/types").Config } */
|
2022-07-17 21:40:41 +08:00
|
|
|
module.exports = {
|
|
|
|
content: [
|
2023-08-16 23:29:22 +08:00
|
|
|
'./node_modules/pliny/**/*.js',
|
|
|
|
'./app/**/*.{js,ts,jsx,tsx}',
|
|
|
|
'./pages/**/*.{js,ts,tsx}',
|
|
|
|
'./components/**/*.{js,ts,tsx}',
|
|
|
|
'./layouts/**/*.{js,ts,tsx}',
|
2022-07-17 21:40:41 +08:00
|
|
|
'./data/**/*.mdx',
|
|
|
|
],
|
|
|
|
darkMode: 'class',
|
|
|
|
theme: {
|
|
|
|
extend: {
|
|
|
|
lineHeight: {
|
|
|
|
11: '2.75rem',
|
|
|
|
12: '3rem',
|
|
|
|
13: '3.25rem',
|
|
|
|
14: '3.5rem',
|
|
|
|
},
|
|
|
|
fontFamily: {
|
2023-08-16 23:29:22 +08:00
|
|
|
sans: ['var(--font-space-grotesk)', ...fontFamily.sans],
|
2022-07-17 21:40:41 +08:00
|
|
|
},
|
|
|
|
colors: {
|
|
|
|
primary: colors.teal,
|
2023-08-16 23:29:22 +08:00
|
|
|
gray: colors.neutral,
|
2022-07-17 21:40:41 +08:00
|
|
|
},
|
2023-08-16 23:29:22 +08:00
|
|
|
typography: ({ theme }) => ({
|
2022-07-17 21:40:41 +08:00
|
|
|
DEFAULT: {
|
|
|
|
css: {
|
|
|
|
a: {
|
|
|
|
color: theme('colors.primary.500'),
|
|
|
|
'&:hover': {
|
2023-08-16 23:29:22 +08:00
|
|
|
color: `${theme('colors.primary.600')}`,
|
2022-07-17 21:40:41 +08:00
|
|
|
},
|
|
|
|
code: { color: theme('colors.primary.400') },
|
|
|
|
},
|
2023-08-16 23:29:22 +08:00
|
|
|
'h1,h2': {
|
2022-07-17 21:40:41 +08:00
|
|
|
fontWeight: '700',
|
|
|
|
letterSpacing: theme('letterSpacing.tight'),
|
|
|
|
},
|
|
|
|
h3: {
|
|
|
|
fontWeight: '600',
|
|
|
|
},
|
|
|
|
code: {
|
|
|
|
color: theme('colors.pink.500'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2023-08-16 23:29:22 +08:00
|
|
|
invert: {
|
2022-07-17 21:40:41 +08:00
|
|
|
css: {
|
|
|
|
a: {
|
|
|
|
color: theme('colors.primary.500'),
|
|
|
|
'&:hover': {
|
2023-08-16 23:29:22 +08:00
|
|
|
color: `${theme('colors.primary.400')}`,
|
2022-07-17 21:40:41 +08:00
|
|
|
},
|
|
|
|
code: { color: theme('colors.primary.400') },
|
|
|
|
},
|
2023-08-16 23:29:22 +08:00
|
|
|
'h1,h2,h3,h4,h5,h6': {
|
2022-07-17 21:40:41 +08:00
|
|
|
color: theme('colors.gray.100'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
plugins: [require('@tailwindcss/forms'), require('@tailwindcss/typography')],
|
|
|
|
}
|