From e5cf82811d628d22342d128919dabbe74e933faa Mon Sep 17 00:00:00 2001 From: Kim <56411016+kimsauce@users.noreply.github.com> Date: Wed, 7 Jun 2023 21:04:37 +0200 Subject: [PATCH] Update custom.css (#295) Added code snippet for table row color override. This will sync settings with the user's custom CSS. --- .changeset/beige-mugs-matter.md | 5 +++++ packages/docusaurus-theme-redoc/src/custom.css | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .changeset/beige-mugs-matter.md diff --git a/.changeset/beige-mugs-matter.md b/.changeset/beige-mugs-matter.md new file mode 100644 index 00000000..00035b2d --- /dev/null +++ b/.changeset/beige-mugs-matter.md @@ -0,0 +1,5 @@ +--- +"docusaurus-theme-redoc": patch +--- + +Add dark mode support to tables inside markdown diff --git a/packages/docusaurus-theme-redoc/src/custom.css b/packages/docusaurus-theme-redoc/src/custom.css index f5f919f9..d4109f53 100644 --- a/packages/docusaurus-theme-redoc/src/custom.css +++ b/packages/docusaurus-theme-redoc/src/custom.css @@ -11,3 +11,8 @@ max-width: 4rem; max-height: 4rem; } + +/* Table row color override to match your Docusaurus CSS */ +.redocusaurus table > tbody > tr { + background-color: var(--ifm-table-cell-color) !important; +}