Skip to content

Commit 078a411

Browse files
committed
Allowed to override primary and accent colors more easily
1 parent 382e870 commit 078a411

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

material/assets/stylesheets/main.20d9efc8.min.css

-1
This file was deleted.

material/assets/stylesheets/main.20d9efc8.min.css.map

-1
This file was deleted.

material/assets/stylesheets/main.472b142f.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/main.472b142f.min.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assets/stylesheets/main/_colors.scss

+13-13
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@
2727
// Color variables
2828
:root {
2929
@extend %root;
30+
31+
// Primary color shades
32+
--md-primary-fg-color: hsla(#{hex2hsl($clr-indigo-500)}, 1);
33+
--md-primary-fg-color--light: hsla(#{hex2hsl($clr-indigo-400)}, 1);
34+
--md-primary-fg-color--dark: hsla(#{hex2hsl($clr-indigo-700)}, 1);
35+
--md-primary-bg-color: hsla(0, 0%, 100%, 1);
36+
--md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);
37+
38+
// Accent color shades
39+
--md-accent-fg-color: hsla(#{hex2hsl($clr-indigo-a200)}, 1);
40+
--md-accent-fg-color--transparent: hsla(#{hex2hsl($clr-indigo-a200)}, 0.1);
41+
--md-accent-bg-color: hsla(0, 0%, 100%, 1);
42+
--md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);
3043
}
3144

3245
// ----------------------------------------------------------------------------
@@ -53,19 +66,6 @@
5366
--md-default-bg-color--lighter: hsla(0, 0%, 100%, 0.3);
5467
--md-default-bg-color--lightest: hsla(0, 0%, 100%, 0.12);
5568

56-
// Primary color shades
57-
--md-primary-fg-color: hsla(#{hex2hsl($clr-indigo-500)}, 1);
58-
--md-primary-fg-color--light: hsla(#{hex2hsl($clr-indigo-400)}, 1);
59-
--md-primary-fg-color--dark: hsla(#{hex2hsl($clr-indigo-700)}, 1);
60-
--md-primary-bg-color: hsla(0, 0%, 100%, 1);
61-
--md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);
62-
63-
// Accent color shades
64-
--md-accent-fg-color: hsla(#{hex2hsl($clr-indigo-a200)}, 1);
65-
--md-accent-fg-color--transparent: hsla(#{hex2hsl($clr-indigo-a200)}, 0.1);
66-
--md-accent-bg-color: hsla(0, 0%, 100%, 1);
67-
--md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);
68-
6969
// Code color shades
7070
--md-code-fg-color: hsla(200, 18%, 26%, 1);
7171
--md-code-bg-color: hsla(0, 0%, 96%, 1);

0 commit comments

Comments
 (0)