From 27fc98a00f29c1bc6b060fe288ce884700c3a0e5 Mon Sep 17 00:00:00 2001 From: FujiApple Date: Mon, 23 Dec 2024 23:44:04 +0800 Subject: [PATCH 1/2] doc: add custom css (default theme) --- docs/astro.config.mjs | 4 ++++ docs/src/styles/custom.css | 29 +++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 docs/src/styles/custom.css diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index dc37a1c8..0f5dedad 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -7,6 +7,10 @@ export default defineConfig({ integrations: [ starlight({ title: 'Trippy', + customCss: [ + // Relative path to your custom CSS file + './src/styles/custom.css', + ], editLink: { baseUrl: 'https://github.com/fujiapple852/trippy/edit/master/docs/', }, diff --git a/docs/src/styles/custom.css b/docs/src/styles/custom.css new file mode 100644 index 00000000..df4b0c9f --- /dev/null +++ b/docs/src/styles/custom.css @@ -0,0 +1,29 @@ +/* Dark mode colors. */ +:root { + --sl-color-accent-low: #131e4f; + --sl-color-accent: #3447ff; + --sl-color-accent-high: #b3c7ff; + --sl-color-white: #ffffff; + --sl-color-gray-1: #eceef2; + --sl-color-gray-2: #c0c2c7; + --sl-color-gray-3: #888b96; + --sl-color-gray-4: #545861; + --sl-color-gray-5: #353841; + --sl-color-gray-6: #24272f; + --sl-color-black: #17181c; +} +/* Light mode colors. */ +:root[data-theme='light'] { + --sl-color-accent-low: #c7d6ff; + --sl-color-accent: #364bff; + --sl-color-accent-high: #182775; + --sl-color-white: #17181c; + --sl-color-gray-1: #24272f; + --sl-color-gray-2: #353841; + --sl-color-gray-3: #545861; + --sl-color-gray-4: #888b96; + --sl-color-gray-5: #c0c2c7; + --sl-color-gray-6: #eceef2; + --sl-color-gray-7: #f5f6f8; + --sl-color-black: #ffffff; +} \ No newline at end of file From a026a01843d33e29b074c144ea241a15d2a2fffa Mon Sep 17 00:00:00 2001 From: FujiApple Date: Mon, 23 Dec 2024 23:44:34 +0800 Subject: [PATCH 2/2] doc: add matrix social link --- docs/astro.config.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 0f5dedad..8545a9fb 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -31,6 +31,7 @@ export default defineConfig({ social: { 'github': 'https://github.com/fujiapple852/trippy', 'zulip': 'https://trippy.zulipchat.com', + 'matrix': 'https://matrix.to/#/#trippy-dev:matrix.org', 'x.com': 'https://x.com/FujiApple852v2', }, sidebar: [