function definePalette(name, map) {
    map = map || {};
    PALETTES[name] = checkPaletteValid(name, map);
    return themingProvider;
  }
@ngdoc method
@name $mdThemingProvider#definePalette
@description
In the event that you need to define a custom color palette, you can use this function to
make it available to your theme for use in its intention groups.<br>
Note that you must specify all hues in the definition map.
@param {string} name Name of palette being defined
@param {object} map Palette definition that includes hue definitions and contrast colors:
- `'50'` - `{string}`: HEX color
- `'100'` - `{string}`: HEX color
- `'200'` - `{string}`: HEX color
- `'300'` - `{string}`: HEX color
- `'400'` - `{string}`: HEX color
- `'500'` - `{string}`: HEX color
- `'600'` - `{string}`: HEX color
- `'700'` - `{string}`: HEX color
- `'800'` - `{string}`: HEX color
- `'900'` - `{string}`: HEX color
- `'A100'` - `{string}`: HEX color
- `'A200'` - `{string}`: HEX color
- `'A400'` - `{string}`: HEX color
- `'A700'` - `{string}`: HEX color
- `'contrastDefaultColor'` - `{string}`: `light` or `dark`
- `'contrastDarkColors'` - `{string[]}`: Hues which should use dark contrast colors (i.e. raised button text).
 For example: `['50', '100', '200', '300', '400', 'A100']`.
- `'contrastLightColors'` - `{string[]}`: Hues which should use light contrast colors (i.e. raised button text).
 For example: `['500', '600', '700', '800', '900', 'A200', 'A400', 'A700']`.