Catalog npm
Back to packageRELEASE DETAILS

0.3.9

npm

8-point-grid

The 8 point scss grid system

8 point8ptgridpointsassscss
Published10 Jan 2018
Direct dependencies1
Transitive dependenciesNot calculated

README

Current package documentation

8-point-grid

The 8 point scss grid system.

Installation

npm install 8-point-grid --save

Include scss in your build or use the compiled css file with the default settings.

Config

Customize variables to your liking.

  • $prefix whatever prefix you want, leave this empty if you want -classname
  • $size number of pixels you want your grid to be, ofc we use 8 :ok_hand:
  • $multiplier iterations of the size $size * $multiplier
  • $line line-height multiplier line-height: $size * $multiplier * $line

Usage

Class name structure .$prefix-prop-$multiplier

Avalible props

Margin

m  - margin
mt - margin-top
mr - margin-right
mb - margin-bottom
ml - margin-left
my - margin-top, margin-bottom
mx - margin-left, margin-right

Padding

p  - padding
pt - padding-top
pr - padding-right
pb - padding-bottom
pl - padding-left
py - padding-top, padding-bottom
px - padding-left, padding-right

Size

w - width
h - height
s - width, height

Type

fs - font-size
lh - line-height

Example

So if you want 8px margin-top, its: pg-mt-1

Or 64px font-size is: pg-fs-8

See all classes

Sketch

This repo also contains a Sketch file with an 8 point grid. Download Sketch file

To nudge a element in sketch 8px, go to Sketch -> Preferences and set move objects to 8 in the last input.

What is a 8 point grid?

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
node-sass
Environment
{
  "local_name": "node-sass",
  "alias": false,
  "peer_metadata": null
}
^4.7.2development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-ysSzr96Ie5J8q9M6p+l34X7lTANbys6ChGInWdD6zoRipJdhAQFh0/JNxJ8KPY1J9KT/qvuvSYU2jOfQNQvT8A==",
  "shasum": "b1a06292023f937e8dde4728bfb8a85798e1cdb7",
  "tarball": "https://registry.npmjs.org/8-point-grid/-/8-point-grid-0.3.9.tgz",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIHBRUSsewzmjarbqdehe0JKcYnPzxMFMoP6ON73tEO/8AiAQ3CqeGqhe2LvjUvE0zQ98sbvvCUptTHmNyt2LWMpJ0g=="
    }
  ]
}

Repository

PENDING
sethne/8-point-grid

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:15 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:6b18bfac5efea7654c17314b7702cd7d95e33f2b8446f0e49d8aa429300a1ed8

Other collected versions

0.4.012 Jan0.3.88 Jan0.3.78 Jan0.3.28 Jan0.3.18 Jan0.3.08 JanView all collected versions →