@novvum/web-theme

2.2.5-rc.1 • Public • Published

gatsby-theme-configured

A 100% configuration-driven Gatsby theme

Configuration

// example gatsby-config.js
module.exports = {
  __experimentalThemes: [
    {
      resolve: 'gatsby-theme-configured',
      options: {
        colors: {
          text: '#111',
          background: '#fff',
          link: 'tomato',
        }
      }
    },
  ]
}

Options

{
  // styles
  colors: {
    text: 'black',
    background: 'white',
    link: 'blue',
    hover: 'darkblue',
    button: {
      text: 'white',
      background: 'blue',
      hover: {
        text: 'inherit',
        background: 'darkblue',
      },
    },
    heading: 'black',
    border: 'lightgray',
    pre: {
      text: 'blue',
      background: 'lightgray',
    },
    code: {
      text: 'blue',
      background: 'transparent',
    },
    header: {
      text: 'white',
      background: 'black',
    },
    footer: {
      text: 'white',
      background: 'black',
    },
  },
  fonts: {
    body: 'system-ui, sans-serif',
    heading: 'inherit',
    monospace: 'Menlo, monospace',
  },
  lineHeights: {
    body: 1.5,
    heading: 1.25,
  },
  fontSizes: [
    12, 14, 16, 20, 24, 32, 48, 64, 96, 128,
  ],
  fontWeights: {
    normal: 400,
    bold: 700,
    heading: 700,
  },
  space: [
    0, 4, 8, 16, 32, 64, 128, 256, 512,
  ],
  radius: 2,
  containerWidth: 1024,
  breakpoint: 640,
  // content
  header: {
    logo: {
      src: 'logo.svg',
      width: 32,
      height: 32
    },
    title: 'Gatsby Theme All Config',
    button: {
      text: 'Sign Up',
      path: '#',
    }
  },
  navigation: [
    { path: '/', name: 'Home' },
    { path: 'https://github.com/jxnblk/gatsby-themes', name: 'GitHub' },
  ],
  footer: {
    colophon: '© 2019 Brent Jackson',
    links: [
      { path: '/', name: 'Home' },
      { path: 'https://github.com/jxnblk/gatsby-themes', name: 'GitHub' },
    ],
    social: {
      twitter: 'jxnblk',
      facebook: 'jxnblk',
      instagram: 'jxnblk',
    },
  }
}

Dependencies (7)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @novvum/web-theme

    Weekly Downloads

    1

    Version

    2.2.5-rc.1

    License

    MIT

    Unpacked Size

    8.12 MB

    Total Files

    27

    Last publish

    Collaborators

    • rajinwonderland
    • rohit.ravikoti
    • trevheath