Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

channel-colors

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

channel-colors

Colors for Channel.io, builds platform-dependent color resources by single maintenance point.

  • 0.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

npm version

Colors of Channel.io

Channel-Colors is an color scheme used and created by Channel.io.

Anyone can download pre built scheme(recommended) or build manually with original .colors.json file.

Supported Platforms / Download / Usage

We provide pre built latest distributions.

SCSS (https://sass-lang.com/)

Download Pre Built

Usage

div {
  background-color: $ch-navy600;
}

CSS

Download Pre Built

Usage

div {
  background-color: var(--navy-600);
}

Android XML (https://developer.android.com/guide/topics/resources/more-resources)

Download Pre Built

Usage

<TextView
  android:background="@color/navy600" />

JSON:

Download Pre Built

Scheme

{
  "navy600": {
    "hex": "#09124E",
    "opacity": 100,
    "rgb": "9,18,78",
    "family": "navy"
  },
  ...
}

Manual Build

It builds platform-dependent color resources by single maintenance point.

Prerequisite

Needs NPM: package manager. To install it, see Downloading and installing Node.js and npm.

Commands

  • npm run build: Build colors for all supported platforms after cleaning up previous outputs.
  • npm run test: Not supported yet.
ETC
  • npm run cleanup: Cleanup previous outputs. Can not be undone.

Outputs

├── src
│   └── default.colors.json  # Original source to compile
└── dist
    ├── android.default.colors.json  # Resource for Android
    ├── default.colors.json  # Simple JSON
    ├── default.colors.scss  # SCSS
    └── default.colors.css  # CSS

License

MIT License.

Keywords

FAQs

Package last updated on 11 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc