Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

@times-visuals/styles

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@times-visuals/styles

> The core colours and breakpoints needed for visuals

latest
npmnpm
Version
1.2.0
Version published
Maintainers
2
Created
Source

Styles

The core colours and breakpoints needed for visuals

Installation

# Yarn
$ yarn add @times-visuals/styles

# npm
$ npm add @times-visuals/styles

Usage

Colors

import { colors } from "@times-visuals/styles";

// Core digital colour palette
console.log(colors.digital);

// UK Political Parties
console.log(colors.ukPoliticalParties);

Breakpoints

import { breakpoints } from "@times-visuals/styles";
import styled from "styled-components";

export const SomeContainer = styled.main`
  // Main styles

  @media screen and (min-width: ${breakpoints.mobile}) {
    // Mobile and above override styles
  }
`;

FAQs

Package last updated on 14 Jun 2019

Did you know?

Socket

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