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

@cross.team/gatsby-theme-material-ui

v1.1.0

Published

The `@cross.team/gatsby-theme-material-ui` package installs `@material-ui/core`. `@material-ui/icons`, and `gatsby-plugin-material-ui` and wraps your application in a Material-UI ThemeProvider, which is available to be shadowed by the example site or any

Downloads

4

Readme

@cross.team/gatsby-theme-material-ui

The @cross.team/gatsby-theme-material-ui package installs @material-ui/core. @material-ui/icons, and gatsby-plugin-material-ui and wraps your application in a Material-UI ThemeProvider, which is available to be shadowed by the example site or any other application that installs this package.

Installation

// with npm
npm install @cross.team/gatsby-theme-material-ui

// with yarn
yarn add @cross.team/gatsby-theme-material-ui

How to use

Make sure to add @cross.team/gatsby-theme-material-ui to the plugins array in your gatsby-config.js file:

module.exports = {
  plugins: [
    '@cross.team/gatsby-theme-material-ui',
  ],
}

Adding Custom Themes

You can optionally edit the default theme provider settings with your own theming through a process called shadowing. You can do this by adding new directories to the src/ directory of your project called @cross.team/gatsby-theme-material-ui/ and inside them create a file called theme-provider.js. Paste the following code inside your src/@cross.team/gatsby-theme-material-ui/theme-provider.js:

import React from "react"
import { createMuiTheme, ThemeProvider } from '@material-ui/core'

const theme = createMuiTheme({
  // Your custom theming here
})

  const Theme = ({ path, children }) => {
    return (
      <ThemeProvider theme={theme}>
          {children}
      </ThemeProvider>
    )
  }
  export default Theme

Where the comment says "Your custom theming here" you can delete the comment and start writing in your own custom styling using the Material-UI Default Theme as a guideline. You can find more examples of theming with Material-UI here.