Skip to content

Commit f1258ca

Browse files
FraCata00Francesco
authored andcommitted
feat(theme); add gruvbox-dark and gruvbox-light to theme list
- gruvbox dark (a7ac325) - gruvbox light (8fae01e)
1 parent 4fff146 commit f1258ca

File tree

3 files changed

+29
-15
lines changed

3 files changed

+29
-15
lines changed

packages/bruno-app/src/themes/dark/gruvbox.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { rgba, lighten } from 'polished';
22

3-
// Gruvbox Dark palette ufficiale
3+
// Official Gruvbox Dark palette
44
export const palette = {
55
primary: {
66
SOLID: '#d79921', // yellow
@@ -95,7 +95,7 @@ const gruvboxDarkTheme = {
9595
brand: palette.primary.SOLID,
9696
text: palette.text.BASE,
9797
textLink: palette.hues.BLUE_BRIGHT,
98-
draftColor: '#d79921',
98+
draftColor: palette.primary.SOLID,
9999
bg: palette.background.BASE,
100100

101101
primary: {
@@ -248,7 +248,7 @@ const gruvboxDarkTheme = {
248248
},
249249

250250
workspace: {
251-
accent: '#d79921',
251+
accent: palette.primary.SOLID,
252252
border: palette.border.BORDER2,
253253
button: {
254254
bg: palette.background.SURFACE0
@@ -345,7 +345,7 @@ const gruvboxDarkTheme = {
345345
color: palette.text.SUBTEXT2,
346346
bg: 'transparent',
347347
border: 'transparent',
348-
hoverBorder: ''
348+
hoverBorder: 'transparent'
349349
},
350350
disabled: {
351351
color: palette.text.SUBTEXT0,

packages/bruno-app/src/themes/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import catppuccinFrappe from './dark/catppuccin-frappe';
1010
import catppuccinMacchiato from './dark/catppuccin-macchiato';
1111
import catppuccinMocha from './dark/catppuccin-mocha';
1212
import nord from './dark/nord';
13+
import gruvboxDarkTheme from './dark/gruvbox';
14+
import gruvboxLightTheme from './light/gruvbox';
1315
import vscodeDark from './dark/vscode';
1416

1517
const themes = {
@@ -23,6 +25,8 @@ const themes = {
2325
'catppuccin-frappe': catppuccinFrappe,
2426
'catppuccin-macchiato': catppuccinMacchiato,
2527
'catppuccin-mocha': catppuccinMocha,
28+
'gruvbox-dark': gruvboxDarkTheme,
29+
'gruvbox-light': gruvboxLightTheme,
2630
nord,
2731
'vscode-light': vscodeLight,
2832
'vscode-dark': vscodeDark
@@ -80,6 +84,16 @@ export const themeRegistry = {
8084
name: 'Catppuccin Mocha',
8185
mode: 'dark'
8286
},
87+
'gruvbox-dark': {
88+
id: 'gruvbox-dark',
89+
name: 'Gruvbox Dark',
90+
mode: 'dark'
91+
},
92+
'gruvbox-light': {
93+
id: 'gruvbox-light',
94+
name: 'Gruvbox Light',
95+
mode: 'light'
96+
},
8397
'nord': {
8498
id: 'nord',
8599
name: 'Nord',

packages/bruno-app/src/themes/light/gruvbox.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { rgba, darken } from 'polished';
22

3-
// Gruvbox Light palette ufficiale
3+
// Official Gruvbox Light palette
44
export const palette = {
55
primary: {
66
SOLID: '#d79921', // yellow
@@ -32,7 +32,7 @@ export const palette = {
3232
},
3333
background: {
3434
BASE: '#fbf1c7', // bg0
35-
MANTLE: '#f9f5d7', // bg0_s (soft contrast)
35+
MANTLE: '#fbf1c7', // bg0_s (soft contrast)
3636
CRUST: '#f2e5bc', // bg0_h (hard contrast)
3737
SURFACE0: '#ebdbb2', // bg1
3838
SURFACE1: '#d5c4a1', // bg2
@@ -95,7 +95,7 @@ const gruvboxLightTheme = {
9595
brand: palette.primary.SOLID,
9696
text: palette.text.BASE,
9797
textLink: palette.hues.BLUE_BRIGHT,
98-
draftColor: '#d79921',
98+
draftColor: palette.primary.SOLID,
9999
bg: palette.background.BASE,
100100

101101
primary: {
@@ -197,9 +197,9 @@ const gruvboxLightTheme = {
197197
},
198198

199199
input: {
200-
bg: palette.background.MANTLE,
200+
bg: 'transparent',
201201
border: palette.border.BORDER2,
202-
focusBorder: rgba(palette.primary.SOLID, 0.6),
202+
focusBorder: rgba(palette.primary.SOLID, 0.8),
203203
placeholder: {
204204
color: palette.text.SUBTEXT1,
205205
opacity: 0.7
@@ -248,7 +248,7 @@ const gruvboxLightTheme = {
248248
},
249249

250250
workspace: {
251-
accent: '#d79921',
251+
accent: palette.primary.SOLID,
252252
border: palette.border.BORDER2,
253253
button: {
254254
bg: palette.background.SURFACE0
@@ -273,7 +273,7 @@ const gruvboxLightTheme = {
273273

274274
requestTabPanel: {
275275
url: {
276-
bg: palette.background.MANTLE,
276+
bg: palette.background.BASE,
277277
icon: palette.text.SUBTEXT2,
278278
iconDanger: palette.hues.RED_BRIGHT,
279279
border: `solid 1px ${palette.border.BORDER1}`
@@ -286,7 +286,7 @@ const gruvboxLightTheme = {
286286
responseOk: palette.hues.GREEN_BRIGHT,
287287
responseError: palette.hues.RED_BRIGHT,
288288
responsePending: palette.hues.BLUE_BRIGHT,
289-
responseOverlayBg: rgba(palette.background.BASE, 0.9),
289+
responseOverlayBg: rgba(palette.background.BASE, 0.8),
290290

291291
card: {
292292
bg: palette.background.SURFACE0,
@@ -325,9 +325,9 @@ const gruvboxLightTheme = {
325325
bg: palette.background.MANTLE
326326
},
327327
input: {
328-
bg: palette.background.BASE,
328+
bg: 'transparent',
329329
border: palette.border.BORDER2,
330-
focusBorder: rgba(palette.primary.SOLID, 0.6)
330+
focusBorder: rgba(palette.primary.SOLID, 0.8)
331331
},
332332
backdrop: {
333333
opacity: 0.3
@@ -345,7 +345,7 @@ const gruvboxLightTheme = {
345345
color: palette.text.SUBTEXT2,
346346
bg: 'transparent',
347347
border: 'transparent',
348-
hoverBorder: ''
348+
hoverBorder: 'transparent'
349349
},
350350
disabled: {
351351
color: palette.text.SUBTEXT0,

0 commit comments

Comments
 (0)