百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

styled-reset

> 前端框架
开源

Eric Meyer 的 Reset CSS for styled-components

388 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

Eric Meyer 的 Reset CSS for styled-components

styled-reset

Eric Meyer's Reset CSS for styled-components

Also see styled-normalize from Sergey Sova.


Installation:

npm i styled-reset

Usage:

Styled Components 4+

javascript
import * as React from 'react'
import { Reset } from 'styled-reset'

const App = () => (
  
    
    

  
)

You can also use the default export or named export (lowercase) in your own global style:

javascript
import * as React from 'react'
import { createGlobalStyle } from 'styled-components'
import reset from 'styled-reset'

const GlobalStyle = createGlobalStyle`
  ${reset}
  /* other styles */
`

const App = () => (
  
    
    

  
)

export default App

Styled Components 3.x

If you're using Styled Components version 3.x or 2.x, you'll need to use the injectGlobal api instead (and install [email protected]):

javascript
import { injectGlobal } from 'styled-components'
import reset from 'styled-reset'
injectGlobal`
  ${reset}
`

reset is also available as a named export:

javascript
import { reset } from 'styled-reset'

Credits

All credit goes to Eric Meyer for reset.css. reset.css is public domain (unlicensed).

LICENSE

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptcsscss-resetresetreset-css

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架