Skip to content

Commit

Permalink
Normalize color data to lowercase hex (#338)
Browse files Browse the repository at this point in the history
* Normalize color data to lowercase hex

* Create ninety-goats-glow.md

Co-authored-by: simurai <[email protected]>
  • Loading branch information
adrian5 and simurai authored Jul 21, 2022
1 parent 607cc75 commit 4dc8e2e
Show file tree
Hide file tree
Showing 11 changed files with 63 additions and 58 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-goats-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/primitives": patch
---

Normalize color data to lowercase hex
16 changes: 8 additions & 8 deletions data/colors/themes/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ const scale = {
],
pink: ['#ffdaec', '#ffbedd', '#ff9bce', '#f778ba', '#db61a2', '#bf4b8a', '#9e3670', '#7d2457', '#5e103e', '#42062a'],
coral: [
'#FFDDD2',
'#FFC2B2',
'#FFA28B',
'#F78166',
'#EA6045',
'#CF462D',
'#AC3220',
'#ffddd2',
'#ffc2b2',
'#ffa28b',
'#f78166',
'#ea6045',
'#cf462d',
'#ac3220',
'#872012',
'#640D04',
'#640d04',
'#460701'
]
}
Expand Down
2 changes: 1 addition & 1 deletion data/colors/themes/dark_colorblind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const scale = {
'#271052'
],
pink: ['#ffdaec', '#ffbedd', '#ff9bce', '#f778ba', '#db61a2', '#bf4b8a', '#9e3670', '#7d2457', '#5e103e', '#42062a'],
coral: ['#FFDDD2', '#FFC2B2', '#FFA28B', '#F78166', '#EA6045', '#CF462D', '#AC3220', '#872012', '#640D04', '#460701']
coral: ['#ffddd2', '#ffc2b2', '#ffa28b', '#f78166', '#ea6045', '#cf462d', '#ac3220', '#872012', '#640d04', '#460701']
}

const exceptions = {
Expand Down
22 changes: 11 additions & 11 deletions data/colors/themes/dark_dimmed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const scale = {
'#682d0f',
'#4d210c'
],
red: ['#ffd8d3', '#ffb8b0', '#ff938a', '#f47067', '#e5534b', '#c93c37', '#ad2e2c', '#922323', '#78191b', '#5D0F12'],
red: ['#ffd8d3', '#ffb8b0', '#ff938a', '#f47067', '#e5534b', '#c93c37', '#ad2e2c', '#922323', '#78191b', '#5d0f12'],
purple: [
'#eedcff',
'#dcbdfb',
Expand All @@ -46,16 +46,16 @@ const scale = {
],
pink: ['#ffd7eb', '#ffb3d8', '#fc8dc7', '#e275ad', '#c96198', '#ae4c82', '#983b6e', '#7e325a', '#69264a', '#551639'],
coral: [
'#FFDACF',
'#FFB9A5',
'#F79981',
'#EC775C',
'#DE5B41',
'#C2442D',
'#A93524',
'#8D291B',
'#771D13',
'#5D1008'
'#ffdacf',
'#ffb9a5',
'#f79981',
'#ec775c',
'#de5b41',
'#c2442d',
'#a93524',
'#8d291b',
'#771d13',
'#5d1008'
]
}

Expand Down
20 changes: 10 additions & 10 deletions data/colors/themes/dark_high_contrast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,16 @@ const scale = {
'#9c1d6a'
],
coral: [
'#FFDED4',
'#FFCBB9',
'#FFB39B',
'#FF967D',
'#FC704F',
'#FC704F',
'#F75133',
'#E03B21',
'#C62612',
'#A91500'
'#ffded4',
'#ffcbb9',
'#ffb39b',
'#ff967d',
'#fc704f',
'#fc704f',
'#f75133',
'#e03b21',
'#c62612',
'#a91500'
]
}

Expand Down
2 changes: 1 addition & 1 deletion data/colors/themes/dark_tritanopia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const scale = {
'#271052'
],
pink: ['#ffdaec', '#ffbedd', '#ff9bce', '#f778ba', '#db61a2', '#bf4b8a', '#9e3670', '#7d2457', '#5e103e', '#42062a'],
coral: ['#FFDDD2', '#FFC2B2', '#FFA28B', '#F78166', '#EA6045', '#CF462D', '#AC3220', '#872012', '#640D04', '#460701']
coral: ['#ffddd2', '#ffc2b2', '#ffa28b', '#f78166', '#ea6045', '#cf462d', '#ac3220', '#872012', '#640d04', '#460701']
}

export default merge(dark_colorblind, {scale})
18 changes: 9 additions & 9 deletions data/colors/themes/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const scale = {
'#5c2200',
'#471700'
],
red: ['#FFEBE9', '#ffcecb', '#ffaba8', '#ff8182', '#fa4549', '#cf222e', '#a40e26', '#82071e', '#660018', '#4c0014'],
red: ['#ffebe9', '#ffcecb', '#ffaba8', '#ff8182', '#fa4549', '#cf222e', '#a40e26', '#82071e', '#660018', '#4c0014'],
purple: [
'#fbefff',
'#ecd8ff',
Expand All @@ -50,14 +50,14 @@ const scale = {
],
pink: ['#ffeff7', '#ffd3eb', '#ffadda', '#ff80c8', '#e85aad', '#bf3989', '#99286e', '#772057', '#611347', '#4d0336'],
coral: [
'#FFF0EB',
'#FFD6CC',
'#FFB4A1',
'#FD8C73',
'#EC6547',
'#C4432B',
'#9E2F1C',
'#801F0F',
'#fff0eb',
'#ffd6cc',
'#ffb4a1',
'#fd8c73',
'#ec6547',
'#c4432b',
'#9e2f1c',
'#801f0f',
'#691105',
'#510901'
]
Expand Down
2 changes: 1 addition & 1 deletion data/colors/themes/light_colorblind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const scale = {
'#2e1461'
],
pink: ['#ffeff7', '#ffd3eb', '#ffadda', '#ff80c8', '#e85aad', '#bf3989', '#99286e', '#772057', '#611347', '#4d0336'],
coral: ['#FFF0EB', '#FFD6CC', '#FFB4A1', '#FD8C73', '#EC6547', '#C4432B', '#9E2F1C', '#801F0F', '#691105', '#510901']
coral: ['#fff0eb', '#ffd6cc', '#ffb4a1', '#fd8c73', '#ec6547', '#c4432b', '#9e2f1c', '#801f0f', '#691105', '#510901']
}

const exceptions = {
Expand Down
20 changes: 10 additions & 10 deletions data/colors/themes/light_high_contrast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ const scale = {
black: '#010409',
white: '#ffffff',
gray: [
'#FFFFFF',
'#E7ECF0',
'#CED5DC',
'#ACB6C0',
'#88929D',
'#66707B',
'#4B535D',
'#343B43',
'#20252C',
'#0E1116'
'#ffffff',
'#e7ecf0',
'#ced5dc',
'#acb6c0',
'#88929d',
'#66707b',
'#4b535d',
'#343b43',
'#20252c',
'#0e1116'
],
blue: [
'#dff7ff',
Expand Down
6 changes: 3 additions & 3 deletions data/colors/themes/light_tritanopia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const scale = {
'#3b2300'
],
orange: [
'#FFEBE9',
'#ffebe9',
'#ffcecb',
'#ffaba8',
'#ff8182',
Expand All @@ -32,7 +32,7 @@ const scale = {
'#4c0014'
],
red: [
'#FFEBE9',
'#ffebe9',
'#ffcecb',
'#ffaba8',
'#ff8182',
Expand All @@ -56,7 +56,7 @@ const scale = {
'#2e1461'
],
pink: ['#ffeff7', '#ffd3eb', '#ffadda', '#ff80c8', '#e85aad', '#bf3989', '#99286e', '#772057', '#611347', '#4d0336'],
coral: ['#FFF0EB', '#FFD6CC', '#FFB4A1', '#FD8C73', '#EC6547', '#C4432B', '#9E2F1C', '#801F0F', '#691105', '#510901']
coral: ['#fff0eb', '#ffd6cc', '#ffb4a1', '#fd8c73', '#ec6547', '#c4432b', '#9e2f1c', '#801f0f', '#691105', '#510901']
}

export default merge(light_colorblind, {scale})
8 changes: 4 additions & 4 deletions data/colors/vars/app_light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ export default {
addition: {
numText: get('fg.default'),
fg: get('fg.default'),
numBg: '#CCFFD8',
lineBg: '#E6FFEC',
wordBg: '#ABF2BC'
numBg: '#ccffd8',
lineBg: '#e6ffec',
wordBg: '#abf2bc'
},
deletion: {
numText: get('fg.default'),
fg: get('fg.default'),
numBg: '#FFD7D5',
numBg: '#ffd7d5',
lineBg: get('danger.subtle'),
wordBg: get('danger.muted')
},
Expand Down

0 comments on commit 4dc8e2e

Please sign in to comment.