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

Added new theme: Bruha #104

Open
wants to merge 3 commits into
base: master
Choose a base branch
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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,6 @@ Thank you so much for contributing!!

* [__Nord__](themes/prism-nord.css) (originally by [Nord](https://www.nordtheme.com/), adapted by [Zane Hitchcox](https://github.com/zwhitchcox) and [Gabriel Ramos](https://github.com/gabrieluizramos))<br />
[![Nord](screenshots/prism-nord.png)](themes/prism-nord.css)

* [__Bruha__](themes/prism-bruha.css) (by [catcarbonell](https://github.com/catcarbonell))<br />
[![Bruha](screenshots/prism-bruha.png)](themes/prism-bruha.css)
Binary file added screenshots/prism-bruha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
122 changes: 122 additions & 0 deletions themes/prism-bruha.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
@import url(https://fonts.googleapis.com/css?family=Space+Mono);
/**
* prism.js bruha for JavaScript, CoffeeScript, CSS and HTML
* @author Cat Carbonell
*/

code[class*="language-"],
pre[class*="language-"] {

color: #ccc;
background: none;
font-family: 'Space Mono', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;

-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: rgba(102, 93, 105, 0.8);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the semi-transparent background color intentional?

It's a really problem with white backgrounds because the color contrasts goes to 2.47:1. It's fine on black backgrounds with 5.3:1.

Please consider choosing a darker semi-transparent bg color or #524a54 (= the current color on a black background).

border: solid 2px #665D69;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}

.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: #b4a4b8;
}

.token.punctuation {
color: #b4a4b8;
}

.token.tag,
.token.attr-name,
.token.namespace,
.token.deleted {
color: #f4be9e;
}

.token.function-name {
color: #f4be9e;
}

.token.boolean,
.token.number,
.token.function {
color: #B3D4BC;
}

.token.property,
.token.class-name,
.token.constant,
.token.symbol {
color: #7a5f4f;
}

.token.selector,
.token.important,
.token.atrule,
.token.keyword,
.token.builtin {
color: #D6ADD7;
}

.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.variable {
color: #B3D4BC;
}

.token.operator,
.token.entity,
.token.url {
color: #92cac9;
}

.token.important,
.token.bold {
font-weight: bold;
}

.token .italic {
font-style: italic;
}

.token.entity {
cursor: help;
}

.token.inserted {
color: #f4be9e;
}