1.7.0 • Published 2 years ago

@brandcolors/snapchat v1.7.0

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

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

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.
1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago