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

Add semi-random colors to tags #901

Open
zdanl opened this issue Jan 24, 2023 · 1 comment
Open

Add semi-random colors to tags #901

zdanl opened this issue Jan 24, 2023 · 1 comment

Comments

@zdanl
Copy link

zdanl commented Jan 24, 2023

constants.js

/** color hexcode inspiration courtesy of tailwind **/
export const COLORS = {
  INDIGO    "#ebf4ff",
  YELLOW:   "#fffff0",
  PURPLE:   "#faf5ff",
  GREEN:    "#f0fff4",
  GRAY:     "#f7fafc",
  RED:      "#fff5f5",
  PINK:     "#fff5f7",
  BLUE:     "#ebf8ff"
};

ReactTags.js

    allowAdditionFromPaste: PropTypes.bool,
    allowDragDrop: PropTypes.bool,
 => randomizeColor: PropTypes.bool,
    handleInputChange: PropTypes.func,
    handleInputFocus: PropTypes.func,
@ad1992
Copy link
Member

ad1992 commented May 30, 2024

@zdanl you can pass the classes to the tags which will be responsible for adding the colors.

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