Improved slate color scheme

This commit is contained in:
squidfunk 2023-09-21 17:23:36 +02:00
parent 970670bb4a
commit 859b8bcaee
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
18 changed files with 57 additions and 67 deletions

View File

@ -3,7 +3,7 @@
-#} -#}
{% extends "base.html" %} {% extends "base.html" %}
{% block extrahead %} {% block extrahead %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/custom.911930df.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/custom.8b8181c9.min.css' | url }}">
{% endblock %} {% endblock %}
{% block announce %} {% block announce %}
For updates follow <strong>@squidfunk</strong> on For updates follow <strong>@squidfunk</strong> on

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"version":3,"sources":["src/templates/assets/stylesheets/palette/_scheme.scss","../../../../src/templates/assets/stylesheets/palette.scss","src/templates/assets/stylesheets/palette/_accent.scss","src/templates/assets/stylesheets/palette/_primary.scss","src/templates/assets/stylesheets/utilities/_break.scss"],"names":[],"mappings":"AA2BA,cAGE,6BAME,sDAAA,CACA,6DAAA,CACA,+DAAA,CACA,gEAAA,CACA,mDAAA,CACA,6DAAA,CACA,+DAAA,CACA,gEAAA,CAGA,gDAAA,CACA,gDAAA,CAGA,mCAAA,CACA,iCAAA,CACA,kCAAA,CACA,mCAAA,CACA,mCAAA,CACA,kCAAA,CACA,iCAAA,CACA,+CAAA,CACA,6DAAA,CACA,gEAAA,CACA,4DAAA,CACA,4DAAA,CACA,6DAAA,CAGA,6CAAA,CAGA,+CAAA,CAGA,uDAAA,CACA,6DAAA,CACA,2DAAA,CAGA,iCAAA,CAGA,8BAAA,CAGA,yDAAA,CACA,iEAAA,CAGA,mDAAA,CACA,mDAAA,CAGA,qDAAA,CACA,uDAAA,CAGA,8DAAA,CAKA,8DAAA,CAKA,0DAAA,CAvEA,iBCeF,CD6DE,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KA,4BF0RN,CE1SE,kCACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,sCAAA,CAKA,4BFmSN,CEpRE,sEACE,4BFuRJ,CExRE,+DACE,4BF2RJ,CE5RE,iEACE,4BF+RJ,CEhSE,gEACE,4BFmSJ,CEpSE,iEACE,4BFuSJ,CE9RA,8BACE,mDAAA,CACA,4DAAA,CACA,0DAAA,CACA,oDAAA,CACA,2DAAA,CAGA,4BF+RF,CE5RE,yCACE,+BF8RJ,CE3RI,kDAEE,0CAAA,CACA,sCAAA,CAFA,mCF+RN,CG3MI,mCD1EA,+CACE,8CFwRJ,CErRI,qDACE,8CFuRN,CElRE,iEACE,mCFoRJ,CACF,CGtNI,sCDvDA,uCACE,oCFgRJ,CACF,CEvQA,8BACE,kDAAA,CACA,4DAAA,CACA,wDAAA,CACA,oDAAA,CACA,6DAAA,CAGA,4BFwQF,CErQE,yCACE,+BFuQJ,CEpQI,kDAEE,0CAAA,CACA,sCAAA,CAFA,mCFwQN,CEjQE,yCACE,6CFmQJ,CG5NI,wCDhCA,8CACE,gDF+PJ,CACF,CGjOI,wCDvBA,iFACE,6CF2PJ,CACF,CGzPI,sCDKA,uCACE,6CFuPJ,CACF","file":"palette.css"}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{"version":3,"sources":["src/templates/assets/stylesheets/palette/_scheme.scss","../../../../src/templates/assets/stylesheets/palette.scss","src/templates/assets/stylesheets/palette/_accent.scss","src/templates/assets/stylesheets/palette/_primary.scss","src/templates/assets/stylesheets/utilities/_break.scss"],"names":[],"mappings":"AA2BA,cAGE,6BAQE,YAAA,CAGA,sDAAA,CACA,6DAAA,CACA,+DAAA,CACA,gEAAA,CACA,mDAAA,CACA,6DAAA,CACA,+DAAA,CACA,gEAAA,CAGA,gDAAA,CACA,gDAAA,CAGA,4BAAA,CACA,iCAAA,CACA,kCAAA,CACA,mCAAA,CACA,mCAAA,CACA,kCAAA,CACA,iCAAA,CACA,+CAAA,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E,+BACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAIE,+BAAA,CACA,sCF0QN,CElRE,oCACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,sCF+QN,CE1RE,8BACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,sCFuRN,CElSE,6BACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,sCAAA,CAKA,4BF2RN,CE3SE,kCACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,sCAAA,CAKA,4BFoSN,CErRE,sEACE,4BFwRJ,CEzRE,+DACE,4BF4RJ,CE7RE,iEACE,4BFgSJ,CEjSE,gEACE,4BFoSJ,CErSE,iEACE,4BFwSJ,CE/RA,8BACE,0BAAA,CACA,sCAAA,CACA,qCAAA,CACA,+BAAA,CACA,sCAAA,CAGA,4BFgSF,CE7RE,yCACE,+BF+RJ,CE5RI,kDAEE,0CAAA,CACA,sCAAA,CAFA,UFgSN,CG5MI,mCD1EA,+CACE,0BFyRJ,CEtRI,qDACE,0BFwRN,CEnRE,iEACE,eFqRJ,CACF,CGvNI,sCDvDA,uCACE,oCFiRJ,CACF,CExQA,8BACE,0BAAA,CACA,sCAAA,CACA,gCAAA,CACA,0BAAA,CACA,sCAAA,CAGA,4BFyQF,CEtQE,yCACE,+BFwQJ,CErQI,kDAEE,0CAAA,CACA,sCAAA,CAFA,UFyQN,CElQE,yCACE,qBFoQJ,CG7NI,wCDhCA,8CACE,0BFgQJ,CACF,CGrPI,mCDJA,+CACE,0BF4PJ,CEzPI,qDACE,0BF2PN,CACF,CG1OI,wCDTA,iFACE,qBFsPJ,CACF,CGlQI,sCDmBA,uCACE,qBFkPJ,CACF","file":"palette.css"}

View File

@ -44,10 +44,10 @@
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.91abd1ad.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/main.9f615399.min.css' | url }}">
{% if config.theme.palette %} {% if config.theme.palette %}
{% set palette = config.theme.palette %} {% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.d9da2f1d.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/palette.649f08f9.min.css' | url }}">
{% endif %} {% endif %}
{% include "partials/icons.html" %} {% include "partials/icons.html" %}
{% endblock %} {% endblock %}

View File

@ -70,7 +70,7 @@ theme:
icon: material/brightness-7 icon: material/brightness-7
name: Switch to dark mode name: Switch to dark mode
- scheme: slate - scheme: slate
primary: indigo primary: black
accent: indigo accent: indigo
toggle: toggle:
icon: material/brightness-4 icon: material/brightness-4

View File

@ -39,11 +39,11 @@
// Adjust background for slate theme // Adjust background for slate theme
[data-md-color-scheme="slate"] & { [data-md-color-scheme="slate"] & {
background: background:
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1123 258'><path d='M1124,2c0,0 0,256 0,256l-1125,0l0,-48c0,0 16,5 55,5c116,0 197,-92 325,-92c121,0 114,46 254,46c140,0 214,-167 572,-166Z' style='fill: hsla(232, 15%, 21%, 1)' /></svg>") no-repeat bottom, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1123 258'><path d='M1124,2c0,0 0,256 0,256l-1125,0l0,-48c0,0 16,5 55,5c116,0 197,-92 325,-92c121,0 114,46 254,46c140,0 214,-167 572,-166Z' style='fill: hsla(230, 15%, 14%, 1)' /></svg>") no-repeat bottom,
linear-gradient( linear-gradient(
to bottom, to bottom,
var(--md-primary-fg-color), var(--md-primary-fg-color),
hsla(280, 67%, 55%, 1) 99%, hsla(230, 15%, 25%, 1) 99%,
var(--md-default-bg-color) 99% var(--md-default-bg-color) 99%
); );
} }

View File

@ -65,6 +65,10 @@
// Default theme, i.e. light mode // Default theme, i.e. light mode
%root { %root {
// Color hue in the range [0,360] - change this variable to alter the tone
// of the theme, e.g. to make it more redish or greenish
--md-hue: 230;
// Default color shades // Default color shades
--md-default-fg-color: hsla(0, 0%, 0%, 0.87); --md-default-fg-color: hsla(0, 0%, 0%, 0.87);
--md-default-fg-color--light: hsla(0, 0%, 0%, 0.54); --md-default-fg-color--light: hsla(0, 0%, 0%, 0.54);

View File

@ -182,6 +182,11 @@ kbd {
transition: background-color 125ms; transition: background-color 125ms;
} }
// Strong text
strong {
color: currentcolor;
}
// Show outline for keyboard devices // Show outline for keyboard devices
&.focus-visible { &.focus-visible {
outline-color: var(--md-accent-fg-color); outline-color: var(--md-accent-fg-color);

View File

@ -92,11 +92,11 @@
// Define primary colors for white // Define primary colors for white
[data-md-color-primary="white"] { [data-md-color-primary="white"] {
--md-primary-fg-color: hsla(0, 0%, 100%, 1); --md-primary-fg-color: hsla(var(--md-hue), 0%, 100%, 1);
--md-primary-fg-color--light: hsla(0, 0%, 100%, 0.7); --md-primary-fg-color--light: hsla(var(--md-hue), 0%, 100%, 0.7);
--md-primary-fg-color--dark: hsla(0, 0%, 0%, 0.07); --md-primary-fg-color--dark: hsla(var(--md-hue), 0%, 0%, 0.07);
--md-primary-bg-color: hsla(0, 0%, 0%, 0.87); --md-primary-bg-color: hsla(var(--md-hue), 0%, 0%, 0.87);
--md-primary-bg-color--light: hsla(0, 0%, 0%, 0.54); --md-primary-bg-color--light: hsla(var(--md-hue), 0%, 0%, 0.54);
// Typeset `a` color shades // Typeset `a` color shades
--md-typeset-a-color: hsl(#{hex2hsl($clr-indigo-500)}); --md-typeset-a-color: hsl(#{hex2hsl($clr-indigo-500)});
@ -107,7 +107,7 @@
// Primary button // Primary button
&--primary { &--primary {
color: hsla(0, 0%, 100%, 1); color: hsla(var(--md-hue), 0%, 100%, 1);
background-color: var(--md-typeset-a-color); background-color: var(--md-typeset-a-color);
border-color: var(--md-typeset-a-color); border-color: var(--md-typeset-a-color);
} }
@ -118,17 +118,17 @@
// Search form // Search form
.md-search__form { .md-search__form {
background-color: hsla(0, 0%, 0%, 0.07); background-color: hsla(var(--md-hue), 0%, 0%, 0.07);
// Search form on hover // Search form on hover
&:hover { &:hover {
background-color: hsla(0, 0%, 0%, 0.32); background-color: hsla(var(--md-hue), 0%, 0%, 0.32);
} }
} }
// Search icon // Search icon
.md-search__input + .md-search__icon { .md-search__input + .md-search__icon {
color: hsla(0, 0%, 0%, 0.87); color: hsla(var(--md-hue), 0%, 0%, 0.87);
} }
} }
@ -148,11 +148,11 @@
// Define primary colors for black // Define primary colors for black
[data-md-color-primary="black"] { [data-md-color-primary="black"] {
--md-primary-fg-color: hsla(0, 0%, 0%, 1); --md-primary-fg-color: hsla(var(--md-hue), 15%, 9%, 1);
--md-primary-fg-color--light: hsla(0, 0%, 0%, 0.54); --md-primary-fg-color--light: hsla(var(--md-hue), 15%, 9%, 0.54);
--md-primary-fg-color--dark: hsla(0, 0%, 0%, 1); --md-primary-fg-color--dark: hsla(var(--md-hue), 15%, 9%, 1);
--md-primary-bg-color: hsla(0, 0%, 100%, 1); --md-primary-bg-color: hsla(var(--md-hue), 15%, 100%, 1);
--md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7); --md-primary-bg-color--light: hsla(var(--md-hue), 15%, 100%, 0.7);
// Typeset `a` color shades // Typeset `a` color shades
--md-typeset-a-color: hsl(#{hex2hsl($clr-indigo-500)}); --md-typeset-a-color: hsl(#{hex2hsl($clr-indigo-500)});
@ -163,7 +163,7 @@
// Primary button // Primary button
&--primary { &--primary {
color: hsla(0, 0%, 100%, 1); color: hsla(var(--md-hue), 0%, 100%, 1);
background-color: var(--md-typeset-a-color); background-color: var(--md-typeset-a-color);
border-color: var(--md-typeset-a-color); border-color: var(--md-typeset-a-color);
} }
@ -171,7 +171,7 @@
// Header // Header
.md-header { .md-header {
background-color: hsla(0, 0%, 0%, 1); background-color: hsla(var(--md-hue), 15%, 9%, 1);
} }
// [tablet portrait -]: Layered navigation // [tablet portrait -]: Layered navigation
@ -179,21 +179,7 @@
// Repository information container // Repository information container
.md-nav__source { .md-nav__source {
background-color: hsla(0, 0%, 0%, 0.87); background-color: hsla(var(--md-hue), 15%, 11%, 0.87);
}
}
// [tablet landscape +]: Header-embedded search
@include break-from-device(tablet landscape) {
// Search form
.md-search__form {
background-color: hsla(0, 0%, 100%, 0.12);
// Search form on hover
&:hover {
background-color: hsla(0, 0%, 100%, 0.3);
}
} }
} }
@ -202,7 +188,7 @@
// Site title in main navigation // Site title in main navigation
html & .md-nav--primary .md-nav__title[for="__drawer"] { html & .md-nav--primary .md-nav__title[for="__drawer"] {
background-color: hsla(0, 0%, 0%, 1); background-color: hsla(var(--md-hue), 15%, 9%, 1);
} }
} }
@ -211,7 +197,7 @@
// Navigation tabs // Navigation tabs
.md-tabs { .md-tabs {
background-color: hsla(0, 0%, 0%, 1); background-color: hsla(var(--md-hue), 15%, 9%, 1);
} }
} }
} }

View File

@ -33,27 +33,22 @@
// Indicate that the site is rendered with a dark color scheme // Indicate that the site is rendered with a dark color scheme
color-scheme: dark; color-scheme: dark;
// Slate's hue in the range [0,360] - change this variable to alter the tone
// of the theme, e.g. to make it more redish or greenish. This is a slate-
// specific variable, but the same approach may be adapted to custom themes.
--md-hue: 214;
// Default color shades // Default color shades
--md-default-fg-color: hsla(var(--md-hue), 75%, 95%, 0.84); --md-default-fg-color: hsla(var(--md-hue), 15%, 90%, 0.75);
--md-default-fg-color--light: hsla(var(--md-hue), 75%, 90%, 0.62); --md-default-fg-color--light: hsla(var(--md-hue), 15%, 90%, 0.56);
--md-default-fg-color--lighter: hsla(var(--md-hue), 75%, 90%, 0.32); --md-default-fg-color--lighter: hsla(var(--md-hue), 15%, 90%, 0.32);
--md-default-fg-color--lightest: hsla(var(--md-hue), 75%, 90%, 0.12); --md-default-fg-color--lightest: hsla(var(--md-hue), 15%, 90%, 0.12);
--md-default-bg-color: hsla(var(--md-hue), 22%, 18%, 1); --md-default-bg-color: hsla(var(--md-hue), 15%, 14%, 1);
--md-default-bg-color--light: hsla(var(--md-hue), 22%, 18%, 0.54); --md-default-bg-color--light: hsla(var(--md-hue), 15%, 14%, 0.54);
--md-default-bg-color--lighter: hsla(var(--md-hue), 22%, 18%, 0.26); --md-default-bg-color--lighter: hsla(var(--md-hue), 15%, 14%, 0.26);
--md-default-bg-color--lightest: hsla(var(--md-hue), 22%, 18%, 0.07); --md-default-bg-color--lightest: hsla(var(--md-hue), 15%, 14%, 0.07);
// Code color shades // Code color shades
--md-code-fg-color: hsla(var(--md-hue), 18%, 86%, 1); --md-code-fg-color: hsla(var(--md-hue), 18%, 86%, 1);
--md-code-bg-color: hsla(var(--md-hue), 22%, 15%, 1); --md-code-bg-color: hsla(var(--md-hue), 15%, 17%, 1);
// Code highlighting color shades // Code highlighting color shades
--md-code-hl-color: hsla(#{hex2hsl($clr-blue-a200)}, 0.15); --md-code-hl-color--light: hsla(#{hex2hsl($clr-blue-a200)}, 0.15);
--md-code-hl-number-color: hsla(6, 74%, 63%, 1); --md-code-hl-number-color: hsla(6, 74%, 63%, 1);
--md-code-hl-special-color: hsla(340, 83%, 66%, 1); --md-code-hl-special-color: hsla(340, 83%, 66%, 1);
--md-code-hl-function-color: hsla(291, 57%, 65%, 1); --md-code-hl-function-color: hsla(291, 57%, 65%, 1);
@ -74,8 +69,8 @@
--md-typeset-a-color: var(--md-primary-fg-color); --md-typeset-a-color: var(--md-primary-fg-color);
// Typeset `kbd` color shades // Typeset `kbd` color shades
--md-typeset-kbd-color: hsla(var(--md-hue), 15%, 94%, 0.12); --md-typeset-kbd-color: hsla(var(--md-hue), 15%, 95%, 0.12);
--md-typeset-kbd-accent-color: hsla(var(--md-hue), 15%, 94%, 0.2); --md-typeset-kbd-accent-color: hsla(var(--md-hue), 15%, 95%, 0.2);
--md-typeset-kbd-border-color: hsla(var(--md-hue), 15%, 14%, 1); --md-typeset-kbd-border-color: hsla(var(--md-hue), 15%, 14%, 1);
// Typeset `mark` color shades // Typeset `mark` color shades
@ -85,25 +80,25 @@
--md-typeset-strong-color: hsla(0, 100%, 100%, 1); --md-typeset-strong-color: hsla(0, 100%, 100%, 1);
// Typeset `table` color shades // Typeset `table` color shades
--md-typeset-table-color: hsla(var(--md-hue), 75%, 95%, 0.12); --md-typeset-table-color: hsla(var(--md-hue), 15%, 95%, 0.12);
--md-typeset-table-color--light: hsla(var(--md-hue), 75%, 95%, 0.035); --md-typeset-table-color--light: hsla(var(--md-hue), 15%, 95%, 0.035);
// Admonition color shades // Admonition color shades
--md-admonition-fg-color: var(--md-default-fg-color); --md-admonition-fg-color: var(--md-default-fg-color);
--md-admonition-bg-color: var(--md-default-bg-color); --md-admonition-bg-color: var(--md-default-bg-color);
// Footer color shades // Footer color shades
--md-footer-bg-color: hsla(var(--md-hue), 15%, 12%, 0.87); --md-footer-bg-color: hsla(var(--md-hue), 15%, 10%, 0.87);
--md-footer-bg-color--dark: hsla(var(--md-hue), 15%, 10%, 1); --md-footer-bg-color--dark: hsla(var(--md-hue), 15%, 8%, 1);
// Shadow depth 1 // Shadow depth 1
--md-shadow-z1: --md-shadow-z1:
0 #{px2rem(4px)} #{px2rem(10px)} hsla(0, 0%, 0%, 0.2), 0 #{px2rem(4px)} #{px2rem(10px)} hsla(0, 0%, 0%, 0.05),
0 0 #{px2rem(1px)} hsla(0, 0%, 0%, 0.1); 0 0 #{px2rem(1px)} hsla(0, 0%, 0%, 0.1);
// Shadow depth 2 // Shadow depth 2
--md-shadow-z2: --md-shadow-z2:
0 #{px2rem(4px)} #{px2rem(10px)} hsla(0, 0%, 0%, 0.3), 0 #{px2rem(4px)} #{px2rem(10px)} hsla(0, 0%, 0%, 0.1),
0 0 #{px2rem(1px)} hsla(0, 0%, 0%, 0.25); 0 0 #{px2rem(1px)} hsla(0, 0%, 0%, 0.25);
// Shadow depth 3 // Shadow depth 3