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

@tactics/kinderopvang-template-styleguide-theme-default

v0.2.64

Published

Styleguide for Kinderopvang Template (default Theme).

Downloads

11

Readme

Kinderopvang Template Styleguide

This is the styleguide for Kinderopvang Template.

Setup

Installation

  1. Clone the repo.
  2. Install nvm https://jamesauble.medium.com/install-nvm-on-mac-with-brew-adb921fb92cc
  3. Install correct node version 12
  4. Swith to correct node version nvm use 12
  5. Install node modules npm install
  6. Make sure node-sass bindings are build npm rebuild node-sass

Run

To start the styleguide just run node_modules/.bin/gulp dev. This will compile the styleguide and start a local server on http://localhost:8090.

Build

If you only want to compile/build the css you can run node_modules/.bin/gulp dist. This will only compile all of the sass and copies the images/fonts to the dist folder without starting the local server and generating the styleguide.

Deploy

Deploying a new release is fully automated via Github Actions.

Deployment flow

These are steps you need to do to start up a release deploy.

  1. Update the version in package.json. The version should be identical as the tag you are going to use for the release in github. Just so the release numbers stay in sync.
  2. Add a new tag ex: git tag v1.0.1.
  3. Push out the new tag ex.: git push origin --tags.

That's all there is to it. This will trigger a github action that will create a release in github for the pushed tag. When the release is published then this will in turn trigger an action that will compile the styleguide, update the gh-pages and publish this to NPM.

Code structure

Basic structure

After you npm install and run gulp dev for the first time, you'll have a folder structure like this.

  • root
    • node_modules
    • dist - where your compiled and autoprefixed styles will go.
    • images - Contains all of our images/icons we use. These get copied to the dist folder when compiling the css.
    • fonts - Contains all of our custom fonts. These get copied to the dist folder when compiling the css.
    • sass - where your style files go.
    • styleguide - where your style library is generated.

BEM notation

We use the BEM notation in our stylefiles. This has a few advantages:

  • Avoids inheritance and provides some sort of scope by using unique CSS classes per element (like .my-component__list-item).
  • Reduces style conflicts by keeping CSS specificity to a minimum level.

For more information about BEM you can get out their documentation

SASS Structure

To seperate the styles in a logical way, we use the atomic design system. Just a quick overview of atomic design:

Atomic design is a methodology composed of five distinct stages working together to create interface design systems in a more deliberate and hierarchical manner. The five stages of atomic design are:

  1. Atoms
    • Atoms of our interfaces serve as the foundational building blocks that comprise all our user interfaces. These atoms include basic HTML elements like form labels, inputs, buttons, and others that can’t be broken down any further without ceasing to be functional.
  2. Molecules
    • Molecules are relatively simple groups of UI elements functioning together as a unit. For example, a form label, search input, and button can join together to create a search form molecule.
  3. Organisms
    • Organisms are relatively complex UI components composed of groups of molecules and/or atoms and/or other organisms. These organisms form distinct sections of an interface. (example: header containing search form)
  4. Templates
    • Templates are page-level objects that place components into a layout and articulate the design’s underlying content structure. To build on our previous example, we can take the header organism and apply it to a homepage template.
  5. Pages
    • Pages are specific instances of templates that show what a UI looks like with real representative content in place. Building on our previous example, we can take the homepage template and pour representative text, images, and media into the template to show real content in action.

Dependencies

We use the following dependencies:

  • Normalize.css To set up the same starting environment cross-browser.
  • jQuery We use this as our javascript platform.