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

portfolio-design-system

v1.0.0

Published

A modern, multi-component design system built with Lit and TypeScript

Readme

Portfolio Design System

A modern, high-performance, and premium-themed design system built with Lit and TypeScript. These components are designed to provide a consistent and interactive experience for high-end portfolio websites and applications.

NPM Version License

✨ Features

  • Built with Lit: Lightning-fast, standards-based web components with minimal overhead.
  • TypeScript First: Fully typed for a developer-friendly experience.
  • Glassmorphism & Modern Styling: Pre-styled for a premium, high-end feel.
  • Accessible: Built with WAI-ARIA and accessibility best practices in mind.
  • Design Tokens: Fully themeable using CSS Custom Properties.

🚀 Getting Started

Installation

Install the package via NPM:

npm install portfolio-design-system

Usage

In Vanilla JS / HTML

Import the library in your main entry file:

import 'portfolio-design-system';

Then use the custom elements in your HTML:

<ds-navbar logoText="Artistic Dev">
  <a href="#projects">Work</a>
  <a href="#contact">Contact</a>
</ds-navbar>

<ds-hero title="Digital Craftsman">
  <p slot="description">Building aesthetic and functional digital experiences.</p>
  <ds-button slot="actions">See Projects</ds-button>
</ds-hero>

In Frameworks (React, Next.js, Vue)

While modern frameworks support Web Components, we recommend using @lit/react for the best developer experience in React/Next.js (auto-complete, event handling).

1. Install the bridge library:

npm install @lit/react

2. Create a Bridge Component (e.g., components/lit-bridge.tsx):

"use client";
import React from "react";
import { createComponent } from "@lit/react";
import { DsButton as DsButtonLit, DsModal as DsModalLit } from "portfolio-design-system";

export const DsButton = createComponent({
  tagName: "ds-button",
  elementClass: DsButtonLit,
  react: React,
  events: { onClick: "click" }
});

export const DsModal = createComponent({
  tagName: "ds-modal",
  elementClass: DsModalLit,
  react: React,
  events: { onClose: "close" }
});

3. Use in your Application:

"use client";
import { DsButton } from "@/components/lit-bridge";

export default function Page() {
  return <DsButton variant="primary">Click Me</DsButton>;
}

🎨 Theme & Customization

The design system is powered by Design Tokens (CSS variables). You can import these directly into your global CSS file.

Import Icons & Tokens (Recommended)

In your globals.css or main entry file:

/* 1. Import Material Symbols (required for icons) */
@import "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined";

/* 2. Import Design System Tokens */
@import "portfolio-design-system/tokens/colors.css";
@import "portfolio-design-system/tokens/typography.css";
@import "portfolio-design-system/tokens/spacing.css";

Tailwind CSS Integration (v4+)

If you are using Tailwind CSS, you can map the design system variables to your theme:

@theme inline {
  --color-primary: var(--ds-color-primary);
  --color-surface-soft: var(--ds-bg-surface);
  --font-sans: var(--ds-font-family-sans);
}

📖 Documentation & API

The full API documentation, including all properties, events, and CSS parts for each component, is available at: https://dharmikpatel.github.io/portfolio-design-system

🛠 Development

Setup

npm install

Build

npm run build

Testing

npm test

Run Documentation Locally

npm run docs
npm run docs:serve

📄 License

Distributed under the MIT License. See LICENSE for more information.