csstype
npmv3.2.3TypeScriptStrict TypeScript and Flow types for style based on MDN data
Safe to adopt
Yes — csstype scores well across adoption, maintenance, weight, supply chain, and licensing. 142.8M downloads per week and 2 known dependents. Last published 296 days ago. 4 releases in the last 2 years.
- AAdoption: grade A, Excellent.
142.8M downloads per week and 2 known dependents.
- BMaintenance: grade B, Good.
Last published 296 days ago. 4 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 1.2 MB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 2 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding csstype to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the csstype README.
import type * as CSS from 'csstype';
const style: CSS.Properties = {
colour: 'white', // Type error on property
textAlign: 'middle', // Type error on value
};csstype vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| csstypethis page | 142.8M | 2 | MIT | 9 months ago |
| expect-type | 78.4M | 8 | Apache-2.0 | 1 day ago |
| json-schema-typed | 0 | 1 | BSD-2-Clause | 1 day ago |
| type-fest | 337.8M | 6 | (MIT OR CC0-1.0) | 1 day ago |
| react-style-singleton | 59.1M | 2 | MIT | 1 day ago |
| node-sassdeprecated | 888.4K | 0 | MIT | 1 day ago |
Dependencies
Declared by csstype v3.2.3. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (29)
Used by
Popular packages that depend on csstype.
Relationship graph
Dependencies (left) and dependents (right) of csstype.
Frequently installed together
Release history
4 releases in the last two years, typically about 8 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.2.3latest | 9 months ago | 1.2 MB | MIT |
| 3.2.2 | 9 months ago | 1.2 MB | MIT |
| 3.2.1 | 9 months ago | 1.2 MB | MIT |
| 3.2.0 | 9 months ago | 1.2 MB | MIT |
| 3.1.3 | 2 years ago | 1.2 MB | MIT |
| 3.1.2 | 3 years ago | 1.2 MB | MIT |
| 2.6.21 | 4 years ago | 1.8 MB | MIT |
| 3.1.1 | 4 years ago | 1.1 MB | MIT |
| 3.1.0 | 4 years ago | 1.1 MB | MIT |
| 3.0.11 | 4 years ago | 1.1 MB | MIT |
| 2.6.20 | 4 years ago | 1.9 MB | MIT |
| 2.6.19 | 4 years ago | 1.9 MB | MIT |
| 3.0.10 | 4 years ago | 1.1 MB | MIT |
| 3.0.9 | 5 years ago | 1.1 MB | MIT |
| 2.6.18 | 5 years ago | 1.8 MB | MIT |
Overview
csstype is an npm package that strict TypeScript and Flow types for style based on MDN data. It is extremely widely used, with about 142.8M downloads per week and 2 known dependents in the graph. The latest version is 3.2.3, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need strict TypeScript and Flow types for style based on MDN data and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (142.8M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (29 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use csstype?
Yes — csstype scores well across adoption, maintenance, weight, supply chain, and licensing. 142.8M downloads per week and 2 known dependents. Last published 296 days ago. 4 releases in the last 2 years.
How do I install csstype?
Run `npm install csstype` to add csstype to your npm project.
What license is csstype released under?
csstype is distributed under the MIT license.
How popular is csstype?
csstype has approximately 142,803,929 downloads per week and 2 known dependent packages.
Is csstype still maintained?
The most recent release of csstype (v3.2.3) was published 9 months ago.
Does csstype run install scripts?
No. csstype does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.