congo/tailwind.config.js

224 lines
7.3 KiB
JavaScript
Raw Normal View History

2021-08-11 05:28:33 +00:00
const colors = require("tailwindcss/colors");
module.exports = {
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: {
colors: {
transparent: "transparent",
2021-08-20 07:02:08 +00:00
neutral: {
DEFAULT: "var(--color-neutral)",
50: "var(--color-neutral-50)",
100: "var(--color-neutral-100)",
200: "var(--color-neutral-200)",
300: "var(--color-neutral-300)",
400: "var(--color-neutral-400)",
500: "var(--color-neutral-500)",
600: "var(--color-neutral-600)",
700: "var(--color-neutral-700)",
800: "var(--color-neutral-800)",
900: "var(--color-neutral-900)",
},
primary: {
50: "var(--color-primary-50)",
100: "var(--color-primary-100)",
200: "var(--color-primary-200)",
300: "var(--color-primary-300)",
400: "var(--color-primary-400)",
500: "var(--color-primary-500)",
600: "var(--color-primary-600)",
700: "var(--color-primary-700)",
800: "var(--color-primary-800)",
900: "var(--color-primary-900)",
},
secondary: {
50: "var(--color-secondary-50)",
100: "var(--color-secondary-100)",
200: "var(--color-secondary-200)",
300: "var(--color-secondary-300)",
400: "var(--color-secondary-400)",
500: "var(--color-secondary-500)",
600: "var(--color-secondary-600)",
700: "var(--color-secondary-700)",
800: "var(--color-secondary-800)",
900: "var(--color-secondary-900)",
},
2021-08-11 05:28:33 +00:00
},
extend: {
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",
textDecorationColor: theme("colors.primary.300"),
2021-08-11 05:28:33 +00:00
fontWeight: "500",
"&:hover": {
color: `${theme("colors.neutral.DEFAULT")} !important`,
textDecoration: "none !important",
backgroundColor: `${theme("colors.primary.600")} !important`,
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"),
},
blockquote: {
2021-08-20 07:02:08 +00:00
color: theme("colors.neutral.800"),
borderLeftColor: theme("colors.primary.200"),
2022-01-11 05:17:49 +00:00
borderRightColor: theme("colors.primary.200"),
},
2021-08-20 07:02:08 +00:00
h1: {
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"),
},
"pre code": {
2021-08-20 07:02:08 +00:00
color: theme("colors.neutral.700"),
},
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"),
},
"thead th": {
2021-08-20 07:02:08 +00:00
color: theme("colors.neutral.800"),
},
"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",
},
mark: {
backgroundColor: theme("colors.secondary.200"),
padding: "0.1rem 0.2rem",
borderRadius: "0.12rem",
},
2021-08-11 05:28:33 +00:00
},
],
},
light: {
css: [
{
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": {
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"),
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: {
color: theme("colors.neutral.50"),
2021-08-11 05:28:33 +00:00
},
h3: {
color: theme("colors.neutral.50"),
2021-08-11 05:28:33 +00:00
},
h4: {
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
},
"pre code": {
2021-08-20 07:02:08 +00:00
color: theme("colors.neutral.200"),
},
"thead th": {
2021-08-20 07:02:08 +00:00
color: theme("colors.neutral.DEFAULT"),
},
"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
},
mark: {
backgroundColor: theme("colors.secondary.400"),
},
2021-08-11 05:28:33 +00:00
},
],
},
}),
},
},
plugins: [require("@tailwindcss/typography")],
2021-08-11 05:28:33 +00:00
};