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

@sofarsounds/maestro

v7.4.19

Published

The official sofar sounds react uikit library

Downloads

132

Readme

🎻 Maestro

CircleCI CircleCI

Sofar Sounds' Maestro is a React component library which is built after our official design system and helps our developers build a consistent user experience.

Sofar Mission

Sofar Sounds is reimagining the live event experience through curated, intimate performances in 438 cities around the world.

Installation

@sofarsounds/maestro is serverd as an npm package.

Add Maestro to your project by running

// with npm
npm add @sofarsounds/maestro

// with yarn
yarn add @sofarsounds/maestro

Don't forget to also install styled-components ^4.0.0.

Usage

1. Wrap your app into the ThemeProvider and provide GlobalStyles

Since we're using styled-components and are providing all styling via theme it is necessary that you wrap your entire application within the ThemeProvider. In addition to that, you can provide the GlobalStyle we have created which automatically provides our brand font (Open Sans) and does some basic HTML styling.

import { ThemeProvider, GlobalStyle, theme } from '@sofarsounds/maestro'

<ThemeProvider theme={theme}>
  <GlobalStyle />
  <YourApplication />
</ThemeProvider>

2. Including components

All of our components are exported directly so you can simply import any component like this:

import { H1, Body, PrimaryButton} from '@sofarsounds/maestro'

<H1>A Heading 1</H1>
<Body>A body text...</Body>

<PrimaryButton>A Button</PrimaryButton>

For a live preview please check out our Storybook.

Developing

For local developing you can start up storybook to see the changes you're making. For that simply run

yarn start

Your browser will open storybook automatically, should that not be the case go to http://localhost:6006.

Here are a few guidelines:

  • Make sure you split components appropriately. We believe in splitting components up into atoms, molecules and organisms.
  • If you build logic that can be re-used (styling etc) create a with{Logic} util in the utils folder.
  • Before writing new utils, check that your util hasn't already been built
  • Everything should be tested. We prefer writing tests that check style-rules rather than creating snapshots. Check out jest-styled-components for help and guides

Contributing

We're hoping to make Maestro fully open source and would appreciate any contributions you make.

Please feel free to open an issue and report any Bugs or Feature Requests.