Skip to content

Commit

Permalink
Allowed to override primary and accent colors more easily
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Nov 11, 2022
1 parent 382e870 commit 078a411
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
1 change: 0 additions & 1 deletion material/assets/stylesheets/main.20d9efc8.min.css

This file was deleted.

1 change: 0 additions & 1 deletion material/assets/stylesheets/main.20d9efc8.min.css.map

This file was deleted.

1 change: 1 addition & 0 deletions material/assets/stylesheets/main.472b142f.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions material/assets/stylesheets/main.472b142f.min.css.map

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions src/assets/stylesheets/main/_colors.scss
Expand Up @@ -27,6 +27,19 @@
// Color variables
:root {
@extend %root;

// Primary color shades
--md-primary-fg-color: hsla(#{hex2hsl($clr-indigo-500)}, 1);
--md-primary-fg-color--light: hsla(#{hex2hsl($clr-indigo-400)}, 1);
--md-primary-fg-color--dark: hsla(#{hex2hsl($clr-indigo-700)}, 1);
--md-primary-bg-color: hsla(0, 0%, 100%, 1);
--md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);

// Accent color shades
--md-accent-fg-color: hsla(#{hex2hsl($clr-indigo-a200)}, 1);
--md-accent-fg-color--transparent: hsla(#{hex2hsl($clr-indigo-a200)}, 0.1);
--md-accent-bg-color: hsla(0, 0%, 100%, 1);
--md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);
}

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

// Primary color shades
--md-primary-fg-color: hsla(#{hex2hsl($clr-indigo-500)}, 1);
--md-primary-fg-color--light: hsla(#{hex2hsl($clr-indigo-400)}, 1);
--md-primary-fg-color--dark: hsla(#{hex2hsl($clr-indigo-700)}, 1);
--md-primary-bg-color: hsla(0, 0%, 100%, 1);
--md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);

// Accent color shades
--md-accent-fg-color: hsla(#{hex2hsl($clr-indigo-a200)}, 1);
--md-accent-fg-color--transparent: hsla(#{hex2hsl($clr-indigo-a200)}, 0.1);
--md-accent-bg-color: hsla(0, 0%, 100%, 1);
--md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);

// Code color shades
--md-code-fg-color: hsla(200, 18%, 26%, 1);
--md-code-bg-color: hsla(0, 0%, 96%, 1);
Expand Down

0 comments on commit 078a411

Please sign in to comment.