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

@pacer-ui/tailwind-preset

v1.0.1

Published

Shared Tailwind CSS preset untuk PACER (Pertamina Patra Niaga Components & Experience Resources).

Downloads

114

Readme

@pertamina/tailwind-preset

Shared Tailwind CSS preset untuk PACER (Pertamina Patra Niaga Components & Experience Resources).

Installation

npm install @pertamina/tailwind-preset
# or
pnpm add @pertamina/tailwind-preset

Usage

Basic Setup

// tailwind.config.js
module.exports = {
  presets: [require('@pertamina/tailwind-preset')],
  content: [
    './src/**/*.{js,jsx,ts,tsx}',
    './pages/**/*.{js,jsx,ts,tsx}',
  ],
}

With Custom Overrides

// tailwind.config.js
module.exports = {
  presets: [require('@pertamina/tailwind-preset')],
  content: [
    './src/**/*.{js,jsx,ts,tsx}',
  ],
  theme: {
    extend: {
      // Override atau tambah custom values
      colors: {
        custom: '#123456',
      },
    },
  },
}

What's Included

Preset ini mengintegrasikan semua design tokens:

Colors

<div className="bg-brand-primary-500 text-neutral-0">
  Pertamina Primary
</div>

Spacing

<div className="p-4 m-6 gap-3">
  4px-based spacing
</div>

Typography

<p className="font-sans text-base font-medium leading-normal">
  Typography tokens
</p>

Border Radius

<div className="rounded-lg">
  Border radius tokens
</div>

Shadows

<div className="shadow-lg">
  Shadow tokens
</div>

Animations

<div className="transition-all duration-fast ease-easeInOut">
  Motion tokens
</div>

Component Classes

Preset juga menyediakan base component classes:

Button

<button className="btn bg-brand-primary-500 text-neutral-0">
  Button
</button>

Input

<input className="input" type="text" />

Card

<div className="card">
  Card content
</div>

Dark Mode

Dark mode menggunakan class strategy:

// Tambah class 'dark' di root element
<html className="dark">
  <body>
    <div className="bg-neutral-0 dark:bg-neutral-900">
      Content
    </div>
  </body>
</html>

Blazor Integration

Untuk Blazor, compile Tailwind CSS ke static file:

# package.json
{
  "scripts": {
    "build:css": "tailwindcss -i ./src/styles.css -o ./wwwroot/css/styles.css --minify"
  }
}
/* src/styles.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

Philosophy

  1. Token-based - Semua value dari design tokens
  2. Consistent - Sama di React, Vue, dan Blazor
  3. Extensible - Dapat di-override sesuai kebutuhan
  4. Type-safe - Full TypeScript support
  5. Tree-shakeable - Hanya CSS yang dipakai akan di-bundle

Updating

Ketika design tokens di-update, rebuild preset:

pnpm build

Semua library yang depend ke preset ini akan otomatis menggunakan tokens terbaru.