Meet color accessibility standards (#1287)

This commit is contained in:
Jonah Aragon 2022-05-21 20:58:24 -05:00 committed by GitHub
parent 4d6a57689a
commit d14f33d442
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,29 +174,52 @@ h1, h2, h3, .md-header__topic {
/* Badge colors */ /* Badge colors */
.pg-purple { .pg-purple {
color: #7e56c2; color: #603aa0;
}
[data-md-color-scheme="slate"] .pg-purple {
color: #af94de;
} }
.pg-red { .pg-red {
color: #ef5552; color: #c0322f;
}
[data-md-color-scheme="slate"] .pg-red {
color: #ff6c6a;
} }
.pg-orange { .pg-orange {
color: #ff6e42; color: #ac2f09;
}
[data-md-color-scheme="slate"] .pg-orange {
color: #e97b5a;
} }
.pg-teal { .pg-teal {
color: #009485; color: #04756a;
}
[data-md-color-scheme="slate"] .pg-teal {
color: #8dc6c1;
} }
.pg-brown { .pg-brown {
color: #8d6e62; color: #8d6e62;
} }
[data-md-color-scheme="slate"] .pg-brown {
color: #b6988c;
}
.pg-blue { .pg-blue {
color: #2094f3; color: #0e66ae;
}
[data-md-color-scheme="slate"] .pg-blue {
color: #74b9f1;
} }
.pg-green { .pg-green {
color: #4cae4f; color: #2e7e31;
}
[data-md-color-scheme="slate"] .pg-green {
color: #72cd75;
} }
.pg-blue-gray { .pg-blue-gray {
color: #546d78; color: #546d78;
} }
[data-md-color-scheme="slate"] .pg-blue-gray {
color: #9ab2bc;
/* Make light/dark mode icon smaller */ /* Make light/dark mode icon smaller */
label[class="md-header__button md-icon"] svg { label[class="md-header__button md-icon"] svg {