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

@mwahyuk/cdi-styles

v1.0.1

Published

All-in-one Vue 3 component library, styles, and design tokens for BPOM CDI Design System (powered by IDDS)

Readme

@mwahyuk/cdi-styles


💡 Apa Saja yang Ada di Dalam Package Ini?

  1. Komponen IDDS Lengkap: Langsung mengekspor seluruh komponen @idds/vue (Button, Card, Modal, Table, DatePicker, Drawer, Tabs, Pagination, dll.).
  2. Auto-Branded BPOM CDI: Seluruh komponen otomatis tampil dengan warna resmi BPOM CDI (Deep Navy #004285 & BPOM Green #00a651).
  3. Tailwind CSS v4 & v3 Ready: Menyediakan utility class siap pakai untuk Tailwind v4 (bg-navy-900, text-bpom-green-600, border-teal-500, dll.).
  4. JS/TS Design Tokens: Menyediakan konstanta palet warna untuk grafik (ApexCharts/Chart.js) dan skrip aplikasi.

📦 Instalasi

Di proyek Vue 3 Anda:

npm install @mwahyuk/cdi-styles @tabler/icons-vue

(atau via yarn/pnpm)

yarn add @mwahyuk/cdi-styles @tabler/icons-vue
pnpm add @mwahyuk/cdi-styles @tabler/icons-vue

🚀 Panduan Penggunaan

1. Impor CSS di Entry Point Aplikasi

Di file utama aplikasi Anda (src/main.ts atau src/main.js):

import { createApp } from 'vue';
import App from './App.vue';

// Cukup 1 baris import ini untuk seluruh styling IDDS + tema BPOM CDI
import '@mwahyuk/cdi-styles/index.css';

const app = createApp(App);
app.mount('#app');

2. Gunakan Komponen di Template Vue

Semua komponen IDDS dapat langsung diimpor dari @mwahyuk/cdi-styles:

<template>
  <div class="p-6 bg-navy-tint min-h-screen">
    <Card variant="basic" class="max-w-md p-6 bg-white rounded-xl border border-slate-200 shadow-xs border-t-4 border-t-navy-800">
      <h2 class="text-xl font-bold text-navy-900 mb-2">Portal Satu Data BPOM</h2>
      <p class="text-slate-600 mb-4">
        Sistem integrasi data obat dan makanan terpadu.
      </p>

      <div class="flex gap-3">
        <!-- Tombol otomatis bertema Navy BPOM -->
        <Button hierarchy="primary" size="md">
          Ajukan Akses
        </Button>
        <Button hierarchy="secondary" size="md">
          Lihat Data
        </Button>
      </div>
    </Card>
  </div>
</template>

<script setup lang="ts">
import { Button, Card } from '@mwahyuk/cdi-styles';
</script>

3. Integrasi dengan Tailwind CSS v4

Jika Anda menggunakan Tailwind CSS v4, cukup tambahkan di src/index.css:

@import 'tailwindcss';

/* Impor IDDS & Tema BPOM CDI */
@import '@idds/styles/tailwind/css/idds.css';
@import '@mwahyuk/cdi-styles/tailwind.css';
@import '@mwahyuk/cdi-styles/index.css';

Contoh pemakaian kelas utilitas:

<div class="bg-navy-900 text-white p-6 rounded-xl border border-slate-200">
  <span class="text-xs text-teal-400 font-bold uppercase">Layanan Resmi</span>
  <h1 class="text-2xl font-bold text-white">BPOM CDI</h1>
  <button class="bg-bpom-green-600 hover:bg-bpom-green-700 text-white px-4 py-2 rounded-lg">
    Buka Portal
  </button>
</div>

4. Menggunakan Palet Warna di Chart (ApexCharts / Chart.js)

import { bpomChartPalette, bpomColors } from '@mwahyuk/cdi-styles';

// 6 Palet warna resmi BPOM untuk grafik:
// ['#004285', '#00a651', '#59b4c3', '#027368', '#8a9130', '#3f71a3']
const chartOptions = {
  colors: bpomChartPalette,
};

🎨 Tabel Token Warna Resmi BPOM CDI

| Token | Hex | Makna & Penggunaan | | :--- | :--- | :--- | | navy-900 | #00305f | Permukaan gelap institusi & background sidebar | | navy-800 | #004285 | Warna Utama BPOM (tombol primer, judul) | | navy-tint | #f4f8fb | Latar belakang halaman & kartu sejuk | | bpom-green-600 | #00a651 | Status sukses, progres, aksi afirmatif | | teal-500 | #59b4c3 | Eyebrows & tahapan data flow | | olive-600 | #8a9130 | Area of interest & kapabilitas mendatang | | maroon-700 | #a20000 | Peringatan risiko, siber & keamanan | | slate-700 | #455a64 | Body text utama | | slate-200 | #dfe5e8 | Garis tepi (borders & dividers) |


📄 Lisensi

MIT © Pusat Data dan Informasi Badan Pengawas Obat dan Makanan (BPOM).