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

@kalo/ui

v5.1.0

Published

A library of React components

Downloads

273

Readme


Welcome to Kalo UI.

This repo contains the source code for the design system, as well as the source for the documentation site that powers kalo.design The purpose of Kalo UI is to provide a UI kit of components to be used across all Kalo products, regardless of the technologies they are implememnted with. It should be our equivalent to Material, containing components, icons, design tokens and other tools required on Kalo products.

Getting started

The documentation site (kalo.design) are built using GatsbyJS and live in site/.

To run the docs locally:

  1. npm install in the root of UI
  2. cd site - this is where the docs live.
  3. npm install (you will also need to npm install in the root UI directory).
  4. npm run start
  5. And you should be up and running at localhost:8000

Documentation

For full documentation on how to use @kalo/ui, please refer to the documentation site: KDS Documentation

Common workflows

Adding a new icon

The raw SVG files are stored in src/icons/svg. These are then converted in to symbols which are imported in to Kalo Frontend.

To add a new icon, follow these steps:

  1. Run the SVG through SVGO
  2. Add the SVG file to src/icons/svg.
  3. Run npm run generate:icons to generate a new IconSymbols file.
  4. Add the new icon to the ICON Enum in src/components/icon/constants.js.

Adding a new design token

Design tokens make up the core of our design system. They are shipped in several formats (including JSON, JS, CSS Custom Variables, and SCSS Variables). The source files are in config/design-tokens.

To add a new design token:

  1. Add the token name and value to the appropriate file in config/design-tokens.
  2. Then run npm run generate:tokens.

Releasing

  1. Ensure you have been added to the @kalo NPM team.

    If you're not sure, you can ask in #frontend-cohort.

  2. Once your changes have been merged in to master, checkout master and pull the latest.

  3. Run npm run release.

    This will open an interactive cli, which will let you select the type of version that you're releasing.

    Here's a rough guidance to the types of version:

    • patch - Isolated bug fixes.
    • minor - An internal backwards-compatible change
    • major - A breaking change has been introduced.
  4. Your change has been published 🎉. Remember to let the rest of the team know!