Socket
Socket
Sign inDemoInstall

@brandcolors/twitter

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @brandcolors/twitter

Twitter Brand Colors.


Version published
Maintainers
1
Install size
6.31 kB
Created

Changelog

Source

1.7.0 (2022-04-25)

Features

  • core: add amex, boeing, dailymotion, dailymotion, deezer, deliveroo, dell and (ca8a8ec)
  • core: add discord (d446959), closes #5
  • core: rename @brandcolors/core for @brandcolors/brandcolors (4a8573b)

Readme

Source

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

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.

Keywords

FAQs

Last updated on 25 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc