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

Source for "Custom Palette" #46

Open
lumosminima opened this issue Jul 7, 2024 · 3 comments
Open

Source for "Custom Palette" #46

lumosminima opened this issue Jul 7, 2024 · 3 comments

Comments

@lumosminima
Copy link

I saw that there is a new https://www.radix-ui.com/colors/custom page where we can generate a palette based on official radix colors but couldn't find the source for this generator. I would like to programmatically generate this inside my design system and don't want to go the website to generate than copy paste the css (which I'm also generating programmatically). So, a @radix-ui/colors/customPalette package would be really nice and will make this more useful.

@2nPlusOne
Copy link

I would also like to see this. Open sourcing this tool could also help improve palette generator tools such as ColorBox, tints.dev, and huetone.ardov.me.

@2nPlusOne
Copy link

@lumosminima turns out the source is open, although you'd have to build your own tool based on it to do what you mentioned.

@mhmdjaw
Copy link

mhmdjaw commented Sep 13, 2024

I wish they would ship simple functions like so:

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

const lightAccentBlue = generateLightAccent('#3D63DD')

lightAccentBlue.light4
lightAccentBlue.lightA8

const darkAccentBlue = generateDarkAccent('#3D63DD')

// ...

I can work on that and add those utils to this package but it doesn't seam to be active.

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

3 participants