Skip to content

Commit

Permalink
Update semantic values & nav
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarvz committed Jan 21, 2025
1 parent 9542240 commit 0fd4673
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
4 changes: 2 additions & 2 deletions www/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export default defineConfig({
integrations: [
starlight({
logo: {
src: "@/assets/fp-logo-type.svg",
replacesTitle: true
src: "@/assets/fp-logo.svg",
replacesTitle: false
},
title: "Fiberplane",
description:
Expand Down
23 changes: 22 additions & 1 deletion www/src/main.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,40 @@
@import "./variables.css";

:root {
--border-radius: 10px;
}

/*
NOTE: As Starlight overrides theme values by a [data-theme] selector that is
either "light" or "dark", we use a general selector so we can override with
semantic values.
*/
:root[data-theme] {
--sl-color-accent: var(--fg-brand);
--sl-color-gray-1: limegreen; /* DEV INDICATOR */
--sl-color-gray-2: var(--fg-default);
--sl-color-gray-3: var(--fg-muted);
--sl-color-gray-4: pink; /* DEV INDICATOR */
--sl-color-gray-6: var(--bg-emphasis);
--sl-color-gray-7: var(--bg-emphasis);

--sl-color-accent: var(--fg-brand);
--sl-color-white: var(--fg-default);
--sl-color-black: var(--bg-background);
--sl-color-hairline-shade: var(--border-default);
--sl-color-bg-nav: var(--sl-color-black);

--sl-color-bg: var(--bg-background);

--sl-color-text-accent: var(--fg-brand);

/* Banner WIP */
--sl-color-banner-bg: var(--flame-400);
--__sl-banner-text: black;

a.site-title {
color: var(--sl-color-text);
}

/* Example code blocks */
.expressive-code .frame pre {
background-color: var(--bg-input);
Expand Down

0 comments on commit 0fd4673

Please sign in to comment.