Skip to content

Typescript definition for css properties #1452

@heyymarco

Description

@heyymarco

hi koff, your jss is awesome. I'm starting to leave the sass. writting mixins, functions, importing, etc are lot easier in JS.

But i prefer writting in typescript rather than js. It can avoid a lot of mistakes earlier.

Is there a TS definition for the css properties? rather than string, any, any[], any[][].
For an example is .fontWeight, only accept 'thin' | 'bold' | 'bolder' | 'thinner' | number,
no an arbitrary string allowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions