Code Monkey home page Code Monkey logo

vscode-colorize's Introduction

Colorize

codebeat badge Build Status Build status Licence Version License Installs Ratings

Instantly visualize css colors in your css/sass/less/postcss/stylus/XML... files.

This extension your styles files looking for colors and generate a colored background (using the color) for each of them.

๐Ÿ’ก How to enable variables support

Features

  • Generate colored background for css variables
  • Generate colored background for preprocessor variables
  • Generate colored background for hsl/hsla colors
  • Generate colored background for cross browsers colors
  • Generate colored background for css hexa color
  • Generate colored background for rgb/rgba color
  • Color background live update

Options (settings)

The following Visual Studio Code settings are available for the Colorize extension. These can be set in user preferences (cmd+,) or workspace settings (.vscode/settings.json).

colorize.languages ARRAY

Configure a list of languages that should be colorized. You can learn about languages at https://code.visualstudio.com/docs/languages/overview.

For example, if you want to colorize colors in javascript files, you just need to include it:

  "colorize.languages": [
    "javascript",
    // ...
  ]

colorize.include

Configure glob patterns for including files and folders. By default Colorize is enable for files matching one the languages defined in the colorize.languages config, with this config you can enable colorize for other files or folders. Read more about glob patterns here.

colorize.exclude

Configure glob patterns for excluding files and folders. Colorize will not colorized colors in these files and folders and it'll also not search for variables inside. Read more about glob patterns here.

[DEPRECATED] colorize.files_extensions ARRAY

โš ๏ธ this setting is deprecated, you should use colorize.include instead Modified this option to activate colorize for files with the matching extension.

For example if you want to colorize .diff files:

  "colorize.files_extensions": [
    ".diff"
  ]

colorize.hide_current_line_decorations BOOLEAN default: true

By default, decorations for the current line are hidden. Set this setting to false if you want to deactivate this behavior.

colorize.colorized_colors ARRAY

This options allow you to enable/disable colorization for a type of colors.

For example if you want to only colorize hexa colors (#fff, #ffffff, 0xFFF) in your files you can update the option like this

  "colorize.colorized_colors": [
    "HEXA"
  ]

colorize.colorized_variables

This options allow you to enable/disable colorization for a type of variables.

For example if you use less in your project you setup the option like this

  "colorize.colorized_variables": [
    "LESS"
  ]

This way all @variables will be colorized

Roadmap

  • Generate background for hexa colors
  • Update background on color updates
  • Generate background for rgb colors
  • Generate background for rgba colors (~ missing transparency)
  • Generate background for hsl colors
  • Generate background for hsla colors (~ missing transparency)
  • Generate background for Predefined/Cross-browser colors
  • Generate background for preprocessor variables
  • Generate background for css variables
  • Config livereload

Release

See CHANGELOG for more information.

Contributing

Bugs, feature requests and more are welcome here GitHub Issues.

vscode-colorize's People

Contributors

kamikillerto avatar greenkeeper[bot] avatar rbolsius avatar tyriar avatar pashute avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.