You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,15 +69,34 @@ This theme supports dark and light mode. Currently this will be only switched ba
69
69
70
70
#### Size
71
71
72
-
We need about `2kB` extra stuff aside from images and raw html. This is divided up to `1.7kB CSS` and `~300B JS`.
72
+
We need about `~2.3KiB` extra stuff aside from images and raw html. This is divided up to `~2.1KiB CSS` and `212B JS`.
73
+
74
+
Test yourself with `zola build 1>/dev/null; echo "scale=2; $(cat public/**/*.{js,css} | wc -c)/1024" | bc -l`.
73
75
74
76
#### Syntax Highlighting
75
77
76
78
As I didn't want to invest any time in creating an own syntax color schema for this theme, I suggest to use `visual-studio-dark`, which is the same one used in the demo page.
77
79
80
+
#### Customization
81
+
82
+
You can create your own version of this theme, by simply changing the sass variables in `sass/style.scss` to match your taste.
83
+
84
+
```scss
85
+
/**
86
+
* Variables
87
+
*/
88
+
$base-background: white;
89
+
$text-color: black;
90
+
$article-tag: green;
91
+
$lang-tag: red;
92
+
$link-color: blue;
93
+
$target-color: yellow;
94
+
$separator-decoration: "//////";
95
+
```
96
+
78
97
### TODO
79
98
80
-
-[] introduce sass variables for colors
99
+
-[x] introduce sass variables for colors
81
100
-[ ] dark/light switch with javascript and store in browser session
0 commit comments