import Layout from '../../components/Layout' import { FoundationSidebar } from '../../sidebars' import { Playground } from '../../components/Playground'; import { Heading, Paragraph, Code } from '@knkui/typography'; export default function Typography() { return ( Font families We use three font family stacks, ui, display and mono. Text components will set the font family accordingly to their use case. There is not need for you to override this on a component level. Heading component The Heading component is used for all headings. The size options are: 100, 200, 300, 400, 500 (default), 600, 700, 800, 900. 100: The quick brown fox jumps over the lazy dog 200: The quick brown fox jumps over the lazy dog 300: The quick brown fox jumps over the lazy dog 400: The quick brown fox jumps over the lazy dog 500: The quick brown fox jumps over the lazy dog 600: The quick brown fox jumps over the lazy dog 700: The quick brown fox jumps over the lazy dog 800: The quick brown fox jumps over the lazy dog 900: The quick brown fox jumps over the lazy dog ` } /> Changing the semantic element The Heading component will always render a h2 until you specify otherwise with the is property. It’s important to realize that the style of a heading is independent from the semantic underlying element. Text component The Text component is used for single line text. The component renders a span element by default. If you need a multiline paragraph use the Paragraph component. The size options are: 300, 400 (default), 500
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
` } /> Paragraph component The Paragraph component is used for multiline text. This renders a p element by default. The size options are: 300, 400 (default), 500 The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog ` } /> Link component The Link component is used for anchor links. This component renders a a element by default. The size options are: 300, 400 (default), 500 Default Default ` } /> Strong component The Strong component renders strong text. This component renders a strong element by default. Make sure to set the size property if you are using this within a other text component such as a Paragraph.
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
` } /> Small component The Small component works only inside other text components. The small component can only be used in a other text component ` } /> Code component The Code component works only inside other text components. The code component can only be used in a other text component ` } />
) }