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

fix(theming): update palette contrast types to current spec #8993

Closed
Closed
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
24 changes: 12 additions & 12 deletions src/core/services/theming/theme.palette.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ angular.module('material.core.theming.palette', [])
'A700': '#d50000',
'contrastDefaultColor': 'light',
'contrastDarkColors': '50 100 200 300 A100',
'contrastStrongLightColors': '400 500 600 700 A200 A400 A700'
'contrastStrongLightColors': '400 500 600 700 800 900 A200 A400 A700'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how you decided that 800 and 900 should be strong light?

},
'pink': {
'50': '#fce4ec',
Expand All @@ -36,7 +36,7 @@ angular.module('material.core.theming.palette', [])
'A700': '#c51162',
'contrastDefaultColor': 'light',
'contrastDarkColors': '50 100 200 A100',
'contrastStrongLightColors': '500 600 A200 A400 A700'
'contrastStrongLightColors': '300 400 500 600 700 800 900 A200 A400 A700'
},
'purple': {
'50': '#f3e5f5',
Expand All @@ -55,7 +55,7 @@ angular.module('material.core.theming.palette', [])
'A700': '#aa00ff',
'contrastDefaultColor': 'light',
'contrastDarkColors': '50 100 200 A100',
'contrastStrongLightColors': '300 400 A200 A400 A700'
'contrastStrongLightColors': '300 400 500 600 700 800 900 A200 A400 A700'
},
'deep-purple': {
'50': '#ede7f6',
Expand All @@ -74,7 +74,7 @@ angular.module('material.core.theming.palette', [])
'A700': '#6200ea',
'contrastDefaultColor': 'light',
'contrastDarkColors': '50 100 200 A100',
'contrastStrongLightColors': '300 400 A200'
'contrastStrongLightColors': '300 400 500 600 700 800 900 A200 A400 A700'
},
'indigo': {
'50': '#e8eaf6',
Expand All @@ -93,7 +93,7 @@ angular.module('material.core.theming.palette', [])
'A700': '#304ffe',
'contrastDefaultColor': 'light',
'contrastDarkColors': '50 100 200 A100',
'contrastStrongLightColors': '300 400 A200 A400'
'contrastStrongLightColors': '300 400 500 600 700 800 900 A200 A400 A700'
},
'blue': {
'50': '#e3f2fd',
Expand All @@ -112,7 +112,7 @@ angular.module('material.core.theming.palette', [])
'A700': '#2962ff',
'contrastDefaultColor': 'light',
'contrastDarkColors': '50 100 200 300 400 A100',
'contrastStrongLightColors': '500 600 700 A200 A400 A700'
'contrastStrongLightColors': '500 600 700 800 900 A200 A400 A700'
},
'light-blue': {
'50': '#e1f5fe',
Expand All @@ -131,7 +131,7 @@ angular.module('material.core.theming.palette', [])
'A700': '#0091ea',
'contrastDefaultColor': 'dark',
'contrastLightColors': '600 700 800 900 A700',
'contrastStrongLightColors': '600 700 800 A700'
'contrastStrongLightColors': '600 700 800 900 A700'
},
'cyan': {
'50': '#e0f7fa',
Expand Down Expand Up @@ -169,7 +169,7 @@ angular.module('material.core.theming.palette', [])
'A700': '#00bfa5',
'contrastDefaultColor': 'dark',
'contrastLightColors': '500 600 700 800 900',
'contrastStrongLightColors': '500 600 700'
'contrastStrongLightColors': '500 600 700 800 900'
},
'green': {
'50': '#e8f5e9',
Expand All @@ -187,8 +187,8 @@ angular.module('material.core.theming.palette', [])
'A400': '#00e676',
'A700': '#00c853',
'contrastDefaultColor': 'dark',
'contrastLightColors': '500 600 700 800 900',
'contrastStrongLightColors': '500 600 700'
'contrastLightColors': '600 700 800 900',
'contrastStrongLightColors': '600 700 800 900'
},
'light-green': {
'50': '#f1f8e9',
Expand Down Expand Up @@ -317,7 +317,7 @@ angular.module('material.core.theming.palette', [])
'A700': '#5d4037',
'contrastDefaultColor': 'light',
'contrastDarkColors': '50 100 200 A100 A200',
'contrastStrongLightColors': '300 400'
'contrastStrongLightColors': '300 400 500 600 700 800 900 A400 A700'
},
'grey': {
'50': '#fafafa',
Expand Down Expand Up @@ -354,6 +354,6 @@ angular.module('material.core.theming.palette', [])
'A700': '#455a64',
'contrastDefaultColor': 'light',
'contrastDarkColors': '50 100 200 300 A100 A200',
'contrastStrongLightColors': '400 500 700'
'contrastStrongLightColors': '400 500 600 700 800 900 A400 A700'
}
});