How to use the @synerise/ds-typography.Title function in @synerise/ds-typography

To help you get started, we’ve selected a few @synerise/ds-typography 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 Synerise / synerise-design / packages / components / modal / src / Modal.styles.ts View on Github external
import styled from 'styled-components';
import Typography from '@synerise/ds-typography';

export const TitleContainer = styled.div`
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  && {
    .close-modal {
      line-height: 1;
    }
  }
`;

export const Title = styled(Typography.Title)`
  width: 100%;
  color: ${(props): string => props.theme.palette['grey-800']};
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  && {
    margin: 0;
  }
`;

export const Description = styled(Typography.Text)`
  font-weight: normal;
  display: block;
  padding: 12px 0 0;
  margin: 8px 0 0;
github Synerise / synerise-design / packages / components / card / src / Card / Card.styles.ts View on Github external
flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;

  ${(props): FlattenSimpleInterpolation | false =>
    !!props.isContentful &&
    css`
      margin: 0 0 24px;
    `};
`;

export const HeaderSideChildren = styled.div`
  padding-left: 24px;
`;

export const Title = styled(Typography.Title)<{ fat: boolean }>`
  && {
    display: flex;
    align-items: center;
    height: ${(props): string => (props.fat ? '32px' : '20px')};
    margin: 0;
  }
`;

export const Description = styled.p`
  && {
    margin: 6px 0 0;
  }
`;

export const HeaderContent = styled.div<{ compact?: boolean; hasIcon: boolean }>`
  width: 100%;