Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pismo/bolt-core

Package Overview
Dependencies
Maintainers
4
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pismo/bolt-core

Pismo Bolt core UI style

  • 0.0.1-24
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-75.86%
Maintainers
4
Weekly downloads
 
Created
Source

Bolt Core

This is meant to make it easy to import all styles that are core to the Bolt system.

Installation

yarn add @pismo/bolt-core

Usage

In JS

This loads every module style (colors, typography, etc) for you and make them available globally to the document, along with a few core styles from this very package:

my-app/app.js:

import '@pismo/bolt-core'

You can also name the import if you need to access variables from them:

my-app/app.js:

import styleguide from '@pismo/bolt-core'

const styleExample = {
  fontSize: styleguide.typography.f1,
  color: styleguide.colors.blue,
}

Or just the ones you need at the moment:

my-app/app.js:

import { colors, typography } from '@pismo/bolt-core'

const styleExample = {
  fontSize: typography.f1,
  color: colors.blue,
}

In SCSS

Just import the sub-package you need inside your sass and use the variables as you want:

my-app/component.scss:

import '~@pismo/bolt-core/typography.scss';
import '~@pismo/bolt-core/colors.scss';

.my-custom-error-label {
  font-size: $f7;
  color: $red;
}

This loads everything into your .scss file as well, making all variables and styles available to be used in scss. But we strongly recommend importing each submodule independently as you need them, so you only get the variables to be reused inside scss instead of repeating styles everywhere, since you probably have already imported the core main js in your app js.

my-app/index.scss:

import '~@pismo/bolt-core/index.scss'

Dependencies

Every module exported by this package is actually a separate package of bolt and can be found published to npm, as well as present in the packages folder of the Bolt multi-package monorepo.

They're all listed as dependencies in package.json.

Keywords

FAQs

Package last updated on 17 Jan 2018

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc