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

@liverkp/core

v0.1.1

Published

Core CSS, types, and assets for Liver Knowledge Portal shared components

Readme

@liverkp/core

Foundation package providing CSS, TypeScript types, and image assets for Liver Knowledge Portal components.

📦 Installation

Using pnpm:

pnpm add @liverkp/core

Using npm:

npm install @liverkp/core

📖 Usage

CSS Import

Import the complete CSS bundle in your app entry point:

import "@liverkp/core/css";

This includes:

  • CSS custom properties (brand colors, shadows, sizes)
  • Layout utilities (flexbox classes)
  • Component styles (header, footer, navigation)

TypeScript Types

import type {
    HeaderConfig,
    FooterConfig,
    NavMenuItem,
    TopMenuItem,
    Logo,
    Institution,
    FooterColumn,
} from "@liverkp/core";

// Or use the /types entry point
import type { HeaderConfig, FooterConfig } from "@liverkp/core/types";

Asset Imports

Import image URLs and SVG icons:

import {
  cfdeLogo,
  cfdeKcLogo,
  liverLogo,
  nihLogo,
  drcLogo,
  titleLogo,
  cfdeUnifiedIcon,
  externalLinkIcon,  // SVG string
  searchIcon,        // SVG string
  loginIcon          // SVG string
} from '@liverkp/core/assets';

// Use in components
<img src={cfdeLogo} alt="CFDE Logo" />

Standard Menu Config

Import shared menu data so all consortium apps stay consistent:

import { menuItems, topMenuItems } from "@liverkp/core/menu";

// Or from the main entry
import { menuItems, topMenuItems } from "@liverkp/core";

menuItems and topMenuItems are exported as read-only values. Update src/menu.json in this package when navigation changes.

📦 Exports

This package provides 5 export paths:

{
    ".": "Types + type definitions",
    "./css": "Complete CSS bundle",
    "./assets": "Image URLs and SVG icons",
    "./menu": "Standardized menu configuration",
    "./types": "Type definitions only"
}

🎨 CSS Variables

Available CSS custom properties:

/* Colors */
--lkp-blue: #2c5d8b;
--lkp-lite-blue: #4681b9;

/* Shadows */
--lkp-nav-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

/* Sizes */
--lkp-hamburger-size: clamp(14px, 10vmin, 26px);

All component classes use the lkp- prefix to avoid naming collisions.

🔧 CSS Utilities

Flexbox layout classes:

<div class="lkp-f-col">Flex column</div>
<div class="lkp-f-row">Flex row</div>
<div class="lkp-f-col lkp-gap-20">Column with 20px gap</div>
<div class="lkp-f-row lkp-align-center">Row centered vertically</div>

📘 TypeScript Interfaces

HeaderConfig

interface HeaderConfig {
    logo?: Logo;
    secondaryLogo?: Logo;
    title?: {
        primary: string;
        secondary?: string;
    };
    topMenuItems?: TopMenuItem[];
}

FooterConfig

interface FooterConfig {
    description?: string;
    columns?: FooterColumn[];
    institutions?: Institution[];
    copyright?: string;
}

NavMenuItem

interface NavMenuItem {
    label: string;
    href?: string;
    external?: boolean;
    children?: NavMenuItem[];
}

See src/types.ts for complete type definitions.

🖼️ Available Assets

| Export | File | Description | | ----------------- | --------------------- | ----------------- | | cfdeLogo | cfde.png | CFDE primary logo | | cfdeKcLogo | cfde_kc_logo.png | CFDE KC logo | | liverLogo | liver.png | Liver Portal logo | | nihLogo | NIH_logo.png | NIH logo | | drcLogo | DRC_logo.png | DRC logo | | titleLogo | title.png | Title logo | | cfdeUnifiedIcon | cfde_unified_icon.png | Unified icon |

SVG icons (exported as strings):

  • externalLinkIcon - External link indicator
  • searchIcon - Search icon
  • loginIcon - Login icon

🏗️ Build Output

Vite builds this package to:

  • ESM: dist/index.js
  • CJS: dist/index.cjs
  • Types: dist/index.d.ts
  • CSS: dist/style.css
  • Assets: Inlined or copied based on size

🔗 Used By

📄 License

BSD 3-Clause License. See LICENSE for details.