Skip to content

style={color: 0xfff} planned? #24

@danschumann

Description

@danschumann

style={color: 0xfff} seems pretty natural as js allows 0xfff. I like that notation better than using a string '#fff'. There wouldn't be a time when you'd give color a single pixel value (ie color: 4095px would never happen, so it should be safe)

Actually to use this notation of passing a number as a color, you'd have to enforce always using 6 digits, as you wouldn't know the difference between 0xfff and 0x000fff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions