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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@aurora-io/design-system

v0.2.9

Published

Aurora Design System

Downloads

98

Readme

Aurora Design System

See Storybook for more information.

How to run Aurora Design System Storybook locally:

npm i
npm run storybook

How to use Aurora Design System in your project:

  1. Most of the components and patterns described in this Storybook require that your project has version 4 of Material UI as a dependency:
npm install @material-ui/core@">=4.9.5 <5.0.0"

Depending on the components you wish to use in your project, you may also need to install supplementary Material UI packages. For example:

npm install @material-ui/icons
  1. Add @aurora-io/design-system to your project as a dependency:
npm install @aurora-io/design-system
  1. Choose an exported theme and inject it via the MuiThemeProvider:
import React from 'react';
import { auroraTheme } from "@aurora-io/design-system";
// import { daisyTheme } from "@aurora-io/design-system";
import { ThemeProvider } from "@material-ui/core/ThemeProvider";
import Button from '@material-ui/core/Button';

function App() {
  return (
    <MuiThemeProvider theme={auroraTheme}>
      <Button>This Button Is Aurora Themed</Button>
      // The rest of my app lives here
      ...
    </MuiThemeProvider>
  );
}

See the Storybook for more examples of component usage.

Tooling / Build setup

This project is based on the Create React App Typescript template with Storybook applied using it's @storybook/preset-create-react-app preset to leverage CRA's Webpack HMR setup for a good dev experience.

Builds for publishing to NPM are taken care of with TSDX. While that project has bootstrapping functionality, here just it's Rollup based build setup is used, as it's bootstrapped version of storybook doesn't provide live reload or HMR currently.

Note in package.json all dependencies are currently declared under devDependencies and peerDependencies. The majority of project is currently concerned with theming Material UI, and declaring that as a peer dependency allows more flexibility with versioning in host projects and keeps bundle size down.

Testing

Generate a local copy of the updated design-system package and install this to the project you want to test the changes in. For example:

npm run build && npm pack
cd ../whatever-host-project
npm i ~/wherever/design-system/design-system-x.x.x.tgz

Releasing

Gitlab builds and publishes a new version of the package to NPM when a release is created in the Releases UI (which makes tags in the Git repo).

Tags should follow the format v<major>.<minor>.<patch> eg v0.2.5.

Tags don't belong to any particular branch, so only create them when merge requests have been accepted and the current master is ready to be deployed.