-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsonho.scss
120 lines (106 loc) · 4.37 KB
/
sonho.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/*
Name: Sonho
Author: Protesilaos Stavrou (https://protesilaos.com)
Description: Tested with Rouge-enabled Jekyll sites
Theme URL: https://protesilaos.com/sonho
*/
// Variables ----------------------------
$dbg: #4a3638; // Dark background
$dhl: #5a4648; // Dark highlight
$dt2: #8A7668; // Dark bg text secondary
$dt1: #99AABC; // Dark bg text primary
$lbg: #fff0f2; // Light background
$lhl: #efe0e2; // Light highlight
$lt2: #8896BB; // Light bg text secondary
$lt1: #677468; // Light bg text primary
$red: #cd4679; // Red
$ora: #d9766d; // Orange
$gre: #11bf8c; // Green
$blu: #479cb5; // Blue
$mag: #dd619f; // Magenta
$yel: #d9a652; // Yellow
$cya: #38A8b9; // Cyan
$vio: #a77ccf; // Violet
// Base Defaults ------------------------
// Just swap $l with $d in the following four lines to switch between light/dark
$text1: $lt1;
$text2: $lt2;
$background: $lbg;
$highlight: $lhl;
// Colour order
// No need to configure
$primary1: $mag;
$primary2: $cya;
$primary3: $yel;
$secondary1: $ora;
$secondary2: $vio;
$tertiary1: $blu;
$tertiary2: $gre;
$tertiary3: $red;
// Syntax -------------------------------
// Classes are prefixed with .highlight
.highlight {
background: $background;
color: $text1;
padding: 1rem;
.c { color: $t2; font-style: italic } /* Comment */
.err { color: $background; background-color: $tertiary3 } /* Error */
.k { color: $primary1 } /* Keyword */
.o { color: $text1; font-weight: bold } /* Operator */
.cm { color: $t2; font-style: italic } /* Comment.Multiline */
.cp { color: $t2; font-weight: bold; font-style: italic } /* Comment.Preproc */
.c1 { color: $t2; font-style: italic } /* Comment.Single */
.cs { color: $t2; font-weight: bold; font-style: italic } /* Comment.Special */
.gd { color: $background; background-color: $tertiary3 } /* Generic.Deleted */
.ge { color: $text1; font-style: italic } /* Generic.Emph */
.gr { color: $tertiary3 } /* Generic.Error */
.gh { color: $text1 } /* Generic.Heading */
.gi { color: $text1; background-color: $highlight } /* Generic.Inserted */
.go { color: $primary2 } /* Generic.Output */
.gp { color: $t2 } /* Generic.Prompt */
.gs { font-weight: bold } /* Generic.Strong */
.gu { color: $text1 } /* Generic.Subheading */
.gt { color: $primary1 } /* Generic.Traceback */
.kc { color: $primary2 } /* Keyword.Constant */
.kd { color: $primary2 } /* Keyword.Declaration */
.kn { color: $primary2 } /* Keyword.Namespace */
.kp { color: $primary2 } /* Keyword.Pseudo */
.kr { color: $primary2 } /* Keyword.Reserved */
.kt { color: $tertiary2 } /* Keyword.Type */
.m { color: $primary3 } /* Literal.Number */
.s { color: $secondary1 } /* Literal.String */
.na { color: $primary2 } /* Name.Attribute */
.nb { color: $primary2 } /* Name.Builtin */
.nc { color: $primary2 } /* Name.Class */
.no { color: $primary2 } /* Name.Constant */
.nd { color: $secondary2 } /* Name.Decorator */
.ni { color: $secondary2 } /* Name.Entity */
.ne { color: $secondary2; font-weight: bold } /* Name.Exception */
.nf { color: $primary1; font-weight: bold } /* Name.Function */
.nl { color: $text1 } /* Name.Label */
.nn { color: $text1 } /* Name.Namespace */
.nt { color: $primary1 } /* Name.Tag */
.nv { color: $primary3 } /* Name.Variable */
.ow { color: $text1; font-weight: bold } /* Operator.Word */
.w { color: $text1 } /* Text.Whitespace */
.mf { color: $primary3 } /* Literal.Number.Float */
.mh { color: $primary3 } /* Literal.Number.Hex */
.mi { color: $primary3 } /* Literal.Number.Integer */
.mo { color: $primary3 } /* Literal.Number.Oct */
.sb { color: $secondary1 } /* Literal.String.Backtick */
.sc { color: $secondary1 } /* Literal.String.Char */
.sd { color: $secondary1 } /* Literal.String.Doc */
.s2 { color: $secondary1 } /* Literal.String.Double */
.se { color: $tertiary1 } /* Literal.String.Escape */
.sh { color: $tertiary1 } /* Literal.String.Heredoc */
.si { color: $tertiary1 } /* Literal.String.Interpol */
.sx { color: $tertiary2 } /* Literal.String.Other */
.sr { color: $tertiary1 } /* Literal.String.Regex */
.s1 { color: $secondary1 } /* Literal.String.Single */
.ss { color: $secondary1 } /* Literal.String.Symbol */
.bp { color: $secondary2 } /* Name.Builtin.Pseudo */
.vc { color: $primary1 } /* Name.Variable.Class */
.vg { color: $primary1 } /* Name.Variable.Global */
.vi { color: $primary1 } /* Name.Variable.Instance */
.il { color: $primary3 } /* Literal.Number.Integer.Long */
}