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

@adamquadmon/gatsby-theme-lucifero

v2.0.13

Published

Dark/Light Chakra UI theme with MDX and other suff

Downloads

47

Readme

A Satanic Gatsby theme featuring Chakra UI Dark/Light theme with MDX and other suff

inspired by:

Features

  • Chakra UI-based theming
  • Light/Dark mode
  • MDX

Installation

mkdir my-site
cd my-site
yarn init
# install gatsby-theme-lucifero and it's dependencies
yarn add gatsby react react-dom @adamquadmon/gatsby-theme-lucifero

Usage

Theme options

In the src/config/ folder you will find defaultConfig.js

| Key | Default Value | Description | | ---------- | ------------- | ------------------------------------------------------------------------------------------------------- | | basePath | / | Root url for the theme |

Example usage

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `@adamquadmon/gatsby-theme-lucifero`,
      options: {
        // basePath defaults to `/`
        basePath: `/sideproject`,
      },
    },
  ],
};

Shadowing

Please read the guide Shadowing in Gatsby Themes to understand how to customize the theme! Generally speaking you will want to place your files into src/@adamquadmon/gatsby-theme-lucifero/ to shadow/override files. The Chakra UI config can be configured by shadowing its files in src/gatsby-theme-lucifero/@chakra-ui/gatsby-plugin.

What's inside

This is a list of included plugins, the ones ending in***** are community plugins

Design

Data

SEO & Performances

Design

Theming

This theme uses Chakra UI for css-in-js styling. You can override theming in the src/gatsby-theme-lucifero/@chakra-ui/gatsby-plugin/ folder, the entrypoint is theme.js

Fonts

add a GoolgeFonts from fontsource using yarn:

yarn add @fontsource/im-fell-english

include the font in gatsby-browser.js:

import '@fontsource/im-fell-english';

use the font in theme files, for example in typography.js:

export const typography = {
  fonts: {
    body: 'IM Fell English',
  },
};

Theme Modes

Chakra UI is configured for Dark and Light mode, you can find some example in the components.js file

export const components = {
  components: {
    Heading: {
      baseStyle: ({ colorMode }) => ({
        color: colorMode === 'dark' ? 'gray.300' : 'gray.600',
      }),
    }
  }
}

Colors

Chakra leverage on TailwindCSS base colors. You can find here all Tailwind colors

Components

The theme provide the following components:

  • LayoutPage - Layout for Pages
  • LayoutContainer - Base Container including:
    • NavBar - full responsive navbar with LangSelector, ThemeSwitcher, SocialButtons, Logo, address and cell info
    • Footer - Logo with organization info, navigation items, LangSelector, SocialButtons and a Map
    • SEO - with ogImage and SchemaOrg
  • Cards - Dispaly responsive Cards for content
  • CookieConsent - The GDPR stuff
  • Hero - Hero component for home pages

Data

YAML

adding a data/collection.yaml file

character: a
number: 1

---

character: b
number: 2

you can query for data inside using GraphQL:

{
  allCollectionYaml {
    edges {
      node {
        character
        number
      }
    }
  }
}

MDX

In the pages folder you can add MDX files to create pages and posts

NavItems

To override the navigation links of the menu you can create the file src/gatsby-theme-lucifero/hooks/use-navItems.js

Changelog

You can find the extensive changelog of changes on GitHub. You'll be able to see each patch, minor, and major changes and what pull requests contributed to them.

Questions?

If you have general questions or need help with Gatsby, please go to one of the support platforms mentioned in Gatsby's documentation. If you have a specific question about this theme, you can head to the GitHub Discussions of the repository.