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

smartart

v1.1.0

Published

A lightweight, responsive CSS library for creating beautiful chevron-style progress indicators and flowcharts

Readme

Smart Art CSS Library

npm version license bundle size

A lightweight, responsive CSS library for creating smart-art. Pure CSS implementation with no JavaScript dependencies.

  • [x] Chevron - Process flows showing sequential elements
  • [ ] Cycle - Circular flow diagrams for cyclical processes
  • [ ] Pyramid - Hierarchical structures and organizational charts
  • [ ] Funnel - Process flows showing narrowing stages

Installation

From CDN:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/smartart@1/dist/chevron.css" />

Using npm:

npm install smartart

... then import in your CSS:

@import "smartart/dist/chevron.css";

Usage

Basic Example

Create a chevron flow with semantic HTML:

<ul class="chevron-list">
  <li>
    <div>Planning</div>
    <ul>
      <li>Define requirements</li>
      <li>Create timeline</li>
      <li>Assign resources</li>
    </ul>
  </li>
  <li>
    <div>Development</div>
    <ul>
      <li>Write code</li>
      <li>Code review</li>
      <li>Unit testing</li>
    </ul>
  </li>
  <li>
    <div>Testing</div>
    <ul>
      <li>Integration tests</li>
      <li>User acceptance</li>
      <li>Performance tests</li>
    </ul>
  </li>
  <li>
    <div>Deployment</div>
    <ul>
      <li>Production release</li>
      <li>Monitor systems</li>
      <li>User training</li>
    </ul>
  </li>
</ul>

Basic Chevron Example

See the Basic example

Minimal Example

For simple step indicators without detailed content:

<ul class="chevron-list">
  <li><div>Step 1</div></li>
  <li><div>Step 2</div></li>
  <li><div>Step 3</div></li>
</ul>

Minimal Chevron Example

See the Minimal example

Single Chevron

For standalone elements:

<ul class="chevron-list">
  <li>
    <div>Important Notice</div>
    <ul>
      <li>Read all instructions</li>
      <li>Complete forms</li>
    </ul>
  </li>
</ul>

Single Chevron Example

See the Single chevron example

Long Text Handling

The library automatically handles text wrapping:

<ul class="chevron-list">
  <li>
    <div>Initial Phase with Very Long Description That Will Wrap</div>
    <ul>
      <li>This is a very long list item that demonstrates how the library handles text wrapping automatically</li>
      <li>Short item</li>
    </ul>
  </li>
  <li>
    <div>Next Phase</div>
    <ul>
      <li>Regular content</li>
    </ul>
  </li>
</ul>

Long Text Chevron Example

See the Long text example

Custom Styling

Customize the appearance using CSS custom properties:

:root {
  /* Dimensions */
  --chevron-width: 250px;
  --chevron-height: 80px;
  --chevron-tip-width: 40px;

  /* Colors */
  --chevron-bg-color: #3498db;
  --chevron-content-bg-color: #ecf0f1;
  --chevron-text-color: white;
  --chevron-bullet-color: #2c3e50;

  /* Typography */
  --chevron-font-family: "Roboto", sans-serif;
  --chevron-font-size: 20px;
  --chevron-font-weight: 600;

  /* Spacing */
  --chevron-content-padding: 20px;
  --chevron-padding-right: 25px;
  --chevron-padding-left: 35px;
  --chevron-padding-left-first: 15px;
}

Theme Examples

Default Theme

The standard appearance with clean, professional styling:

Default Theme

See the Default theme example

Dark Theme

:root {
  --chevron-bg-color: #31506f;
  --chevron-content-bg-color: #34495e;
  --chevron-text-color: #ecf0f1;
  --chevron-bullet-color: #bdc3c7;
}

Dark Theme

See the Dark theme example

Colorful Theme

.chevron-list > li:nth-child(1) > div {
  --chevron-bg-color: #e74c3c;
}
.chevron-list > li:nth-child(2) > div {
  --chevron-bg-color: #f39c12;
}
.chevron-list > li:nth-child(3) > div {
  --chevron-bg-color: #27ae60;
}
.chevron-list > li:nth-child(4) > div {
  --chevron-bg-color: #3498db;
}

Colorful Theme

See the Colorful theme example

Compact Size

:root {
  --chevron-width: 150px;
  --chevron-height: 40px;
  --chevron-tip-width: 20px;
  --chevron-font-size: 14px;
  --chevron-content-padding: 10px;
}

Compact Size

See the Compact size example

Large Size

:root {
  --chevron-width: 300px;
  --chevron-height: 100px;
  --chevron-tip-width: 50px;
  --chevron-font-size: 24px;
  --chevron-content-padding: 25px;
}

Large Size

See the Large size example

Available CSS Variables

| Variable | Default | Description | | ------------------------------ | ------------------- | ------------------------------- | | --chevron-width | 200px | Width of each chevron shape | | --chevron-height | 60px | Height of chevron headers | | --chevron-tip-width | 30px | Width of pointed tips | | --chevron-gap | 20px | Gap between sections | | --chevron-overlap | -10px | Overlap for seamless connection | | --chevron-bg-color | #e0e0e0 | Chevron background color | | --chevron-content-bg-color | #f5f5f5 | Content box background | | --chevron-text-color | #000 | Text color | | --chevron-bullet-color | #666 | Bullet point color | | --chevron-font-family | Arial, sans-serif | Font family | | --chevron-font-size | 18px | Chevron header font size | | --chevron-font-weight | bold | Chevron header font weight | | --chevron-content-padding | 15px | Content box padding | | --chevron-padding-right | 20px | Right padding for text | | --chevron-padding-left | 30px | Left padding (with tip) | | --chevron-padding-left-first | 10px | Left padding (no tip) | | --chevron-list-item-spacing | 8px | Space between list items | | --chevron-bullet-indent | 15px | Bullet indentation |

Development

git clone https://github.com/sanand0/smartart.git
cd smartart

npm install
npm run lint && npm run build && npm test

npm publish
git commit . -m"$COMMIT_MSG"; git tag $VERSION; git push --follow-tags

Release notes

  • 1.1.0: 30 Jul 2025. Standardized package.json & README.md, switch to ESM
  • 1.0.0: 29 Jul 2025. Initial release

License

MIT