@brandcolors/snapchat

1.7.0 • Public • Published

Brand Colors Snapchat

Version Download License

Introduction

Snapchat Brand Colors.

Installation

npm install @brandcolors/snapchat

Usage

Styles

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

.foo {
    color: snapchat.$primary;
    // color: #fffc00;
    color: snapchat.$primary-rgb;
    // color: rgb(255, 252, 0);
}

Custom Properties

@use "@brandcolors/snapchat";

:root {
    @include snapchat.custom-properties(primary);
    // --bc-snapchat-primary: #fffc00;
    @include snapchat.custom-properties(primary-rgb);
    // --bc-snapchat-primary-rgb: rgb(255, 252, 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/snapchat

Weekly Downloads

2

Version

1.7.0

License

MIT

Unpacked Size

6.49 kB

Total Files

8

Last publish

Collaborators

  • bdamevin