0.2.0 • Published 5 years ago

gatsby-theme-ui v0.2.0

Weekly downloads
12
License
MIT
Repository
-
Last release
5 years ago

gatsby-theme-ui

Gatsby (theme) plugin for adding theme-ui context

npm i theme-ui gatsby-theme-ui @emotion/core @mdx-js/react
// gatsby-config.js
module.exports = {
  __experimentalThemes: ['gatsby-theme-ui'],
  plugins: [],
}

Customizing the theme

To customize the theme used in your Gatsby site, shadow files in a src/gatsby-theme-ui/ directory. The src/gatsby-theme-ui/index.js module is the main export for themes.

// example src/gatsby-theme-ui/index.js
export default {
  colors: {
    text: '#111',
    background: '#fff',
  },
}

Extending a theme

To extend an existing theme, import the module and merge, assign or override properties in your shadowing src/gatsby-theme-ui/index.js file.

// example with extending
import baseTheme from 'gatsby-theme-ui'

export default {
  ...baseTheme,
  // extending the colors only
  colors: {
    ...baseTheme.colors,
    text: '#111',
    background: '#fff',
  },
}

Color Modes

To enable support for multiple color modes, add an initialColorMode field to your theme.js object.

// src/theme.js
export default {
  initialColorMode: 'light',
  colors: {
    text: '#000',
    background: '#fff',
    modes: {
      dark: {
        text: '#fff',
        background: '#000',
      },
    },
  },
}

MIT License

@lucasbarcelos/gatsby-theme-mercadolibre-store-custom@stton/gatsby-theme-shopify@sachinjadhav/gatsby-theme-blog@carltonj2000/gatsby-theme-events@ezeyaniv/gatsby-theme-events@jacobherrington/gatsby-theme-events@3200pro/theme-1@dowdiness/gatsby-theme-events@everything-registry/sub-chunk-1724gatsby-theme-eventsgatsby-theme-workshopsgatsby-theme-personal@dominicpascal/gatsby-theme-eventsgatsby-asphalt-theme@dance2die/gatsby-theme-events@gbernal/gatsby-theme-events@dilloncoffman/gatsby-theme-concerts@creeland/gatsby-theme-events@billiramirez/gatsby-theme-events@infinitebrahmanuniverse/nolb-gatsby-t@ck9891/gatsby-theme-events@codebrahma/gatsby-theme-blog@jpmarra/gatsby-theme-events@jplps/gatsby-theme-projects@kiranvedi/gatsby-theme-events@kboone00/gatsby-theme-events@jullberg/gatsby-theme-events@boochoo/gatsby-theme-events@dayhaysoos/gatsby-theme-events@dmontes/gatsby-theme-events@clintvidler/gatsby-theme-events@rafaremo/gatsby-theme-events@mjridgw/gatsby-theme-events@mnuworld/gatsby-theme-events@neverlish/gatsby-theme-events@mrseanbaines/gatsby-theme-events@nk13/gatsby-theme-events@odm275/gatsby-theme-events@patricoferris/gatsby-theme-workshops@nbsamurai/gatsby-theme-events@mweeks/gatsby-theme-events@leonfeng/gatsby-theme-events@leomanlapera/gatsby-theme-blog@kylemire1/gatsby-theme-events@esmith7196/gatsby-theme-events@rosnovsky/gatsby-theme-events@rennehir/gatsby-theme-events@eadeveloper/gatsby-theme-events-tutorial@rzaniboni/gatsby-theme-events@tomoyaf/gatsby-theme-events@szokrika/gatsby-theme-blog@sfisher/gatsby-theme-events@exposuredesign/gatsby-theme-events@florantara/gatsby-theme-mercadolibre-store@theeko/gatsby-theme-events@thall1961/gatsby-theme-events@superuser41/gatsby-theme-events@tianyiwang/gatsby-theme-events@testing47/gatsby-theme-events@uselessdev/gatsby-theme-clean@with-heart/gatsby-theme-events@vojtaholik/gatsby-theme-simplecast@zalastax/nolb-gatsby-t@1page/gatsby-theme-gallery@a13marquez/gatsby-theme-events@amite/gatsby-theme-events@amberleyromo/gatsby-theme-blog@amberleyromo/gatsby-theme-notes
0.2.0

5 years ago

0.2.0-alpha.0

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.3

5 years ago

0.1.3-0.0

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago