
Company News
Socket Joins the OpenJS Foundation
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.
lemon-reset
Advanced tools
Provides a React component with Meyer Reset styles for every element in Meyer Reset. For use with css-modules.
A set of React components that provide Meyer Reset styles for use with CSS Modules.
For all the DOM tags used in Meyer Reset, Lemon Reset provides a React component with those reset styles, minimizing the effect of browser quirks. In a React world, we prefer components that are self-contained and unreliant on global styling.
yarn add lemon-reset
Our makefile assumes that you have virtualenv available globally, as we use a python environment for running pre-commit.
If you have virtualenv, simply run:
make build
Otherwise, you can do:
NODE_ENV=production ./node_modules/.bin/babel src --out-dir lib --copy-files
Use these components as a drop in replacement for your existing HTML tags!
import { P } from 'lemon-reset';
ReactDOM.render(
<P>Hello World</P>,
myContainer
);
Wrap Lemon Reset components in your own custom components!
import { Span, Div } from 'lemon-reset';
import styles from './Container.scss';
type Props = {
display: 'inline' | 'inline-block' | 'block' | 'none';
}
const Container = ({children, display}: Props) {
const Tag = display === 'inline' ? Span : Div;
const classes = styles[`display--${display}`]
return (
<Tag className={styles[`display--${display}`]}
{ children }
</Tag>
)
}
export default Container;
Pass in any props! If you need to pass in a ref, you'll need to pass it in as a tagRef:
<Span tagRef={span => console.log(span)}>
This has a ref
</Span>
FAQs
Provides a React component with Meyer Reset styles for every element in Meyer Reset. For use with css-modules.
The npm package lemon-reset receives a total of 52 weekly downloads. As such, lemon-reset popularity was classified as not popular.
We found that lemon-reset demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.