Comments (3)
@lounsbrough This has been bugging me as well but haven't had a chance to look into it much yet.
There are some really lightweight ways to darken colors but they usually require a specific input, however we're relying on tinycolor2
to handle our ambiguous color
prop (named, hex, rgb, etc.) So we'd either need another way to convert that or force a type like hex (less ideal currently)
colord
(6kb) looks like it could be good for a pretty low effort swap, and it's less than half the size. 🤷♂️
Open to a PR if you have any ideas.
from react-file-icon.
@corygibbons - cool, yeah colord
does look better to me. If you're good with that, here's the PR: https://github.com/corygibbons/react-file-icon/pull/38/files
from react-file-icon.
from react-file-icon.
Related Issues (20)
- How to set FileIcon defaultStyle dynamically
- Add type definitions HOT 1
- icon size HOT 2
- Label Font Size and position for label
- Using Defaults HOT 1
- Ability to Combine multiple default style extension HOT 4
- I created colored version demo
- How to change the size of the icon using tailwind css
- Doesn't install on React 18 due to a dependency issue HOT 1
- How to set FileIcon defaultStyle dynamically
- Component problems HOT 1
- `id` must be unique
- React 18 Support
- ".skp" extension can be added
- Mime type support HOT 2
- Add .apk extension icon
- Icons doesn't render properly
- Smaller version for icons?
- How to get suggestion on Icon HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-file-icon.