izaac-2/frontend/tailwind.config.js
Jakub Kaniecki 12c76e3e5a init
2025-05-18 16:23:03 +02:00

91 lines
2.5 KiB
JavaScript

/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
darkMode: 'class',
theme: {
extend: {
typography: {
DEFAULT: {
css: {
maxWidth: 'none',
color: 'inherit',
a: {
color: 'inherit',
textDecoration: 'none',
fontWeight: '500',
'&:hover': {
textDecoration: 'underline',
},
},
'h1, h2, h3, h4, h5, h6': {
color: 'inherit',
fontWeight: '600',
},
code: {
color: 'inherit',
fontWeight: '400',
},
'pre code': {
backgroundColor: 'transparent',
borderWidth: '0',
borderRadius: '0',
padding: '0',
fontWeight: '400',
color: 'inherit',
fontSize: 'inherit',
fontFamily: 'inherit',
lineHeight: 'inherit',
},
'pre': {
backgroundColor: 'rgb(17, 24, 39)',
color: 'rgb(229, 231, 235)',
},
'blockquote': {
fontWeight: '400',
fontStyle: 'italic',
color: 'inherit',
borderLeftWidth: '0.25rem',
borderLeftColor: 'rgb(156, 163, 175)',
quotes: '"\\201C""\\201D""\\2018""\\2019"',
},
'blockquote p:first-of-type::before': {
content: 'open-quote',
},
'blockquote p:last-of-type::after': {
content: 'close-quote',
},
'table': {
fontSize: 'inherit',
lineHeight: 'inherit',
},
'thead': {
color: 'inherit',
borderBottomColor: 'rgb(156, 163, 175)',
borderBottomWidth: '1px',
},
'thead th': {
fontWeight: '600',
verticalAlign: 'bottom',
},
'tbody tr': {
borderBottomColor: 'rgb(156, 163, 175)',
borderBottomWidth: '1px',
},
'tbody tr:last-child': {
borderBottomWidth: '0',
},
'tbody td': {
verticalAlign: 'top',
},
},
},
},
},
},
plugins: [
require('@tailwindcss/typography'),
],
}