New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bolt/settings-spacing

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bolt/settings-spacing

Spacing Settings

  • 0.7.0-alpha.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-25%
Maintainers
1
Weekly downloads
 
Created
Source

bolt/settings-spacing

Spacing settings based on Bolt design principles. Part of the Bolt “Core” CSS framework that powers the Bolt Design System.

  • Sassdocs
  • Demo (Coming Soon)

Table of Contents

Cheat Sheet

Install via NPM

npm install @bolt/settings-spacing

Spacing Chart*

Vertical and Horizontal Spacing Base
DirectionSizeRelated to
Vertical1.650remLeading
Horizontal2.000remGutter
Spacing Size Multiplier
SizeMultiplierVerticalHorizontal
xxsmall0.1250.206rem0.250rem
xsmall0.2500.413rem0.500rem
small0.5000.825rem1.000rem
medium (base)1.0001.650rem2.000rem
large2.0003.300rem4.000rem
xlarge4.0006.600rem8.000rem
xxlarge8.00013.200rem16.000rem
Squished and Stretched Ratio
NameVerticalHorizontal
Squished50%100%
Stretched100%150%

Getting Started

The best way to start using Bolt is via the Bolt Starterkit (coming soon), a pre-assembled front-end boilerplate designed to get you up and running as quickly as possible.

You can also use the full Bolt Core CSS framework on its own, or, install just the parts you need and fold the different ITCSS layers of Bolt into your existing codebase.

Installing Bolt’s spacing settings is as easy as running NPM install:

npm install @bolt/settings-spacing

TIP:: Don’t have a package.json file? Need a little help getting started? Check out our Getting Started guide for some tips to help get you up to speed.

Usage

Once installed, you should @import the main Sass partial into your project’s main .scss file to make the included variables available to the rest of your code.

// Settings
@import ‘@bolt/settings-spacing’
...

// Tools
@import ‘@bolt/tools-...’

Since Bolt's CSS architecture is based on ITCSS (Inverted Triangle CSS)1, what Sass partials you import, and in what order, makes a whole world of difference. That’s why importing any Settings packages from Bolt in your project’s Settings layer (prior to any Sass mixins, resets, base HTML element styles, etc) is so important.

Compiling

We recommend using Bolt’s Gulp-based front-end build tools to compile your Sass as we're pre-packaging many of the latest tools and add-ons to help you write your very best: LibSass, Autoprefixer, PostCSS, CleanCSS, Sassdoc, Stylelint, Gulp Plumber, npm-sass, and BrowserSync live reloading.


Further Reading:

1. Learn more about ITCSS

2. Spacing

Keywords

FAQs

Package last updated on 25 Oct 2017

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