Coder Social home page Coder Social logo

Comments (3)

TNortnern avatar TNortnern commented on August 27, 2024 2

I'm able to generate the colors for text and border but bg colors never generate from tailwind.config

from tailwind-rn.

vadimdemedes avatar vadimdemedes commented on August 27, 2024 1

This module doesn't support custom Tailwind config yet, but I'm working on it. See #16.

from tailwind-rn.

Sargnec avatar Sargnec commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.