Skip to content
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

Add theme Transparent balanced #1335

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Add theme
  • Loading branch information
zoodogood committed Mar 21, 2024
commit ff91e752e4d09e40fcca8411c24323fc8fe47c6d
1 change: 1 addition & 0 deletions lib/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const availableThemes = [
'dark_dimmed',
'preferred_color_scheme',
'transparent_dark',
"transparent_balanced",
'noborder_light',
'noborder_dark',
'noborder_gray',
Expand Down
129 changes: 129 additions & 0 deletions styles/themes/transparent_balanced.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
/*! Modified from GitHub's transparent theme in primer/primitives.
* MIT License
* Copyright (c) 2018 GitHub Inc.
* https://github.com/primer/primitives/blob/main/LICENSE
*/

main {
--color-prettylights-syntax-comment: #8b949e;
--color-prettylights-syntax-constant: #79c0ff;
--color-prettylights-syntax-entity: #d2a8ff;
--color-prettylights-syntax-storage-modifier-import: #c9d1d9;
--color-prettylights-syntax-entity-tag: #7ee787;
--color-prettylights-syntax-keyword: #ff7b72;
--color-prettylights-syntax-string: #a5d6ff;
--color-prettylights-syntax-variable: #ffa657;
--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;
--color-prettylights-syntax-invalid-illegal-bg: #8e1519;
--color-prettylights-syntax-carriage-return-text: #f0f6fc;
--color-prettylights-syntax-carriage-return-bg: #b62324;
--color-prettylights-syntax-string-regexp: #7ee787;
--color-prettylights-syntax-markup-list: #f2cc60;
--color-prettylights-syntax-markup-heading: #1f6feb;
--color-prettylights-syntax-markup-italic: #c9d1d9;
--color-prettylights-syntax-markup-bold: #c9d1d9;
--color-prettylights-syntax-markup-deleted-text: #ffdcd7;
--color-prettylights-syntax-markup-deleted-bg: #67060c;
--color-prettylights-syntax-markup-inserted-text: #aff5b4;
--color-prettylights-syntax-markup-inserted-bg: #033a16;
--color-prettylights-syntax-markup-changed-text: #ffdfb6;
--color-prettylights-syntax-markup-changed-bg: #5a1e02;
--color-prettylights-syntax-markup-ignored-text: #c9d1d9;
--color-prettylights-syntax-markup-ignored-bg: #1158c7;
--color-prettylights-syntax-meta-diff-range: #d2a8ff;
--color-prettylights-syntax-brackethighlighter-angle: #8b949e;
--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
--color-btn-text: #c9d1d9;
--color-btn-bg: rgb(45 51 59 / 80%);
--color-btn-border: rgb(240 246 252 / 10%);
--color-btn-shadow: 0 0 transparent;
--color-btn-inset-shadow: 0 0 transparent;
--color-btn-hover-bg: rgb(45 51 59 / 50%);
--color-btn-hover-border: #8b949e;
--color-btn-active-bg: hsl(212deg 12% 18% / 50%);
--color-btn-active-border: #6e7681;
--color-btn-selected-bg: rgb(45 51 59 / 50%);
--color-btn-primary-text: #fff;
--color-btn-primary-bg: #238636;
--color-btn-primary-border: rgb(240 246 252 / 10%);
--color-btn-primary-shadow: 0 0 transparent;
--color-btn-primary-inset-shadow: 0 0 transparent;
--color-btn-primary-hover-bg: #2ea043;
--color-btn-primary-hover-border: rgb(240 246 252 / 10%);
--color-btn-primary-selected-bg: #238636;
--color-btn-primary-selected-shadow: 0 0 transparent;
--color-btn-primary-disabled-text: rgb(240 246 252 / 80%);
--color-btn-primary-disabled-bg: rgb(35 134 54 / 60%);
--color-btn-primary-disabled-border: rgb(240 246 252 / 10%);
--color-action-list-item-default-hover-bg: rgb(144 157 171 / 12%);
--color-segmented-control-bg: rgb(99 110 123 / 10%);
--color-segmented-control-button-bg: transparent;
--color-segmented-control-button-selected-border: #636e7b;
--color-fg-default: #a0a0a0;
--color-fg-muted: #8b949e;
--color-fg-subtle: #5f6979;
--color-canvas-default: transparent;
--color-canvas-overlay: rgb(22 27 34 / 90%);
--color-canvas-inset: transparent;
--color-canvas-subtle: transparent;
--color-border-default: #80808080;
--color-border-muted: #21262d;
--color-neutral-muted: rgb(110 118 129 / 5%);
--color-neutral-subtle: rgb(110 118 129 / 10%);
--color-accent-fg: #6aafff;
--color-accent-emphasis: #397fe7;
--color-accent-muted: rgb(56 139 253 / 40%);
--color-accent-subtle: rgb(65 132 228 / 10%);
--color-success-fg: #3fb950;
--color-attention-fg: #c69026;
--color-attention-muted: rgb(174 124 20 / 40%);
--color-attention-subtle: rgb(174 124 20 / 15%);
--color-danger-fg: #f85149;
--color-danger-muted: rgb(229 83 75 / 40%);
--color-danger-subtle: rgb(229 83 75 / 10%);
--color-primer-shadow-inset: 0 0 transparent;
--color-scale-gray-7: #21262d;
--color-scale-blue-8: #0c2d6b;

/*! Extensions from @primer/css/alerts/flash.scss */
--color-social-reaction-bg-hover: var(--color-scale-gray-7);
--color-social-reaction-bg-reacted-hover: var(--color-scale-blue-8);
}

main .pagination-loader-container {
background-image: url("https://github.com/images/modules/pulls/progressive-disclosure-line-dark.svg");
}

.gsc-pagination-button {
background-color: var(--color-btn-bg);
}

.gsc-homepage-bg {
background: linear-gradient(135deg, #05485c, #032e58, #2f0154);
background-size: 600% 600%;
animation: gradient 21s ease infinite;
}

@keyframes gradient {
0% {
background-position: 2% 0%;
}

50% {
background-position: 99% 100%;
}

100% {
background-position: 2% 0%;
}
}

main .gsc-loading-image {
background-image: url("https://github.githubassets.com/images/mona-loading-dark.gif");
}

.gsc-comment-box-write > textarea, gsc-comment-box-write {
color: var(--color-fg-subtle);
}