set theme swap to have a better color for light theme
This commit is contained in:
@@ -1,59 +1,59 @@
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
const dotenv = require('dotenv')
|
||||
const dotenv = require("dotenv")
|
||||
|
||||
dotenv.config()
|
||||
|
||||
const defaultTitleStyles = Array.from(
|
||||
{ length: 6 },
|
||||
(_, k) => `h${k + 1}`
|
||||
(_, k) => `h${k + 1}`,
|
||||
).reduce(
|
||||
(acc, heading) => ({
|
||||
...acc,
|
||||
[heading]: {
|
||||
'margin-top': '0',
|
||||
'margin-bottom': '0.5em'
|
||||
}
|
||||
"margin-top": "0",
|
||||
"margin-bottom": "0.5em",
|
||||
},
|
||||
}),
|
||||
{}
|
||||
{},
|
||||
)
|
||||
|
||||
module.exports = {
|
||||
content: ['./src/**/*.{vue,js,ts}'],
|
||||
content: ["./src/**/*.{vue,js,ts}"],
|
||||
theme: {
|
||||
extend: {
|
||||
typography: () => ({
|
||||
DEFAULT: {
|
||||
css: {
|
||||
'font-size': '13pt',
|
||||
'font-family': '"Courier Prime", monospace',
|
||||
"font-size": "13pt",
|
||||
"font-family": '"Courier Prime", monospace',
|
||||
...defaultTitleStyles,
|
||||
p: {
|
||||
'margin-top': '0.8em',
|
||||
'margin-bottom': '0.8em',
|
||||
'text-align': 'justify'
|
||||
"margin-top": "0.8em",
|
||||
"margin-bottom": "0.8em",
|
||||
"text-align": "justify",
|
||||
},
|
||||
img: {
|
||||
'margin-top': 0,
|
||||
'margin-bottom': 0,
|
||||
'border-radius': '1rem'
|
||||
"margin-top": 0,
|
||||
"margin-bottom": 0,
|
||||
"border-radius": "1rem",
|
||||
},
|
||||
a: {
|
||||
'text-decoration': 'none',
|
||||
color: 'var(--color-success)'
|
||||
"text-decoration": "none",
|
||||
color: "var(--color-contrast-content)",
|
||||
},
|
||||
'a.btn-primary': {
|
||||
color: 'var(--color-secondary-content)'
|
||||
"a.btn-primary": {
|
||||
color: "var(--color-secondary-content)",
|
||||
},
|
||||
'a:hover': {
|
||||
'text-decoration': 'underline'
|
||||
"a:hover": {
|
||||
"text-decoration": "underline",
|
||||
},
|
||||
li: {
|
||||
'margin-top': 0,
|
||||
'margin-bottom': 0
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
"margin-top": 0,
|
||||
"margin-bottom": 0,
|
||||
},
|
||||
},
|
||||
},
|
||||
}),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user