Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: added githubDark theme #1231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
Loading
from
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
36 changes: 36 additions & 0 deletions 36 sandpack-themes/src/githubDark.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import type { SandpackTheme } from "./types";

export const githubDark: SandpackTheme = {
colors: {
surface1: "#0d1117",
surface2: "#27272a",
surface3: "#3b3b4f",
clickable: "#999999",
base: "#999999",
disabled: "#4d4d4d",
hover: "#ffffff",
accent: "#ffffff",
error: "#e06c75",
errorSurface: "#ffeceb",
},
syntax: {
plain: "#c9d1d9",
comment: {
color: "#8b949e",
fontStyle: "italic",
},
keyword: "#ff7b72",
tag: "#7ee787",
punctuation: "#c9d1d9",
definition: "#d2a8ff",
property: "#79c0ff",
static: "#79c0ff",
string: "#a5d6ff",
},
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",
},
};
1 change: 1 addition & 0 deletions 1 sandpack-themes/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export { dracula } from "./dracula";
export { ecoLight } from "./ecoLight";
export { freeCodeCampDark } from "./freeCodeCampDark";
export { githubLight } from "./githubLight";
export { githubDark } from "./githubDark";
export { gruvboxDark } from "./gruvboxDark";
export { gruvboxLight } from "./gruvboxLight";
export { levelUp } from "./levelUp";
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.