Coder Social home page Coder Social logo

swyxio / react-styled-duotone Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 1.0 716 KB

A styled component to implement duotone images in react with css mix-blend. See demo at:

Home Page: https://sw-yx.github.io/react-styled-duotone/demo/index.html

License: MIT License

JavaScript 100.00%

react-styled-duotone's Introduction

React Mixblend Duotone

a small starter for building a component library with styled-components ๐Ÿ’…

Demo is at: https://sw-yx.github.io/react-styled-duotone/demo

Overview

This component lib uses:

CSS mix-blend mode styled-components, polished, styled-components-modifiers ๐Ÿ’…

Color themes

  • Primary-Color: #FBFBFB, Secondary-Color: #283B6B
  • Primary-Color: #FCC862, Secondary-Color: #2D45C6
  • Primary-Color: #71DF6F, Secondary-Color: #272D67
  • Primary-Color: #D92037, Secondary-Color: #2A3060
  • Primary-Color: #8ADFD0, Secondary-Color: #5C2998
  • Primary-Color: #FCC862, Secondary-Color: #2D45C6
  • Primary-Color: #A3D5CA, Secondary-Color: #E52839

Further reading

Up & Running

To install dependencies with Yarn, run:

$ yarn

or to install with npm, run:

$ npm install

Build

NOTE: When you run build, Babel will create a build directory. This is what your users will interact with when they use your library. Nothing in lib gets shipped with your published module.

Run once:

$ npm run build

Run the watch script:

$ npm run build:watch

NOTE: the build script runs in the prepublish script just before you publish to npm.

Publishing

If you already have an account with npm, you can simply run:

$ npm login
$ npm publish

If you don't have an account with npm:

NOTE: Your email address is public

$ npm set init.author.name "Your Name"
$ npm set init.author.email "[email protected]"
$ npm set init.author.url "http://yourblog.com"
$ npm adduser
$ npm publish

Contributing

I am thankful for any contributions made by the community. By contributing you agree to abide by the Code of Conduct in the Contributing Guidelines. https://hackernoon.com/building-a-react-component-library-part-2-46fd4f77bb5c

License

MIT

react-styled-duotone's People

Contributors

alanbsmith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mehrdad-shokri

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.