Skip to content

Commit c03bdab

Browse files
committed
feat: Style the material docs and icons and images
1 parent 8d81d45 commit c03bdab

File tree

4 files changed

+63
-15
lines changed

4 files changed

+63
-15
lines changed

docs/assets/favicon.ico

1.28 KB
Binary file not shown.

docs/assets/logo.png

12 KB
Loading

docs/stylesheets/extra.css

Lines changed: 40 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,44 @@
11
:root {
2-
--md-primary-fg-color: #FFFF00;
3-
--md-primary-fg-color--light: #464A4D;
4-
--md-primary-fg-color--dark: #464A4D;
5-
--md-primary-bg-color: #464A4D;
6-
--md-primary-bg-color--light: #464A4D;
7-
8-
// Accent color shades
9-
--md-accent-fg-color: #000000;
10-
--md-accent-fg-color--transparent: #464A4D;
11-
--md-accent-bg-color: #464A4D;
12-
--md-accent-bg-color--light: #464A4D;
13-
}
142

3+
/* Primary color shades - NavBar */
4+
--md-primary-fg-color: yellow;
5+
--md-primary-bg-color: black;
156

16-
:root>* {
17-
--md-typeset-a-color: #656A6D;
7+
/* Accent color shades - Hover effects */
8+
--md-accent-fg-color: yellow;
9+
--md-accent-fg-color--transparent: white;
10+
--md-accent-bg-color: white;
1811
}
12+
13+
:root > * {
14+
/* background color */
15+
--md-default-bg-color: #343434;
16+
17+
/* default text color */
18+
--md-typeset-color: white;
19+
20+
21+
--md-footer-fg-color: yellow;
22+
--md-footer-bg-color: black;
23+
24+
/* color for markdown code blocks */
25+
--md-code-fg-color: yellow;
26+
--md-code-bg-color: #2B2B2B;
27+
28+
/* color for markdown headers */
29+
--md-default-fg-color--light: white;
30+
31+
/* color for code highlighting, works kinda like Dracula Theme */
32+
--md-code-hl-number-color: #A9B7C5;
33+
--md-code-hl-special-color: #A9B7C5;
34+
--md-code-hl-function-color: #A9B7C5;
35+
--md-code-hl-constant-color: #A9B7C5;
36+
--md-code-hl-keyword-color: #CB7832;
37+
--md-code-hl-string-color: #6A8759;
38+
--md-code-hl-name-color: #A9B7C5;
39+
--md-code-hl-operator-color: #A9B7C5;
40+
--md-code-hl-punctuation-color: #A9B7C5;
41+
--md-code-hl-comment-color: #6A8759;
42+
--md-code-hl-generic-color: #A9B7C5;
43+
--md-code-hl-variable-color: #A9B7C5;
44+
}

mkdocs.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,34 @@
1-
site_name: My Docs
1+
site_name: Android Library Template
2+
repo_url: https://github.com/monstar-lab-oss/android-lib-template
3+
repo_name: monstar-lab-oss/android-lib-template
4+
5+
26
extra_css:
37
- stylesheets/extra.css
48
theme:
9+
logo: assets/logo.png
10+
favicon: assets/favicon.ico
11+
12+
features:
13+
- navigation.instant
14+
- navigation.instant.prefetch
15+
- navigation.path
16+
- navigation.sections
17+
- navigation.sections.expand
518
name: material
619
palette:
720
primary: custom
21+
accent: custom
822

923
nav:
1024
- 'API': api/
1125
- 'Changelog': changelog.md
1226

27+
markdown_extensions:
28+
- pymdownx.highlight:
29+
anchor_linenums: true
30+
line_spans: __span
31+
pygments_lang_class: true
32+
- pymdownx.inlinehilite
33+
- pymdownx.snippets
34+
- pymdownx.superfences

0 commit comments

Comments
 (0)