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

@dataforsyningen/css

v3.11.0

Published

Cascading style sheets (CSS) implementation of SDFI designguide.

Downloads

158

Readme

Design System CSS

Design System CSS (DSCSS) is an implementation of SDFIs official design guide.

The design system guide is available on Figma. (Requires SDFI login)

The system is a single CSS file and useful accompanying font files that you can embed in your web project for at SDFI branded look and feel.

Get started with the official documentation here!

Usage

Option 1 - Bundle with your JS/CSS

Presently, you can install DSCSS via NPM and bundle it with your other frontend assets.

  1. Install package

    npm i --save @dataforsyningen/css
  2. Import DSCSS

    Javascript

    import "@dataforsyningen/css";

    CSS

    @import "@dataforsyningen/css";

    Your bundler should accept SASS/SCSS and know how to bundle it properly. You might need to install and set up a loader depending on your build setup.

Option 2 - Refer assets in HTML <head>

Link to designssytem.css CSS directly into your HTML's <head>.

  1. Download designsystem.css
  2. Add a link element in your HTML head that refers to the CSS file:
<!doctype html>
<html lang="da">
  <head>
    ...

    <link rel="stylesheet" href="/somewhere/designsystem.css">

    ...
  </head>

Typography

The Design System assumes you host the "Roboto" and "Source Code Pro" fonts yourself and have them available in a ./fonts directory related to the path of your designsystem.css file.

So if your CSS file has path /somewhere/somewhere/designsystem.css, your font files should be at /somewhere/somewhere/fonts/

Font files are included in assets/fonts along with font.css file to give you an example on how to use @font-face to make custom font includes.

Alternatively, you can include the fonts from Google Fonts, but beware of Google using the font files to track users.

Development

Build doc site from source

npm run build

Builds documentation into index.html and copies a new version of designsystem.css into the assets directory.

npm run start

Opens index.html in a Firefox browser (if one is installed).

Publish NPM

Create a new release in Github to publish an updated NPM package. Details are available in the "Npm" section of SDFI ITU's wiki.

Acknowledgements

Design System CSS is heavily inspired by Pico.css

Pico.css documentation here -> https://picocss.com/docs/