Skip to content

enriquerene/style-objects

Repository files navigation

Style Objects CSS properties as JS objects. Jstyes makes easier style your view as javascript objects instead plain css. Made up thinking in React Native / React JS projects, but can be used in other contexts.

Table of Contents

Support

If you need some help you can open an issue or get in touch by email (contato@enriquerene.com.br).

Installation

There are some installation ways. You can choose the best way for you.

NPM

This way requires NodeJS. With NodeJS installad use yarn or npm:

$ yarn add style-objects

or

$ npm install style-objects

Git

Clone the repo into your project:

$ git clone https://github.com/enriquerene/style-objects.git

Zip

Dowload the package and uncpack it into your project: Dowload ZIP

Usage

You can import all style objects from package:

import React from "react";
import styleObjects from "style-package";
const borderStyle = styleObjects.border.border // change this
const styledElement = 
<div style={}></div>

or

$ npm install style-objects

Contribute

About

CSS properties as JS objects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published