{"id":21413212,"url":"https://github.com/github0013/gatsby.v2-mui.v3","last_synced_at":"2025-03-16T18:23:27.974Z","repository":{"id":141756977,"uuid":"158523990","full_name":"github0013/gatsby.v2-mui.v3","owner":"github0013","description":null,"archived":false,"fork":false,"pushed_at":"2018-11-21T10:01:01.000Z","size":385,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T05:15:50.264Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github0013.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-21T09:33:38.000Z","updated_at":"2018-11-21T10:01:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"93b1c279-6534-42a9-8c8d-5ed62655994f","html_url":"https://github.com/github0013/gatsby.v2-mui.v3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0013%2Fgatsby.v2-mui.v3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0013%2Fgatsby.v2-mui.v3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0013%2Fgatsby.v2-mui.v3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0013%2Fgatsby.v2-mui.v3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github0013","download_url":"https://codeload.github.com/github0013/gatsby.v2-mui.v3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910762,"owners_count":20367544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T18:17:33.536Z","updated_at":"2025-03-16T18:23:27.961Z","avatar_url":"https://github.com/github0013.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Problem\n\nUsing Material-UI (V3) with gatsby (V2) has some problem related to [jss](https://github.com/cssinjs/jss).   I see this happens after `gastby build` (production). \n\n## e.g. svg icon styles break (it should be the default size 24x24)\n\n```tsx\nimport { Star as StarIcon } from '@material-ui/icons'\n...\n...\nreturn \u003cStarIcon /\u003e\n```\n\nIcon's CSS like above breaks on a page in a subdirectory (as far as I experienced).\n* taking the max width of the parent's instead of fixed 24x24(default)\n\n![](https://github.com/github0013/gatsby.v2-mui.v3/blob/master/icon-style-fails.png)\n\n\n# Solutions\n\n1. https://github.com/github0013/gatsby.v2-mui.v3/commit/36b1f97f9c544db1c6ffa4775434fc22beba4199  \nFollow [this example](https://github.com/mui-org/material-ui/tree/master/examples/gatsby) and edit files here and there.\n1. https://github.com/github0013/gatsby.v2-mui.v3/commit/31ba54b7460213e832345b11e1a11db395109a52  \nAdd [this plugin](https://www.gatsbyjs.org/packages/@wapps/gatsby-plugin-material-ui/) and remove `\u003cMuiThemeProvider\u003e`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub0013%2Fgatsby.v2-mui.v3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub0013%2Fgatsby.v2-mui.v3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub0013%2Fgatsby.v2-mui.v3/lists"}