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] Add a function to generate Mantine custom colors #480

Open
AnnMarieW opened this issue Jan 15, 2025 · 0 comments
Open
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@AnnMarieW
Copy link
Collaborator

It looks like the Mantine Colors Generator is available as a separate package: https://www.npmjs.com/package/@mantine/colors-generator

It would be nice to be able to generate a custom color sequence from within an app.

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

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

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

@AnnMarieW AnnMarieW added help wanted Extra attention is needed good first issue Good for newcomers labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant