How to use the @artsy/palette.color function in @artsy/palette

To help you get started, we’ve selected a few @artsy/palette 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 artsy / emission / src / lib / Components / StickyTabPage / StickyTabPage.tsx View on Github external
onPress,
}) => {
  const [isActive, setIsActive] = useState(false)

  // Animated.useCode(() => Animated.call([active], ([val]) => setIsActive(Boolean(val))), [])

  return (
    
      
        
          
            {label}
          
        
      
    
  )
}
github artsy / emission / src / lib / Scenes / City / Components / FairEventSection / Components / FairEventSectionCard.tsx View on Github external
{!!exhibition_period && (
                
                  {exhibition_period}
                
              )}
            
          
        
      
    )
  }
}

const BackgroundImage = styled(OpaqueImageView)`
  background: ${color("black60")};
  position: absolute;
  height: 100%;
  width: 100%;
`

const Container = styled(Box)`
  width: ${Dimensions.get("window").width / 2 + 50};
  height: 310;
  position: relative;
  overflow: hidden;
  background: ${color("black60")};
`

// Set background color of overlay based on logo color
const Overlay = styled.View`
  background-color: rgba(0, 0, 0, 0.3);
github artsy / reaction / src / Apps / Collect2 / Routes / Collection / Components / CollectionsHubRails / FeaturedCollectionsRails / index.tsx View on Github external
description
          price_guidance: priceGuidance
          thumbnail
        }
      }
    `,
  }
)

const Container = styled(Box)`
  border: 1px solid ${color("black10")};
  border-radius: 2px;

  &:hover {
    text-decoration: none;
    border: 1px solid ${color("black60")};
  }
`

const FeaturedCollectionsContainer = styled(Box)`
  border-top: 1px solid ${color("black10")};

  ${Container} {
    &:first-of-type {
      margin-left: 2px;
    }
  }
`

const ExtendedSerif = styled(Serif)`
  div span {
    span p {
github artsy / positron / src / client / components / article_list / article_list_item.tsx View on Github external
const ItemContainer = styled(Flex)`
  cursor: default;
  border-bottom: 1px solid ${color("black10")};

  button {
    align-self: center;
  }

  a {
    text-decoration: none;
  }
`

const ArticleImage = styled(Flex)<{ imageUrl?: string }>`
  background-color: ${color("black10")};
  margin-right: ${space(2)}px;
  width: 145px;
  height: 90px;

  ${props =>
    props.imageUrl &&
    `
    background: url(${props.imageUrl});
    background-size: cover;
    background-positon: center;
  `};
`

const CircleSeparator = styled.span`
  display: inline-block;
  content: "";
github artsy / reaction / src / Apps / Collect2 / Routes / Collection / Components / Header / index.tsx View on Github external
`

const BreadcrumbContainer = styled(Sans)`
  a {
    text-decoration: none;
  }
`

const ImageCaption = styled(Box)`
  ${unica("s12")};
  position: absolute;
  bottom: 10px;
  left: 20px;
  right: 20px;
  text-align: right;
  color: ${color("white100")};
  z-index: 7;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
`

const ExtendedSerif = styled(Serif)`
  div span {
    span p {
      display: inline;
    }

    div p {
      display: inline;
      ${unica("s12")};
    }
  }
`
github artsy / reaction / src / Components / v2 / RouteTabs.tsx View on Github external
import { Link, LinkProps } from "found"
import React from "react"
import styled from "styled-components"
import { left, right } from "styled-system"
import { Media } from "Utils/Responsive"

export const RouteTabs = styled(TabsContainer)`
  width: 100%;

  a {
    ${sharedTabsStyles.tabContainer};

    :not(:last-child) {
      margin-right: ${space(3)}px;
    }
    color: ${color("black60")};
    text-decoration: none;

    &.active {
      color: ${color("black100")};
      ${sharedTabsStyles.activeTabContainer};
    }
  }
`

export const RouteTab: React.FC> = ({
  children,
  ...props
}) => {
  return (
github artsy / reaction / src / Components / Publishing / Icon / IconLayoutFullscreen.tsx View on Github external
export const IconLayoutFullscreen: React.SFC<{ fill?: string }> = ({
  fill,
}) => {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 45 30" height="30px" width="45px">
      <g fill="none" stroke="none">
        <g fill="{fill">
          <path d="M0,0 L45,0 L45,30 L0,30 L0,0 Z M3,22 L37,22 L37,20 L3,20 L3,22 Z M3,27 L29,27 L29,25 L3,25 L3,27 Z"></path>
        </g>
      </g>
    </svg>
  )
}
github artsy / reaction / src / Styleguide / Components / Tabs.tsx View on Github external
margin-bottom: -1px;
    white-space: nowrap;
    ${borders};

    ${media.xs`
      &:last-child {
        padding-right: ${space(4)}px;
      }
    `};
  `,
  activeTabContainer: css`
    pointer-events: none;
    padding-bottom: 13px;
    margin-bottom: -1px;
    white-space: nowrap;
    border-bottom: 1px solid ${color("black60")};
  `,
}

const TabsContainer = styled(Flex)`
  ${styles.tabsContainer};
`

const TabContainer = styled.div`
  ${styles.tabContainer};
`

export const ActiveTabContainer = styled.div`
  ${styles.activeTabContainer};
`

const SupWrapper = styled.sup`
github artsy / positron / src / client / apps / settings / client / curations / gucci / components / section.tsx View on Github external
src={section.cover_image_url || ""}
              onChange={(key, value) =&gt; onChange(key, value)}
            /&gt;
github artsy / reaction / src / Apps / Collect2 / Routes / Collection / Components / Header / index.tsx View on Github external
<spacer>
          
        )
      }}
    
  )
}

const CollectionSingleImageHeader = styled(Box)&lt;{
  headerImageUrl: string
  height: number
}&gt;`
  position: relative;
  background: ${color("black30")};
  height: ${props =&gt; props.height}px;
  background-image: url(${props =&gt; props.headerImageUrl});
  background-size: cover;
  background-position: center;

  ${media.xs`
    margin-left: -20px;
    margin-right: -20px;
  `};
`
export const Overlay = styled.div`
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;</spacer>