How to use the @theme-ui/presets.tailwind.buttons function in @theme-ui/presets

To help you get started, we’ve selected a few @theme-ui/presets 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 staticfuse / staticfuse / gatsby-theme-publisher / src / gatsby-plugin-theme-ui / index.js View on Github external
lightGray: tailwind.colors.gray[2]
  },
  breakpoints: [`640px`, `768px`, `1024px`, `1280px`],
  styles: {
    ...tailwind.styles,
    img: {
      display: 'block',
      maxWidth: '100%'
    },
    heading: {
      textDecoration: 'none',
      color: 'text'
    }
  },
  buttons: {
    ...tailwind.buttons,
    secondary: {
      color: `white`,
      bg: `secondary`
    },
    primary: {
      color: `white`,
      bg: `primary`,
    },
  },
};