Skip to content
Merged
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
2 changes: 1 addition & 1 deletion website/docs/extending/theming-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ user, and switching applies live — no page reload.
|-------|------|-------------|
| **ORO Moon** (default) | dark | The ORO brand palette: slate, gold, teal |
| **ORO Sun** | light | ORO Moon's light scheme for bright floors and printed reports |
| **Monokai** | dark | The classic editor palette |
| **Tokyo Night** | dark | [folke/tokyonight.nvim](https://github.com/folke/tokyonight.nvim) |
| **Tokyo Day** | light | Tokyo Night's day style |
| **Catppuccin Mocha** | dark | [catppuccin/palette](https://github.com/catppuccin/palette) |
| **Catppuccin Latte** | light | Catppuccin's light flavor |
| **Rosé Pine Moon** | dark | [rose-pine/palette](https://github.com/rose-pine/palette) |
| **Rosé Pine Dawn** | light | Rosé Pine's light variant |
| **Monokai** | dark | The classic editor palette |

## Selecting a theme

Expand Down
2 changes: 1 addition & 1 deletion website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const config: Config = {
preBodyTags: [
{
tagName: 'script',
innerHTML: `(function(){try{var t=localStorage.getItem('oro-theme')||'oro';if(t!=='oro'){document.documentElement.setAttribute('data-oro-theme',t);}var m=(t==='oro-sun'||t==='rose-pine-dawn')?'light':'dark';document.documentElement.setAttribute('data-theme',m);document.documentElement.setAttribute('data-theme-choice',m);}catch(e){}})();`,
innerHTML: `(function(){try{var t=localStorage.getItem('oro-theme')||'oro';if(t!=='oro'){document.documentElement.setAttribute('data-oro-theme',t);}var m=/^(oro-sun|tokyo-day|catppuccin-latte|rose-pine-dawn)$/.test(t)?'light':'dark';document.documentElement.setAttribute('data-theme',m);document.documentElement.setAttribute('data-theme-choice',m);}catch(e){}})();`,
},
],
}),
Expand Down
6 changes: 5 additions & 1 deletion website/src/components/OroThemePicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ import {useColorMode, type ColorMode} from '@docusaurus/theme-common';
const THEMES: Record<string, {label: string; mode: ColorMode}> = {
'oro': {label: 'ORO Moon', mode: 'dark'},
'oro-sun': {label: 'ORO Sun', mode: 'light'},
'monokai': {label: 'Monokai', mode: 'dark'},
'tokyo-night': {label: 'Tokyo Night', mode: 'dark'},
'tokyo-day': {label: 'Tokyo Day', mode: 'light'},
'catppuccin-mocha': {label: 'Catppuccin Mocha', mode: 'dark'},
'catppuccin-latte': {label: 'Catppuccin Latte', mode: 'light'},
'rose-pine-moon': {label: 'Rosé Pine Moon', mode: 'dark'},
'rose-pine-dawn': {label: 'Rosé Pine Dawn', mode: 'light'},
'monokai': {label: 'Monokai', mode: 'dark'},
};

export default function OroThemePicker(): ReactNode {
Expand Down
97 changes: 96 additions & 1 deletion website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ Notes:
script injected from docusaurus.config.ts and toggled by the navbar
OroThemePicker. Palettes mirror app/imports/client/themes/<name>.js.
The accent scale runs toward MORE contrast against the void: lighter steps
on dark themes, darker steps on the light ones (oro-sun, rose-pine-dawn).
on dark themes, darker steps on the light ones (oro-sun, tokyo-day,
catppuccin-latte, rose-pine-dawn).
On the ORO palettes the scale changes hue: gold is the brand accent (CTA,
logo wedge, inline links) and teal carries the softer interactive steps
(nav, sidebar, tags), as on the brand canvas. */
Expand Down Expand Up @@ -78,6 +79,100 @@ html[data-oro-theme='oro-sun'] {
--oro-illo-ink: #171B26;
}

html[data-oro-theme='tokyo-night'] {
--oro-color-void: #1a1b26;
--oro-color-surface: #16161e;
--oro-color-raised: #0C0E14;
--oro-color-border: #292e42;
--oro-color-border-strong: #3b4261;
--oro-color-border-muted: #545c7e;
--oro-color-accent: #7aa2f7;
--oro-color-accent-soft: #9bb8f9;
--oro-color-accent-softer: #bdd0fb;
--oro-color-text: #c0caf5;
--oro-color-text-muted: #a9b1d6;
--oro-color-text-faint: #737aa2;
--oro-color-cream: #c0caf5;
--oro-illo-pale: #E3EBFD;
--oro-illo-tint: #B4CAFB;
--oro-illo-accent: #7aa2f7;
--oro-illo-shade: #4E74C4;
--oro-illo-dark: #2E4A88;
--oro-illo-ink: #0C0E14;
}

/* Light theme: pairs with data-theme='light' (the picker sets both). */
html[data-oro-theme='tokyo-day'] {
--oro-color-void: #e1e2e7;
--oro-color-surface: #eff0f4;
--oro-color-raised: #d0d5e3;
--oro-color-border: #c4c8da;
--oro-color-border-strong: #a8aecb;
--oro-color-border-muted: #8990b3;
--oro-color-accent: #2e7de9;
--oro-color-accent-soft: #1f5fc0;
--oro-color-accent-softer: #16468f;
--oro-color-text: #3760bf;
--oro-color-text-muted: #6172b0;
--oro-color-text-faint: #848cb5;
--oro-color-cream: #24325f;
--oro-color-white: #1a2545;
--oro-color-hover-bg: rgba(0, 0, 0, 0.05);
--oro-illo-pale: #DCE6FA;
--oro-illo-tint: #A9C2F3;
--oro-illo-accent: #2e7de9;
--oro-illo-shade: #1F58A8;
--oro-illo-dark: #163B70;
--oro-illo-ink: #24325f;
}

html[data-oro-theme='catppuccin-mocha'] {
--oro-color-void: #1E1E2E;
--oro-color-surface: #181825;
--oro-color-raised: #11111B;
--oro-color-border: #313244;
--oro-color-border-strong: #45475A;
--oro-color-border-muted: #6C7086;
--oro-color-accent: #CBA6F7;
--oro-color-accent-soft: #DBBFF9;
--oro-color-accent-softer: #E8D5FB;
--oro-color-text: #CDD6F4;
--oro-color-text-muted: #BAC2DE;
--oro-color-text-faint: #9399B2;
--oro-color-cream: #CDD6F4;
--oro-illo-pale: #EEE4FD;
--oro-illo-tint: #DBBFF9;
--oro-illo-accent: #CBA6F7;
--oro-illo-shade: #9A72D0;
--oro-illo-dark: #5F4390;
--oro-illo-ink: #11111B;
}

/* Light theme: pairs with data-theme='light' (the picker sets both). */
html[data-oro-theme='catppuccin-latte'] {
--oro-color-void: #EFF1F5;
--oro-color-surface: #F7F8FA;
--oro-color-raised: #DCE0E8;
--oro-color-border: #CCD0DA;
--oro-color-border-strong: #BCC0CC;
--oro-color-border-muted: #9CA0B0;
--oro-color-accent: #8839EF;
--oro-color-accent-soft: #6C2BC4;
--oro-color-accent-softer: #521F96;
--oro-color-text: #4C4F69;
--oro-color-text-muted: #6C6F85;
--oro-color-text-faint: #8C8FA1;
--oro-color-cream: #3C3F57;
--oro-color-white: #2A2C3D;
--oro-color-hover-bg: rgba(0, 0, 0, 0.05);
--oro-illo-pale: #E9DCFC;
--oro-illo-tint: #C7A5F6;
--oro-illo-accent: #8839EF;
--oro-illo-shade: #6A2BC0;
--oro-illo-dark: #47197F;
--oro-illo-ink: #4C4F69;
}

html[data-oro-theme='monokai'] {
--oro-color-void: #272822;
--oro-color-surface: #1E1F1C;
Expand Down
Loading