</>PackageGraphPackageGraph

csstype

npmv3.2.3TypeScript

Strict 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

1.2 MB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

PackageWeekly downloadsDependentsLicenseLast release
csstypethis page142.8M2MIT9 months ago
expect-type78.4M8Apache-2.01 day ago
json-schema-typed01BSD-2-Clause1 day ago
type-fest337.8M6(MIT OR CC0-1.0)1 day ago
react-style-singleton59.1M2MIT1 day ago
node-sassdeprecated888.4K0MIT1 day ago

Dependencies

Declared by csstype v3.2.3. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (29)

@babel/core ^7.28.5@babel/preset-env ^7.28.5@babel/preset-typescript ^7.28.5@eslint/js ^9.39.1@mdn/browser-compat-data 7.1.21@tsconfig/node24 ^24.0.2@types/chokidar ^2.1.7@types/css-tree ^2.3.11@types/jest ^30.0.0@types/jsdom ^27.0.0@types/node ^24.10.1@types/prettier ^3.0.0@types/turndown ^5.0.6babel-jest ^30.2.0chalk ^5.6.2chokidar ^4.0.3css-tree ^3.1.0eslint-config-prettier ^10.1.8eslint-plugin-prettier ^5.5.4flow-bin ^0.291.0jest ^30.2.0jsdom ^27.2.0mdn-data 2.25.0prettier ^3.6.2release-it ^19.0.6tsx ^4.20.6turndown ^7.2.2typescript ~5.9.3typescript-eslint ^8.46.4

Used by

Popular packages that depend on csstype.

Relationship graph

Dependencies (left) and dependents (right) of csstype.

@vue/runtime-dom@types/reactcsstype
csstype dependencies dependents

Frequently installed together

Release history

4 releases in the last two years, typically about 8 days apart.

Recent versions of csstype
VersionPublishedSizeLicense
3.2.3latest9 months ago1.2 MBMIT
3.2.29 months ago1.2 MBMIT
3.2.19 months ago1.2 MBMIT
3.2.09 months ago1.2 MBMIT
3.1.32 years ago1.2 MBMIT
3.1.23 years ago1.2 MBMIT
2.6.214 years ago1.8 MBMIT
3.1.14 years ago1.1 MBMIT
3.1.04 years ago1.1 MBMIT
3.0.114 years ago1.1 MBMIT
2.6.204 years ago1.9 MBMIT
2.6.194 years ago1.9 MBMIT
3.0.104 years ago1.1 MBMIT
3.0.95 years ago1.1 MBMIT
2.6.185 years ago1.8 MBMIT

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

Keywords

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.