fbjs-css-vars
npmv1.0.2This 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.
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
- 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.
Frequently installed together
Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST
A shim for the setImmediate efficient script yielding API
Universal WHATWG Fetch API for Node, Browsers and React Native
Delightful JavaScript Testing.
Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent & Client Hints data. Supports browser & node.js environment
Bare bones Promises/A+ implementation
Immutable Data Collections
Create a stream that emits events from multiple other streams
Release history
No releases in the last two years, typically about 517 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.0.2latest | 7 years ago | 3.6 KB | MIT |
| 1.0.1 | 9 years ago | — | BSD-3-Clause |
| 1.0.0 | 10 years ago | — | BSD-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.
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.