Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 0f6cd19

Browse files
committed
Added more dark mode colors 🚀
1 parent 2effd73 commit 0f6cd19

13 files changed

+39
-18
lines changed
3.62 KB
Loading
3.62 KB
Loading
-30 KB
Loading
16.9 KB
Loading
16.9 KB
Loading
-30 KB
Loading
15.2 KB
Loading
15.2 KB
Loading

_css/syntax.scss

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
.highlight .gd { @include theme($themes, 'background-color', $syntax-highlight-deleted); @include theme($themes, 'background-color', $general-background); } /* Generic.Deleted */
1111
.highlight .gd .x { @include theme($themes, 'background-color', $syntax-highlight-deleted-specific); @include theme($themes, 'background-color', $general-background); } /* Generic.Deleted.Specific */
1212
.highlight .ge { @include theme($themes, 'color', $primary-text-color); font-style: italic } /* Generic.Emph */
13-
.highlight .gr { color: #aa0000 } /* Generic.Error */
14-
.highlight .gh { color: #545454 } /* Generic.Heading */
13+
.highlight .gr { @include theme($themes, 'color', $syntax-highlight-generic-error); } /* Generic.Error */
14+
.highlight .gh { @include theme($themes, 'color', $syntax-highlight-generic-text); } /* Generic.Heading */
1515
.highlight .gi { @include theme($themes, 'background-color', $syntax-highlight-inserted); @include theme($themes, 'background-color', $general-background); } /* Generic.Inserted */
1616
.highlight .gi .x { @include theme($themes, 'background-color', $syntax-highlight-inserted-specific); @include theme($themes, 'background-color', $general-background); } /* Generic.Inserted.Specific */
17-
.highlight .go { color: #525252 } /* Generic.Output */
18-
.highlight .gp { color: #525252 } /* Generic.Prompt */
17+
.highlight .go { @include theme($themes, 'color', $syntax-highlight-generic-text); } /* Generic.Output */
18+
.highlight .gp { @include theme($themes, 'color', $syntax-highlight-generic-text); } /* Generic.Prompt */
1919
.highlight .gs { @include theme($themes, 'color', $primary-text-color); font-weight: bold } /* Generic.Strong */
20-
.highlight .gu { color: #555555 } /* Generic.Subheading */
21-
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
20+
.highlight .gu { @include theme($themes, 'color', $syntax-highlight-generic-namespace); } /* Generic.Subheading */
21+
.highlight .gt { @include theme($themes, 'color', $syntax-highlight-generic-error); } /* Generic.Traceback */
2222
.highlight .kc { @include theme($themes, 'color', $primary-text-color); font-weight: bold } /* Keyword.Constant */
2323
.highlight .kd { @include theme($themes, 'color', $primary-text-color); font-weight: bold } /* Keyword.Declaration */
2424
.highlight .kp { @include theme($themes, 'color', $primary-text-color); font-weight: bold } /* Keyword.Pseudo */
@@ -28,13 +28,13 @@
2828
.highlight .m { @include theme($themes, 'color', $syntax-highlight-literal-numbers); } /* Literal.Number */
2929
.highlight .s { @include theme($themes, 'color', $syntax-highlight-literal-value); } /* Literal.String */
3030
.highlight .na { @include theme($themes, 'color', $syntax-highlight-attribute); } /* Name.Attribute */
31-
.highlight .nb { color: #005A7A } /* Name.Builtin */
31+
.highlight .nb { @include theme($themes, 'color', $syntax-highlight-builtin); } /* Name.Builtin */
3232
.highlight .nc { @include theme($themes, 'color', $syntax-highlight-class-name); font-weight: bold } /* Name.Class */
33-
.highlight .no { color: #005C5C } /* Name.Constant */
33+
.highlight .no { @include theme($themes, 'color', $syntax-highlight-constant); } /* Name.Constant */
3434
.highlight .ni { color: #800080 } /* Name.Entity */
3535
.highlight .ne { @include theme($themes, 'color', $syntax-highlight-name); font-weight: bold } /* Name.Exception */
3636
.highlight .nf { @include theme($themes, 'color', $syntax-highlight-name); font-weight: bold } /* Name.Function */
37-
.highlight .nn { color: #555555 } /* Name.Namespace */
37+
.highlight .nn { @include theme($themes, 'color', $syntax-highlight-generic-namespace); } /* Name.Namespace */
3838
.highlight .nt { color: #000080 } /* Name.Tag */
3939
.highlight .nv { @include theme($themes, 'color', $syntax-highlight-variable-name); } /* Name.Variable */
4040
.highlight .ow { @include theme($themes, 'color', $primary-text-color); font-weight: bold } /* Operator.Word */
@@ -56,10 +56,10 @@
5656
.highlight .dl { @include theme($themes, 'color', $syntax-highlight-literal-value); } /* Literal.String.Single Quote */
5757
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
5858
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
59-
.highlight .vc { color: #005C5C } /* Name.Variable.Class */
60-
.highlight .vg { color: #005C5C } /* Name.Variable.Global */
61-
.highlight .vi { color: #005C5C } /* Name.Variable.Instance */
62-
.highlight .il { color: #005657 } /* Literal.Number.Integer.Long */
59+
.highlight .vc { @include theme($themes, 'color', $syntax-highlight-generic-global); } /* Name.Variable.Class */
60+
.highlight .vg { @include theme($themes, 'color', $syntax-highlight-generic-global); } /* Name.Variable.Global */
61+
.highlight .vi { @include theme($themes, 'color', $syntax-highlight-generic-global); } /* Name.Variable.Instance */
62+
.highlight .il { @include theme($themes, 'color', $syntax-highlight-literal-integer); } /* Literal.Number.Integer.Long */
6363

6464
code.highlighter-rouge {
6565
@include theme($themes, 'color', $syntax-inline);

_css/theme.scss

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ $syntax-highlight-name: "synaxt-hightlight-name";
2626
$syntax-highlight-literal-numbers: "syntax-highlight-literal-numbers";
2727
$syntax-highlight-error: "syntax-highlight-error";
2828
$syntax-highlight-attribute: "syntax-highlight-attribute";
29+
$syntax-highlight-generic-error: "syntax-highlight-generic-error";
30+
$syntax-highlight-generic-text: "syntax-highlight-generic-text";
31+
$syntax-highlight-generic-namespace: "syntax-highlight-generic-namespace";
32+
$syntax-highlight-generic-global: "syntax-highlight-generic-global";
33+
$syntax-highlight-literal-integer: "syntax-highlight-literal-integer";
34+
$syntax-highlight-builtin: "syntax-highlight-builtin";
35+
$syntax-highlight-constant: "syntax-highlight-constant";
2936

3037
$themes: (
3138
light: (
@@ -56,7 +63,14 @@ $themes: (
5663
$syntax-highlight-name: #990000,
5764
$syntax-highlight-literal-numbers: #006061,
5865
$syntax-highlight-error: #a61717,
59-
$syntax-highlight-attribute: #006161
66+
$syntax-highlight-attribute: #006161,
67+
$syntax-highlight-generic-error: #aa0000,
68+
$syntax-highlight-generic-text: #525252,
69+
$syntax-highlight-generic-namespace: #555555,
70+
$syntax-highlight-generic-global: #005C5C,
71+
$syntax-highlight-literal-integer: #005657,
72+
$syntax-highlight-builtin: #005A7A,
73+
$syntax-highlight-constant: #005C5C
6074
),
6175
dark: (
6276
$primary-color-dark: #303F9F,
@@ -86,7 +100,14 @@ $themes: (
86100
$syntax-highlight-name: #FFB938,
87101
$syntax-highlight-literal-numbers: #EFDC1A,
88102
$syntax-highlight-error: #FFB3B3,
89-
$syntax-highlight-attribute: #C2FFFF
103+
$syntax-highlight-attribute: #C2FFFF,
104+
$syntax-highlight-generic-error: #DD0000,
105+
$syntax-highlight-generic-text: #A9A9A9,
106+
$syntax-highlight-generic-namespace: #e9e9e9,
107+
$syntax-highlight-generic-global: #00bAbA,
108+
$syntax-highlight-literal-integer: #00A6A7,
109+
$syntax-highlight-builtin: #00A9A9,
110+
$syntax-highlight-constant: #BAFFAC
90111
),
91112
);
92113

0 commit comments

Comments
 (0)