How to use the @theme-ui/preset-tailwind.baseColors.pink function in @theme-ui/preset-tailwind

To help you get started, we’ve selected a few @theme-ui/preset-tailwind examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ehowey / gatsby-theme-catalyst / starters / gatsby-starter-catalyst-writer / src / gatsby-plugin-theme-ui / index.js View on Github external
// See https://theme-ui.com/ for more info and also https://www.gatsbyjs.org/docs/theme-ui/
import merge from "deepmerge"
import { BaseTheme } from "gatsby-theme-catalyst-core"
import { baseColors } from "@theme-ui/preset-tailwind"

export default merge(BaseTheme, {
  colors: {
    primary: baseColors.pink[9],
    secondary: baseColors.pink[6],
    accent: baseColors.gray[2],
    header: {
      background: "transparent",
      backgroundOpen: baseColors.pink[9],
      iconsHover: baseColors.pink[6],
      iconsOpen: "#ffffff",
    },
    footer: {
      background: "#eeeeee",
      text: "#333",
      links: "#333",
      icons: "#333",
    },
  },
  styles: {
    h1: {
github ehowey / gatsby-theme-catalyst / starters / gatsby-starter-catalyst-writer / src / gatsby-plugin-theme-ui / index.js View on Github external
// See https://theme-ui.com/ for more info and also https://www.gatsbyjs.org/docs/theme-ui/
import merge from "deepmerge"
import { BaseTheme } from "gatsby-theme-catalyst-core"
import { baseColors } from "@theme-ui/preset-tailwind"

export default merge(BaseTheme, {
  colors: {
    primary: baseColors.pink[9],
    secondary: baseColors.pink[6],
    accent: baseColors.gray[2],
    header: {
      background: "transparent",
      backgroundOpen: baseColors.pink[9],
      iconsHover: baseColors.pink[6],
      iconsOpen: "#ffffff",
    },
    footer: {
      background: "#eeeeee",
      text: "#333",
      links: "#333",
      icons: "#333",
    },
  },
  styles: {

@theme-ui/preset-tailwind

Theme UI includes `@theme-ui/preset-tailwind` which can be used as an example or starting point for extending your own themes.

MIT
Latest version published 3 months ago

Package Health Score

93 / 100
Full package analysis

Similar packages