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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sb1/indeks-css

v0.2.21

Published

CSS library for Indeks design system

Readme

@sb1/indeks-css

CSS-bibliotek for Indeks designsystemet. Denne pakken inneholder all styling du trenger for å bruke Indeks - komponenter, utility-klasser og design tokens.

📦 Del av Indeks

Denne pakken er en del av Indeks designsystemet og inkluderer automatisk:

  • @sb1/indeks-tokens - Design tokens (farger, spacing, typografi)
  • @sb1/indeks-utils - CSS utility-klasser

Du trenger ikke å installere tokens eller utils separat!

📥 Installasjon

Via CDN (anbefalt)

<link rel="stylesheet" href="https://cdn.sparebank1.no/indeks/css/<versjon>.css" />

Erstatt <versjon> med ønsket versjon, f.eks. 0.1.1.

Via npm

npm install @sb1/indeks-css

🎨 Bruk

Via CDN

<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" href="https://cdn.sparebank1.no/indeks/css/0.1.1.css" />
    </head>
    <body>
        <button class="button">Klikk her</button>
    </body>
</html>

Via npm - I din CSS-fil

@import '@sb1/indeks-css';

Via npm - I JavaScript/TypeScript

import '@sb1/indeks-css';

✨ Hva inkluderer denne pakken?

indeks-css samler CSS fra tre pakker i Indeks designsystemet:

@sb1/indeks-tokens — Design tokens

Grunnverdiene som hele designsystemet bygger på, definert som CSS custom properties:

  • Farger - Fargepaletter i OKLCH fargerom
  • Spacing - Fluid spacing som skalerer med skjermstørrelse
  • Typografi - Skriftstørrelser, linjehøyder og vekter
  • Border, outline, shadows - Kantlinjer og dybdeeffekter
  • Breakpoints - Skjermstørrelser for responsive layouts
  • Transitions - Animasjonsvarighet og easing
  • Z-index - Lagdeling av elementer

@sb1/indeks-utils — CSS utility-klasser

Ferdiglagde CSS-klasser for vanlige behov:

  • Layout - Grid, flex, gap og sizing
  • Spacing - Margin og padding
  • Typografi - Tekststiler og skriftstørrelser
  • Farger - Bakgrunns- og tilstandsfarger
  • Border og transitions - Kantlinjer og animasjoner
  • Accessibility - Hjelpeklasser for tilgjengelighet
  • Reset - CSS reset for konsistent utgangspunkt

@sb1/indeks-css — Komponent-CSS

CSS som er spesifikk for Indeks sine komponenter:

  • Komponenter - Button, Card, Table, Tag, Spinner, Divider, List, Form-elementer
  • Typografi - Heading, Text, Link
  • Layout - Box
  • Icons - Icon-system integrert med sb1-icons

🎯 Bruk med React

For React-komponenter, bruk @sb1/indeks-react sammen med CSS-en:

Via CDN + npm:

// index.html
<link rel="stylesheet" href="https://cdn.sparebank1.no/indeks/css/0.1.1.css">

// App.jsx
import { Button, Card } from '@sb1/indeks-react';

function App() {
  return (
    <Card>
      <Button>Klikk her</Button>
    </Card>
  );
}

Eller via npm:

npm install @sb1/indeks-css @sb1/indeks-react
import '@sb1/indeks-css';
import { Button, Card } from '@sb1/indeks-react';

function App() {
    return (
        <Card>
            <Button>Klikk her</Button>
        </Card>
    );
}

🔗 Relaterte pakker

📚 Dokumentasjon

Full dokumentasjon med eksempler og retningslinjer finnes på:

Midlertidig lenke Indeks

📄 Lisens

MIT