From ec01fd15552aa1d4845fb5ad1e2df4183e11750f Mon Sep 17 00:00:00 2001 From: Damian Stasik <920747+damianstasik@users.noreply.github.com> Date: Mon, 18 Sep 2023 14:59:54 +0200 Subject: [PATCH] Make docs a bit easier on the eyes --- src/theme/DocItem/Content.tsx | 45 ++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/src/theme/DocItem/Content.tsx b/src/theme/DocItem/Content.tsx index 6adf4311..34c2734c 100644 --- a/src/theme/DocItem/Content.tsx +++ b/src/theme/DocItem/Content.tsx @@ -1,9 +1,52 @@ import React from "react"; +import clsx from "clsx"; import MDXContent from "@theme/MDXContent"; +const classNames = [ + "prose", + "lg:prose-lg", + "text-gray-800", + "dark:text-gray-200", + "dark:prose-invert", + "marker:text-gray-600", + "dark:marker:text-gray-400", + + //
+ "prose-hr:my-6", + "prose-hr:border-gray-200", + "prose-hr:border-solid", + "dark:prose-hr:border-gray-800", + + //
+  "prose-pre:bg-blue-900",
+
+  // 
+  "prose-code:px-1.5",
+  "prose-code:text-gray-800",
+  "dark:prose-code:text-gray-200",
+  "dark:prose-code:border-gray-600",
+  "prose-code:before:content-none",
+  "prose-code:after:content-none",
+
+  // 
+  "prose-a:text-gray-800",
+  "hover:prose-a:text-black",
+  "dark:prose-a:text-gray-200",
+  "dark:hover:prose-a:text-white",
+
+  // 
+  "prose-strong:text-gray-800",
+  "dark:prose-strong:text-gray-200",
+
+  // 

,

,

+ "prose-h1:text-4xl", + "prose-h2:text-3xl", + "prose-h3:text-2xl", +]; + export default function DocItemContent({ children }) { return ( -
+
{children}
);