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

@affectionatedoor/gatsby-theme-quick-start

v2.0.2

Published

Set ups Theme UI, MDX, and some common Gatsby plugins like `gatsby-plugin-react-helmet` and sharp image plugins—see `gatsby-config` for more details. Uses a Theme UI [preset](https://github.com/MarkosKon/theme-playground/tree/master/packages/theme-ui/pres

Downloads

3

Readme

gatsby-theme-quick-start

Set ups Theme UI, MDX, and some common Gatsby plugins like gatsby-plugin-react-helmet and sharp image plugins—see gatsby-config for more details. Uses a Theme UI preset that focuses on typography. The theme also uses @affectionatedoor/opentype that enables OpenType features—you need a font file that supports them to see the difference.

Quick start

(No pun intended).

Create a new hello-world project:

gatsby new . https://github.com/gatsbyjs/gatsby-starter-hello-world

Install the theme along with Theme UI:

yarn add @affectionatedoor/gatsby-theme-quick-start theme-ui

Add the theme as a plugin in your gatsby-config.js:

// gatsby-config.js
module.exports = {
  plugins: ["@affectionatedoor/gatsby-theme-quick-start"]
};

Use the Layout component in your index page:

// src/pages/index.js
import React from "react";
import Layout from "@affectionatedoor/gatsby-theme-quick-start/src/components/Layout";

export default () => <Layout>Hello world!</Layout>;

Any md/mdx files inside your src/pages will be picked-up.

Change the Theme UI theme

To change the Theme UI theme, create the following file: /your-site/src/gatsby-plugin-theme-ui/index.js. This is an example:

// src/gatsby-plugin-theme-ui/index.js
import baseTheme from "@affectionatedoor/gatsby-theme-quick-start/src/gatsby-plugin-theme-ui/index";

const theme = {
  ...baseTheme,
  fonts: {
    ...baseTheme.fonts,
    heading: "'Georgia', serif"
  }
};

export default theme;

This is the preset used by the theme.

Theme options

| Name | Description | Type | Default | | --------------- | -------------------------------------------------------------------------------------------- | ------ | -------------------------------------------- | | imageDirectory | Images for sharp | string | src/images | | pageDirectory | This exists to make mdx files available to GraphQL queries. | string | src/pages | | logoFilename | Place the logo inside the imageDirectory. | string | gatsby-icon.png | | gatsbyMdxConfig | You can't configure gatsby-plugin-mdx multiple times so with this option you can override it | object | See baseGatsbyMdxConfig in gatsby-config |