🚹 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

kiso.css

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kiso.css

This is a reset CSS that provides a 'foundation' with domestic products in mind.

latest
Source
npmnpm
Version
1.2.2
Version published
Maintainers
1
Created
Source

kiso.css

A modern reset CSS designed with Japanese websites in mind.

kiso.css provides better defaults for modern web development. It standardizes browser styles, offering a consistent and solid foundation for your project.

Demo Site

Key Features

  • đŸ‡ŻđŸ‡” Optimized for Japanese: Provides beautiful typography for Japanese text out-of-the-box.
  • ♿ Accessibility First: Ensures accessible web design, including WCAG-compliant focus styles and forced color mode support.
  • đŸȘ¶ Minimal & Sensible: Resets only what's necessary, preserving useful browser defaults and avoiding destructive styles.
  • 🔧 Zero Specificity: All rules use the :where() selector for easy overriding without specificity conflicts.
  • 🎯 Modern CSS: Utilizes modern CSS properties like text-wrap: pretty and scrollbar-gutter: stable.
  • 🌏 Multilingual Ready: Designed with consideration for Japanese, English, and RTL languages.

Installation

Package Manager

npm install kiso.css
# or
yarn add kiso.css

Import it into your main CSS file:

@import "kiso.css";

/* Your styles here */

CDN

<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/kiso.css@latest/kiso.css"
/>

Core Concepts

Japanese Typography

kiso.css is built to handle Japanese text gracefully. It automatically adjusts spacing between Japanese and alphanumeric characters (text-autospace), refines line breaks (line-break: strict), and handles punctuation spacing (text-spacing-trim), which are often overlooked in other reset libraries.

Zero Specificity

By wrapping selectors in :where(), kiso.css keeps specificity at zero. This means you can easily override any style with your own classes or element selectors without resorting to !important or complex selectors.

/* This will easily override kiso.css without any specificity issues */
a {
  color: red;
}

Accessibility by Default

Accessibility is a core principle. For example, lists remain recognizable by screen readers (list-style-type: ""), and focus rings are enhanced for better visibility (:focus-visible).

Selective Reset

We avoid "over-resetting." Useful UA styles like font-weight on headings, padding on buttons, and borders on tables are preserved to reduce the amount of code you need to write. Destructive resets like appearance: none are avoided.

Contributing

Feedback and contributions are welcome! Please feel free to open an Issue or a Pull Request.

License

kiso.css is available under the MIT License.

Note: The name "kiso" (ćŸș瀎) means "foundation" in Japanese, reflecting our goal to provide a solid base for your web projects.

Keywords

css

FAQs

Package last updated on 12 Jul 2025

Did you know?

Socket

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.

Install

Related posts