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

abc-logo

v0.0.5

Published

Logo package for the repo

Readme

ABC Logo Package

A comprehensive logo component library for the ABC system, providing theme-aware and responsive logo components built with React, Next.js, and TypeScript.

📦 Installation

pnpm add abc-logo

🚀 Key Features

1. Theme-Aware Logos

  • Automatic dark/light theme switching
  • Support for multiple applications (ASVAB, EasyPrep)
  • Seamless theme integration with abc-hx

2. Responsive Design

  • Flexible sizing with customizable dimensions
  • Mobile-optimized logo display
  • CSS class customization support

3. Error Handling

  • Automatic fallback to default logo on image load errors
  • Custom error handling callbacks
  • Graceful degradation

📚 API Reference

Components

ThemeAwareLogo

A logo component that automatically switches between light and dark themes based on the current theme context.

import { ThemeAwareLogo } from "abc-logo";

<ThemeAwareLogo
  app="asvab" // or "easyprep"
  alt="ASVAB Logo"
  imageWidth={160}
  imageHeight={40}
  className="custom-logo"
  imageClassName="logo-image"
/>

Props:

  • app - Application type: "asvab" | "easyprep"
  • alt - Alt text for the logo image
  • imageWidth - Width of the logo (default: 160)
  • imageHeight - Height of the logo (default: 40)
  • className - Additional CSS classes for the container
  • imageClassName - Additional CSS classes for the image
  • imageStyle - Custom inline styles for the image
  • onError - Custom error handler function

EasyPrepFooterLogo

A specialized logo component for EasyPrep footer usage, always displaying the light theme version.

import { EasyPrepFooterLogo } from "abc-logo";

<EasyPrepFooterLogo
  alt="EasyPrep Logo"
  imageWidth={120}
  imageHeight={30}
  className="footer-logo"
/>

Props:

  • alt - Alt text for the logo image
  • imageWidth - Width of the logo
  • imageHeight - Height of the logo
  • className - Additional CSS classes for the container
  • imageClassName - Additional CSS classes for the image
  • imageStyle - Custom inline styles for the image
  • onError - Custom error handler function

Constants

listImages

Pre-configured logo URLs for different applications and themes.

import { listImages } from "abc-logo";

// Access logo URLs
const asvabLightLogo = listImages.asvab.light;
const asvabDarkLogo = listImages.asvab.dark;
const easyprepLightLogo = listImages.easyprep.light;
const easyprepDarkLogo = listImages.easyprep.dark;
const defaultLogo = listImages.default;

🎨 Styling

The logo components use Tailwind CSS classes and support custom styling:

<ThemeAwareLogo
  app="asvab"
  alt="ASVAB Logo"
  className="max-h-12 w-auto hover:opacity-80 transition-opacity"
  imageClassName="object-contain filter drop-shadow-sm"
  imageStyle={{ maxWidth: "200px" }}
/>

🧪 Testing

# Run tests
pnpm test

# Run tests with coverage
pnpm test:coverage

# Run tests once
pnpm test:run

🔧 Development

# Build package
pnpm build

# Development mode
pnpm dev

# Clean dist
pnpm clean

📦 Dependencies

Production Dependencies

  • abc-hx - Theme management and utilities

Development Dependencies

  • @types/node - Node.js type definitions
  • vitest - Testing framework
  • @vitest/coverage-v8 - Coverage reporting
  • jsdom - DOM environment for tests

🎯 Use Cases

Application Logos

  • ASVAB Application - Military test preparation platform
  • EasyPrep Application - Educational test preparation platform

Theme Support

  • Light Theme - Clean, bright logo variants
  • Dark Theme - Optimized for dark backgrounds
  • Automatic Switching - Seamless theme transitions

Responsive Design

  • Desktop - Full-size logos with hover effects
  • Mobile - Optimized sizing for small screens
  • Tablet - Balanced sizing for medium screens

🔗 Integration

With Next.js

import { ThemeAwareLogo } from "abc-logo";

export default function Header() {
  return (
    <header className="flex items-center justify-between p-4">
      <ThemeAwareLogo
        app="asvab"
        alt="ASVAB Logo"
        imageWidth={160}
        imageHeight={40}
      />
    </header>
  );
}

With Custom Error Handling

import { ThemeAwareLogo } from "abc-logo";

<ThemeAwareLogo
  app="easyprep"
  alt="EasyPrep Logo"
  onError={() => {
    console.log("Logo failed to load, using fallback");
    // Custom error handling logic
  }}
/>;

📄 License

MIT