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 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..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'), }, @@ -70,4 +74,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'), },