This project provides a set of reusable styled components for typography and layout, built using Emotion for styling and React.
xlarge
, large
, medium
, small
- Adjusts size and spacing.bold
- Applies bold font weight.color
, opacity
- Customizes text color and transparency.semiBold
and textDecoration
props.align
, justify
- Align items and justify content.gap
, border
, padding
- Control spacing and styles.import React from "react";
import * as T from "./CustomTypography.styles";
const TypographyExample = () => (
<div>
<T.Headline xlarge bold>
XLarge Bold Headline
</T.Headline>
<T.Body large color="#555">
Large Body Text
</T.Body>
</div>
);
export default TypographyExample;
import React from "react";
import * as L from "./FlexLayout.styles";
import * as T from "./CustomTypography.styles";
const LayoutExample = () => (
<L.Vertical gap="20px" bgColor="#f0f0f0" padding="20px">
<T.Title large bold>
Title in Vertical Layout
</T.Title>
<T.Body>Some descriptive body text.</T.Body>
</L.Vertical>
);
export default LayoutExample;
import React from "react";
import CustomTypographySample from "./CustomTypographySample";
const App = () => <CustomTypographySample />;
export default App;