Skip to content

Commit

Permalink
Re-Added light & dark colorblind themes (#1601)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: simurai <[email protected]>
  • Loading branch information
3 people authored Sep 17, 2021
1 parent 13de16c commit 410c1d6
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-pugs-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": minor
---

Add light & dark colorblind themes
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/color-modes/index.scss
Original file line number Diff line number Diff line change
@@ -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";
7 changes: 7 additions & 0 deletions src/color-modes/themes/dark_protanopia.scss
Original file line number Diff line number Diff line change
@@ -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;
}
7 changes: 7 additions & 0 deletions src/color-modes/themes/light_protanopia.scss
Original file line number Diff line number Diff line change
@@ -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;
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 410c1d6

Please sign in to comment.