How to use the @commercetools-uikit/design-system.customProperties.colorAccent 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 / tooltip / tooltip.styles.js View on Github external
case 'scale':
    default:
      return vars.constraintScale;
  }
};

export const Body = styled.div`
  font-family: inherit;
  border-radius: ${vars.borderRadius6};
  padding: ${vars.spacingXs} ${vars.spacingS};
  border: 'none';
  box-shadow: ${vars.shadow15};
  font-size: 0.857rem;
  opacity: 0.95;
  color: ${vars.colorSurface};
  background-color: ${vars.colorAccent};
`;
// here we use object styles so we can spread these
// with the styles we get from react-popper :D
// eslint-disable-next-line import/prefer-default-export
export const getBodyStyles = ({ constraint, placement, customStyles }) => ({
  fontFamily: 'inherit',
  margin: `${getOffsetMargin({ placement })} !important`,
  maxWidth: getMaxWidth({ constraint }),
  // so hovering over the tooltip when the tooltip overlaps the component
  pointerEvents: 'none',
  zIndex: 1,
  ...customStyles,
});
github commercetools / ui-kit / packages / components / table / src / base-table.js View on Github external
{({ css: makeClassName, cx }) => (
            <div style="{{">
              {this.headerRenderer(columnDefinition)}
            </div>
          )}
github commercetools / merchant-center-application-kit / packages / application-shell / src / components / project-switcher / project-switcher.js View on Github external
export const ProjectSwitcherOption = props =&gt; (
  
    <div>
      <div>
        {props.data.name}
        {props.isDisabled &amp;&amp; (
          <span>
            
          </span>
        )}
      </div>
      </div>
github commercetools / merchant-center-application-kit / packages / application-shell / src / components / quick-access / butler-command / butler-command.js View on Github external
const ButlerCommand = ({ command, onMouseEnter, onClick, isSelected }) =&gt; (
  <div data-testid="{`quick-access-result(${command.id})`}">
    <div>
      {command.text}</div></div>
github commercetools / ui-kit / packages / components / simple-table / src / simple-table.styles.js View on Github external
display: contents;
`;

const Row = styled.tr`
  display: contents;

  &:hover td {
    background: ${vars.backgroundColorForInputWhenHovered};
  }
`;

const HeaderCell = styled.th`
  ${getCellStyles};
  ${getCellAlignment}
  color: ${vars.colorSurface};
  background-color: ${vars.colorAccent};
  font-weight: normal;
`;

const DataCell = styled.td`
  ${getCellStyles}
  ${getCellAlignment}
`;

export { TableGrid, Header, Body, Row, HeaderCell, DataCell };

@commercetools-uikit/design-system

Core package of the commercetools design system.

MIT
Latest version published 5 days ago

Package Health Score

87 / 100
Full package analysis