brand-colors

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

  • 所有者: reimertz/brand-colors
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者reimertz/brand-colors
主編程語言JavaScript
編程語言CSS (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2014-02-23 18:06:24
推送於2022-12-06 16:13:21
最后一次提交2019-11-29 09:45:06
發布數23
最新版本名稱v2.1.1 (發布於 )
第一版名稱v0.0.1 (發布於 )
用户参与
星數785
關注者數17
派生數89
提交數161
已啟用問題?
問題數25
打開的問題數1
拉請求數42
打開的拉請求數13
關閉的拉請求數4
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?