How to use the @paprika/tokens/lib/tokens.space function in @paprika/tokens

To help you get started, we’ve selected a few @paprika/tokens 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 acl-services / paprika / packages / ListBoxBrowser / src / components / CustomListBox / CustomListBox.styles.js View on Github external
import { css } from "styled-components";
import tokens from "@paprika/tokens/lib/tokens";
import stylers from "@paprika/stylers";

export const arrowRightContainer = css`
  display: flex;
  height: ${stylers.spacer(4)};
  justify-content: flex-end;
  position: absolute;
  right: -${tokens.space};
  top: -7px;
  width: ${stylers.spacer(4)};
`;

export const arrowRightButton = css`
  align-items: center;
  border-left: 1px solid ${tokens.border.color};
  color: ${tokens.color.black};
  display: inline-flex;
  height: 100%;
  justify-content: center;
  width: 100%;

  &:hover:after {
    background: ${tokens.color.black};
    border-radius: 50%;
github acl-services / paprika / packages / ListBoxBrowser / src / components / OptionsSelected / OptionsSelected.styles.js View on Github external
margin-left: ${tokens.spaceSm};
  padding: 2px ${tokens.spaceSm};
`;

export const remove = css`
  align: center;
  align-items: center;
  border-bottom-right-radius: ${tokens.border.radius};
  border-left: 1px solid ${tokens.border.color};
  border-top-right-radius: ${tokens.border.radius};
  color: ${tokens.color.cremeDarken30};
  display: inline-flex;
  font-size: 12px;
  height: 100%;
  justify: flex-end;
  padding: 0 ${tokens.space};
  position: relative;

  &:hover {
    color: ${tokens.color.black};
  }
`;

export const optionLabel = css`
  font-size: 16px;
  margin-bottom: 3px;
`;

export const optionBreadcrumb = css`
  color: ${tokens.color.blackLighten20};
  font-size: 13px;
`;