From d77eaee210de6d1f899f70f1546d4d5a0c82a0c7 Mon Sep 17 00:00:00 2001 From: Lukas Oppermann Date: Wed, 5 Apr 2023 08:22:15 +0200 Subject: [PATCH 1/3] update fg muted and default --- data/colors/themes/dark_colorblind.ts | 4 ++++ data/colors/themes/dark_dimmed.ts | 2 +- data/colors/themes/dark_high_contrast.ts | 1 + data/colors/themes/dark_tritanopia.ts | 4 ++++ data/colors/themes/light_colorblind.ts | 4 ++++ data/colors/themes/light_high_contrast.ts | 1 + data/colors/themes/light_tritanopia.ts | 4 ++++ 7 files changed, 19 insertions(+), 1 deletion(-) diff --git a/data/colors/themes/dark_colorblind.ts b/data/colors/themes/dark_colorblind.ts index bc3c07089..39638e4b0 100644 --- a/data/colors/themes/dark_colorblind.ts +++ b/data/colors/themes/dark_colorblind.ts @@ -60,6 +60,10 @@ const scale = { } const exceptions = { + fg: { + default: get('scale.gray.1'), + muted: get('scale.gray.3'), + }, accent: { fg: get('scale.blue.3'), }, diff --git a/data/colors/themes/dark_dimmed.ts b/data/colors/themes/dark_dimmed.ts index 159a0ff14..7b2841d8c 100644 --- a/data/colors/themes/dark_dimmed.ts +++ b/data/colors/themes/dark_dimmed.ts @@ -70,4 +70,4 @@ const exceptions = { } } -export default merge(dark, {scale}) +export default merge(dark, exceptions, {scale}) diff --git a/data/colors/themes/dark_high_contrast.ts b/data/colors/themes/dark_high_contrast.ts index 8c6a924dc..9d890a41a 100644 --- a/data/colors/themes/dark_high_contrast.ts +++ b/data/colors/themes/dark_high_contrast.ts @@ -116,6 +116,7 @@ const scale = { const exceptions = { fg: { + default: get('scale.gray.1'), muted: get('scale.gray.1'), onEmphasis: get('scale.gray.9') }, diff --git a/data/colors/themes/dark_tritanopia.ts b/data/colors/themes/dark_tritanopia.ts index e85ed17cd..70de17a41 100644 --- a/data/colors/themes/dark_tritanopia.ts +++ b/data/colors/themes/dark_tritanopia.ts @@ -60,6 +60,10 @@ const scale = { } const exceptions = { + fg: { + default: get('scale.gray.1'), + muted: get('scale.gray.3'), + }, accent: { fg: get('scale.blue.3'), }, diff --git a/data/colors/themes/light_colorblind.ts b/data/colors/themes/light_colorblind.ts index e6538359e..fe47828ed 100644 --- a/data/colors/themes/light_colorblind.ts +++ b/data/colors/themes/light_colorblind.ts @@ -60,6 +60,10 @@ const scale = { } const exceptions = { + fg: { + default: get('scale.gray.9'), + muted: get('scale.gray.6'), + }, success: { emphasis: get('scale.green.5'), }, diff --git a/data/colors/themes/light_high_contrast.ts b/data/colors/themes/light_high_contrast.ts index 248c52e8c..d9665880d 100644 --- a/data/colors/themes/light_high_contrast.ts +++ b/data/colors/themes/light_high_contrast.ts @@ -116,6 +116,7 @@ coral: [ const exceptions = { fg: { + default: get('scale.gray.9'), muted: get('scale.gray.9'), }, canvas: { diff --git a/data/colors/themes/light_tritanopia.ts b/data/colors/themes/light_tritanopia.ts index 75f4645c7..ce0e8ddb9 100644 --- a/data/colors/themes/light_tritanopia.ts +++ b/data/colors/themes/light_tritanopia.ts @@ -60,6 +60,10 @@ const scale = { } const exceptions = { + fg: { + default: get('scale.gray.9'), + muted: get('scale.gray.6'), + }, success: { emphasis: get('scale.green.5'), }, From 3fb314e1fa1a279b324dcffb11a4a93b81da374b Mon Sep 17 00:00:00 2001 From: Lukas Oppermann Date: Wed, 5 Apr 2023 08:23:37 +0200 Subject: [PATCH 2/3] added changeset --- .changeset/healthy-ears-look.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/healthy-ears-look.md diff --git a/.changeset/healthy-ears-look.md b/.changeset/healthy-ears-look.md new file mode 100644 index 000000000..8545350f8 --- /dev/null +++ b/.changeset/healthy-ears-look.md @@ -0,0 +1,5 @@ +--- +'@primer/primitives': patch +--- + +Updated fg.default and fg.muted for most themes to reset to previous versions From df6cabb1106b233a7a40f60d5a2b0c2ee7f54436 Mon Sep 17 00:00:00 2001 From: Lukas Oppermann Date: Wed, 5 Apr 2023 08:47:28 +0200 Subject: [PATCH 3/3] add dark dimmed --- data/colors/themes/dark_dimmed.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/colors/themes/dark_dimmed.ts b/data/colors/themes/dark_dimmed.ts index 7b2841d8c..2527fbb98 100644 --- a/data/colors/themes/dark_dimmed.ts +++ b/data/colors/themes/dark_dimmed.ts @@ -60,6 +60,10 @@ const scale = { } const exceptions = { + fg: { + default: get('scale.gray.1'), + muted: get('scale.gray.3'), + }, accent: { fg: get('scale.blue.3'), },