Comments (5)
That's not true. From other issue, there is a way to specify hex color:
font-awesome-svg-png --color "#0370E9" --svg --no-png --dest blue
I just think it should be included in documentation. Also I didn't know that I can control svg color with CSS. Thanks for that. Gotta read through your links when I have time.
from font-awesome-svg-png.
Use fill="currentColor"
FortAwesome/Font-Awesome#3203 (comment)
In addition to setting attributes on objects, you can also use CSS to style fills and strokes. In your CSS, you'll be setting values for attributes like fill and stroke instead of background-color and border...
https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Fills_and_Strokes#Using_CSS
<svg class="icon"><use xlink:href="fa-sprites-symbols.svg#fa-facebook" fill="currentColor"/></svg>
from font-awesome-svg-png.
Do you mean --fill="#444"
? Or what?
Also I urge the contributors to add that information in README.
from font-awesome-svg-png.
https://github.com/encharm/Font-Awesome-SVG-PNG/blob/master/font-awesome-svg-png.js - generates PNG with only two colors: BLACK and WHITE:
'color', "Provide color or colors, e.g. --color black,white"
from font-awesome-svg-png.
But if You choose to use SVG sprite, you can colorize seporate symbol with:
- inline
fill
attribute - inherit color from font color (
color
css property)
from font-awesome-svg-png.
Related Issues (20)
- Instagram HOT 2
- Missing file-th HOT 1
- Thanks for the inspiration - check out my package `font-awesome-assets` HOT 1
- Error on launching app HOT 7
- Issue with Font Awesome 4.7.0 HOT 1
- Cannot read property 'charCodeAt' of undefined HOT 10
- fa-user-circle missing HOT 2
- SVG is invalid HOT 5
- Bower deprecation; adding complete package to npm? HOT 3
- Asking users for opinion - padding or not? HOT 1
- Break generating svg HOT 1
- Wide icons are not full displayed in the github repo HOT 1
- Upgrade graceful-fs dependency HOT 1
- New icons in Font Awesome 5.0 HOT 6
- Nice job! See my repo `local-icons` in order to use these icons in a very easy way. HOT 4
- rsvg-convert.exe download link is dead
- SVG icon background
- Redo icon
- Licensing HOT 4
- Convert font-awesome pro icons
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 font-awesome-svg-png.