How to use the @commercetools-uikit/design-system.customProperties.colorNeutral function in @commercetools-uikit/design-system

To help you get started, we’ve selected a few @commercetools-uikit/design-system 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 commercetools / ui-kit / src / components / buttons / primary-button / primary-button.styles.js View on Github external
color: ${vars.colorSurface};
    transition: background-color ${vars.transitionLinear80Ms};
    font-size: ${vars.fontSizeDefault};
    ${getSizeStyles(size)}
  `;
  // "disabled" takes precendece over "active"
  if (isDisabled) {
    return [
      baseStyles,
      css`
        &,
        &:active,
        &:hover {
          background-color: ${vars.colorAccent98};
          color: ${vars.colorNeutral60};
          box-shadow: 0 0 0 1px ${vars.colorNeutral} inset;
        }
      `,
    ];
  }
  if (isActive) {
    const baseActiveStyles = [
      baseStyles,
      css`
        box-shadow: ${vars.shadow9};
        &:hover,
        &:focus {
          box-shadow: ${vars.shadow8};
        }
      `,
    ];
    switch (tone) {
github commercetools / merchant-center-application-kit / packages / application-shell / src / components / project-switcher / project-switcher.js View on Github external
{props.isDisabled && (
          <span>
            
          </span>
        )}
      
      <div>
        {props.data.key}
      </div>
      {props.data.suspension &amp;&amp; props.data.suspension.isActive &amp;&amp; (
        <div>
          
        </div>
      )}
      {props.data.expiry &amp;&amp; props.data.expiry.isActive &amp;&amp; (
github commercetools / merchant-center-application-kit / packages / application-components / src / components / modal-pages / tabular-modal-page / tabular-modal-page.tsx View on Github external
title={props.title}
    isOpen={props.isOpen}
    zIndex={props.zIndex}
    onClose={props.onClose}
    baseZIndex={props.baseZIndex}
    topBarColor="neutral"
    currentPathLabel={props.topBarCurrentPathLabel || props.title}
    previousPathLabel={props.topBarPreviousPathLabel}
    getParentSelector={props.getParentSelector}
    shouldDelayOnClose={props.shouldDelayOnClose}
  &gt;
    <div>
      
        {props.customTitleRow || (
          
        )}
        <div>
          </div></div>
github commercetools / ui-kit / packages / components / table / src / sortable-header.js View on Github external
};

const Container = styled.div`
  display: flex;
  align-items: center;
  justify-content: space-between;

  &:hover {
    cursor: pointer;

    svg {
      transform: rotate(180deg);
    }

    * {
      fill: ${vars.colorNeutral};
    }
  }

  ${containerDynamicStyles}

  &:hover {
    ${Span} {
      visibility: visible;
    }
  }
`;

const SortableHeader = props => {
  const isActive = props.sortBy === props.columnKey;
  const isArrowDown = isActive && props.sortDirection === 'DESC';
  return (
github commercetools / merchant-center-application-kit / packages / application-shell / src / components / user-settings-menu / user-settings-menu.js View on Github external
${props =>
    props.hasDivider
      ? css`
          border-bottom: 1px solid ${customProperties.colorNeutral};
        `
      : ''};
`;
github commercetools / ui-kit / src / components / buttons / icon-button / icon-button.styles.js View on Github external
const getStateStyles = (isDisabled, isActive, theme) => {
  if (isDisabled) {
    const disabledStyle = css`
      background-color: ${vars.colorAccent98};
      border-color: ${vars.colorNeutral};
      color: ${vars.colorNeutral60};
      box-shadow: none;
    `;
    switch (theme) {
      case 'info':
        return [
          disabledStyle,
          css`
            &:hover {
              border-color: ${vars.colorInfo85};
              background-color: ${vars.colorInfo85};
            }
          `,
        ];
      case 'primary':
        return [
github commercetools / merchant-center-application-kit / packages / application-shell / src / components / loading-placeholder / loading-placeholder.js View on Github external
case 'l':
          return '12px';
        case 'xl':
          return '16px';
        default:
          return 'none';
      }
    case 'rect':
      return customProperties.borderRadius4;
    default:
      return 'none';
  }
};

const LoadingPlaceholder = styled.div`
  background-color: ${customProperties.colorNeutral};
  animation-name: ${animationPulse};
  animation-duration: 1s;
  animation-timing-function: ease-out;
  animation-delay: 0;
  animation-direction: alternate;
  animation-iteration-count: infinite;

  width: ${getWidthBySize};
  height: ${getHeightBySize};
  border-radius: ${getRadiusBySize};
`;
LoadingPlaceholder.displayName = 'LoadingPlaceholder';
LoadingPlaceholder.propTypes = {
  shape: PropTypes.oneOf(['dot', 'rect']).isRequired,
  size: PropTypes.oneOf(['s', 'm', 'l', 'xl']).isRequired,
};
github commercetools / ui-kit / src / components / panels / collapsible-panel / header-icon.js View on Github external
height: ${props.size === 'small'
            ? sizeIconContainerSmall
            : sizeIconContainer};
          width: ${props.size === 'small'
            ? sizeIconContainerSmall
            : sizeIconContainer};
          border-radius: 50%;
          flex-shrink: 0;
          box-shadow: ${vars.shadow7};
          background-color: ${backgroundColor};
          border: 1px solid ${backgroundColor};
        `,
        props.isDisabled &amp;&amp;
          css`
            box-shadow: none;
            border: 1px solid ${vars.colorNeutral};
            background-color: ${vars.colorAccent98};
          `,
      ]}
    &gt;
      {props.isClosed ? (
        
      ) : (

@commercetools-uikit/design-system

Core package of the commercetools design system.

MIT
Latest version published 10 days ago

Package Health Score

90 / 100
Full package analysis