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

Feature Request: Custom Colours #7

Open
Shadowfita opened this issue Nov 20, 2024 · 3 comments
Open

Feature Request: Custom Colours #7

Shadowfita opened this issue Nov 20, 2024 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Shadowfita
Copy link

Hi!

Once again, awesome project. Thank you very much for making something like this for Mantine.

I think there could be value in allowing the user to provide custom colours, perhaps even incorporating the Mantine Colours Generator, so that people can test their own colour schemes against the interface, while still following the rules that you have set up in the theme generation (specifically the shadcn theme rules).

Thanks!

@Abhishek-S-Lal Abhishek-S-Lal added enhancement New feature or request good first issue Good for newcomers labels Dec 10, 2024
@Shadowfita
Copy link
Author

@Abhishek-S-Lal I've just made use of the mantine colours generator library recently. For reference, if it helps:

import { generateColorsMap } from '@mantine/colors-generator';

const hexString = "#FFFFFF";
const { colors, baseColorIndex } = generateColorsMap(hexString);

// colors = MantineColorsTuple
// baseColorIndex = MantineTheme.primaryShade index

Could be tied to a mantine colour picker.

@Abhishek-S-Lal
Copy link
Contributor

@Shadowfita I can take this up only once the priority tasks are completed. If you or anyone reading this is interested in implementing this feature, please do contribute.

@Shadowfita
Copy link
Author

@Abhishek-S-Lal No rush at all mate. If I find time over the next few days (just started leave from work), I will submit a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants