Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 62438a2

Browse files
committed
fix(theming): update palette contrast types to current spec
Set hues with contrast type `light` to `strongLight`. Set contrast type for `green` `500` to `dark`.
1 parent 7f01138 commit 62438a2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/core/services/theming/theme.palette.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ angular.module('material.core.theming.palette', [])
1717
'A700': '#d50000',
1818
'contrastDefaultColor': 'light',
1919
'contrastDarkColors': '50 100 200 300 A100',
20-
'contrastStrongLightColors': '400 500 600 700 A200 A400 A700'
20+
'contrastStrongLightColors': '400 500 600 700 800 900 A200 A400 A700'
2121
},
2222
'pink': {
2323
'50': '#fce4ec',
@@ -36,7 +36,7 @@ angular.module('material.core.theming.palette', [])
3636
'A700': '#c51162',
3737
'contrastDefaultColor': 'light',
3838
'contrastDarkColors': '50 100 200 A100',
39-
'contrastStrongLightColors': '500 600 A200 A400 A700'
39+
'contrastStrongLightColors': '300 400 500 600 700 800 900 A200 A400 A700'
4040
},
4141
'purple': {
4242
'50': '#f3e5f5',
@@ -55,7 +55,7 @@ angular.module('material.core.theming.palette', [])
5555
'A700': '#aa00ff',
5656
'contrastDefaultColor': 'light',
5757
'contrastDarkColors': '50 100 200 A100',
58-
'contrastStrongLightColors': '300 400 A200 A400 A700'
58+
'contrastStrongLightColors': '300 400 500 600 700 800 900 A200 A400 A700'
5959
},
6060
'deep-purple': {
6161
'50': '#ede7f6',
@@ -74,7 +74,7 @@ angular.module('material.core.theming.palette', [])
7474
'A700': '#6200ea',
7575
'contrastDefaultColor': 'light',
7676
'contrastDarkColors': '50 100 200 A100',
77-
'contrastStrongLightColors': '300 400 A200'
77+
'contrastStrongLightColors': '300 400 500 600 700 800 900 A200 A400 A700'
7878
},
7979
'indigo': {
8080
'50': '#e8eaf6',
@@ -93,7 +93,7 @@ angular.module('material.core.theming.palette', [])
9393
'A700': '#304ffe',
9494
'contrastDefaultColor': 'light',
9595
'contrastDarkColors': '50 100 200 A100',
96-
'contrastStrongLightColors': '300 400 A200 A400'
96+
'contrastStrongLightColors': '300 400 500 600 700 800 900 A200 A400 A700'
9797
},
9898
'blue': {
9999
'50': '#e3f2fd',
@@ -112,7 +112,7 @@ angular.module('material.core.theming.palette', [])
112112
'A700': '#2962ff',
113113
'contrastDefaultColor': 'light',
114114
'contrastDarkColors': '50 100 200 300 400 A100',
115-
'contrastStrongLightColors': '500 600 700 A200 A400 A700'
115+
'contrastStrongLightColors': '500 600 700 800 900 A200 A400 A700'
116116
},
117117
'light-blue': {
118118
'50': '#e1f5fe',
@@ -131,7 +131,7 @@ angular.module('material.core.theming.palette', [])
131131
'A700': '#0091ea',
132132
'contrastDefaultColor': 'dark',
133133
'contrastLightColors': '600 700 800 900 A700',
134-
'contrastStrongLightColors': '600 700 800 A700'
134+
'contrastStrongLightColors': '600 700 800 900 A700'
135135
},
136136
'cyan': {
137137
'50': '#e0f7fa',
@@ -169,7 +169,7 @@ angular.module('material.core.theming.palette', [])
169169
'A700': '#00bfa5',
170170
'contrastDefaultColor': 'dark',
171171
'contrastLightColors': '500 600 700 800 900',
172-
'contrastStrongLightColors': '500 600 700'
172+
'contrastStrongLightColors': '500 600 700 800 900'
173173
},
174174
'green': {
175175
'50': '#e8f5e9',
@@ -187,8 +187,8 @@ angular.module('material.core.theming.palette', [])
187187
'A400': '#00e676',
188188
'A700': '#00c853',
189189
'contrastDefaultColor': 'dark',
190-
'contrastLightColors': '500 600 700 800 900',
191-
'contrastStrongLightColors': '500 600 700'
190+
'contrastLightColors': '600 700 800 900',
191+
'contrastStrongLightColors': '600 700 800 900'
192192
},
193193
'light-green': {
194194
'50': '#f1f8e9',
@@ -317,7 +317,7 @@ angular.module('material.core.theming.palette', [])
317317
'A700': '#5d4037',
318318
'contrastDefaultColor': 'light',
319319
'contrastDarkColors': '50 100 200 A100 A200',
320-
'contrastStrongLightColors': '300 400'
320+
'contrastStrongLightColors': '300 400 500 600 700 800 900 A400 A700'
321321
},
322322
'grey': {
323323
'50': '#fafafa',
@@ -354,6 +354,6 @@ angular.module('material.core.theming.palette', [])
354354
'A700': '#455a64',
355355
'contrastDefaultColor': 'light',
356356
'contrastDarkColors': '50 100 200 300 A100 A200',
357-
'contrastStrongLightColors': '400 500 700'
357+
'contrastStrongLightColors': '400 500 600 700 800 900 A400 A700'
358358
}
359359
});

0 commit comments

Comments
 (0)