kebot / atom-color

Atom CSS Color Viewer Package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Atom CSS Color Viewer

Simple CSS color viewer for Atom, automatically enabled.

Thanks Adem İlter and interacthings for the idea :)

Install:

apm install webbox-color

It shows the colors of the CSS colors in all the color formats HEX, Short HEX, rgb and rgba

Background Filling

Atom Color Fill

Show on Line End

To use line endings, disable filling:

Atom Color Setting

Atom Color Line

Embedded CSS

Also you can use in HTML or embedded CSS

Atom Color Embedded

Customization

You can edit your styles.less to customize colors.

// ~/.atom/styles.less
.editor {
  .color-box {

    // Customize Line Endings
    &.on-line-end {
      border-radius: 2px 5px;
      margin-left: 1px;
      border: 1px solid #fff;
      background-image: -webkit-linear-gradient(
        top,
        transparent 0%,
        rgb(200, 200, 200) 100%);
    }

    // Customize Background Mode
    &.on-background {
      border-radius: 0;
      text-shadow: none;
      box-shadow: 0 0 5px 2px #fff;
      border: 1px solid #000;
    }
  }
}

When you apply these settings, you'll see something like that:

Atom Customize 1

Atom Customize 2

Change Log

2015-03-04

2015-01-04

  • less/sass support added (fixed issue #5, thanx 2 khuongduybui)
  • package name changed to: webbox-color

About

Atom CSS Color Viewer Package

License:MIT License


Languages

Language:CoffeeScript 90.1%Language:CSS 9.9%