1 | import React from 'react';
|
2 | import { md, Example } from '@kalamazoo/docs';
|
3 |
|
4 | export default md`
|
5 | ### Typography
|
6 |
|
7 | Heading mixins for [Styled Components](https://www.styled-components.com/).
|
8 | If you're using another css-in-js solution you can use \`typography.headingSizes\` instead.
|
9 | Refer to the [design documentation](https://atlassian.design/guidelines/product/foundations/typography) for more information.
|
10 |
|
11 | ${(
|
12 | <Example
|
13 | highlight="3,12-20"
|
14 | packageName="@kalamazoo/theme"
|
15 | Component={require('../examples/typography').default}
|
16 | source={require('!!raw-loader!../examples/typography')}
|
17 | title="Heading mixins"
|
18 | />
|
19 | )}
|
20 |
|
21 | ${(
|
22 | <Example
|
23 | highlight=""
|
24 | packageName="@kalamazoo/theme"
|
25 | Component={require('../examples/fonts').default}
|
26 | source={require('!!raw-loader!../examples/fonts')}
|
27 | title="Fonts"
|
28 | />
|
29 | )}
|
30 |
|
31 | ### Elevation
|
32 |
|
33 | This will elevate an element (using box-shadow) over varying heights.
|
34 |
|
35 | ${(
|
36 | <Example
|
37 | packageName="@kalamazoo/theme"
|
38 | Component={require('../examples/elevation').default}
|
39 | source={require('!!raw-loader!../examples/elevation')}
|
40 | title=""
|
41 | />
|
42 | )}
|
43 |
|
44 | ### Focus ring
|
45 |
|
46 | When creating your own custom interactive element you can use this mixin in any css-in-js solution to give it its own focus ring.
|
47 |
|
48 | ${(
|
49 | <Example
|
50 | highlight="3,9,21-26"
|
51 | packageName="@kalamazoo/theme"
|
52 | Component={require('../examples/focus-ring').default}
|
53 | source={require('!!raw-loader!../examples/focus-ring')}
|
54 | title="Focusable elements"
|
55 | />
|
56 | )}
|
57 |
|
58 | ### Assistive
|
59 |
|
60 | This [Styled Components](https://www.styled-components.com/) mixin will visually hide an element,
|
61 | taking it out of the page flow,
|
62 | but still allow screen readers to read it.
|
63 |
|
64 | ${(
|
65 | <Example
|
66 | highlight="4,7"
|
67 | packageName="@kalamazoo/theme"
|
68 | Component={require('../examples/assistive').default}
|
69 | source={require('!!raw-loader!../examples/assistive')}
|
70 | title=""
|
71 | />
|
72 | )}
|
73 | `;
|