This TypeScript library gives you a CssColor safe type, for when you are working with CSS color values.
# run this from your Terminal
npm install @safelytyped/css-color
// add this import to your Typescript code
import { CssColor } from "@safelytyped/css-color"
VS Code users: once you've added a single import anywhere in your project, you'll then be able to auto-import anything else that this library exports.
Here's a link to all the documentation about this project.
Follow us on Twitter!