0.5.3 • Published 6 years ago

ios-theme-toolkit v0.5.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Deprecated ⚠

This project will be discontinued. I recommend using the Ionic 4 that supports React well.

ios-theme-toolkit

A simple library of components in React that follow the style guide of iOS for you to use in your web apps.

NPM Documentation JavaScript Style Guide

All credits go to @nolimits4web, he had all the work that recreated the iOS visual identity for Framework7, this project just extracted theses styles in a separate package and created a library of components in React on top of that. Why?

How to use

Install it:

yarn add ios-theme-toolkit
or
npm install ios-theme-toolkit --save

and import the package from anywhere in your project that is accessible to your bundler (Webpack or Rollup). Example:

import React, { Component } from 'react'

import { Button, Input } from 'ios-theme-toolkit'

class Example extends Component {
  render () {
    return (
      <div>
      	<Input fill block value="Hello world" />
      </div>
      <Button fill block color="blue"></Button>
    )
  }
}

See how to use the components in the 📚 online documentation with live preview.

Libraries and tools used:

  • React: To create the components.
  • Gulp: To concatenate and minify style files.
  • Gulp-less: To process the original style files in .less.
  • Docz: To do components documentation.
  • Rollup: To bundle all components in "dist" folder.
  • Release-it: To automate the process of publishing a new release.

CLI Commands 🤓

  • yarn run create-component: Create a new component inside the "./src/components" folder with all the .js, .less, .test.js and .mdx files already configured.
  • yarn run test: Run all tests of project.
  • yarn run dev: Start gulp watch.
  • yarn run docz: Start docz on port 8000.
  • yarn run build: Prepare the package to be published (Generate all final files).
  • yarn run deploy-docs: Send a new documentation update to remote branch gh-pages and refresh the website.
  • yarn run release: Uses release-it to:

Gulp commands

View list of well-documented commands in gulpfile.js.

FAQ

Inspiration

License

MIT

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago