Skip to content

Commit 171981e

Browse files
mkdocs: example css styles for practicalli light theme
1 parent 3644449 commit 171981e

File tree

1 file changed

+112
-0
lines changed

1 file changed

+112
-0
lines changed
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
// ----------------------------------------------------------------------------
2+
// Rules
3+
// ----------------------------------------------------------------------------
4+
5+
// Color variables
6+
:root {
7+
@extend %root;
8+
9+
// Primary color shades
10+
--md-primary-fg-color: hsla(#{hex2hsl($clr-indigo-500)}, 1);
11+
--md-primary-fg-color--light: hsla(#{hex2hsl($clr-indigo-400)}, 1);
12+
--md-primary-fg-color--dark: hsla(#{hex2hsl($clr-indigo-700)}, 1);
13+
--md-primary-bg-color: hsla(0, 0%, 100%, 1);
14+
--md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);
15+
16+
// Accent color shades
17+
--md-accent-fg-color: hsla(#{hex2hsl($clr-indigo-a200)}, 1);
18+
--md-accent-fg-color--transparent: hsla(#{hex2hsl($clr-indigo-a200)}, 0.1);
19+
--md-accent-bg-color: hsla(0, 0%, 100%, 1);
20+
--md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);
21+
}
22+
23+
// ----------------------------------------------------------------------------
24+
25+
// Allow to explicitly use color schemes in nested content
26+
[data-md-color-scheme="practicalli"] {
27+
@extend %root;
28+
}
29+
30+
// ----------------------------------------------------------------------------
31+
// Placeholders
32+
// ----------------------------------------------------------------------------
33+
34+
// Default theme, i.e. light mode
35+
%root {
36+
37+
// Default color shades
38+
--md-default-fg-color: hsla(0, 0%, 0%, 0.87);
39+
--md-default-fg-color--light: hsla(0, 0%, 0%, 0.54);
40+
--md-default-fg-color--lighter: hsla(0, 0%, 0%, 0.32);
41+
--md-default-fg-color--lightest: hsla(0, 0%, 0%, 0.07);
42+
--md-default-bg-color: hsla(53, 90%, 90%, 1);
43+
--md-default-bg-color--light: hsla(53, 90%, 90%, 0.7);
44+
--md-default-bg-color--lighter: hsla(53, 90%, 90%, 0.3);
45+
--md-default-bg-color--lightest: hsla(53, 90%, 90%, 0.12);
46+
47+
// Code color shades
48+
--md-code-fg-color: hsla(200, 18%, 26%, 1);
49+
--md-code-bg-color: hsla(0, 0%, 96%, 1);
50+
51+
// Code highlighting color shades
52+
--md-code-hl-color: hsla(#{hex2hsl($clr-yellow-a200)}, 0.5);
53+
--md-code-hl-number-color: hsla(0, 67%, 50%, 1);
54+
--md-code-hl-special-color: hsla(340, 83%, 47%, 1);
55+
--md-code-hl-function-color: hsla(291, 45%, 50%, 1);
56+
--md-code-hl-constant-color: hsla(250, 63%, 60%, 1);
57+
--md-code-hl-keyword-color: hsla(219, 54%, 51%, 1);
58+
--md-code-hl-string-color: hsla(150, 63%, 30%, 1);
59+
--md-code-hl-name-color: var(--md-code-fg-color);
60+
--md-code-hl-operator-color: var(--md-default-fg-color--light);
61+
--md-code-hl-punctuation-color: var(--md-default-fg-color--light);
62+
--md-code-hl-comment-color: var(--md-default-fg-color--light);
63+
--md-code-hl-generic-color: var(--md-default-fg-color--light);
64+
--md-code-hl-variable-color: var(--md-default-fg-color--light);
65+
66+
// Typeset color shades
67+
--md-typeset-color: var(--md-default-fg-color);
68+
69+
// Typeset `a` color shades
70+
--md-typeset-a-color: var(--md-primary-fg-color);
71+
72+
// Typeset `mark` color shades
73+
--md-typeset-mark-color: hsla(#{hex2hsl($clr-yellow-a200)}, 0.5);
74+
75+
// Typeset `del` and `ins` color shades
76+
--md-typeset-del-color: hsla(6, 90%, 60%, 0.15);
77+
--md-typeset-ins-color: hsla(150, 90%, 44%, 0.15);
78+
79+
// Typeset `kbd` color shades
80+
--md-typeset-kbd-color: hsla(0, 0%, 98%, 1);
81+
--md-typeset-kbd-accent-color: hsla(0, 100%, 100%, 1);
82+
--md-typeset-kbd-border-color: hsla(0, 0%, 72%, 1);
83+
84+
// Typeset `table` color shades
85+
--md-typeset-table-color: hsla(0, 0%, 0%, 0.12);
86+
87+
// Admonition color shades
88+
--md-admonition-fg-color: var(--md-default-fg-color);
89+
--md-admonition-bg-color: var(--md-default-bg-color);
90+
91+
// Footer color shades
92+
--md-footer-fg-color: hsla(0, 0%, 100%, 1);
93+
--md-footer-fg-color--light: hsla(0, 0%, 100%, 0.7);
94+
--md-footer-fg-color--lighter: hsla(0, 0%, 100%, 0.3);
95+
--md-footer-bg-color: hsla(0, 0%, 0%, 0.87);
96+
--md-footer-bg-color--dark: hsla(0, 0%, 0%, 0.32);
97+
98+
// Shadow depth 1
99+
--md-shadow-z1:
100+
0 #{px2rem(4px)} #{px2rem(10px)} hsla(0, 0%, 0%, 0.05),
101+
0 0 #{px2rem(1px)} hsla(0, 0%, 0%, 0.1);
102+
103+
// Shadow depth 2
104+
--md-shadow-z2:
105+
0 #{px2rem(4px)} #{px2rem(10px)} hsla(0, 0%, 0%, 0.1),
106+
0 0 #{px2rem(1px)} hsla(0, 0%, 0%, 0.25);
107+
108+
// Shadow depth 3
109+
--md-shadow-z3:
110+
0 #{px2rem(4px)} #{px2rem(10px)} hsla(0, 0%, 0%, 0.2),
111+
0 0 #{px2rem(1px)} hsla(0, 0%, 0%, 0.35);
112+
}

0 commit comments

Comments
 (0)