colors icon indicating copy to clipboard operation
colors copied to clipboard

Is there a way to generate the colors programatically?

Open mhmdjaw opened this issue 5 months ago • 0 comments

In other words, instead of manually going to the custom colors tool and copying colors from there, generate them dynamically sort of like this:

import { generateLightAccent } from '@radix-ui/colors'

const lightAccentBlue = generateLightAccent('#3D63DD')

lightAccentBlue.light4
lightAccentBlue.lightA8

This would be such an awesome feature and would enable dynamic theme generation. I would really love to work on this, but I can't find the source code for the custom colors tool.

mhmdjaw avatar Sep 13 '24 20:09 mhmdjaw