@brandcolors/twitter

1.7.0 • Public • Published

Brand Colors Twitter

Version Download License

Introduction

Twitter Brand Colors.

Installation

npm install @brandcolors/twitter

Usage

Styles

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

.foo {
    color: twitter.$primary;
    // color: #1da1f2;
    color: twitter.$primary-rgb;
    // color: rgb(29, 161, 242);
}

Custom Properties

@use "@brandcolors/twitter";

:root {
    @include twitter.custom-properties(primary);
    // --bc-twitter-primary: #1da1f2;
    @include twitter.custom-properties(primary-rgb);
    // --bc-twitter-primary-rgb: rgb(29, 161, 242);
}

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/twitter

Weekly Downloads

3

Version

1.7.0

License

MIT

Unpacked Size

6.46 kB

Total Files

8

Last publish

Collaborators

  • bdamevin