Comments (11)
Is this also what's causing e.g. primary
, secondary
, danger
etc from being removed from bg-*
styles? I can see it's still generatingtext-primary
for example, just not bg-primary
.
from tailwind-rn.
Actually, it could allow bg-*
classes, but filter out unsupported ones, but I think it will be a super ugly regex to have.
from tailwind-rn.
Going to repurpose this into a generic issue on supporting custom Tailwind configs. I've started working on this, because it's clearly a much needed feature for the community.
from tailwind-rn.
@vadimdemedes your custom-config
branch did create a custom bg-xx
class great
from tailwind-rn.
You're right. I've checked that and it works now.
from tailwind-rn.
It can't be /^bg-/
, because then it would include classes that are not supported in React Native, like bg-repeat
.
As a workaround, I'd suggest using gray
naming for now.
from tailwind-rn.
Pushed #43 to support full customization of your Tailwind build. Try it out and let me know if it works or not!
from tailwind-rn.
@vadimdemedes i recently installed the library but still could not get custom bg-xx
Note: border and text are working as expected, issue is only with bg
from tailwind-rn.
@MaganAnkur did you use the custom-config
branch? I added primary
color to my config and bg-primary
was added to the styles.json
file
from tailwind-rn.
custom-config
branch works for generating bg-*
classes
from tailwind-rn.
Closing, tailwind-rn
supports custom config out of the box now.
from tailwind-rn.
Related Issues (20)
- [question] how to set the root font size? HOT 1
- How to use tailwind imports with react native- can tailwind be shortened to tw HOT 1
- Custom classes missing some styles HOT 1
- Blur support
- Typescript error: Property 'children' does not exist on type 'IntrinsicAttributes & Props' (TailwindProvider) HOT 1
- Error: Failed to parse declaration "textDecorationLine: overline"
- Does this work?
- Is TailwindCSS component available with this library?
- Can we have space-between ? HOT 1
- Unsupported Tailwind class, not responding on rect native HOT 5
- Unable to see changes after installation HOT 1
- Fix children prop type HOT 2
- Custom theme unknown or invalid utility HOT 1
- Bug: 'taildinwcss@latest' is not in this registry. HOT 1
- Is it possible to use prettier-plugin-tailwindcss with tailwind-rn? HOT 2
- Support react-native 0.71 gap proprety HOT 2
- npx create-tailwind-rn has stopped woprking for v3.0.1 HOT 1
- Adding optional "children" property to the TailwindProvider interface, to avoid TypeScript error. HOT 3
- is it possible to use it in react native storybook?
- Nativewind Alt
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 tailwind-rn.