Socket
Socket
Sign inDemoInstall

@brandcolors/google

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @brandcolors/google

Google Brand Colors.


Version published
Maintainers
1
Created

Changelog

Source

1.7.0 (2022-04-25)

Features

  • core: add amex, boeing, dailymotion, dailymotion, deezer, deliveroo, dell and (ca8a8ec)
  • core: add discord (d446959), closes #5
  • core: rename @brandcolors/core for @brandcolors/brandcolors (4a8573b)

Readme

Source

Brand Colors Google

Version Download License

Introduction

Google Brand Colors.

Installation

npm install @brandcolors/google

Usage

Styles

@use "@brandcolors/google/styles";

The styles will create all custom properties in CSS root. If you want this custom properties anywhere else, use the public mixin custom-properties.

Theming

@use "@brandcolors/google";

.foo {
    color: google.$primary;
    // color: #4285f4;
    color: google.$primary-rgb;
    // color: rgb(66, 133, 244);
}

Custom Properties

@use "@brandcolors/google";

:root {
    @include google.custom-properties(primary);
    // --bc-google-primary: #4285f4;
    @include google.custom-properties(primary-rgb);
    // --bc-google-primary-rgb: rgb(66, 133, 244);
}

API

Variables

VariableValue
$primaryReturn hex value color.
$primary-rgbReturn rgb color.
$blueReturn hex value color.
$greenReturn hex value color.
$yellowReturn hex value color.
$redReturn hex value color.

Mixins

MixinDescription
custom-properties($values...)Create dedicated custom property. If the $values is empty, the mixin will create all styles by default.

Keywords

FAQs

Last updated on 25 Apr 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc