Skip to content

Commit

Permalink
feat(theme): gruvbox light and dark (#600)
Browse files Browse the repository at this point in the history
Co-authored-by: Danilo Woznica <danilowoz@gmail.com>
  • Loading branch information
griimick and danilowoz committed Oct 4, 2022
1 parent c2e231f commit 3d93fc0
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
37 changes: 37 additions & 0 deletions sandpack-themes/src/gruvboxDark.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import type { SandpackTheme } from "./types";

// Reference: https://github.com/gruvbox-community/gruvbox
export const gruvboxDark: SandpackTheme = {
colors: {
surface1: "#282828",
surface2: "#3c3836",
surface3: "#3c3836",
clickable: "#ebdbb2",
base: "#ebdbb2",
disabled: "#928374",
hover: "#fe8019",
accent: "#d65d0e",
error: "#ff453a",
errorSurface: "#3c3836",
},
syntax: {
plain: "#ebdbb2",
comment: {
color: "#928374",
fontStyle: "italic",
},
keyword: "#ff453a",
tag: "#83a598",
punctuation: "#ebdbb2",
definition: "#83a598",
property: "#fabd2f",
static: "#ebdbb2",
string: "#b8bb26",
},
font: {
body: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
mono: '"Fira Mono", "DejaVu Sans Mono", Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace',
size: "13px",
lineHeight: "20px",
},
};
37 changes: 37 additions & 0 deletions sandpack-themes/src/gruvboxLight.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import type { SandpackTheme } from "./types";

// Reference: https://github.com/gruvbox-community/gruvbox
export const gruvboxLight: SandpackTheme = {
colors: {
surface1: "#fbf1c7",
surface2: "#ebdbb2",
surface3: "#ebdbb2",
clickable: "#808080",
base: "#3c3836",
disabled: "#928374",
hover: "#af3a03",
accent: "#d65d0e",
error: "#9d0006",
errorSurface: "#ebdbb2",
},
syntax: {
plain: "#3c3836",
comment: {
color: "#928374",
fontStyle: "italic",
},
keyword: "#9d0006",
tag: "#076678",
punctuation: "#3c3836",
definition: "#076678",
property: "#b57614",
static: "#3c3836",
string: "#79740e",
},
font: {
body: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
mono: '"Fira Mono", "DejaVu Sans Mono", Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace',
size: "13px",
lineHeight: "20px",
},
};
2 changes: 2 additions & 0 deletions sandpack-themes/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ export { githubLight } from "./githubLight";
export { monokaiPro } from "./monokaiPro";
export { nightOwl } from "./nightOwl";
export { sandpackDark } from "./sandpackDark";
export { gruvboxLight } from "./gruvboxLight";
export { gruvboxDark } from "./gruvboxDark";

0 comments on commit 3d93fc0

Please sign in to comment.