blowfish/tailwind.config.js

183 lines
7.4 KiB
JavaScript
Raw Permalink Normal View History

2022-09-10 14:05:37 -05:00
module.exports = {
content: [
"./layouts/**/*.html",
"./content/**/*.{html,md}",
"./themes/blowfish/layouts/**/*.html",
"./themes/blowfish/content/**/*.{html,md}",
2024-03-06 17:12:52 -06:00
"./node_modules/tw-elements/js/**/*.js"
2022-09-10 14:05:37 -05:00
],
darkMode: "class",
theme: {
2022-09-11 13:27:04 -05:00
screens: {
'sm': '640px',
'md': '853px',
'lg': '1024px',
'xl': '1280px',
'2xl': '1536px',
},
2022-09-10 14:05:37 -05:00
colors: {
transparent: "transparent",
neutral: {
DEFAULT: "rgba(var(--color-neutral), <alpha-value>)",
50: "rgba(var(--color-neutral-50), <alpha-value>)",
100: "rgba(var(--color-neutral-100), <alpha-value>)",
200: "rgba(var(--color-neutral-200), <alpha-value>)",
300: "rgba(var(--color-neutral-300), <alpha-value>)",
400: "rgba(var(--color-neutral-400), <alpha-value>)",
500: "rgba(var(--color-neutral-500), <alpha-value>)",
600: "rgba(var(--color-neutral-600), <alpha-value>)",
700: "rgba(var(--color-neutral-700), <alpha-value>)",
800: "rgba(var(--color-neutral-800), <alpha-value>)",
900: "rgba(var(--color-neutral-900), <alpha-value>)",
},
primary: {
50: "rgba(var(--color-primary-50), <alpha-value>)",
100: "rgba(var(--color-primary-100), <alpha-value>)",
200: "rgba(var(--color-primary-200), <alpha-value>)",
300: "rgba(var(--color-primary-300), <alpha-value>)",
400: "rgba(var(--color-primary-400), <alpha-value>)",
500: "rgba(var(--color-primary-500), <alpha-value>)",
600: "rgba(var(--color-primary-600), <alpha-value>)",
700: "rgba(var(--color-primary-700), <alpha-value>)",
800: "rgba(var(--color-primary-800), <alpha-value>)",
900: "rgba(var(--color-primary-900), <alpha-value>)",
},
secondary: {
50: "rgba(var(--color-secondary-50), <alpha-value>)",
100: "rgba(var(--color-secondary-100), <alpha-value>)",
200: "rgba(var(--color-secondary-200), <alpha-value>)",
300: "rgba(var(--color-secondary-300), <alpha-value>)",
400: "rgba(var(--color-secondary-400), <alpha-value>)",
500: "rgba(var(--color-secondary-500), <alpha-value>)",
600: "rgba(var(--color-secondary-600), <alpha-value>)",
700: "rgba(var(--color-secondary-700), <alpha-value>)",
800: "rgba(var(--color-secondary-800), <alpha-value>)",
900: "rgba(var(--color-secondary-900), <alpha-value>)",
},
},
extend: {
typography: ({ theme }) => ({
DEFAULT: {
css: {
"--tw-prose-body": theme("colors.neutral.700 / 1"),
"--tw-prose-headings": theme("colors.neutral.800 / 1"),
"--tw-prose-lead": theme("colors.neutral.500 / 1"),
"--tw-prose-links": theme("colors.primary.600 / 1"),
2022-09-10 14:05:37 -05:00
"--tw-prose-bold": theme("colors.neutral.900 / 1"),
"--tw-prose-counters": theme("colors.neutral.800 / 1"),
"--tw-prose-bullets": theme("colors.neutral.500 / 1"),
"--tw-prose-hr": theme("colors.neutral.200 / 1"),
"--tw-prose-quotes": theme("colors.neutral.700 / 1"),
"--tw-prose-quote-borders": theme("colors.primary.200 / 1"),
"--tw-prose-captions": theme("colors.neutral.500 / 1"),
"--tw-prose-code": theme("colors.secondary.700 / 1"),
"--tw-prose-pre-code": theme("colors.neutral.700 / 1"),
"--tw-prose-pre-bg": theme("colors.neutral.50 / 1"),
"--tw-prose-th-borders": theme("colors.neutral.500 / 1"),
"--tw-prose-td-borders": theme("colors.neutral.300 / 1"),
"--tw-prose-invert-body": theme("colors.neutral.300 / 1"),
"--tw-prose-invert-headings": theme("colors.neutral.50 / 1"),
"--tw-prose-invert-lead": theme("colors.neutral.500 / 1"),
"--tw-prose-invert-links": theme("colors.primary.400 / 1"),
"--tw-prose-invert-bold": theme("colors.neutral.DEFAULT / 1"),
"--tw-prose-invert-counters": theme("colors.neutral.400 / 1"),
"--tw-prose-invert-bullets": theme("colors.neutral.600 / 1"),
"--tw-prose-invert-hr": theme("colors.neutral.500 / 1"),
"--tw-prose-invert-quotes": theme("colors.neutral.200 / 1"),
"--tw-prose-invert-quote-borders": theme("colors.primary.900 / 1"),
"--tw-prose-invert-captions": theme("colors.neutral.400 / 1"),
"--tw-prose-invert-code": theme("colors.secondary.400 / 1"),
"--tw-prose-invert-pre-code": theme("colors.neutral.200 / 1"),
"--tw-prose-invert-pre-bg": theme("colors.neutral.700 / 1"),
"--tw-prose-invert-th-borders": theme("colors.neutral.500 / 1"),
"--tw-prose-invert-td-borders": theme("colors.neutral.700 / 1"),
a: {
2022-09-10 16:58:50 -05:00
textDecoration: "none",
2022-09-10 14:05:37 -05:00
textDecorationColor: theme("colors.primary.300 / 1"),
fontWeight: "500",
"&:hover": {
color: theme("colors.primary.600 / 1"),
2022-09-10 14:05:37 -05:00
textDecoration: "none",
borderRadius: "0.09rem",
},
},
"a code": {
color: "var(--tw-prose-code)",
},
kbd: {
backgroundColor: theme("colors.neutral.200 / 1"),
padding: "0.1rem 0.4rem",
borderRadius: "0.25rem",
fontSize: "0.9rem",
fontWeight: "600",
},
mark: {
color: theme("colors.neutral.800 / 1"),
2023-03-10 07:25:02 -06:00
backgroundColor: theme("colors.primary.600 / 1"),
2022-09-10 14:05:37 -05:00
padding: "0.1rem 0.2rem",
2023-03-10 07:25:02 -06:00
borderRadius: "0.25rem",
2022-09-10 14:05:37 -05:00
},
code:{
2023-01-05 15:30:49 -06:00
backgroundColor: theme("colors.neutral.50 / 1"),
2023-01-05 14:45:47 -06:00
paddingTop: "3px",
paddingBottom: "3px",
paddingLeft: "5px",
paddingRight: "5px",
2023-03-10 07:25:02 -06:00
borderRadius: "0.25rem",
},
'code::before': {
display: 'none'
},
'code::after': {
display: 'none'
},
'p::before': {
display: 'none'
},
'p::after': {
display: 'none'
},
2023-01-14 17:05:10 -06:00
'a.active': {
"text-decoration-color": theme("colors.primary.600 / 1"),
2023-01-14 17:50:34 -06:00
},
'p.active': {
"text-decoration-color": theme("colors.primary.600 / 1"),
2023-01-14 17:05:10 -06:00
}
2022-09-10 14:05:37 -05:00
},
},
invert: {
css: {
a: {
textDecorationColor: theme("colors.neutral.600 / 1"),
"&:hover": {
color: theme("colors.primary.400 / 1"),
},
2022-09-10 14:05:37 -05:00
},
kbd: {
color: theme("colors.neutral.200 / 1"),
backgroundColor: theme("colors.neutral.700 / 1"),
},
mark: {
2023-03-10 07:25:02 -06:00
backgroundColor: theme("colors.primary.400 / 1"),
2022-09-10 14:05:37 -05:00
},
code:{
2023-01-05 15:30:49 -06:00
backgroundColor: theme("colors.neutral.700 / 1"),
},
2023-01-14 17:05:10 -06:00
'a.active': {
"text-decoration-color": theme("colors.primary.400 / 1")
2023-01-14 17:50:34 -06:00
},
'p.active': {
"text-decoration-color": theme("colors.primary.400 / 1")
2023-01-14 17:05:10 -06:00
}
2022-09-10 14:05:37 -05:00
},
},
}),
},
},
2022-09-10 16:58:50 -05:00
plugins: [
require("@tailwindcss/typography"),
require('@tailwindcss/forms'),
require('tailwind-scrollbar')({ preferredStrategy: 'pseudoelements' })
2022-09-10 16:58:50 -05:00
],
2022-09-10 14:05:37 -05:00
};