Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
danschumann opened this issue Jun 21, 2015 · 0 comments
Open

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

danschumann opened this issue Jun 21, 2015 · 0 comments

Comments

@danschumann
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant