Skip to content

Commit 7eb9a9a

Browse files
committed
feat: add custom styling
1 parent 0d7ee9c commit 7eb9a9a

2 files changed

Lines changed: 83 additions & 1 deletion

File tree

assets/_custom.scss

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,83 @@
11
@import "plugins/themes";
2+
3+
.markdown {
4+
h1, h2, h3, h4, h5, h6 {
5+
font-weight: bold;
6+
}
7+
8+
h1 {
9+
font-size: 24pt;
10+
}
11+
12+
h2 {
13+
font-size: 20pt;
14+
}
15+
16+
h3 {
17+
font-size: 18pt;
18+
}
19+
}
20+
21+
// custom apollo theme, based on upstream defaults, with some changes to accomodate our branding
22+
@mixin theme-apollo-light { // made to look like 'browser default'
23+
--body-background: white;
24+
--body-background-tint: none;
25+
--body-font-color: black;
26+
27+
--color-link: hsl(278.18182, 96%, 34%);
28+
--color-visited-link: hsl(256, 96%, 38%);
29+
30+
--icon-filter: none;
31+
32+
--gray-100: #f8f9fa;
33+
--gray-200: #e9ecef;
34+
--gray-500: #adb5bd;
35+
36+
@include accent("default", hsl(279, 96, 45));
37+
@include accent("note", #4486dd);
38+
@include accent("tip", #3bad3b);
39+
@include accent("important", #8144dd);
40+
@include accent("warning", #f59e42);
41+
@include accent("caution", #d84747);
42+
43+
// Fallback for {{< hint >}} shortcodes
44+
@include accent("info", #4486dd);
45+
@include accent("success", #3bad3b);
46+
@include accent("danger", #d84747);
47+
}
48+
49+
@mixin theme-apollo-dark { // based on https://www.nordtheme.com/
50+
--body-background: hsl(270, 9%, 9%);
51+
--body-background-tint: none;
52+
53+
--body-font-color: #ffffff;
54+
55+
--color-link: hsl(279, 79%, 80%);
56+
--color-visited-link: hsl(239, 94%, 83%);
57+
58+
--icon-filter: brightness(0) invert(1);
59+
60+
--gray-100: hsl(270, 9%, 14%);
61+
--gray-200: hsl(270, 9%, 18%);
62+
--gray-500: hsl(270, 9%, 22%);
63+
64+
@include accent("default", hsl(196, 87%, 60%));
65+
@include accent("note", hsl(204, 100%, 65%));
66+
@include accent("tip", hsl(103, 100%, 59%));
67+
@include accent("important", hsl(301, 100%, 64%));
68+
@include accent("warning", hsl(13, 100%, 66%));
69+
@include accent("caution", hsl(354, 100%, 62%));
70+
71+
// Fallback for {{< hint >}} shortcodes
72+
@include accent("info", hsl(204, 100%, 65%));
73+
@include accent("success", hsl(103, 74%, 49%));
74+
@include accent("danger", hsl(354, 71%, 52%));
75+
}
76+
77+
@mixin theme-apollo-auto {
78+
@include theme-apollo-light;
79+
80+
@media (prefers-color-scheme: dark) {
81+
@include theme-apollo-dark;
82+
}
83+
}

hugo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ copyright = '[© BSD 3-Clause](https://github.com/apollo-linux/docs/blob/main/LI
1818
endLevel = 6
1919

2020
[params]
21-
BookTheme = 'ayu-auto'
21+
BookTheme = 'apollo-auto'
2222
BookToC = true
2323
BookCollapseSection = true
2424
BookRepo = 'https://github.com/apollo-linux/docs'

0 commit comments

Comments
 (0)