You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, we generate a lot of utility classes from colors.
I think it'd be better to have fewer colors in what we make
available as utility classes since:
We should use semantic colors instead of absolute colors most of
the time
It increases the build size
Here are some stats on the usage of utility classes for colors:
for app in libs drive banks notes contacts home settings
echo$apppushd$app
rg -o--no-filename"u-(bg-)?(black|white|paleGrey|silver|coolGrey|slateGrey|charcoalGrey|overlay|zircon|frenchPass|dodgerBlue|scienceBlue|puertoRico|grannyApple|emerald|malachite|seafoamGreen|brightSun|texasRose|chablis|yourPink|fuchsia|pomegranate|monza|portage|azure|melon|blazeOrange|mango|pumpkinOrange|lavender|darkPeriwinkle|purpley|lightishPurple|barney|weirdGreen|primaryColor|primaryColorLight|primaryContrastTextColor|valid|warn|error|errorBackgroundLight|primaryBackgroundLight|neutralBackground)"|sort|uniq-c|sort-rnpopdend
And we should not use the palette from cozy-ui directly:
for app in libs drive banks notes contacts home settings
echo$apppushd$app
rg -o--no-filename"palette\[.(black|white|paleGrey|silver|coolGrey|slateGrey|charcoalGrey|overlay|zircon|frenchPass|dodgerBlue|scienceBlue|puertoRico|grannyApple|emerald|malachite|seafoamGreen|brightSun|texasRose|chablis|yourPink|fuchsia|pomegranate|monza|portage|azure|melon|blazeOrange|mango|pumpkinOrange|lavender|darkPeriwinkle|purpley|lightishPurple|barney|weirdGreen|primaryColor|primaryColorLight|primaryContrastTextColor|valid|warn|error|errorBackgroundLight|primaryBackgroundLight|neutralBackground).\]"|sort|uniq-c|sort-rnpopdend
The text was updated successfully, but these errors were encountered:
At the moment, we generate a lot of utility classes from colors.
I think it'd be better to have fewer colors in what we make
available as utility classes since:
the time
Here are some stats on the usage of utility classes for colors:
And we should not use the palette from cozy-ui directly:
The text was updated successfully, but these errors were encountered: