{"action":"created","issue":{"url":"https://api.github.com/repos/callemall/material-ui/issues/6954","repository_url":"https://api.github.com/repos/callemall/material-ui","labels_url":"https://api.github.com/repos/callemall/material-ui/issues/6954/labels{/name}","comments_url":"https://api.github.com/repos/callemall/material-ui/issues/6954/comments","events_url":"https://api.github.com/repos/callemall/material-ui/issues/6954/events","html_url":"https://github.com/callemall/material-ui/issues/6954","id":231323266,"number":6954,"title":"custom background color is not being added ","user":{"login":"devarashetty","id":12096450,"avatar_url":"https://avatars1.githubusercontent.com/u/12096450?v=3","gravatar_id":"","url":"https://api.github.com/users/devarashetty","html_url":"https://github.com/devarashetty","followers_url":"https://api.github.com/users/devarashetty/followers","following_url":"https://api.github.com/users/devarashetty/following{/other_user}","gists_url":"https://api.github.com/users/devarashetty/gists{/gist_id}","starred_url":"https://api.github.com/users/devarashetty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devarashetty/subscriptions","organizations_url":"https://api.github.com/users/devarashetty/orgs","repos_url":"https://api.github.com/users/devarashetty/repos","events_url":"https://api.github.com/users/devarashetty/events{/privacy}","received_events_url":"https://api.github.com/users/devarashetty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-25T12:14:53Z","updated_at":"2017-05-25T12:17:33Z","closed_at":null,"body":"I tried to configure my theme in the following but the background color is not being implemented \r\n\r\n```\r\nconst theme = createMuiTheme({\r\n  overrides: {\r\n    MuiCard: {\r\n      root: {\r\n        background: '#4DC9AC',\r\n      },\r\n    },\r\n  },\r\n  \"direction\": \"ltr\",\r\n  \"palette\": createPalette({\r\n    background: {\r\n      \"appBar\": \"#000\",\r\n      \"contentFrame\": \"#000\",\r\n      \"default\": \"#ffffff\",\r\n      \"paper\": \"#000\",\r\n      \"status\": \"#000\"\r\n    }\r\n  })\r\n})\r\n```"},"comment":{"url":"https://api.github.com/repos/callemall/material-ui/issues/comments/303996636","html_url":"https://github.com/callemall/material-ui/issues/6954#issuecomment-303996636","issue_url":"https://api.github.com/repos/callemall/material-ui/issues/6954","id":303996636,"user":{"login":"devarashetty","id":12096450,"avatar_url":"https://avatars1.githubusercontent.com/u/12096450?v=3","gravatar_id":"","url":"https://api.github.com/users/devarashetty","html_url":"https://github.com/devarashetty","followers_url":"https://api.github.com/users/devarashetty/followers","following_url":"https://api.github.com/users/devarashetty/following{/other_user}","gists_url":"https://api.github.com/users/devarashetty/gists{/gist_id}","starred_url":"https://api.github.com/users/devarashetty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devarashetty/subscriptions","organizations_url":"https://api.github.com/users/devarashetty/orgs","repos_url":"https://api.github.com/users/devarashetty/repos","events_url":"https://api.github.com/users/devarashetty/events{/privacy}","received_events_url":"https://api.github.com/users/devarashetty/received_events","type":"User","site_admin":false},"created_at":"2017-05-25T12:17:33Z","updated_at":"2017-05-25T12:17:33Z","body":"I found that only certain fields are being overridden under `createPalette` function\r\n\r\nI verified the `createPalette` function and found that only certain fields are being overridden , can I know why it's  written that way ?\r\n\r\n\r\n```\r\nfunction createPalette() {\r\n  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\r\n  var _options$primary = options.primary,\r\n      primary = _options$primary === undefined ? _colors.indigo : _options$primary,\r\n      _options$accent = options.accent,\r\n      accent = _options$accent === undefined ? _colors.pink : _options$accent,\r\n      _options$error = options.error,\r\n      error = _options$error === undefined ? _colors.red : _options$error,\r\n      _options$type = options.type,\r\n      type = _options$type === undefined ? 'light' : _options$type;\r\n\r\n\r\n  if (process.env.NODE_ENV !== 'production') {\r\n    var PaletteColorError = function (_Error) {\r\n      (0, _inherits3.default)(PaletteColorError, _Error);\r\n\r\n      function PaletteColorError(themeColor) {\r\n        (0, _classCallCheck3.default)(this, PaletteColorError);\r\n\r\n        var palette = createPalette();\r\n        var message = [themeColor + ' must have the following attributes: ' + (0, _keys2.default)(palette[themeColor]), 'See the default colors, indigo, or pink, as exported from material-ui/style/colors.'];\r\n        return (0, _possibleConstructorReturn3.default)(this, (PaletteColorError.__proto__ || (0, _getPrototypeOf2.default)(PaletteColorError)).call(this, message.join('\\n')));\r\n      }\r\n\r\n      return PaletteColorError;\r\n    }(Error);\r\n\r\n    if ((0, _difference2.default)((0, _keys2.default)(_colors.indigo), (0, _keys2.default)(primary)).length) {\r\n      throw new PaletteColorError('primary');\r\n    }\r\n\r\n    if ((0, _difference2.default)((0, _keys2.default)(_colors.pink), (0, _keys2.default)(accent)).length) {\r\n      throw new PaletteColorError('accent');\r\n    }\r\n\r\n    if ((0, _difference2.default)((0, _keys2.default)(_colors.red), (0, _keys2.default)(error)).length) {\r\n      throw new PaletteColorError('error');\r\n    }\r\n  }\r\n\r\n  var shades = { dark: dark, light: light };\r\n\r\n  process.env.NODE_ENV !== \"production\" ? (0, _warning2.default)(shades[type], 'Material-UI: the palette type `' + type + '` is not supported.') : void 0;\r\n\r\n  return {\r\n    type: type,\r\n    text: shades[type].text,\r\n    action: shades[type].action,\r\n    background: shades[type].background,\r\n    primary: primary,\r\n    accent: accent,\r\n    error: error,\r\n    grey: _colors.grey,\r\n    getContrastText: getContrastText\r\n  };\r\n}\r\n```"}}
{"actor":{"display_login":"devarashetty"}}