-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Polished Roadmap #397
Comments
In regards to the third bullet point (and please let me know if I should raise this in another issue instead), would that include integrating it as a macro, as |
@wtgtybhertgeghgtwtg It would be a separate ask, but certainly something we'd be open to doing. |
Bundle size would be great. We have private color helpers on Material-UI side. People ask us to expose them. I was curious to see if we could drop them for polished: mui/material-ui#15540. |
@oliviertassinari Reached out on that PR. Would love to work with you to allow you to use polished for this, especially if it is just a matter of working on bundle size. |
Regarding point 3: docs redesign |
There were a few discussions on bundle size here so I thought I would share. I recently released The big secret there is to use canvas to parse colors to rgba. This removes the need for larger files like There's definitely some tradeoffs with approach, namely parsing speed and an extra node compatibility package but I think these tradeoffs are worth it. Hopes this piques your interest! P.S. Thanks for polished! color2k wouldn't exist without it. |
@ricokahler Smart! Would it support colors outside the the sRGB color space, for instance https://webkit.org/blog/10042/wide-gamut-color-in-css-with-display-p3/? |
@oliviertassinari Thanks! I answered your question over here 👆because it's off topic in this thread |
v4.0.0
New Modules
Module Improvements
ellipsis
- add support for multiline ellipsis.fontFace
- add local font file checking to avoid unnecessarily downloading remote font.timingFunctions
- separate timing functions into their own modules.cssVar
- allow default values to be passed when a value is not found for a css-variableOther Improvements
styled-components
andemotion
and in browser and non-browser environments.Bug Fixes
fluidRange
- currently does not work with REMs, we will be investigating why this is breaking and attempt to provide support for REMs/EMs.triangle
- restore the ability to leverageinherit
.Breaking Changes
math
module.stripUnit
- After much discussion, we will be keepinggetValueAndUnit
and returningstripUnit
to its previous functionality. This makes the functionality the same as the named method, simplifies typing (that we previously had to make very forgiving), and keeps the more commonly used method smaller. **Therefore, the return unit functionality instripUnit
will be deprecated in v4.readableColor
- strict mode will become the default behavior in v4 and will need to be explicitly turned off to use non-contrast-compliant return colors.Other
We will be revamping the contributor experience. This will include simplifying the build, leveraging GitHub functionality to make it easier to contribute and make feature requests, starting a support Slack, among other things.
Updated as of 8/18/2020
The text was updated successfully, but these errors were encountered: