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

@isi-ui7/corporate-themes

v0.1.2

Published

Corporate themes (BCA Syariah, BJB Syariah, Pos Indonesia, Ihsan Solusi Informatika) with Carbon variants.

Readme

@isi-ui7/corporate-themes

Sistem tema korporat berbasis Carbon Design System — branding per institusi bank dengan token warna, logo, dan variant Carbon (white/g10/g90/g100).

Fitur

  • ThemeProvider: inject tema korporat ke seluruh aplikasi
  • CorporateTheme: apply CSS class tema ke subtree tertentu
  • GlobalCorporateTheme: inject CSS variables global ke <html>
  • ThemeSwitcher: komponen UI untuk ganti variant (white/g10/g90/g100)
  • useTheme(): akses tema aktif dan variant dari komponen manapun
  • useThemeTokens(): akses token warna aktif (brandColors, buttonPrimary, dll.)
  • useBrandColors(), useThemeVariant(), useCorporateFeatures(): hooks spesifik
  • Multiple tema tersedia: bca-syariah, bni-syariah, dst. (via corporateThemes)

Instalasi

pnpm add @isi-ui7/corporate-themes react react-dom

Penggunaan

Setup di app root

// app/layout.tsx
import { ThemeProvider } from "@isi-ui7/corporate-themes";

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html>
      <body>
        <ThemeProvider corporateId="bca-syariah" variant="g90">
          {children}
        </ThemeProvider>
      </body>
    </html>
  );
}

Akses tema dari komponen

"use client";
import { useTheme, useThemeTokens } from "@isi-ui7/corporate-themes";

export function BrandedHeader() {
  const { theme, variant } = useTheme();
  const tokens = useThemeTokens();

  return (
    <header style={{ background: tokens.headerBackground }}>
      <img src={tokens.logoUrl.light} alt={theme.displayName} />
      <span>{theme.displayName} — {variant}</span>
    </header>
  );
}

Ganti variant di runtime

"use client";
import { useTheme, ThemeSwitcher } from "@isi-ui7/corporate-themes";

export function Toolbar() {
  const { variant, setVariant } = useTheme();
  return <ThemeSwitcher current={variant} onChange={setVariant} />;
}

Apply tema ke subtree saja

import { CorporateTheme } from "@isi-ui7/corporate-themes";

<CorporateTheme corporateId="bni-syariah" variant="white">
  <SidebarContent />
</CorporateTheme>

Props

ThemeProvider

| Nama | Tipe | Wajib | Deskripsi | | --- | --- | --- | --- | | corporateId | string | tidak | ID tema korporat (contoh: "bca-syariah"). Default: tema pertama | | variant | CarbonThemeVariant | tidak | Variant Carbon awal. Default: tema defaultVariant | | children | ReactNode | ya | Konten aplikasi |

CorporateTheme

| Nama | Tipe | Wajib | Deskripsi | | --- | --- | --- | --- | | corporateId | string | tidak | ID tema korporat untuk subtree ini | | variant | CarbonThemeVariant | tidak | Variant untuk subtree ini | | children | ReactNode | ya | Subtree yang di-themed |

CarbonThemeVariant

"white" | "g10" | "g90" | "g100"

useTheme() — returns ThemeContextValue

| Property | Tipe | Deskripsi | | --- | --- | --- | | theme | CorporateTheme | Data tema aktif (id, name, displayName, tokens, supportedVariants) | | variant | CarbonThemeVariant | Variant Carbon aktif | | corporateId | string | ID tema aktif | | setVariant | (v) => void | Ganti variant di runtime |

useThemeTokens() — returns ThemeTokens

| Token | Tipe | Deskripsi | | --- | --- | --- | | brandColors | BrandColors | Palet warna merek (primary, secondary, accent, dll.) | | logoUrl | { light, dark } | URL logo untuk mode terang/gelap | | headerBackground | string | Warna background header | | buttonPrimary | string | Warna tombol primary | | linkPrimary | string | Warna link primary | | focus | string | Warna focus ring | | ... | | Lihat ThemeTokens di types.ts |

A11y

  • CSS variables diinjeksi ke level <html> atau subtree — kompatibel dengan Carbon focus management
  • Contrast ratio mengikuti standar WCAG 2.1 AA (tanggungjawab konfigurasi token per tema)

Scripts

pnpm build      # Build ke dist/
pnpm lint       # ESLint
pnpm test       # Vitest
pnpm typecheck  # TypeScript check

Catatan

  • Peer deps: React/ReactDOM ^18 || ^19
  • Tidak ada dependensi Carbon langsung — token diimplementasi sebagai CSS custom properties
  • ThemeProvider menggunakan React Context — wrap di level layout tertinggi
  • corporateThemes (dari import { corporateThemes }) adalah daftar semua tema yang tersedia