tailwind-design-rn Tailwind Templates

Tailwind Design Rn

# React Native Tailwind Starter

šŸš€ A **React Native** project starter using **Tailwind CSS** for fast and responsive UI development.

This template allows you to quickly build React Native apps with the power of **Tailwind CSS** by integrating `tailwind-rn`, making your development process more productive and efficient.

## Features

- šŸ’Ø **Tailwind CSS** support using `tailwind-rn`
- šŸ”„ **Fast styling** with utility-first classes
- šŸŽØ **Customizable** Tailwind configuration for easy theming
- šŸ—ļø **Responsive layouts** out of the box
- šŸ“± **Cross-platform** support (iOS & Android)

## Installation

Follow these steps to set up the project and integrate Tailwind CSS into your React Native application.

### 1. Clone the Repository

```bash
git clone https://github.com/your-username/react-native-tailwind.git
cd react-native-tailwind

2. Install Dependencies

Run the following command to install all the required dependencies:

npm install
# or
yarn install

3. Install and Configure Tailwind for React Native

You will need to install tailwind-rn to integrate Tailwind CSS:

npm install tailwind-rn
# or
yarn add tailwind-rn

After installing, initialize the tailwind.config.js file to customize your Tailwind CSS configuration:

npx tailwind-rn init

4. Linking Assets (For React Native)

If you're using any native modules or fonts, make sure to run:

npx react-native link

5. Start the Development Server

Run the following commands to start the development server for React Native:

npm run android
# or
npm run ios

Usage

You can start using Tailwind CSS in your React Native components as follows:

Example

import React from 'react';
import { View, Text } from 'react-native';
import tailwind from 'tailwind-rn';

export default function App() {
  return (
    <View style={tailwind('flex-1 justify-center items-center bg-gray-100')}>
      <Text style={tailwind('text-xl font-bold text-blue-500')}>
        Welcome to React Native with Tailwind CSS!
      </Text>
    </View>
  );
}

Customizing Tailwind Configuration

You can modify the tailwind.config.js file to add custom colors, fonts, and other utility classes:

module.exports = {
  theme: {
    extend: {
      colors: {
        customBlue: '#1E40AF',
      },
    },
  },
  variants: {},
  plugins: [],
};

Screenshots

Login Page Onboarding Page
Screenshot_1725633917 Screenshot_1725633850
Onboarding Page Signup Page
Screenshot_1725633844 Screenshot_1725634531

Available Scripts

  • npm run android – Runs the app on Android emulator.
  • npm run ios – Runs the app on iOS simulator.
  • npm run start – Starts the development server.
  • npm run build – Builds the app for production.

Project Structure

šŸ“‚ react-native-tailwind
ā”œā”€ā”€ šŸ“‚ assets        # Static assets like images, fonts
ā”œā”€ā”€ šŸ“‚ src           # Source code (components, screens)
ā”œā”€ā”€ šŸ“„ App.tsx       # Main app entry point
ā”œā”€ā”€ šŸ“„ tailwind.config.js  # Tailwind CSS configuration
└── šŸ“„ README.md     # This file

Contributing

We welcome contributions! If you have any suggestions or improvements, feel free to open a pull request or create an issue.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Built with ā¤ļø by [riffatadnan].

Top categories

Loading Svelte Themes