Comments (3)
I'm able to generate the colors for text and border but bg colors never generate from tailwind.config
from tailwind-rn.
This module doesn't support custom Tailwind config yet, but I'm working on it. See #16.
from tailwind-rn.
I'm following the guide but cant worked it out yet.
npx tailwindcss init
This is my tailwind.config.js
const colors = require('tailwindcss/colors')
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
color: {
primary: colors.indigo[500],
secondary: colors.yellow[400],
primaryVariant: colors.indigo[400],
secondaryVariant: colors.yellow[300],
background: colors.gray[50],
surface: colors.gray[50],
error: colors.red[500],
onPrimary: colors.gray[50],
onSecondary: colors.gray[900],
onBackground: colors.gray[900],
onSurface: colors.gray[900],
onError: colors.gray[50],
},
fontFamily: {
regular: ['Roboto-regular'],
black: ['Roboto-black'],
bold: ['Roboto-bold']
},
extend: {},
},
variants: {
extend: {},
},
plugins: [],
}
npx create-tailwind-rn
Cant see my primary or other colors in styles.json and added this files to packae.json
},
"files": [
"styles.json",
"tailwind.config.js",
"tailwind.js"
],
And I made the same tailwind.js as in guide
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.