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
47 changes: 47 additions & 0 deletions ui/src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,53 @@ body {
--diff-remove-line: #d14d41;
}

/* Ayu Mirage - Official Ayu Mirage theme */
[data-theme="ayu-mirage"].dark {
--background: #242936;
--foreground: #cccac2;
--card: #282e3b;
--card-foreground: #cccac2;
--popover: #282e3b;
--popover-foreground: #cccac2;
--primary: #ffcc66;
--primary-foreground: #805500;
--secondary: #303743;
--secondary-foreground: #cccac2;
--muted: #1f2430;
--muted-foreground: #707a8c;
--accent: #3a4252;
--accent-foreground: #cccac2;
--destructive: #f27983;
--destructive-foreground: #242936;
--border: #171b24;
--input: #303743;
--ring: #ffcc66;
--chart-1: #ffcc66;
--chart-2: #87d96c;
--chart-3: #ffa659;
--chart-4: #dfbfff;
--chart-5: #73d0ff;
--sidebar: #1f2430;
--sidebar-foreground: #cccac2;
--sidebar-primary: #ffcc66;
--sidebar-primary-foreground: #805500;
--sidebar-accent: #282e3b;
--sidebar-accent-foreground: #cccac2;
--sidebar-border: #171b24;
--sidebar-ring: #ffcc66;
--tree-hover: #63759926;
--tree-selected: #409fff40;
--turn-border: #171b24;
--terminal-bg: #1f2430;
--terminal-fg: #d5ff80;
--diff-add: #87d96c33;
--diff-remove: #f2798333;
--diff-add-line: #87d96c;
--diff-remove-line: #f27983;
--diff-modify: #80bfff33;
--diff-modify-line: #80bfff;
}

/* Theme Variants - Light Themes */

/* Alucard - Dracula light variant */
Expand Down
3 changes: 2 additions & 1 deletion ui/src/lib/api-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ export type ThemeColorScheme =
| "catppuccin-mocha"
| "catppuccin-macchiato"
| "catppuccin-frappe"
| "catppuccin-latte";
| "catppuccin-latte"
| "ayu-mirage";

export interface FileNode {
id: string;
Expand Down
3 changes: 2 additions & 1 deletion ui/src/lib/app/domains/app-preferences.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ export function createAppPreferencesDomain(
};

const initializePreferences = () => {
const savedColorScheme = getColorScheme();
applyThemeState(getThemeMode());
colorScheme = getColorScheme();
colorScheme = savedColorScheme;
ensureColorSchemeForMode();
syncAppliedColorScheme();
preferredIde = readPreferredIde();
Expand Down
16 changes: 14 additions & 2 deletions ui/src/lib/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export type ThemeColorScheme =
| "catppuccin-macchiato"
| "catppuccin-frappe"
| "alucard"
| "catppuccin-latte";
| "catppuccin-latte"
| "ayu-mirage";

export type ThemeMetadata = {
id: ThemeColorScheme;
Expand Down Expand Up @@ -159,6 +160,16 @@ export const THEME_METADATA: ThemeMetadata[] = [
foreground: "#c6d0f5",
},
},
{
id: "ayu-mirage",
name: "Ayu Mirage",
mode: "dark",
preview: {
background: "#242936",
primary: "#ffcc66",
foreground: "#cccac2",
},
},
];

function resolveStoredThemeMode(): ThemeMode | null {
Expand Down Expand Up @@ -190,7 +201,8 @@ function resolveStoredColorScheme(): ThemeColorScheme | null {
storedScheme === "catppuccin-macchiato" ||
storedScheme === "catppuccin-frappe" ||
storedScheme === "alucard" ||
storedScheme === "catppuccin-latte"
storedScheme === "catppuccin-latte" ||
storedScheme === "ayu-mirage"
? storedScheme
: null;
}
Expand Down
Loading