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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@iroco/ui

v1.14.0

Published

Iroco design system based on Svelte

Readme

iroco-ui

CircleCI

Design system for Iroco based on SvelteKit.

See the Documentation.

Install in your svelte application

Prerequisites:

  • @sveltejs/kit: ^2.x
  • svelte: ^5.x
# latest
npm install @iroco/ui
# next
npm install @iroco/ui@next

Usage

Example of layout with navigation

src/routes/+layout.svelte

<script>
	import '../app.scss';
	import { Navigation, NavigationItem } from '@iroco/ui';
	import { base } from '$app/paths';
	import { page } from '$app/state';

	let currentRoute = $derived(page?.route?.id ?? '');

	/** snip **/
</script>

<Navigation
	{navigationItems}
	{currentRoute}
	baseUrl={base}
	type={'sidebar'}
	title={$_('account.title')}
	version={data?.version}
/>

<main class="main">
	<slot />
</main>

<style lang="scss">
	@use '@iroco/ui/scss/constants.scss';
	@use '@iroco/ui/scss/containers.scss';
	@use '@iroco/ui/scss/button.scss';
</style>

Customize colors

You can override CSS vars that mainly located in @iroco/ui/scss/colors.scss' in a custom scss file such as src/app.scss.

Ex. in a custom src/my-colors.css file

:root {
	--color-primary-light: pink;
	--color-primary: red;
}

Then in your src/app.scss style you can both @iroco-ui default scss style and the override.

@use '@iroco/ui/scss/colors.scss';
@use 'my-colors.scss';

Develop

To install dependencies :

npm ci

Building :

npm run build

Releasing (tags and releases to npm):

npm publish

Documentation (Storybook)

The docs directory contains the documentation app deployed on github pages. To install dependencies :

npm ci

You can add/update components documentation into docs/src/pages/components and update the left menu in docs/src/includes/sidebar.md.

When you have to work on the CSS for components, you can have hot reloading. Launch the dev server for docs :

npm run dev

To build the documentation (in /docs) :

npm run build-storybook

CSS Custom properties in Storybook

CSS Custom properties allows to try out variations of the design system. It relies on parts of the design system style that have been ported to CSS vars in this very purpose.

Those variable relate mainly to colors.

Add missing variables to Storybook

.storybook/preview.ts

It should reflect variables declared here :

src/lib/scss/colors.scss