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

@ogds/elements

v1.0.0-alpha.8

Published

The Open Government Design System (OGDS) is a complement to and reimagining of the [United States Web Design System](https://designsystem.digital.gov) (USWDS). OGDS aims to ship components and styles that will feel at home in any site using USWDS. This pr

Readme

OGDS Elements

The Open Government Design System (OGDS) is a complement to and reimagining of the United States Web Design System (USWDS). OGDS aims to ship components and styles that will feel at home in any site using USWDS. This project leverages the modern web platform to deliver the same level of reliability and accessibility as USWDS with less code.

You can (and should!) use both OGDS components and traditional USWDS components in your project. Some of our OGDS components are enhanced versions of USWDS components, such as the accordion and banner components. Some of our components are entirely new, such as the Task List component.

The components developed in OGDS Elements use the same design tokens as USWDS, such as colors and spacing values. These are imported from the OGDS Tokens project, which makes the USWDS design tokens available in multiple formats. In this project, we use CSS Custom Properties (CSS Variables), which means we can benefit from this feature of modern browsers. CSS Custom Properties have been widely available in all major browsers since 2017). This approach helps us to avoid a css compiler (like SASS), it helps us to manage themes and overrides, and it helps us style components in a simpler way.

Component Documentation on Storybook

Where can I see exapmles of the OGDS Elements components? How do I set this up?

For more detailed documentation, see the OGDS Elements Storybook.

Using OGDS Elements

Installation using node and npm

  1. Install node/npm. In the link below you can find the install method that coincides with your operating system:

    Note for Windows users: If you are using Windows and are unfamiliar with Node or npm, we recommend following Team Treehouse's tutorial for more information or installing and running your project from Windows Subsystem for Linux (WSL).

  2. Make sure you have installed it correctly:

    npm -v
    10.9.4 # This line may vary depending on what version of Node you've installed.
  3. Create a package.json file. You can do this manually, but an easier method is to use the npm init command. This command will prompt you with a few questions to create your package.json file.

  4. Add @ogds/elements to your project’s package.json:

    npm install -S @ogds/elements

The @ogds/elements module is now installed as a dependency.

Note: We do not recommend directly editing the design system files in node_modules. One of the benefits of using a package manager is its ease of upgrade and installation. If you make customizations to the files in the package, any upgrade or re-installation will wipe them out.

Using OGDS Elements in your project

How you add a OGDS Elements component to a page might vary depending on your tools. If you use Vite, you can add components by importing them into a script that's imported elsewhere into a page:

// Importing into a javascript file, like index.js
import { OgdsAccordion } from "@ogds/elements";
<!-- importing directly into an HTML page -->
<script type="module">
    import { OgdsAccordion } from "@ogds/elements";
</script>
<ogds-accordion>
    <!--Refer to the accordion documentation for the code that actually goes in here -->
</ogds-accordion>

Style theming and tokens

Each OGDS Element provides support for theming by exposing CSS custom properties (CSS variables) that can be used to control the appearance of the component.

Interactive form controls in our Storybook instance can demonstrate how to use the theming variables, provide custom text, and otherwise customize the components.

For example, the ogds-banner component can be customized by setting the --ogds-banner-background-color CSS variable to a color of your choosing:

<style>
    ogds-banner {
        --ogds-banner-background-color: #d9e8f6; /** equivalent to `primary-lighter` from USWDS - https://designsystem.digital.gov/design-tokens/color/theme-tokens/#theme-color-tokens-table-2 */
        --ogds-banner-button-close-background-color: #d6f3ff;
    }
</style>
<ogds-banner></ogds-banner>

Note: Please be mindful of the accessibility implications of customizing component appearance. It's your responsibility to ensure that your customizations meet the accessibility requirements of the design system and pass any WCAG 2.2 or Section 508 accessibility tests.

Contributing to OGDS Elements

OGDS is run by contributors, including folks from many government agencies, departments, states, and more. If you have ideas for what to contribute, we would love your support!

Code of Conduct

Everyone who participates in this project is expected to follow the OGDS Code of Conduct (TK CoC Link)

Join the Mailing List and Slack

If you'd like to join the People's Design System mailing list and Slack, that is where we discuss these topics.

Filing a bug report

If you discovered a bug that no one else has reported in our issues backlog, let us know by submitting an issue.

Starting a discussion

To share ideas, questions, or concerns with the OGDS core team and community, you can join any of our open discussions or start a new one.

Contributing Code

See Contributing.md