GithubHelp home page GithubHelp logo

doc22940 / brand-colors Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reimertz/brand-colors

1.0 1.0 0.0 3.76 MB

🎨 A color collection available in sass, less, stylus and css

Home Page: https://brand-colors.re.im

License: MIT License

CSS 30.02% JavaScript 56.81% HTML 13.17%

brand-colors's Introduction

brand-colors is a collection of colors works available in sass, less, stylus and css

Installation

npm install brand-colors
bower install brand-colors

Usage

scss

@import 'bower_components/brand-colors/dist/latest/scss/brand-colors.latest.scss'

.a-div {
  color: $bc-spotify;
}

less

@import 'bower_components/brand-colors/dist/latest/less/brand-colors.latest.less'

.a-div {
  color: @bc-spotify;
}
in webpack
  • use relative path to the node_modules, for example:
  app
   |_node_modules
   |_src
      |_css
         |_app.less

in app.less:

@import '../../node_modules/brand-colors/dist/latest/less/brand-colors.latest.less';
  • use webpack's resolve mechanism
@import '~brand-colors/dist/latest/less/brand-colors.latest.less';

sass

@import 'bower_components/brand-colors/dist/latest/scss/brand-colors.latest.sass'

.a-div
  color: $bc-spotify

stylus

@import 'bower_components/brand-colors/dist/latest/stylus/brand-colors.latest.styl'

.a-div {
  color: $bc-spotify;
}

css

  <link rel="stylesheet" href="bower_components/brand-colors/dist/latest/css/brand-colors.latest.min.css">`

  <span class="bc-spotify">This text is spotify-green</span>
  <div class="bc-spotify-bg">This div has a spotify-green background</div>

postcss

Use postcss-brand-color plugin. Add it to PostCSS:

postcss([ require('postcss-brand-colors') ])

and use *-color names:

.a-div {
  color: spotify-color;
}

Run brand-colors.com locally

If you want to work on the static homepage, just run the following commands and you will get a live-reloading server listening for changes in /app and brandColors.js

npm install
gulp dev

Brands

Full list of colors A lot fo the colors comes from brandcolors.net, so a huge shout out to @galengidman.


reimertz.co  ·  GitHub @reimertz  ·  Twitter @reimertz

brand-colors's People

Contributors

eropple avatar haroenv avatar tacomanator avatar filiphsps avatar jonoshearman avatar than avatar grawl avatar dottenpixel avatar leozhang2018 avatar dependabot[bot] avatar dazorni avatar sammarks avatar r-brown avatar qwp6t avatar lokesh-coder avatar danielbayley avatar sapegin avatar ai avatar gazay avatar andrepolischuk avatar kesla avatar jorilallo avatar etenzy avatar reimertz avatar zerismo avatar mkstix6 avatar nju33 avatar

Stargazers

Acampbell avatar

Watchers

 avatar

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.