Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ const config: Config = {
],
},
footer: {
style: 'dark',
style: 'light',
links: [
{
title: 'Documentation',
Expand Down Expand Up @@ -358,8 +358,9 @@ const config: Config = {
copyright: `Copyright © ${new Date().getFullYear()} Companion. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
// Backgrounds match --companion-surface-muted (src/css/companion-tokens.css); Prism sets them inline, so CSS can't
theme: { ...prismThemes.github, plain: { ...prismThemes.github.plain, backgroundColor: '#f0f0f0' } },
darkTheme: { ...prismThemes.vsDark, plain: { ...prismThemes.vsDark.plain, backgroundColor: '#202020' } },
},
} satisfies Preset.ThemeConfig,
}
Expand Down
3 changes: 2 additions & 1 deletion for-developers/module-development/local-modules.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Setting up the Development Folder
sidebar_label: '└─ Setting up a Dev Folder'
sidebar_label: 'Setting up a Dev Folder'
sidebar_class_name: sidebar-subitem
sidebar_position: 2
description: How to load modules in Companion during module development.
---
Expand Down
3 changes: 2 additions & 1 deletion for-developers/setting-up-WSL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Setting Up WSL for the Developer Environment
sidebar_label: '└─ WSL Setup Notes'
sidebar_label: 'WSL Setup Notes'
sidebar_class_name: sidebar-subitem
sidebar_position: 1.1
description: How to set up Windows System for Linux (WSL) for Companion development
---
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
"dependencies": {
"@docusaurus/core": "3.10.2",
"@docusaurus/preset-classic": "3.10.2",
"@fontsource-variable/inter": "^5.3.0",
"@fontsource/fira-code": "^5.3.0",
"@mdx-js/react": "^3.1.1",
"clsx": "^2.1.1",
"prism-react-renderer": "^2.4.1",
Expand Down
29 changes: 9 additions & 20 deletions src/components/HeroButtons.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
}

.primaryButton {
background-color: #2563eb;
/* The light-theme brand red in both themes; the dark-theme red is too light for white text. */
background-color: #d50215;
color: white;
padding: 0.75rem 1.5rem;
/* stack label + subtitle vertically */
Expand All @@ -31,14 +32,14 @@
}

.primaryButton:hover {
background-color: #1d4ed8;
background-color: rgb(170, 2, 17);
color: white;
text-decoration: none;
}

.secondaryButton {
background-color: #f3f4f6;
color: #374151;
background-color: var(--companion-surface);
color: var(--companion-body-text);
padding: 0.75rem 1.5rem;
display: inline-flex;
align-items: center;
Expand All @@ -47,27 +48,15 @@
border-radius: 0.375rem;
text-decoration: none;
font-weight: 500;
border: 1px solid #d1d5db;
border: 1px solid var(--companion-border-medium);
transition: all 0.2s;
}

.secondaryButton:hover {
background-color: #e5e7eb;
color: #374151;
background-color: var(--companion-action-hover);
color: var(--companion-text-strong);
text-decoration: none;
border-color: #9ca3af;
}

[data-theme='dark'] .secondaryButton {
background-color: #374151;
color: #f9fafb;
border-color: #4b5563;
}

[data-theme='dark'] .secondaryButton:hover {
background-color: #4b5563;
color: #f9fafb;
border-color: #6b7280;
border-color: var(--companion-action-focus);
}

/* Small subtitle text inside a button (e.g. "Win / Mac / Linux") */
Expand Down
44 changes: 44 additions & 0 deletions src/css/companion-tokens.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* Copy of bitfocus/companion `shared-lib/theme/tokens.css`, which the Companion UI and its bundled user guide share.
Keep the values in step with that file so the website matches the in-app docs. */
:root {
--companion-font-sans:
'Inter Variable', system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji';
--companion-font-mono: 'Fira Code', ui-monospace, monospace;

--companion-brand: #d50215;
--companion-brand-hover: rgb(170, 2, 17);
--companion-accent-active: #941d1b;
--companion-app-frame-bg: #f3f4f7;
--companion-app-bg: #f9f9f9;
--companion-surface: #fff;
--companion-surface-muted: #f0f0f0;
--companion-border: #ddd;
--companion-border-medium: #bbb;
--companion-text-strong: #000;
--companion-body-text: rgba(37, 42.92, 54.02, 0.95);
--companion-text-secondary: #666;
--companion-selection-bg: #e5e8eb;
--companion-selection-text: #303842;
--companion-action-hover: #e8ebee;
--companion-action-focus: #66788a;
}

:root[data-theme='dark'] {
--companion-brand: #f0444f;
--companion-brand-hover: #ff6b74;
--companion-accent-active: #e0434a;
--companion-app-frame-bg: #0e0e0e;
--companion-app-bg: #131313;
--companion-surface: #181818;
--companion-surface-muted: #202020;
--companion-border: #303030;
--companion-border-medium: #4b4b4b;
--companion-text-strong: #fff;
--companion-body-text: #dfdfdf;
--companion-text-secondary: #a9a9a9;
--companion-selection-bg: #303030;
--companion-selection-text: #e3e3e3;
--companion-action-hover: #2f2f2f;
--companion-action-focus: #999999;
}
Loading
Loading