{"id":22069426,"url":"https://github.com/merelinguist/styled-preflight","last_synced_at":"2025-10-26T17:17:47.615Z","repository":{"id":47416724,"uuid":"192702088","full_name":"merelinguist/styled-preflight","owner":"merelinguist","description":"Normalize.css with a kick for styled-components CSS-in-JS library","archived":false,"fork":false,"pushed_at":"2023-01-04T00:47:55.000Z","size":415,"stargazers_count":3,"open_issues_count":7,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-20T03:40:39.605Z","etag":null,"topics":["css","normalize","preflight","react","styled","styled-components"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/merelinguist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-19T09:30:58.000Z","updated_at":"2025-07-17T16:49:19.000Z","dependencies_parsed_at":"2023-02-01T15:45:57.147Z","dependency_job_id":null,"html_url":"https://github.com/merelinguist/styled-preflight","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/merelinguist/styled-preflight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merelinguist%2Fstyled-preflight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merelinguist%2Fstyled-preflight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merelinguist%2Fstyled-preflight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merelinguist%2Fstyled-preflight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/merelinguist","download_url":"https://codeload.github.com/merelinguist/styled-preflight/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merelinguist%2Fstyled-preflight/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266815220,"owners_count":23988562,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","preflight","react","styled","styled-components"],"created_at":"2024-11-30T20:09:35.706Z","updated_at":"2025-10-26T17:17:47.523Z","avatar_url":"https://github.com/merelinguist.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](/docs/banner.png)\n\nA CSS-normalizing library for styled-components, with a kick.\n\nThe original `normalize.css` is pulled from necolas/normalize.css, and parsed into a styled ready format. Some small additions are added, based on Tailwind’s preflight, to make the normalizing more useful for building apps.\n\n## Usage\n\n```sh\nnpm i styled-preflight\n```\n\n```sh\nyarn add styled-preflight\n```\n\n### styled-components v4 / v5\n\nUse as component:\n\n```jsx\n// index.js\nimport React from 'react'\nimport { Preflight } from 'styled-preflight'\n\nimport { App } from './app'\n\nconst Root = () =\u003e (\n  \u003cReact.Fragment\u003e\n    \u003cPreflight /\u003e\n    \u003cApp /\u003e\n  \u003c/React.Fragment\u003e\n)\n```\n\nAlternatively, you can use the [`createGlobalStyle`](https://styled-components.com/docs/api#createglobalstyle) API:\n\n```jsx\n// styles/index.js\nimport { createGlobalStyle } from 'styled-components'\nimport { preflight } from 'styled-preflight'\n\nexport const GlobalStyle = createGlobalStyle`\n  ${preflight}\n\n  // You can continue writing global styles here\n  body {\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```jsx\n// ES Modules\nimport { preflight, Preflight } from 'styled-preflight'\n\n// CommonJS\nconst { preflight, Preflight } = require('styled-preflight')\n````\n\n## Prior art\n\n- https://github.com/sergeysova/styled-normalize\n- https://github.com/tailwindcss/tailwindcss\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmerelinguist%2Fstyled-preflight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmerelinguist%2Fstyled-preflight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmerelinguist%2Fstyled-preflight/lists"}