Add another example theme

This commit is contained in:
Jonny Gerig Meyer 2023-01-31 14:24:16 -05:00
parent 11f3f7976d
commit a3cd423e2d
No known key found for this signature in database
GPG Key ID: FB602F738A872F7F
3 changed files with 130 additions and 5 deletions

View File

@ -38,4 +38,7 @@
@use 'regions/banner'; @use 'regions/banner';
// @@@ Do we want this theme? // @@@ Do we want this theme?
@use 'prismjs/themes/prism.css'; // @use 'prismjs/themes/prism.css';
// @@@ Or this one? Or neither?
@use 'vendor/prism-ghcolors';

View File

@ -0,0 +1,122 @@
/**
* GHColors theme by Avi Aryan (http://aviaryan.in)
* Inspired by Github syntax coloring
*/
code[class*="language-"],
pre[class*="language-"] {
color: #393A34;
font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace;
direction: ltr;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
font-size: .9em;
line-height: 1.2em;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
pre > code[class*="language-"] {
font-size: 1em;
}
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
background: #b3d4fc;
}
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
code[class*="language-"]::selection, code[class*="language-"] ::selection {
background: #b3d4fc;
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
border: 1px solid #dddddd;
background-color: white;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .2em;
padding-top: 1px;
padding-bottom: 1px;
background: #f8f8f8;
border: 1px solid #dddddd;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: #999988;
font-style: italic;
}
.token.namespace {
opacity: .7;
}
.token.string,
.token.attr-value {
color: #e3116c;
}
.token.punctuation,
.token.operator {
color: #393A34; /* no highlight */
}
.token.entity,
.token.url,
.token.symbol,
.token.number,
.token.boolean,
.token.variable,
.token.constant,
.token.property,
.token.regex,
.token.inserted {
color: #36acaa;
}
.token.atrule,
.token.keyword,
.token.attr-name,
.language-autohotkey .token.selector {
color: #00a4db;
}
.token.function,
.token.deleted,
.language-autohotkey .token.tag {
color: #9a050f;
}
.token.tag,
.token.selector,
.language-autohotkey .token.keyword {
color: #00009f;
}
.token.important,
.token.function,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}

View File

@ -53,7 +53,7 @@ When you install Sass on the command line, you'll be able to run the
`sass` executable to compile `.sass` and `.scss` files to `.css` files. `sass` executable to compile `.sass` and `.scss` files to `.css` files.
For example: For example:
```sh ```plaintext
sass source/stylesheets/index.scss build/stylesheets/index.css sass source/stylesheets/index.scss build/stylesheets/index.css
``` ```
@ -80,7 +80,7 @@ Install Anywhere (npm)
: If you use Node.js, you can also install Sass using : If you use Node.js, you can also install Sass using
[npm](https://www.npmjs.com/) by running [npm](https://www.npmjs.com/) by running
```sh ```plaintext
npm install -g sass npm install -g sass
``` ```
@ -94,7 +94,7 @@ Install on Windows (Chocolatey)
: If you use the [Chocolatey package manager](https://chocolatey.org/) for : If you use the [Chocolatey package manager](https://chocolatey.org/) for
Windows, you can install Dart Sass by running Windows, you can install Dart Sass by running
```sh ```plaintext
choco install sass choco install sass
``` ```
@ -103,7 +103,7 @@ Install on Mac OS X or Linux (Homebrew)
: If you use [the Homebrew package manager](https://brew.sh/) for Mac OS X or : If you use [the Homebrew package manager](https://brew.sh/) for Mac OS X or
Linux, you can install Dart Sass by running Linux, you can install Dart Sass by running
```sh ```plaintext
brew install sass/sass/sass brew install sass/sass/sass
``` ```