{"id":15020300,"url":"https://github.com/sergeysova/styled-normalize","last_synced_at":"2025-05-15T07:05:02.099Z","repository":{"id":48029382,"uuid":"79799977","full_name":"sergeysova/styled-normalize","owner":"sergeysova","description":"normalize.css for styled-components","archived":false,"fork":false,"pushed_at":"2024-02-08T13:08:14.000Z","size":359,"stargazers_count":445,"open_issues_count":7,"forks_count":19,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-13T04:01:43.631Z","etag":null,"topics":["css","normalize","react","styled","styled-components"],"latest_commit_sha":null,"homepage":"https://npmjs.com/styled-normalize","language":"JavaScript","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/sergeysova.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":null,"patreon":"sergeysova","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.buymeacoffee.com/sergeysova","https://vk.com/sovadev"]}},"created_at":"2017-01-23T11:54:37.000Z","updated_at":"2025-02-28T06:10:06.000Z","dependencies_parsed_at":"2024-02-08T14:26:58.838Z","dependency_job_id":null,"html_url":"https://github.com/sergeysova/styled-normalize","commit_stats":{"total_commits":68,"total_committers":14,"mean_commits":4.857142857142857,"dds":0.6470588235294117,"last_synced_commit":"a3a55848048a6c09a5a3b4e28ad695fe5de47f41"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeysova%2Fstyled-normalize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeysova%2Fstyled-normalize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeysova%2Fstyled-normalize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeysova%2Fstyled-normalize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergeysova","download_url":"https://codeload.github.com/sergeysova/styled-normalize/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254292040,"owners_count":22046426,"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":["css","normalize","react","styled","styled-components"],"created_at":"2024-09-24T19:54:52.894Z","updated_at":"2025-05-15T07:04:57.086Z","avatar_url":"https://github.com/sergeysova.png","language":"JavaScript","readme":"# styled-normalize\n\nCSS-normalize library for [styled-components](https://styled-components.com/).\n\nThe original `normalize.css` is pulled from [necolas/normalize.css](https://github.com/necolas/normalize.css), and parsed into styled ready format.\n\n\n## Usage\n\n```sh\nnpm install --save styled-normalize\n```\n\n```sh\nyarn add styled-normalize\n```\n\n### styled-components v4 / v5\n\nPackage exported `normalize` and `Normalize`. `Normalize` is a component with global styles. `normalize` is a css-normalize content to interpolate into styled component.\n\nUse as component:\n\n```js\n// index.js\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport { Normalize } from 'styled-normalize'\n\nimport { App } from './app'\n\nconst Root = () =\u003e (\n  \u003cReact.Fragment\u003e\n    \u003cNormalize /\u003e\n    \u003cApp /\u003e\n  \u003c/React.Fragment\u003e\n)\n\nReactDOM.render(\u003cRoot /\u003e, document.querySelector('#root'))\n```\n\nAlso you can use [`createGlobalStyle`](https://www.styled-components.com/docs/api#createglobalstyle) API:\n\n```js\n// styles/index.js\nimport { createGlobalStyle } from 'styled-components'\nimport { normalize } from 'styled-normalize'\n\nexport const GlobalStyle = createGlobalStyle`\n  ${normalize}\n\n  // You can continue writing global styles here\n  body {\n    padding: 0;\n    background-color: black;\n  }\n`\n\n// index.js\nimport React from 'react'\nimport ReactDOM from 'react-dom'\n\nimport { GlobalStyle } from './styles'\nimport { App } from './app'\n\nconst Root = () =\u003e (\n  \u003cReact.Fragment\u003e\n    \u003cGlobalStyle /\u003e\n    \u003cApp /\u003e\n  \u003c/React.Fragment\u003e\n)\n\nReactDOM.render(\u003cRoot /\u003e, document.querySelector('#root'))\n```\n\nYou can also use named imports:\n\n```js\n// ES Modules\nimport { normalize, Normalize } from 'styled-normalize'\n\n// CommonJS\nconst { normalize, Normalize } = require('styled-normalize')\n```\n\n### styled-components v3\n\nIf you want to use `styled-normalize` with `styled-components@v3` you should use `prev` npm tag.\n\n```bash\nnpm install styled-normalize@prev\n```\n\n\u003e v3 don't supports `createGlobalStyle` API.\n\n## Version\n\n__NO SEMVER!__\n\nWhy? Because X.Y numbers in `vX.Y.Z` version matches X.Y in `normalize.css`\n\n## License\n\nThe [MIT License](LICENSE)\n\n","funding_links":["https://patreon.com/sergeysova","https://www.buymeacoffee.com/sergeysova","https://vk.com/sovadev"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeysova%2Fstyled-normalize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergeysova%2Fstyled-normalize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeysova%2Fstyled-normalize/lists"}