mirror of
https://github.com/umputun/reproxy.git
synced 2025-02-16 18:34:30 +02:00
122 lines
2.8 KiB
JavaScript
122 lines
2.8 KiB
JavaScript
|
const colors = require('tailwindcss/colors')
|
||
|
const { spacing } = require('tailwindcss/defaultTheme')
|
||
|
|
||
|
module.exports = {
|
||
|
mode: 'jit',
|
||
|
purge: ['src/**/*.njk', 'src/**/*.js', '.eleventy.js'],
|
||
|
darkMode: 'media',
|
||
|
theme: {
|
||
|
extend: {
|
||
|
container: {
|
||
|
center: true,
|
||
|
sm: {
|
||
|
with: '100%',
|
||
|
},
|
||
|
},
|
||
|
colors: {
|
||
|
orange: colors.orange,
|
||
|
},
|
||
|
typography: (theme) => ({
|
||
|
DEFAULT: {
|
||
|
css: {
|
||
|
maxWidth: '100%',
|
||
|
paddingLeft: spacing[12],
|
||
|
paddingRight: spacing[12],
|
||
|
color: theme('colors.gray.700'),
|
||
|
'h2,h3,h4': {
|
||
|
'scroll-margin-top': spacing[24],
|
||
|
},
|
||
|
'blockquote p:first-of-type::before': false,
|
||
|
'blockquote p:last-of-type::after': false,
|
||
|
'code::before': false,
|
||
|
'code::after': false,
|
||
|
img: {
|
||
|
margin: spacing[2],
|
||
|
display: 'initial',
|
||
|
},
|
||
|
code: {
|
||
|
wordWrap: 'break-word',
|
||
|
fontWeight: 'normal',
|
||
|
backgroundColor: theme('colors.gray.100'),
|
||
|
color: theme('colors.gray.700'),
|
||
|
paddingTop: spacing[1],
|
||
|
paddingBottom: spacing[1],
|
||
|
paddingLeft: spacing[2],
|
||
|
paddingRight: spacing[2],
|
||
|
borderRadius: spacing[1],
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
dark: {
|
||
|
css: [
|
||
|
{
|
||
|
color: theme('colors.gray.400'),
|
||
|
'[class~="lead"]': {
|
||
|
color: theme('colors.gray.300'),
|
||
|
},
|
||
|
a: {
|
||
|
color: theme('colors.gray.200'),
|
||
|
},
|
||
|
strong: {
|
||
|
color: theme('colors.gray.200'),
|
||
|
},
|
||
|
'ol > li::before': {
|
||
|
color: theme('colors.gray.400'),
|
||
|
},
|
||
|
'ul > li::before': {
|
||
|
backgroundColor: theme('colors.gray.600'),
|
||
|
},
|
||
|
hr: {
|
||
|
borderColor: theme('colors.gray.300'),
|
||
|
},
|
||
|
blockquote: {
|
||
|
color: theme('colors.gray.300'),
|
||
|
borderLeftColor: theme('colors.gray.600'),
|
||
|
},
|
||
|
h1: {
|
||
|
color: theme('colors.gray.200'),
|
||
|
},
|
||
|
h2: {
|
||
|
color: theme('colors.gray.200'),
|
||
|
},
|
||
|
h3: {
|
||
|
color: theme('colors.gray.200'),
|
||
|
},
|
||
|
h4: {
|
||
|
color: theme('colors.gray.200'),
|
||
|
},
|
||
|
'figure figcaption': {
|
||
|
color: theme('colors.gray.400'),
|
||
|
},
|
||
|
code: {
|
||
|
backgroundColor: theme('colors.gray.700'),
|
||
|
color: theme('colors.gray.200'),
|
||
|
},
|
||
|
'a code': {
|
||
|
color: theme('colors.gray.200'),
|
||
|
},
|
||
|
pre: {
|
||
|
color: theme('colors.gray.300'),
|
||
|
backgroundColor: theme('colors.gray.800'),
|
||
|
},
|
||
|
thead: {
|
||
|
color: theme('colors.gray.200'),
|
||
|
borderBottomColor: theme('colors.gray.400'),
|
||
|
},
|
||
|
'tbody tr': {
|
||
|
borderBottomColor: theme('colors.gray.600'),
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
}),
|
||
|
},
|
||
|
},
|
||
|
variants: {
|
||
|
extend: {
|
||
|
typography: ['responsive', 'dark'],
|
||
|
},
|
||
|
},
|
||
|
plugins: [require('@tailwindcss/typography')],
|
||
|
}
|