From 456cf011b36de91c9936994b1fa45703adcd309b Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Thu, 3 Jul 2025 10:56:21 +0300 Subject: Initial fork of chrismwilliams/astro-theme-cactus theme --- tailwind.config.ts | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 tailwind.config.ts (limited to 'tailwind.config.ts') diff --git a/tailwind.config.ts b/tailwind.config.ts new file mode 100644 index 0000000..75f4547 --- /dev/null +++ b/tailwind.config.ts @@ -0,0 +1,89 @@ +import type { Config } from "tailwindcss"; + +export default { + plugins: [require("@tailwindcss/typography")], + theme: { + extend: { + typography: () => ({ + DEFAULT: { + css: { + a: { + textUnderlineOffset: "2px", + "&:hover": { + "@media (hover: hover)": { + textDecorationColor: "var(--color-link)", + textDecorationThickness: "2px", + }, + }, + }, + blockquote: { + borderLeftWidth: "0", + }, + code: { + border: "1px dotted #666", + borderRadius: "2px", + }, + kbd: { + "&:where([data-theme='dark'], [data-theme='dark'] *)": { + background: "var(--color-global-text)", + }, + }, + hr: { + borderTopStyle: "dashed", + }, + strong: { + fontWeight: "700", + }, + sup: { + marginInlineStart: "calc(var(--spacing) * 0.5)", + a: { + "&:after": { + content: "']'", + }, + "&:before": { + content: "'['", + }, + "&:hover": { + "@media (hover: hover)": { + color: "var(--color-link)", + }, + }, + }, + }, + /* Table */ + "tbody tr": { + borderBottomWidth: "none", + }, + tfoot: { + borderTop: "1px dashed #666", + }, + thead: { + borderBottomWidth: "none", + }, + "thead th": { + borderBottom: "1px dashed #666", + fontWeight: "700", + }, + 'th[align="center"], td[align="center"]': { + "text-align": "center", + }, + 'th[align="right"], td[align="right"]': { + "text-align": "right", + }, + 'th[align="left"], td[align="left"]': { + "text-align": "left", + }, + }, + }, + sm: { + css: { + code: { + fontSize: "var(--text-sm)", + fontWeight: "400", + }, + }, + }, + }), + }, + }, +} satisfies Config; -- cgit v1.2.3