1
1
mirror of https://github.com/primer/css.git synced 2024-11-29 14:14:26 +03:00

Re-Added light & dark colorblind themes (#1601)

* Added light & dark colorblind themes

* Changeset

* Create afraid-pugs-whisper.md

* Updating primitives version

* Removing extra space

* Remove extra changeset

* Add themes

Co-authored-by: Julius Yanik <juliusschaeper@github.com>
Co-authored-by: simurai <simurai@github.com>
This commit is contained in:
Jon Rohan 2021-09-16 18:39:23 -07:00 committed by GitHub
parent 13de16c7d6
commit 410c1d638b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 5 deletions

View File

@ -0,0 +1,5 @@
---
"@primer/css": minor
---
Add light & dark colorblind themes

View File

@ -34,7 +34,7 @@
"release": "changeset publish"
},
"dependencies": {
"@primer/primitives": "^4.7.1"
"@primer/primitives": "^4.8.0"
},
"devDependencies": {
"@changesets/changelog-github": "0.4.1",

View File

@ -1,7 +1,9 @@
// All themes
@import "./themes/light.scss";
@import "./themes/light_protanopia.scss";
@import "./themes/dark.scss";
@import "./themes/dark_dimmed.scss";
@import "./themes/dark_high_contrast.scss";
@import "./themes/dark_protanopia.scss";
@import "./native.scss";

View File

@ -0,0 +1,7 @@
@import "../../support/index.scss";
@import "@primer/primitives/dist/scss/colors/_dark_protanopia.scss";
@include color-mode-theme(dark_protanopia) {
@include primer-colors-dark_protanopia;
}

View File

@ -0,0 +1,7 @@
@import "../../support/index.scss";
@import "@primer/primitives/dist/scss/colors/_light_protanopia.scss";
@include color-mode-theme(light_protanopia) {
@include primer-colors-light_protanopia;
}

View File

@ -880,10 +880,10 @@
"@nodelib/fs.scandir" "2.1.4"
fastq "^1.6.0"
"@primer/primitives@^4.7.1":
version "4.7.1"
resolved "https://registry.yarnpkg.com/@primer/primitives/-/primitives-4.7.1.tgz#2510ca37dd83d1e9cacda7637f2a594edff0391d"
integrity sha512-kttAUcP3QgT5UbYLeMTKDxPvnAVzywX0xnKPcLkmEVQyhmEBlTO4LSlYIzL5YcKyklHcFRf1426UcGOY9wdWDQ==
"@primer/primitives@^4.8.0":
version "4.8.0"
resolved "https://registry.yarnpkg.com/@primer/primitives/-/primitives-4.8.0.tgz#674d4958d9b2256cc8226d4e6e328686a84b8564"
integrity sha512-et4Kwt5LRy5YskHYHFJBoqWoqTHsdQHAOV5YvqQco2P7fQ3Xnus6tMQDuoD2cR03S86qKAjNYO9E6grDxVJWZA==
"@sinonjs/commons@^1.7.0":
version "1.8.2"