-
Notifications
You must be signed in to change notification settings - Fork 21
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
Utility belt #27
Comments
Can we leverage LESS for some of this? (Given that it's all written in JS anyway.) |
sure |
Thoughts on incorporating Autoprefixer-esque functionality into the utility belt? Seems like a natural extension (and it's something I'd find super useful, personally). |
I think a good starting point would be to add utility functions for colors, and a lot of that functionality has already been ported over from LESS via tinycolor. My vote would be to add some sort of
If we continue with the LESS comparison: I don't think we really need to worry about mathematical or type-checking utility functions, given that those are easily accessible already within JS. The other examples you give above are quite unique, so we'll figure those out as we go. Thoughts? |
👎 to re-exporting However if it's something like If we are going to add this utility i strongly recommend we refactor I don't mind doing that refactor as a PR myself. |
That's a great suggestion. +1. |
@crm416 @Raynos there are way too many inline style libraries in/outside react now, and at least a few of them have better APIs are are more actively maintained. I guess I consider the goal of RCSS achieved? Maybe it's time to deprecate this? Or pivot this into a utility library like stated. RCSS has always been just a small optimization library. |
The recent update made it so that RCSS's output is directly inlinable as a react
style
(there's still the different that react style lets you dowidth: 10
, while RCSS only allowswidth: "10px"
, but we'll see). This will future-proof RCSS in case we ever switch to style object inlining, when/if it starts to make sense.By then RCSS can stay as a collection of useful utilities for writing CSS in JS:
RCSS.rgba()
RCSS.darken(someValue)
RCSS.areaInSpritedImages(...)
RCSS.generateKeyFramesWithInterpolation(...)
<- unique keyframe names would be neatetc.
The text was updated successfully, but these errors were encountered: