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

digikentro

v1.0.0

Published

A modern, clean UI theme system with dark mode support, glassmorphism effects, and refined color palette

Readme

🎨 Digikentro

A modern, clean UI theme system with dark mode support, glassmorphism effects, and refined color palette.

npm version License: MIT

Installation

npm install digikentro
# or
yarn add digikentro
# or
pnpm add digikentro

Quick Start

Option 1: With Tailwind CSS (Recommended)

  1. Update your tailwind.config.ts:
import { tailwindTheme } from 'digikentro';

export default {
  ...tailwindTheme,
  content: [
    './src/**/*.{js,ts,jsx,tsx}',
    // ... your paths
  ],
};
  1. Copy the globals CSS to your project:

Copy the contents of node_modules/digikentro/dist/styles/globals.css to your src/index.css or app/globals.css.

Or import programmatically (if your bundler supports it):

@import 'digikentro/styles/globals';
  1. Install the required Tailwind plugin:
npm install tailwindcss-animate

Option 2: Vanilla CSS (No Tailwind)

Simply import the theme CSS:

@import 'digikentro/styles/theme';

Or in JavaScript:

import 'digikentro/styles/theme';

🎨 What's Included

Color System

  • Primary - Blue tones for main actions
  • Secondary - Subtle backgrounds
  • Destructive - Red for dangerous actions
  • Muted - Subtle text and backgrounds
  • Category Colors - Marketing (blue), Client (purple), Resource (green), Mod (gray)

Dark Mode

Add the dark class to your <html> element:

<html class="dark">

Toggle programmatically:

document.documentElement.classList.toggle('dark');

Utility Classes

| Class | Description | |-------|-------------| | .glass-card | Frosted glass effect with backdrop blur | | .section-card | Standard card with hover effect | | .kpi-card | Metric/KPI display card with lift on hover | | .input-field | Styled input with focus ring | | .category-marketing | Blue tinted background | | .category-client | Purple tinted background | | .category-resource | Green tinted background | | .category-mod | Gray tinted background |

Button Classes (Vanilla CSS only)

| Class | Description | |-------|-------------| | .btn | Base button styles | | .btn-primary | Primary action button | | .btn-secondary | Secondary button | | .btn-outline | Outlined button | | .btn-ghost | Transparent button | | .btn-destructive | Danger/delete button |

Animation Classes

| Class | Description | |-------|-------------| | .animate-fade-in | Fade in from below | | .animate-slide-in | Slide in from left | | .animate-scale-in | Scale up effect |


📦 Exports

JavaScript/TypeScript

// Theme configuration for Tailwind
import { tailwindTheme, fullConfig } from 'digikentro';

// Theme constants and utilities
import { colors, shadows, animations } from 'digikentro';

// Generate CSS variables programmatically
import { generateCSSVariables } from 'digikentro';
const lightVars = generateCSSVariables('light');
const darkVars = generateCSSVariables('dark');

CSS

/* Standalone theme (no Tailwind required) */
@import 'digikentro/styles/theme';

/* For Tailwind projects */
@import 'digikentro/styles/globals';

/* Combined styles */
@import 'digikentro/styles';

🎯 CSS Variables Reference

All colors are defined as HSL values (without the hsl() wrapper):

/* Usage */
.my-element {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

Core Variables

| Variable | Description | |----------|-------------| | --background | Page background | | --foreground | Main text color | | --primary | Primary brand color | | --secondary | Secondary color | | --muted | Muted backgrounds | | --accent | Accent color | | --destructive | Error/danger color | | --border | Border color | | --ring | Focus ring color | | --radius | Border radius (0.5rem) |

Shadow Variables

| Variable | Description | |----------|-------------| | --shadow-sm | Small shadow | | --shadow-md | Medium shadow | | --shadow-lg | Large shadow | | --shadow-card | Subtle card shadow |


🔧 Customization

Override Colors

:root {
  /* Change primary to purple */
  --primary: 262 83% 58%;
  --primary-foreground: 0 0% 100%;
}

Add Custom Category

:root {
  --sales: 38 92% 50%;
  --sales-light: 38 92% 97%;
}

.dark {
  --sales: 38 70% 50%;
  --sales-light: 38 30% 18%;
}

.category-sales {
  background-color: hsl(var(--sales-light));
  border-color: hsl(var(--sales) / 0.2);
}

📄 License

MIT © Digikentro


Made with 💙 by Nir