From 8cefe9f0fa871da22297ead17984eea1fa1d0a63 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 20 Mar 2025 15:34:02 +0100 Subject: [PATCH] Add dark mode (#300) --- docs/.vuepress/components/ContactForm.vue | 4 +-- docs/.vuepress/components/ContentSection.vue | 4 +-- docs/.vuepress/components/ProcessStep.vue | 4 +-- docs/.vuepress/components/ProjectCard.vue | 4 +-- docs/.vuepress/components/ServiceCard.vue | 2 +- docs/.vuepress/components/TeamMember.vue | 6 ++-- docs/.vuepress/layouts/BlankLayout.vue | 4 ++- docs/.vuepress/styles/index.scss | 2 +- docs/index.md | 32 ++++++++++---------- 9 files changed, 32 insertions(+), 30 deletions(-) diff --git a/docs/.vuepress/components/ContactForm.vue b/docs/.vuepress/components/ContactForm.vue index 2a583a8..17d3171 100644 --- a/docs/.vuepress/components/ContactForm.vue +++ b/docs/.vuepress/components/ContactForm.vue @@ -1,5 +1,5 @@ @@ -22,4 +22,4 @@ defineProps<{ .highlight-number { color: var(--highlight-color); } - \ No newline at end of file + diff --git a/docs/.vuepress/components/ProjectCard.vue b/docs/.vuepress/components/ProjectCard.vue index 9fac5b0..e693710 100644 --- a/docs/.vuepress/components/ProjectCard.vue +++ b/docs/.vuepress/components/ProjectCard.vue @@ -3,7 +3,7 @@

{{ title }}

-

{{ description }}

+

{{ description }}

\ No newline at end of file + diff --git a/docs/.vuepress/components/ServiceCard.vue b/docs/.vuepress/components/ServiceCard.vue index e714f92..bdd0c31 100644 --- a/docs/.vuepress/components/ServiceCard.vue +++ b/docs/.vuepress/components/ServiceCard.vue @@ -1,7 +1,7 @@ @@ -37,4 +37,4 @@ .overlay-bg { background-color: var(--highlight-color-light); } - \ No newline at end of file + diff --git a/docs/.vuepress/layouts/BlankLayout.vue b/docs/.vuepress/layouts/BlankLayout.vue index 6109cd6..b1be377 100644 --- a/docs/.vuepress/layouts/BlankLayout.vue +++ b/docs/.vuepress/layouts/BlankLayout.vue @@ -18,6 +18,8 @@ export default { @import "tailwindcss/preflight.css" layer(base); @import "tailwindcss/utilities.css" layer(utilities); +@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *)); + /* Conflicts with vuepress */ @layer base { .vp-sidebar { @@ -54,4 +56,4 @@ export default { padding: 0 1rem; } } - \ No newline at end of file + diff --git a/docs/.vuepress/styles/index.scss b/docs/.vuepress/styles/index.scss index 6371762..10cab3e 100644 --- a/docs/.vuepress/styles/index.scss +++ b/docs/.vuepress/styles/index.scss @@ -17,4 +17,4 @@ h1, h2, h3, h4, h5, h6 { .font-sourcesans { font-family: 'Source Sans 3', sans-serif !important; -} \ No newline at end of file +} diff --git a/docs/index.md b/docs/index.md index 1b9f865..1b1735a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -4,9 +4,9 @@ layout: BlankLayout
- @@ -24,12 +24,12 @@ layout: BlankLayout
-
-
@@ -41,26 +41,26 @@ layout: BlankLayout