From f36d0e5fbc6e498d1d625a5958ba667966de8575 Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Thu, 16 Sep 2021 16:19:32 -0700 Subject: [PATCH] Revert "Added light & dark colorblind themes (#1596)" (#1598) This reverts commit dc99ed86cda4f38ce04cebac74a97a570bc5a171. --- .changeset/afraid-pugs-whisper.md | 5 ----- package.json | 2 +- src/base/modes.scss | 10 ---------- yarn.lock | 8 ++++---- 4 files changed, 5 insertions(+), 20 deletions(-) delete mode 100644 .changeset/afraid-pugs-whisper.md diff --git a/.changeset/afraid-pugs-whisper.md b/.changeset/afraid-pugs-whisper.md deleted file mode 100644 index 09754879..00000000 --- a/.changeset/afraid-pugs-whisper.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/css": minor ---- - -Add light & dark colorblind themes diff --git a/package.json b/package.json index fb4204b0..3181aa15 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "release": "changeset publish" }, "dependencies": { - "@primer/primitives": "^4.8.0" + "@primer/primitives": "^4.7.1" }, "devDependencies": { "@changesets/changelog-github": "0.4.1", diff --git a/src/base/modes.scss b/src/base/modes.scss index cc3fb3c2..1691ee7b 100644 --- a/src/base/modes.scss +++ b/src/base/modes.scss @@ -3,11 +3,9 @@ @import "../support/mixins/color-modes.scss"; @import "@primer/primitives/dist/scss/colors/_light.scss"; -@import "@primer/primitives/dist/scss/colors/_light_protanopia.scss"; @import "@primer/primitives/dist/scss/colors/_dark.scss"; @import "@primer/primitives/dist/scss/colors/_dark_dimmed.scss"; @import "@primer/primitives/dist/scss/colors/_dark_high_contrast.scss"; -@import "@primer/primitives/dist/scss/colors/_dark_protanopia.scss"; // Outputs the CSS variables // Use :root (html element) to define a default @@ -16,10 +14,6 @@ @include primer-colors-light; } -@include color-mode-theme(light_protanopia) { - @include primer-colors-light-protanopia; -} - @include color-mode-theme(dark) { @include primer-colors-dark; } @@ -32,10 +26,6 @@ @include primer-colors-dark_high_contrast; } -@include color-mode-theme(dark_protanopia) { - @include primer-colors-dark_protanopia; -} - // Color mode boundaries // Enables nesting of different color modes diff --git a/yarn.lock b/yarn.lock index f04ea2a2..be4fb7d1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -880,10 +880,10 @@ "@nodelib/fs.scandir" "2.1.4" fastq "^1.6.0" -"@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== +"@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== "@sinonjs/commons@^1.7.0": version "1.8.2"