Zero-hassle CSS reset for modern web development
shokika.css is a lightweight, modern CSS reset library that eliminates browser inconsistencies and provides a clean foundation for your web projects. Built with developer experience in mind, it offers consistent styling across all modern browsers while maintaining simplicity and performance.
Note: "shokika" (初期化) means "initialize" in Japanese - perfectly capturing what this library does for your CSS.
- Lightweight - Small file size that won't slow down your site
- Modern - Built for contemporary web standards
- Consistent - Uniform styling across all modern browsers
- Easy Integration - Works with any CSS framework or build tool
- Production Ready - Reliable foundation for your projects
Get up and running in seconds! Choose your preferred installation method:
npm
npm install shokika.css
Yarn
yarn add shokika.css
pnpm
pnpm add shokika.css
<link rel="stylesheet" href="https://unpkg.com/shokika.css@latest/dist/shokika.min.css" />
Or use the specific version for production:
<link rel="stylesheet" href="https://unpkg.com/shokika.css@[version]/dist/shokika.min.css" />
@import '~shokika.css';
For better control over CSS specificity and loading order, leverage modern CSS Cascade Layers:
@layer reset, tools, base, components, utilities;
@import 'shokika.css' layer(reset);
This ensures your reset styles are properly layered and won't interfere with your component styles.
<link rel="stylesheet" href="https://unpkg.com/shokika.css@latest/dist/shokika.min.css" />
Perfect for modern React applications! Works seamlessly with popular CSS-in-JS libraries:
import { css, Global } from '@emotion/react';
import resetCSS from 'shokika.css/dist/string';
const globalStyle = css`
${resetCSS}
`;
export const CSSReset = () => <Global styles={globalStyle} />;
import styled, { createGlobalStyle } from 'styled-components';
import resetCSS from 'shokika.css/dist/string';
const GlobalStyle = createGlobalStyle`
${resetCSS}
`;
Choose the right file for your needs:
File | Description | Use Case |
---|---|---|
shokika.css |
Raw, unminified CSS | Development & debugging |
shokika.min.css |
Minified CSS | Production (recommended) |
dist/string |
CSS as JavaScript string | CSS-in-JS libraries |
Modern browsers only - Chrome, Firefox, Safari, and Edge (latest versions).
Note: Legacy browsers like IE11 are not supported. This allows us to use modern CSS features and keep the library lightweight.
We welcome contributions! Whether it's bug reports, feature requests, or pull requests, every contribution helps make shokika.css better.
MIT License - see LICENSE for details.
If shokika.css helped your project, consider giving it a star! It helps others discover this tool and motivates continued development.