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

hue.gl

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hue.gl

hue.gl is a colour palette developed by Scape Agency.

  • 0.0.10
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23
decreased by-23.33%
Maintainers
2
Weekly downloads
 
Created
Source

GitHub License devContainer


hue.gl logo

hue.gl

Perceptual Colour System


hue.gl cover

Contents



Report a Bug Request a Feature Ask a Question Make a Suggestion Start a Discussion

Welcome to hue.gl - a Perceptual Colour System designed for the modern age. At its core, hue.gl transcends traditional color systems by focusing on how we perceive colors, ensuring that every hue, shade, and tone is as visually intuitive as it is scientifically precise.

Introduction

In a world where colors are more than just aesthetic choices, hue.gl stands out by delivering a color system that aligns with human visual perception. This system is meticulously calibrated to reflect how our eyes and brains understand color, making it an invaluable tool for designers, artists, and anyone looking to communicate with color more effectively.

hue.gl offers a comprehensive suite of tools and features that cater to a wide range of needs - from generating harmonious color schemes to providing a vast palette of perceptually uniform colors. Whether you're designing a user interface, branding materials, or simply exploring the world of colors, hue.gl is your go-to solution for colors that resonate and communicate clearly.

Join us in exploring the vivid and perceptually-optimized world of hue.gl, where every color is more than just a hue - it's an experience.

Colours

Explore a glimpse of the vibrant and diverse color palette offered by hue.gl. Each color has been carefully crafted to provide a wide range of hues and shades, suitable for various design needs.

123456789
GreyN0001N0001N0002N0002N0003N0003N0004N0004N0005N0005N0006N0006N0007N0007N0008N0008N0009N0009
SalmonN0151N0151N0152N0152N0153N0153N0154N0154N0155N0155N0156N0156N0157N0157N0158N0158N0159N0159
OrangeN0301N0301N0302N0302N0303N0303N0304N0304N0305N0305N0306N0306N0307N0307N0308N0308N0309N0309
AmberN0451N0451N0452N0452N0453N0453N0454N0454N0455N0455N0456N0456N0457N0457N0458N0458N0459N0459
YellowN0601N0601N0602N0602N0603N0603N0604N0604N0605N0605N0606N0606N0607N0607N0608N0608N0609N0609
LimeN0751N0751N0752N0752N0753N0753N0754N0754N0755N0755N0756N0756N0757N0757N0758N0758N0759N0759
EcruN0901N0901N0902N0902N0903N0903N0904N0904N0905N0905N0906N0906N0907N0907N0908N0908N0909N0909
OliveN1051N1051N1052N1052N1053N1053N1054N1054N1055N1055N1056N1056N1057N1057N1058N1058N1059N1059
GreenN1201N1201N1202N1202N1203N1203N1204N1204N1205N1205N1206N1206N1207N1207N1208N1208N1209N1209
ForestN1351N1351N1352N1352N1353N1353N1354N1354N1355N1355N1356N1356N1357N1357N1358N1358N1359N1359
JadeN1501N1501N1502N1502N1503N1503N1504N1504N1505N1505N1506N1506N1507N1507N1508N1508N1509N1509
MintN1651N1651N1652N1652N1653N1653N1654N1654N1655N1655N1656N1656N1657N1657N1658N1658N1659N1659
CyanN1801N1801N1802N1802N1803N1803N1804N1804N1805N1805N1806N1806N1807N1807N1808N1808N1809N1809
TealN1951N1951N1952N1952N1953N1953N1954N1954N1955N1955N1956N1956N1957N1957N1958N1958N1959N1959
CapriN2101N2101N2102N2102N2103N2103N2104N2104N2105N2105N2106N2106N2107N2107N2108N2108N2109N2109
SkyN2251N2251N2252N2252N2253N2253N2254N2254N2255N2255N2256N2256N2257N2257N2258N2258N2259N2259
BlueN2401N2401N2402N2402N2403N2403N2404N2404N2405N2405N2406N2406N2407N2407N2408N2408N2409N2409
AzureN2551N2551N2552N2552N2553N2553N2554N2554N2555N2555N2556N2556N2557N2557N2558N2558N2559N2559
IndigoN2701N2701N2702N2702N2703N2703N2704N2704N2705N2705N2706N2706N2707N2707N2708N2708N2709N2709
VioletN2851N2851N2852N2852N2853N2853N2854N2854N2855N2855N2856N2856N2857N2857N2858N2858N2859N2859
MagentaN3001N3001N3002N3002N3003N3003N3004N3004N3005N3005N3006N3006N3007N3007N3008N3008N3009N3009
PurpleN3151N3151N3152N3152N3153N3153N3154N3154N3155N3155N3156N3156N3157N3157N3158N3158N3159N3159
RoseN3301N3301N3302N3302N3303N3303N3304N3304N3305N3305N3306N3306N3307N3307N3308N3308N3309N3309
PinkN3451N3451N3452N3452N3453N3453N3454N3454N3455N3455N3456N3456N3457N3457N3458N3458N3459N3459
RedN3601N3601N3602N3602N3603N3603N3604N3604N3605N3605N3606N3606N3607N3607N3608N3608N3609N3609

Features

hue.gl is not just a color palette – it's a comprehensive Perceptual Colour System, offering an array of features tailored for designers, artists, and anyone with a passion for color. hue.gl features a comprehensive color scheme generator and management tool designed to create and handle color swatches effectively. It provides a range of functionalities including generating color schemes based on various parameters, encoding them into different formats like ASE (Adobe Swatch Exchange), and more.

Here's what sets hue.gl apart:

Perceptual Color Mapping

  • Intuitive Color Perception: Colors in hue.gl are mapped based on human visual perception, ensuring the hues you pick are naturally harmonious and visually effective.
  • Wide Gamut of Colors: A vast array of colors spanning across different shades and tones, each meticulously calibrated for perceptual uniformity.

Advanced Color Scheme Generator

  • Versatile Scheme Creation: Generate color schemes with a variety of parameters, such as complementary, analogous, monochromatic, and more.
  • Multiple Color Models Support: Seamlessly work with various color models including RGB, HSL, CMYK, and others, ensuring compatibility across different platforms and applications.

Export and Integration Flexibility

  • Multiple Export Formats: Export your color schemes in popular formats like ASE (Adobe Swatch Exchange), ensuring easy integration with design tools.
  • Integrates with Design Software: Compatible with major design software, allowing you to bring hue.gl's colors directly into your creative workflow.

Accessibility and Readability Tools

  • Contrast Checker: Ensure your color combinations meet accessibility standards with the built-in contrast checker.
  • Readable Color Selection: Dynamic functions to determine readable text colors over any background, enhancing user experience and accessibility.

Customizable for Your Needs

  • SCSS and CSS Integration: Easily integrate hue.gl colors into your web projects with SCSS functions and mixins, or use CSS variables for straightforward application.
  • Utility Classes and Mixins: A comprehensive set of utility classes and mixins for text, background, and border colors, making HTML and CSS styling more efficient.

Open Source and Evolving

  • Community-Driven Development: As an open-source project, hue.gl is constantly evolving with contributions from a global community of developers and color enthusiasts.
  • Regular Updates and Improvements: Stay up-to-date with regular updates that bring new features, color options, and enhancements.

Embrace the full potential of colors with hue.gl – your comprehensive tool for perceptual color design, ensuring that your projects stand out with visually appealing and accessible color schemes.

Installation

HTML Script Tag

<script src="https://unpkg.com/hue.gl@latest/dist.min.js"></script>

NPM Module

npm i hue.gl

Examples

Accessing Colors

.element {
  background-color: #c6727d; // Using the 'Salmon' color
}
.element {
  background-color: $N0155; // Using the 'Salmon' color
}
.element {
  background-color: hue(N0155); // Using the 'Salmon' color
}

Using the hue-color function to apply a specific color from the hue.gl color map:

.element {
  background-color: hue-color(N1201); // Using the 'Green' color
}

Dynamic Text Color for Readability

Applying dynamic text color for better readability based on the background color:

.element {
  background-color: hue-color(N2551); // Azure color
  color: dynamic-text-color(N2551); // Text color for best contrast
}

Complementary Colors

Generating a complementary color for design harmony:

.element {
  background-color: hue-color(N3001); // Magenta color
  border-color: complementary-color(N3001); // Complementary color to Magenta
}

Opacity Variants

Creating color variants with different opacities:

.element {
  background-color: hue-color-opacity(N1951, 0.5); // 50% opacity Teal color
}

Color Shades and Tints

Applying shades and tints for hover states, disabled states, or gradients:

.element {
  background-color: hue-shade(N0751, 15%); // Darker Lime color
}
.hover-element:hover {
  background-color: hue-tint(N0751, 15%); // Lighter Lime color
}

Accessible Text Color

Ensuring text color contrasts well with its background:

.element {
  @include accessible-text-color(N2701); // Accessible text color based on Indigo background
}

Gradient Backgrounds

Creating a linear gradient background:

.element {
  @include gradient-bg(N2251, N2401); // Gradient from Sky to Blue
}

Theming Components

Applying themes to components like buttons:

.button {
  @include button-theme(N3601, N0001); // Red background with Grey text
}

Blending Colors

Blending two colors for a unique background:

.element {
  @include blend-colors(N0151, N3001, 50%); // Blend of Salmon and Magenta
}

Utility Classes in HTML

Using generated utility classes for quick styling:

<div class="text-N1201 bg-N3301"> // Green text on Rose background
  Sample Text
</div>

Using CSS Variables

Applying CSS variables in your HTML:

<div style="color: var(--color-N1201); background-color: var(--color-N3301);">
  Sample Text
</div>

These examples will provide your users with practical ways to implement the features of your SCSS toolkit, enhancing their understanding and ease of use.

Supported Formats

Style Sheet Languages

ExtensionDescription
.cssCSS Style Sheets
.scssSass Style Sheets
.lessLESS Style Sheets
.stylusStylus Style Sheets
Tailwind CSS Framework

Programming Language Environments

ExtensionDescription
.goGo Language Environment
.jlJulia Language Environment
.pyPython Scripts
.d.tsTypeScript Definitions
.jsJavaScript Files
.texLaTeX Documents

Data-interchange Formats

ExtensionDescription
.csvComma-Separated Values
.jsonJSON Data Format

Image Formats

ExtensionDescription
.svgScalable Vector Graphics

Desktop Applications

ExtensionDescription
.ocoOpen Color Tools
.ptcPANTONE Color File
.aseAdobe Swatch Exchange Format
.acoAdobe Photoshop Color Swatches
.acbAdobe Photoshop Color Book
.grdAdobe Photoshop Gradient File
.clrAdobe Animate Color Set
.inxAdobe InDesign Interchange Format
.acblAdobe Color Book Legacy
.sketchpaletteSketch Palette File
.gplGIMP and Inkscape Palette File
.ggrGIMP Gradient File
.rcpxPowerPaint Palette File
.ctbAutoCAD Color-Based Plot Style File
.colorpickerApple Color Picker File
.bcpBlackMagic Custom Palette
.mgkImageMagick Configuration File
.csColorSchemer Studio File
.styleTrimble SketchUp Style File
.gdiagramstyleOmniGraffle Diagram Style File
.palPainter Custom Palettes File

Other Standards

hue.gl supports a variety of color standards. Below is a list of these standards along with their corresponding SCSS map files:

StandardSCSS Map FileDescription
AS2700_as2700_hex_map.scssAustralian Standard for Colors
BS381_bs381_hex_map.scssBritish Standard 381C for Colours for Specific Purposes
Copic_copic_hex_map.scssCopic marker color system
Flat Design_flat_design_hex_map.scssPopular color palette for flat UI design
FS595_fs595_hex_map.scssFederal Standard 595 color system used by the US government
Material Design_material_design_hex_map.scssGoogle's Material Design color palette
NBS_nbs_hex_map.scssNational Bureau of Standards color names
NCS_ncs_hex_map.scssNatural Color System, a perceptual color model
RAL_ral_hex_map.scssRAL classic color system used in Europe
Tailwind_tailwind_hex_map.scssTailwind CSS framework's color palette
X11_x11_hex_map.scssX11 color names used in web colors

Sample Usage

Here's an example of how to use a color from the RAL standard in your SCSS:

@import 'path/to/hue.gl/scss/standards/_ral_hex_map.scss';

.my-element {
  background-color: map-get($ral, RAL 5002); // Ultramarine Blue
}


Colophon

Authors

hue.gl is an open-source project by Scape Agency.

Scape Agency

Scape Agency is a spatial innovation collective that dreams, discovers and designs the everyday of tomorrow. We blend design thinking with emerging technologies to create a brighter perspective for people and planet. Our products and services naturalise technology in liveable and sustainable –scapes that spark the imagination and inspire future generations.

Development Resources

Contributing

We'd love for you to contribute and to make this project even better than it is today! Please refer to the contribution guidelines for information.

Copyright © 2023 Scape Agency BV. All Rights Reserved.

License

Except as otherwise noted, the content in this repository is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) License, and code samples are licensed under the Apache 2.0 License.

Also see LICENSE and LICENSE-CODE.

Disclaimer

THIS SOFTWARE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.

Keywords

FAQs

Package last updated on 10 Jan 2024

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