mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-07-08 22:05:16 +02:00
feat: add gruvbox dark theme (#140)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { catppuccinMacchiato } from '../lib/theme/themes/catppuccin';
|
import { catppuccinMacchiato } from '../lib/theme/themes/catppuccin';
|
||||||
import { githubLight } from '../lib/theme/themes/github';
|
import { githubLight } from '../lib/theme/themes/github';
|
||||||
|
import { gruvboxDefault } from '../lib/theme/themes/gruvbox';
|
||||||
import { hotdogStandDefault } from '../lib/theme/themes/hotdog-stand';
|
import { hotdogStandDefault } from '../lib/theme/themes/hotdog-stand';
|
||||||
import { monokaiProDefault } from '../lib/theme/themes/monokai-pro';
|
import { monokaiProDefault } from '../lib/theme/themes/monokai-pro';
|
||||||
import { rosePineDefault } from '../lib/theme/themes/rose-pine';
|
import { rosePineDefault } from '../lib/theme/themes/rose-pine';
|
||||||
@@ -17,6 +18,7 @@ export function useGenerateThemeCss() {
|
|||||||
rosePineDefault,
|
rosePineDefault,
|
||||||
catppuccinMacchiato,
|
catppuccinMacchiato,
|
||||||
githubLight,
|
githubLight,
|
||||||
|
gruvboxDefault,
|
||||||
hotdogStandDefault,
|
hotdogStandDefault,
|
||||||
]
|
]
|
||||||
.map(getThemeCSS)
|
.map(getThemeCSS)
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { resolveAppearance } from './appearance';
|
|||||||
import { catppuccin } from './themes/catppuccin';
|
import { catppuccin } from './themes/catppuccin';
|
||||||
import { dracula } from './themes/dracula';
|
import { dracula } from './themes/dracula';
|
||||||
import { github } from './themes/github';
|
import { github } from './themes/github';
|
||||||
|
import { gruvbox } from './themes/gruvbox';
|
||||||
import { hotdogStand } from './themes/hotdog-stand';
|
import { hotdogStand } from './themes/hotdog-stand';
|
||||||
import { monokaiPro } from './themes/monokai-pro';
|
import { monokaiPro } from './themes/monokai-pro';
|
||||||
import { nord } from './themes/nord';
|
import { nord } from './themes/nord';
|
||||||
@@ -22,8 +23,9 @@ const allThemes = [
|
|||||||
...relaxing,
|
...relaxing,
|
||||||
...rosePine,
|
...rosePine,
|
||||||
...github,
|
...github,
|
||||||
|
...gruvbox,
|
||||||
...monokaiPro,
|
...monokaiPro,
|
||||||
...nord,
|
...nord,
|
||||||
...moonlight,
|
...moonlight,
|
||||||
...hotdogStand,
|
...hotdogStand,
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
import type { YaakTheme } from '../window';
|
||||||
|
import { YaakColor } from '../yaakColor';
|
||||||
|
|
||||||
|
export const gruvboxDefault: YaakTheme = {
|
||||||
|
id: 'gruvbox',
|
||||||
|
name: 'gruvbox',
|
||||||
|
surface: new YaakColor('#282828', 'dark'), // Gruvbox bg
|
||||||
|
surfaceHighlight: new YaakColor('#3c3836', 'dark'), // Gruvbox bg1
|
||||||
|
text: new YaakColor('#ebdbb2', 'dark'), // Gruvbox fg
|
||||||
|
textSubtle: new YaakColor('#fe8019', 'dark'), // Gruvbox orange
|
||||||
|
textSubtlest: new YaakColor('#665c54', 'dark'), // Gruvbox bg4
|
||||||
|
primary: new YaakColor('#d3869b', 'dark'), // Gruvbox purple
|
||||||
|
secondary: new YaakColor('#83a598', 'dark'), // Gruvbox blue
|
||||||
|
info: new YaakColor('#8ec07c', 'dark'), // Gruvbox aqua
|
||||||
|
success: new YaakColor('#b8bb26', 'dark'), // Gruvbox green
|
||||||
|
notice: new YaakColor('#fabd2f', 'dark'), // Gruvbox yellow
|
||||||
|
warning: new YaakColor('#fe8019', 'dark'), // Gruvbox orange
|
||||||
|
danger: new YaakColor('#fb4934', 'dark'), // Gruvbox red
|
||||||
|
components: {
|
||||||
|
sidebar: {
|
||||||
|
backdrop: new YaakColor('#282828', 'dark'), // Gruvbox bg
|
||||||
|
},
|
||||||
|
appHeader: {
|
||||||
|
backdrop: new YaakColor('#3c3836', 'dark'), // Gruvbox bg1
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export const gruvbox = [gruvboxDefault];
|
||||||
Reference in New Issue
Block a user