Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/healthy-ears-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/primitives': patch
---

Updated fg.default and fg.muted for most themes to reset to previous versions
4 changes: 4 additions & 0 deletions data/colors/themes/dark_colorblind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
},
Expand Down
6 changes: 5 additions & 1 deletion data/colors/themes/dark_dimmed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
},
Expand All @@ -70,4 +74,4 @@ const exceptions = {
}
}

export default merge(dark, {scale})
export default merge(dark, exceptions, {scale})
1 change: 1 addition & 0 deletions data/colors/themes/dark_high_contrast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ const scale = {

const exceptions = {
fg: {
default: get('scale.gray.1'),
muted: get('scale.gray.1'),
onEmphasis: get('scale.gray.9')
},
Expand Down
4 changes: 4 additions & 0 deletions data/colors/themes/dark_tritanopia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
},
Expand Down
4 changes: 4 additions & 0 deletions data/colors/themes/light_colorblind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
},
Expand Down
1 change: 1 addition & 0 deletions data/colors/themes/light_high_contrast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ coral: [

const exceptions = {
fg: {
default: get('scale.gray.9'),
muted: get('scale.gray.9'),
},
canvas: {
Expand Down
4 changes: 4 additions & 0 deletions data/colors/themes/light_tritanopia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
},
Expand Down