@synerise/ds-typography
TypeScript icon, indicating that this package has built-in type declarations

0.15.0 • Public • Published

id: typography title: Typography

Synerise Design System - Typography

This module provides few helpers and components to work with typograpy.

Examples

Styled components header macro usage
import { macro } from '@synerise/ds-typography';

export const HeaderH1 = styled.div`
  color: #000;
  ${macro.h700};
`;
Styled components color palette usage
export const Color = styled.div`
  color: ${({ theme }) => theme.palette['red-600']};
`;
Ant Design components usage
import {Title, Text, Paragraph} from '@synerise/ds-typography';

<Title level={1}>This is h1 element</Title>;
<Title level={2}>This is h2 element</Title>;
<Title level={3}>This is h3 element</Title>;
<Title level={4}>This is h4 element</Title>;
<Title level={5}>This is h5 element</Title>;
<Title level={6}>This is h6 element</Title>;
<Title level={7}>This is h6 element</Title>;
<Text size="medium">This is span element with standard font-size</Text>
<Text size="small">This is span element with smaller font-size</Text>
<Text size="xsmall">This is span element with smallest font-size</Text>
<Paragraph size="medium">This is span element with standard font-size</Paragraph>
<Paragraph size="small">This is span element with smaller font-size</Paragraph>
<Paragraph size="xsmall">This is span element with smallest font-size</Paragraph>

Readme

Keywords

none

Package Sidebar

Install

npm i @synerise/ds-typography

Weekly Downloads

508

Version

0.15.0

License

ISC

Unpacked Size

39.5 kB

Total Files

23

Last publish

Collaborators

  • synerise