1.7.0 • Published 2 years ago

@brandcolors/youtube v1.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Brand Colors YouTube

Version Download License

Introduction

YouTube Brand Colors.

Installation

npm install @brandcolors/youtube

Usage

Styles

@use "@brandcolors/youtube/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/youtube";

.foo {
    color: youtube.$primary;
    // color: #FF0000;
    color: youtube.$primary-rgb;
    // color: rgb(255, 0, 0);
}

Custom Properties

@use "@brandcolors/youtube";

:root {
    @include youtube.custom-properties(primary);
    // --bc-youtube-primary: #FF0000;
    @include youtube.custom-properties(primary-rgb);
    // --bc-youtube-primary-rgb: rgb(255, 0, 0);
}

API

Variables

VariableValue
$primaryReturn hex value color.
$primary-rgbReturn rgb color.

Mixins

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