@brandcolors/youtube

1.7.0 • Public • Published

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

Variable Value
$primary Return hex value color.
$primary-rgb Return rgb color.

Mixins

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

Package Sidebar

Install

npm i @brandcolors/youtube

Weekly Downloads

2

Version

1.7.0

License

MIT

Unpacked Size

6.46 kB

Total Files

8

Last publish

Collaborators

  • bdamevin