fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Color utility in @uifabric/styling

Open Vitalius1 opened this issue 8 years ago • 1 comments

Describe the feature that you would like added

Would be useful to start a color utility module in the Styling package similar to the one we have in OUFR/utilities folder. Maybe even consider moving the entire folder from OUFR and leave an entry point reexporting it from styling package. Need to know if the OUFR bundle size will be detrimentally affected by this.

What component or utility would this be added to

Should be included in @uifabric/styling package.

Have you discussed this feature with our team, and if so, who

Philip Kuo (@phkuo )

Additional context/screenshots

After adding a new function into the Styling package with this PR I had to create a small helper function for converting a color from a hex code to rgb which already exists in OUFR utilities, but because OUFR is not a dependency of @uifabric/styling I couldn't reuse it which brings to duplication of the same code in 2 different places.

Vitalius1 avatar Aug 29 '18 00:08 Vitalius1

If there is a specific need, we'd need to be explicit about which methods are being added and to which package.

I do think there is an overarching themability item we're working which might require some additional color utilities. We have some in color.ts already.

Closing this to trim off ambiguous work.

dzearing avatar Oct 02 '18 22:10 dzearing