From 530b85136da8ab5828559e39f2e84b83e936e552 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 23 May 2023 11:11:19 +0200 Subject: [PATCH] docs: handle color mode in volta embed --- docs/components/content/VoltaEmbed.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/components/content/VoltaEmbed.vue b/docs/components/content/VoltaEmbed.vue index fe5475e3..986cc982 100644 --- a/docs/components/content/VoltaEmbed.vue +++ b/docs/components/content/VoltaEmbed.vue @@ -11,6 +11,7 @@ const props = defineProps({ }) const appConfig = useAppConfig() +const colorMode = useColorMode() -const src = computed(() => `https://volta.net/embed/${props.token}?gray=${appConfig.ui.gray}&primary=${appConfig.ui.primary}`) +const src = computed(() => `https://volta.net/embed/${props.token}?theme=${colorMode.value}&gray=${appConfig.ui.gray}&primary=${appConfig.ui.primary}`)