From 2163cbd13bf9016f6cca93d801517f6a01386bf1 Mon Sep 17 00:00:00 2001 From: giles Date: Sun, 11 Jan 2026 12:57:23 +0000 Subject: [PATCH] Add Tailwind typography plugin for prose styling Enables proper markdown styling with prose-invert classes. Co-Authored-By: Claude Opus 4.5 --- artdag_common/constants.py | 13 ++++++++++++- pyproject.toml | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/artdag_common/constants.py b/artdag_common/constants.py index 6c6e7ca..f1898c0 100644 --- a/artdag_common/constants.py +++ b/artdag_common/constants.py @@ -3,7 +3,7 @@ Shared constants for Art-DAG servers. """ # CDN URLs -TAILWIND_CDN = "https://cdn.tailwindcss.com" +TAILWIND_CDN = "https://cdn.tailwindcss.com?plugins=typography" HTMX_CDN = "https://unpkg.com/htmx.org@1.9.10" CYTOSCAPE_CDN = "https://cdnjs.cloudflare.com/ajax/libs/cytoscape/3.28.1/cytoscape.min.js" DAGRE_CDN = "https://cdnjs.cloudflare.com/ajax/libs/dagre/0.8.5/dagre.min.js" @@ -42,6 +42,17 @@ tailwind.config = { 800: '#111827', 900: '#030712', } + }, + typography: { + invert: { + css: { + '--tw-prose-body': '#d1d5db', + '--tw-prose-headings': '#f9fafb', + '--tw-prose-links': '#60a5fa', + '--tw-prose-code': '#f9fafb', + '--tw-prose-pre-bg': '#1f2937', + } + } } } } diff --git a/pyproject.toml b/pyproject.toml index a896520..26ddb03 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "artdag-common" -version = "0.1.1" +version = "0.1.2" description = "Shared components for Art-DAG L1 and L2 servers" requires-python = ">=3.10" dependencies = [