Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/FormidableLabs/react-native-zephyr
TailwindCSS-inspired styling library for React Native.
https://github.com/FormidableLabs/react-native-zephyr
dark-mode react react-native typescript
Last synced: 5 days ago
JSON representation
TailwindCSS-inspired styling library for React Native.
- Host: GitHub
- URL: https://github.com/FormidableLabs/react-native-zephyr
- Owner: FormidableLabs
- License: mit
- Archived: true
- Created: 2022-06-10T15:56:15.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-29T16:17:55.000Z (over 1 year ago)
- Last Synced: 2024-09-29T10:47:00.949Z (about 1 month ago)
- Topics: dark-mode, react, react-native, typescript
- Language: TypeScript
- Homepage: https://formidable.com/open-source/react-native-zephyr/
- Size: 16.5 MB
- Stars: 345
- Watchers: 33
- Forks: 5
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[![React Native Zephyr — Formidable, We build the modern web](https://raw.githubusercontent.com/FormidableLabs/react-native-zephyr/master/react-native-zephyr-Hero.png)](https://formidable.com/open-source/)
[![github][github-static-analysis-image]][github-url]
[![github][github-unit-test-image]][github-url]
[![npm][npm-image]][npm-url]
[![docs][docs-image]][docs-url]
[![Maintenance Status][maintenance-image]](#maintenance-status)## Overview
React Native Zephyr is a [TailwindCSS](https://tailwindcss.com)-inspired styling library for React Native.
TailwindCSS is a brilliant library, but it's built for CSS and the web browser – and these are tools that are not available in React Native projects. This project aims to borrow some of the core ideas of TailwindCSS and implement them in the context of React Native applications.
React Native Zephyr, out of the box, provides:
- a thorough set of [built-in styling utilities](./docs/default-classes.md) (spacing, colors, typography, etc.);
- an [extendable and overridable theming system](./docs/extending-the-theme.md);
- **type-safety** for speedy and confident development;
- [dark-mode support](./docs/dark-mode.mdx) out of the box;
- [clsx-like syntax](./docs/dynamic-classname-list.md) for applying dynamic style classes.Head over to [the docs](https://formidable.com/open-source/react-native-zephyr/) to learn more.
## Installation
In your React Native or Expo project, install `react-native-zephyr` using your favorite package registry tool such as npm, yarn, or pnpm.
```shell
npm install react-native-zephyr
``````shell
yarn add react-native-zephyr
``````shell
pnpm add react-native-zephyr
```There is no further installation as react-native-zephyr is a pure JS library with no native dependencies. See our [Quick Start](https://formidable.com/open-source/react-native-zephyr/quick-start#step-2-wrap-your-app-in-a-styleprovider) guide to get started with configuration.
[github-unit-test-image]: https://github.com/FormidableLabs/react-native-zephyr/workflows/Unit%20Test/badge.svg
[github-static-analysis-image]: https://github.com/FormidableLabs/react-native-zephyr/workflows/Static%20Analysis/badge.svg
[github-url]: https://github.com/FormidableLabs/react-native-zephyr/actions
[npm-image]: https://img.shields.io/npm/v/react-native-zephyr
[npm-url]: https://www.npmjs.com/package/react-native-zephyr
[docs-image]: https://img.shields.io/badge/docs-visit%20site-blue
[docs-url]: https://formidable.com/open-source/react-native-zephyr/
[maintenance-image]: https://img.shields.io/badge/maintenance-active-green.svg?color=brightgreen&style=flat