npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pn-design-assets

v1.8.3

Published

Icons, SCSS, and more for PostNord Graphical Guidelines

Downloads

10,457

Readme

PostNord, Sass Guidelines

PostNords colors, fonts and resets used across our apps.

SCSS

// resets 1 rem to 10px to make it easier to work with (mandatory if you want to use our web components)
@import "node_modules/pn-design-assets/pn-assets/styles/_pn-resets";

// import PostNord-Sans and apply it
@import "node_modules/pn-design-assets/pn-assets/styles/_pn-fonts";

// this is all of the font sizes that we've decided on in the design team. In short it's sensible default sizes for all text elements and a bunch of helper classes to align our typography standards cross site (we have a more in depth guide in the left panel of this site).
@import "node_modules/pn-design-assets/pn-assets/styles/_pn-typography";

// Our color palette, you can get an overview of this if you look in our Storybook
@import "node_modules/pn-design-assets/pn-assets/styles/_pn-colors";

// You can import all of our SCSS files in one go.
@import "node_modules/pn-design-assets/pn-assets/styles/pn-styles";

SVG & colors assets

You can import our SVG icons and illustrations from this repo. The raw SVG files can be found in pn-design-assets/pn-assets/illustrations/circle/ and pn-design-assets/pn-assets/icons/. We have provied typed exports of all SVG content with declaration typescript maps.

Icons

All icons are exported from pn-design-assets/pn-assets/icons.js file, we also provide a camelCase version named iconsCamel.js

import { arrow_right } from 'pn-design-assets/pn-assets/icons'
import { arrowRight } from 'pn-design-assets/pn-assets/iconsCamel'
// or
import {
	arrow_right,
	arrowRight
} from 'pn-design-assets/pn-assets/icons/arrow_right'

Flags

All flags are exported from pn-design-assets/pn-assets/flags.js file, we also provide a camelCase version named flagsCamel.js

import { se_flag } from 'pn-design-assets/pn-assets/flags'
import { seFlag } from 'pn-design-assets/pn-assets/flagsCamel'
// or
import { se_flag, seFlag } from 'pn-design-assets/pn-assets/flags/se_flag'

Illustrations

All illustrations are exported from pn-design-assets/pn-assets/illustrations.js file, we also provide a camelCase version named illustrationsCamel.js

import { company_settings } from 'pn-design-assets/pn-assets/illustrations'
import { companySettings } from 'pn-design-assets/pn-assets/illustrationsCamel'
// or
import {
	company_settings,
	companySettings
} from 'pn-design-assets/pn-assets/flags/company_settings'

Colors

We have all of our colors in the SCSS files mentioned above, but sometimes you need them in your javascript code.

import { blue700 } from 'pn-design-assets/pn-assets/colors'

Typography classes

| Class | Desktop/Mobile | Line height | Element | | ------ | -------------- | ----------- | ------------ | | pn-2xl | 48px / 32px | 1.1 | | | pn-xl | 32px / 30px | 1.1 | <h1> | | pn-l | 24px / 24px | 1.1 | <h2> | | pn-m | 20px / 20px | 1.1 | <h3> | | pn-s | 16px / 16px | 1.5 | <p>/<h4> | | pn-xs | 14px / 14px | 1.5 | | | pn-2xs | 12px / 12px | 1.5 | <small> |

Optimize SCSS in your application

Many build tools allow you to append SCSS variables that are exposed to to all your SCSS files/components. Make sure you only import _pn-colors.scss, as it is the only one containing our SCSS variables. Including pn-styles.scss in that step would import the variables, fonts, resets and typography rules in every single component/SCSS file in your project.