Skip to content
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

Is there a way to generate the colors programatically? #47

Open
mhmdjaw opened this issue Sep 13, 2024 · 1 comment
Open

Is there a way to generate the colors programatically? #47

mhmdjaw opened this issue Sep 13, 2024 · 1 comment

Comments

@mhmdjaw
Copy link

mhmdjaw commented Sep 13, 2024

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.

@yan-yanishevsky
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants