@mofon-design/csstype
v1.0.0
Published
Strict TypeScript types for style based on MDN data (fork from frenic)
Downloads
6
Maintainers
Readme
CSSType
TypeScript definitions for CSS, fork from https://github.com/frenic/csstype.
import { CSSType } from '@mofon-design/csstype';
const style: CSSType.Properties = {
colour: 'white', // Type error on property
textAlign: 'middle', // Type error on value
};
Getting started
$ npm install @mofon-design/csstype
$ # or
$ yarn add @mofon-design/csstype