How to use the gatsby-theme-apollo-core/src/utils/colors.colors.primary function in gatsby-theme-apollo-core

To help you get started, we’ve selected a few gatsby-theme-apollo-core 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 wp-graphql / wp-graphql / docs / src / gatsby-theme-apollo-core / components / sidebar-nav / category.js View on Github external
outline: 'none',
  h6: {
    margin: 0,
    fontWeight: 'bold',
    ...smallCaps,
    color: 'inherit',
  },
  svg: {
    display: 'block',
    width: iconSize,
    height: iconSize,
    marginLeft: 'auto',
    fill: 'currentColor',
  },
  '&.active': {
    color: colors.primary,
  },
}

const Container = styled.div(props => ({
  borderTop: !props.first && `1px solid ${colors.divider}`,
  marginTop: props.first && headingPadding / -2,
}))

const StyledButton = styled.button(headingStyles, {
  ':not([disabled])': {
    cursor: 'pointer',
    ':hover': {
      opacity: colors.hoverOpacity,
    },
  },
})
github apollographql / gatsby-theme-apollo / packages / gatsby-theme-apollo-docs / gatsby-config.js View on Github external
'gatsby-remark-autolink-headers',
    {
      resolve: 'gatsby-remark-copy-linked-files',
      options: {
        ignoreFileExtensions: []
      }
    },
    {
      resolve: 'gatsby-remark-mermaid',
      options: {
        mermaidOptions: {
          themeCSS: `
            .node rect,
            .node circle {
              stroke-width: 2px;
              stroke: ${colors.primary};
              fill: ${colors.background};
            }
            .node.secondary rect,
            .node.secondary circle,
            .node.tertiary rect,
            .node.tertiary circle {
              fill: white;
            }
            .node.secondary rect,
            .node.secondary circle {
              stroke: ${colors.secondary};
            }
            .node.tertiary rect,
            .node.tertiary circle {
              stroke: ${colors.tertiaryLight};
            }