Comments (3)
Whoops, that's a mistake in the docs, pushing a fix now.
The solution is you need to use a template string, not a regular single quoted string:
- icon: iconColor => '<svg fill="${iconColor}" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ><path d="M0 11l2-2 5 5L18 3l2 2L7 18z"/></svg>'
+ icon: iconColor => `<svg fill="${iconColor}" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ><path d="M0 11l2-2 5 5L18 3l2 2L7 18z"/></svg>`
from tailwindcss-custom-forms.
No worries. I did a quick test, I think it's pulling in the colour now but should it be a hex value? It's outputting the following.
fill='%232d3748'
from tailwindcss-custom-forms.
Sorry that was my bad, I can see that for it to be a data URI it needs to be converted as you have it. It works now. Thank you.
from tailwindcss-custom-forms.
Related Issues (20)
- Installation failed HOT 1
- Style input for datalist
- Ability to render `icon` on unchecked radios and checkboxes
- Custom-forms with applyComplexClasses on shows focus state as default state HOT 1
- Custom forms larger than tailwindcss due to lodash
- Allow styling of checkboxes using the text-color classes HOT 1
- important : true is not suppurted HOT 1
- Checkbox a11y HOT 2
- Custom Forms not recompiling when making changes in tailwind config HOT 1
- Safari not picking up custom checkbox HOT 3
- states (focus, hover) not working HOT 1
- is it possible to change the color of the external border of the radio icon
- Issue when upgrading to TW v2 HOT 7
- How can I customize the background size of a radio icon?
- Could not find a declaration file for module '@tailwindcss/custom-forms' HOT 1
- Difference between this and @tailwindcss/forms? HOT 5
- Can't change default borderWidht of select html element.
- Form input fields are not showing in modal.
- form-* dos not apply all styles HOT 3
- 8 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 tailwindcss-custom-forms.