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 Export for Default Icon Colors #195

Closed
Lexizz7 opened this issue Sep 14, 2023 · 2 comments
Closed

Feature Request: Add Export for Default Icon Colors #195

Lexizz7 opened this issue Sep 14, 2023 · 2 comments

Comments

@Lexizz7
Copy link
Contributor

Lexizz7 commented Sep 14, 2023

Currently, it would be extremely helpful to have the option to import the default hex color of an icon. This feature could be really useful for creating more dynamic and appealing interfaces. Rather than manually obtaining the hex codes from the Simple Icons website, I would like a feature that automatically exports the hex color value. Something like:

import { SiReact, SiReactHex } from '@icons-pack/react-simple-icons';

function BasicExample() {
  return (
    <Button color={SiReactHex} />
      <SiReact />
      React Button
    </Button>
  );
}

I'm not sure if this could be useful for more users, but in my project we use it a lot. Also, I don't know the negative impact (maybe the lib size)

@wootsbot
Copy link
Member

@Lexizz7 I think it's a good idea, I'll take the time to include this feature.

Remember that your contributions are welcome, feel free to send a pr if you see it necessary.

@wootsbot wootsbot pinned this issue Sep 21, 2023
Lexizz7 pushed a commit to Lexizz7/react-simple-icons that referenced this issue Sep 21, 2023
wootsbot pushed a commit that referenced this issue Oct 4, 2023
@wootsbot
Copy link
Member

wootsbot commented Oct 4, 2023

close: #197

@wootsbot wootsbot closed this as completed Oct 4, 2023
@wootsbot wootsbot unpinned this issue Dec 12, 2023
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