2021-08-11 05:28:33 +00:00
|
|
|
const colors = require("tailwindcss/colors");
|
|
|
|
|
2022-01-13 04:56:30 +00:00
|
|
|
function varWithOpacity(variable) {
|
|
|
|
return ({ opacityValue }) => {
|
|
|
|
if (opacityValue === undefined) {
|
|
|
|
return `rgb(var(${variable}))`;
|
|
|
|
}
|
|
|
|
return `rgba(var(${variable}), ${opacityValue})`;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2021-08-11 05:28:33 +00:00
|
|
|
module.exports = {
|
2021-12-24 23:52:47 +00:00
|
|
|
content: [
|
|
|
|
"./layouts/**/*.html",
|
|
|
|
"./content/**/*.{html,md}",
|
|
|
|
"./themes/congo/layouts/**/*.html",
|
|
|
|
"./themes/congo/content/**/*.{html,md}",
|
|
|
|
],
|
2021-10-29 00:15:00 +00:00
|
|
|
darkMode: "class",
|
2021-08-11 05:28:33 +00:00
|
|
|
theme: {
|
|
|
|
extend: {
|
2022-01-13 04:56:30 +00:00
|
|
|
colors: {
|
|
|
|
transparent: "transparent",
|
|
|
|
neutral: {
|
|
|
|
DEFAULT: varWithOpacity("--color-neutral"),
|
|
|
|
50: varWithOpacity("--color-neutral-50"),
|
|
|
|
100: varWithOpacity("--color-neutral-100"),
|
|
|
|
200: varWithOpacity("--color-neutral-200"),
|
|
|
|
300: varWithOpacity("--color-neutral-300"),
|
|
|
|
400: varWithOpacity("--color-neutral-400"),
|
|
|
|
500: varWithOpacity("--color-neutral-500"),
|
|
|
|
600: varWithOpacity("--color-neutral-600"),
|
|
|
|
700: varWithOpacity("--color-neutral-700"),
|
|
|
|
800: varWithOpacity("--color-neutral-800"),
|
|
|
|
900: varWithOpacity("--color-neutral-900"),
|
|
|
|
},
|
|
|
|
primary: {
|
|
|
|
50: varWithOpacity("--color-primary-50"),
|
|
|
|
100: varWithOpacity("--color-primary-100"),
|
|
|
|
200: varWithOpacity("--color-primary-200"),
|
|
|
|
300: varWithOpacity("--color-primary-300"),
|
|
|
|
400: varWithOpacity("--color-primary-400"),
|
|
|
|
500: varWithOpacity("--color-primary-500"),
|
|
|
|
600: varWithOpacity("--color-primary-600"),
|
|
|
|
700: varWithOpacity("--color-primary-700"),
|
|
|
|
800: varWithOpacity("--color-primary-800"),
|
|
|
|
900: varWithOpacity("--color-primary-900"),
|
|
|
|
},
|
|
|
|
secondary: {
|
|
|
|
50: varWithOpacity("--color-secondary-50"),
|
|
|
|
100: varWithOpacity("--color-secondary-100"),
|
|
|
|
200: varWithOpacity("--color-secondary-200"),
|
|
|
|
300: varWithOpacity("--color-secondary-300"),
|
|
|
|
400: varWithOpacity("--color-secondary-400"),
|
|
|
|
500: varWithOpacity("--color-secondary-500"),
|
|
|
|
600: varWithOpacity("--color-secondary-600"),
|
|
|
|
700: varWithOpacity("--color-secondary-700"),
|
|
|
|
800: varWithOpacity("--color-secondary-800"),
|
|
|
|
900: varWithOpacity("--color-secondary-900"),
|
|
|
|
},
|
|
|
|
},
|
2021-08-11 05:28:33 +00:00
|
|
|
typography: (theme) => ({
|
|
|
|
DEFAULT: {
|
|
|
|
css: [
|
|
|
|
{
|
2021-08-20 07:02:08 +00:00
|
|
|
color: theme("colors.neutral.700"),
|
2021-08-11 05:28:33 +00:00
|
|
|
a: {
|
|
|
|
color: theme("colors.primary.700"),
|
|
|
|
textDecoration: "underline",
|
2021-08-18 02:54:18 +00:00
|
|
|
textDecorationColor: theme("colors.primary.300"),
|
2021-08-11 05:28:33 +00:00
|
|
|
fontWeight: "500",
|
|
|
|
"&:hover": {
|
2022-01-08 23:42:08 +00:00
|
|
|
color: `${theme("colors.neutral.DEFAULT")} !important`,
|
|
|
|
textDecoration: "none !important",
|
|
|
|
backgroundColor: `${theme("colors.primary.600")} !important`,
|
2021-12-24 23:52:47 +00:00
|
|
|
borderRadius: "0.09rem",
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
},
|
2021-08-20 07:02:08 +00:00
|
|
|
strong: {
|
|
|
|
color: theme("colors.neutral.900"),
|
|
|
|
},
|
|
|
|
"ol > li::before": {
|
|
|
|
color: theme("colors.neutral.800"),
|
|
|
|
},
|
|
|
|
"ul > li::before": {
|
|
|
|
backgroundColor: theme("colors.neutral.500"),
|
|
|
|
},
|
|
|
|
hr: {
|
|
|
|
borderColor: theme("colors.neutral.200"),
|
|
|
|
},
|
2021-08-18 02:54:18 +00:00
|
|
|
blockquote: {
|
2021-08-20 07:02:08 +00:00
|
|
|
color: theme("colors.neutral.800"),
|
2021-08-18 02:54:18 +00:00
|
|
|
borderLeftColor: theme("colors.primary.200"),
|
2022-01-11 05:17:49 +00:00
|
|
|
borderRightColor: theme("colors.primary.200"),
|
2021-08-18 02:54:18 +00:00
|
|
|
},
|
2021-08-20 07:02:08 +00:00
|
|
|
h1: {
|
2021-12-21 02:22:45 +00:00
|
|
|
color: theme("colors.neutral.900"),
|
2021-08-20 07:02:08 +00:00
|
|
|
position: "relative",
|
|
|
|
},
|
2021-08-11 05:28:33 +00:00
|
|
|
h2: {
|
2021-08-20 07:02:08 +00:00
|
|
|
color: theme("colors.neutral.800"),
|
2021-08-11 05:28:33 +00:00
|
|
|
position: "relative",
|
|
|
|
},
|
|
|
|
h3: {
|
2021-08-20 07:02:08 +00:00
|
|
|
color: theme("colors.neutral.800"),
|
2021-08-11 05:28:33 +00:00
|
|
|
position: "relative",
|
|
|
|
},
|
|
|
|
h4: {
|
2021-08-20 07:02:08 +00:00
|
|
|
color: theme("colors.neutral.800"),
|
2021-08-11 05:28:33 +00:00
|
|
|
position: "relative",
|
|
|
|
},
|
|
|
|
code: {
|
|
|
|
color: theme("colors.secondary.700"),
|
|
|
|
},
|
2021-11-03 22:56:30 +00:00
|
|
|
"a code": {
|
|
|
|
color: theme("colors.secondary.700"),
|
|
|
|
},
|
2021-08-12 08:31:38 +00:00
|
|
|
"pre code": {
|
2021-08-20 07:02:08 +00:00
|
|
|
color: theme("colors.neutral.700"),
|
2021-08-12 08:31:38 +00:00
|
|
|
},
|
2021-08-11 05:28:33 +00:00
|
|
|
pre: {
|
2021-08-20 07:02:08 +00:00
|
|
|
color: theme("colors.neutral.700"),
|
|
|
|
backgroundColor: theme("colors.neutral.50"),
|
|
|
|
},
|
|
|
|
"pre code": {
|
|
|
|
color: theme("colors.neutral.700"),
|
|
|
|
},
|
2022-01-08 23:42:08 +00:00
|
|
|
"thead th": {
|
2021-08-20 07:02:08 +00:00
|
|
|
color: theme("colors.neutral.800"),
|
2022-01-08 23:42:08 +00:00
|
|
|
},
|
|
|
|
"thead tr": {
|
2021-08-20 07:02:08 +00:00
|
|
|
borderBottomColor: theme("colors.neutral.500"),
|
|
|
|
},
|
|
|
|
"tbody tr": {
|
|
|
|
borderBottomColor: theme("colors.neutral.300"),
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
kbd: {
|
2021-08-20 07:02:08 +00:00
|
|
|
backgroundColor: theme("colors.neutral.200"),
|
2021-08-11 05:28:33 +00:00
|
|
|
padding: "0.1rem 0.4rem",
|
|
|
|
borderRadius: "0.25rem",
|
|
|
|
fontSize: "0.9rem",
|
|
|
|
fontWeight: "600",
|
|
|
|
},
|
2021-08-16 04:03:39 +00:00
|
|
|
mark: {
|
|
|
|
backgroundColor: theme("colors.secondary.200"),
|
|
|
|
padding: "0.1rem 0.2rem",
|
|
|
|
borderRadius: "0.12rem",
|
|
|
|
},
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
light: {
|
|
|
|
css: [
|
|
|
|
{
|
2021-12-21 02:22:45 +00:00
|
|
|
color: theme("colors.neutral.300"),
|
2021-08-11 05:28:33 +00:00
|
|
|
a: {
|
|
|
|
color: theme("colors.primary.400"),
|
2021-08-20 07:02:08 +00:00
|
|
|
textDecorationColor: theme("colors.neutral.500"),
|
2021-11-03 22:56:30 +00:00
|
|
|
"&:hover": {
|
2022-01-08 23:42:08 +00:00
|
|
|
color: `${theme("colors.neutral.DEFAULT")} !important`,
|
|
|
|
textDecoration: "none !important",
|
2021-11-03 22:56:30 +00:00
|
|
|
},
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
strong: {
|
2021-08-20 07:02:08 +00:00
|
|
|
color: theme("colors.neutral.DEFAULT"),
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
"ol > li::before": {
|
2021-08-20 07:02:08 +00:00
|
|
|
color: theme("colors.neutral.400"),
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
"ul > li::before": {
|
2021-08-20 07:02:08 +00:00
|
|
|
backgroundColor: theme("colors.neutral.600"),
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
hr: {
|
2021-08-20 07:02:08 +00:00
|
|
|
borderColor: theme("colors.neutral.500"),
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
blockquote: {
|
2021-08-20 07:02:08 +00:00
|
|
|
color: theme("colors.neutral.200"),
|
2021-08-18 02:54:18 +00:00
|
|
|
borderLeftColor: theme("colors.primary.900"),
|
2022-01-11 05:17:49 +00:00
|
|
|
borderRightColor: theme("colors.primary.900"),
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
h1: {
|
2021-08-20 07:02:08 +00:00
|
|
|
color: theme("colors.neutral.DEFAULT"),
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
h2: {
|
2021-12-21 02:22:45 +00:00
|
|
|
color: theme("colors.neutral.50"),
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
h3: {
|
2021-12-21 02:22:45 +00:00
|
|
|
color: theme("colors.neutral.50"),
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
h4: {
|
2021-12-21 02:22:45 +00:00
|
|
|
color: theme("colors.neutral.50"),
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
"figure figcaption": {
|
2021-08-20 07:02:08 +00:00
|
|
|
color: theme("colors.neutral.400"),
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
code: {
|
|
|
|
color: theme("colors.secondary.400"),
|
|
|
|
},
|
|
|
|
"a code": {
|
2021-11-03 22:56:30 +00:00
|
|
|
color: theme("colors.secondary.400"),
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
pre: {
|
2021-08-20 07:02:08 +00:00
|
|
|
color: theme("colors.neutral.200"),
|
|
|
|
backgroundColor: theme("colors.neutral.700"),
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
2021-08-13 05:10:10 +00:00
|
|
|
"pre code": {
|
2021-08-20 07:02:08 +00:00
|
|
|
color: theme("colors.neutral.200"),
|
2021-08-13 05:10:10 +00:00
|
|
|
},
|
2022-01-08 23:42:08 +00:00
|
|
|
"thead th": {
|
2021-08-20 07:02:08 +00:00
|
|
|
color: theme("colors.neutral.DEFAULT"),
|
2022-01-08 23:42:08 +00:00
|
|
|
},
|
|
|
|
"thead tr": {
|
2021-08-20 07:02:08 +00:00
|
|
|
borderBottomColor: theme("colors.neutral.500"),
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
"tbody tr": {
|
2021-08-20 07:02:08 +00:00
|
|
|
borderBottomColor: theme("colors.neutral.700"),
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
kbd: {
|
2021-08-20 07:02:08 +00:00
|
|
|
backgroundColor: theme("colors.neutral.700"),
|
|
|
|
color: theme("colors.neutral.300"),
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
2021-08-16 04:03:39 +00:00
|
|
|
mark: {
|
|
|
|
backgroundColor: theme("colors.secondary.400"),
|
|
|
|
},
|
2021-08-11 05:28:33 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
},
|
|
|
|
},
|
2021-12-24 23:52:47 +00:00
|
|
|
plugins: [require("@tailwindcss/typography")],
|
2021-08-11 05:28:33 +00:00
|
|
|
};
|