How to use ic-snacks - 10 common examples

To help you get started, we’ve selected a few ic-snacks 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 instacart / Snacks / site / src / components / Typography / styles.js View on Github external
import {colors, spacing} from 'ic-snacks'

const gray20 = {color: colors.GRAY_20}
const spaced = {characterSpacing: '0.3em'}

export const title1 = {
  ...gray20,
  fontSize: 60,
  fontWeight: 600,
  lineHeight: '82px',
}

export const title2 = {
  ...gray20,
  ...spacing.MARGIN_BOTTOM_LG,
  fontSize: 48,
  fontWeight: 400,
  lineHeight: '65px',
}
github instacart / Snacks / site / src / components / utilities / Colors.js View on Github external
Secondary
      <div style="{group}">
        
        
        
        
        
      </div>
      Grayscale
      <div style="{group}">
        
        
        
        
        
        
        
      </div>
    
  )
}
github instacart / Snacks / site / src / components / Navigation / styles.js View on Github external
backgroundColor: colors.GRAY_97,
    overflow: 'scroll',
    ...spacing.PADDING_X_LG,
    borderRight: `1px solid ${colors.GRAY_88}`,
  },
  logo: {
    ...spacing.MARGIN_TOP_LG,
    display: 'flex',
    fontSize: 24,
    fontWeight: 600,
    textDecoration: 'none',
  },
  title: {
    position: 'relative',
    top: -2,
    color: colors.GRAY_20,
  },
  carrotIcon: {
  },
  navGroupContainer: {
    display: 'flex',
    flexDirection: 'column'
  },
  navGroupTitleContainer: {
    display: 'flex',
    justifyContent: 'space-between',
    alignItems: 'center',
    height: 40,
    width: '100%',
    cursor: 'pointer',

    ':hover': {}
github instacart / Snacks / site / src / components / Navigation / styles.js View on Github external
flexDirection: 'column'
  },
  navGroupTitleContainer: {
    display: 'flex',
    justifyContent: 'space-between',
    alignItems: 'center',
    height: 40,
    width: '100%',
    cursor: 'pointer',

    ':hover': {}
  },
  navGroupTitle: {
    fontSize: 14,
    fontWeight: 600,
    color: colors.GRAY_20,
    width: '100%',
    display: 'inline-block',
    textTransform: 'uppercase',

  },
  navGroupTitleHover: {
    color: colors.GREEN_500,
  },
  navGroupIcon: {
    color: colors.GRAY_74,
    padding: 4,
    borderRadius: 3,
    transition: 'transform 150ms',
  },
  navGroupIconOpen: {
    transform: 'rotate(-180deg)',
github instacart / Snacks / site / src / components / Navigation / NavGroup / styles.js View on Github external
borderRadius: 3,
  transition: 'transform 150ms',
}

export const iconOpen = {
  transform: 'rotate(-180deg)',
}

export const iconHover = {
  background: colors.GRAY_93,
}

export const navGroupTitle = {
  fontSize: 14,
  fontWeight: 600,
  color: colors.GRAY_20,
  width: '100%',
  display: 'inline-block',
  textTransform: 'uppercase',

}

export const navGroupTitleHover = {
  color: colors.GREEN_500,
}
github instacart / Snacks / site / src / components / Navigation / NavGroup / styles.js View on Github external
export const iconHover = {
  background: colors.GRAY_93,
}

export const navGroupTitle = {
  fontSize: 14,
  fontWeight: 600,
  color: colors.GRAY_20,
  width: '100%',
  display: 'inline-block',
  textTransform: 'uppercase',

}

export const navGroupTitleHover = {
  color: colors.GREEN_500,
}
github instacart / Snacks / gatsby / src / pages / layout / colors.js View on Github external
export default function Colors() {
  return (
    
      Colors
      We have two main color palettes - a UI color palette (primary and
      secondary colors) and an illustration color palette that has some expanded
      colors for selective use.
      Primary
      
        
        
        
        
        
      
      Secondary
      
        
        
        
        
        
      
      Grayscale
github instacart / Snacks / site / src / components / utilities / Colors.js View on Github external
export default function Colors() {
  return (
    
      Colors
      
        We have two main color palettes - a UI color palette (primary and
        secondary colors) and an illustration color palette that has some
        expanded colors for selective use.
      
      Primary
      <div style="{group}">
        
        
        
        
        
      </div>
      Secondary
      <div style="{group}">
        
        
        
        
        
      </div>
      Grayscale
      <div style="{group}">
        
        
        </div>
github instacart / Snacks / site / src / components / Navigation / styles.js View on Github external
width: '100%',
    cursor: 'pointer',

    ':hover': {}
  },
  navGroupTitle: {
    fontSize: 14,
    fontWeight: 600,
    color: colors.GRAY_20,
    width: '100%',
    display: 'inline-block',
    textTransform: 'uppercase',

  },
  navGroupTitleHover: {
    color: colors.GREEN_500,
  },
  navGroupIcon: {
    color: colors.GRAY_74,
    padding: 4,
    borderRadius: 3,
    transition: 'transform 150ms',
  },
  navGroupIconOpen: {
    transform: 'rotate(-180deg)',
  },
  navGroupIconHover: {
    background: colors.GRAY_93,
  },
  navGroupLinks: {
    ...spacing.PADDING_LEFT_SM,
  },