From 304cf2e90f129377e0fd20f7e51f071758b2c055 Mon Sep 17 00:00:00 2001 From: upsiflu Date: Thu, 9 Jan 2025 15:02:36 +0100 Subject: [PATCH] docs(ui-docs): display funkwhale colors everywhere --- front/ui-docs/.vitepress/theme/Theme.vue | 9 ++++++++- front/ui-docs/components/ui/layout.md | 18 +++++++++--------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/front/ui-docs/.vitepress/theme/Theme.vue b/front/ui-docs/.vitepress/theme/Theme.vue index 6c6c34497..263960be7 100644 --- a/front/ui-docs/.vitepress/theme/Theme.vue +++ b/front/ui-docs/.vitepress/theme/Theme.vue @@ -16,7 +16,14 @@ const { Theme } = DefaultTheme } .Layout { - background-color: light-dark(white, black); + --vp-code-block-bg: light-dark(var(--fw-beige-200), var(--fw-gray-900)); + --vp-c-bg-alt: light-dark(var(--fw-beige-300), var(--fw-gray-850)); + --vp-c-divider: light-dark(var(--fw-beige-300), var(--fw-gray-850)); + --vp-code-line-highlight-color: light-dark(var(--fw-beige-300), var(--fw-gray-850)); + --vp-custom-block-details-bg: light-dark(var(--fw-beige-400), var(--fw-gray-800)); + --vp-nav-bg-color: light-dark(var(--fw-beige-100), var(--fw-gray-960)); + --vp-sidebar-bg-color: light-dark(var(--fw-beige-100), var(--fw-gray-960)); + background-color: light-dark(var(--fw-beige-100), var(--fw-gray-960)); } .VPNavBarTitle .title { diff --git a/front/ui-docs/components/ui/layout.md b/front/ui-docs/components/ui/layout.md index 036c4279c..e7af845dc 100644 --- a/front/ui-docs/components/ui/layout.md +++ b/front/ui-docs/components/ui/layout.md @@ -24,29 +24,29 @@ The following containers are responsive. Change your window's size or select a d - +