</>PackageGraphPackageGraph

fbjs-css-vars

npmv1.0.2

This package exports a few of the CSS variables that we use in Facebook projects. This is not the full list we have internally but focused on making available the minimum set needed by our open source projects.

Not recommended for new projects

No — fbjs-css-vars should not be adopted for new projects. Last published 2823 days ago.

  • AAdoption: grade A, Excellent.

    8.4M downloads per week and 1 known dependents.

  • FMaintenance: grade F, Failing.

    Last published 2823 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 3.6 KB 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 fbjs-css-vars 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.

3.6 KB
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
No bundled types
Install scripts
None

Quick start

A usage example from the fbjs-css-vars README.

React.render(
  <div style={{backgroundColor: cssVar('fbui-white')}} />,
  containerNode
);

Used by

Popular packages that depend on fbjs-css-vars.

Relationship graph

Dependencies (left) and dependents (right) of fbjs-css-vars.

fbjsfbjs-css-vars
fbjs-css-vars dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 517 days apart.

Recent versions of fbjs-css-vars
VersionPublishedSizeLicense
1.0.2latest7 years ago3.6 KBMIT
1.0.19 years agoBSD-3-Clause
1.0.010 years agoBSD-3-Clause

Overview

fbjs-css-vars is an npm package that this package exports a few of the CSS variables that we use in Facebook projects. This is not the full list we have internally but focused on making available the minimum set needed by our open source projects. It is extremely widely used, with about 8.4M downloads per week and 1 known dependents in the graph. The latest version is 1.0.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need this package exports a few of the CSS variables that we use in Facebook projects. This is not the full list we have internally but focused on making available the minimum set needed by our open source projects and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (8.4M weekly downloads).
  • Clear open-source license (MIT).
  • Zero runtime dependencies — minimal footprint.

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use fbjs-css-vars?

No — fbjs-css-vars should not be adopted for new projects. Last published 2823 days ago.

How do I install fbjs-css-vars?

Run `npm install fbjs-css-vars` to add fbjs-css-vars to your npm project.

What license is fbjs-css-vars released under?

fbjs-css-vars is distributed under the MIT license.

How popular is fbjs-css-vars?

fbjs-css-vars has approximately 8,432,355 downloads per week and 1 known dependent packages.

Is fbjs-css-vars still maintained?

The most recent release of fbjs-css-vars (v1.0.2) was published 7 years ago.

Does fbjs-css-vars run install scripts?

No. fbjs-css-vars does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.