├── .github └── logo.svg ├── .gitignore ├── .npmignore ├── components └── MarkdownSample.mdx ├── next.config.js ├── out ├── 404.html ├── _next │ └── static │ │ ├── bobFJWyewP3Byjcw7qTgg │ │ ├── _buildManifest.js │ │ ├── _ssgManifest.js │ │ └── pages │ │ │ ├── _app.js │ │ │ ├── _error.js │ │ │ └── index.js │ │ ├── chunks │ │ ├── 0.js │ │ ├── 654d5c37345eea3573c82fc327f91cdd9c6371b8.13b6f0c72a2586baeaa8.js │ │ ├── 9bc325c83d42937f4376e621a374cf2980bc234d.13b6f0c72a2586baeaa8.js │ │ ├── f8eca4bdfd4829a39b63f19f4c6ced758198000b.13b6f0c72a2586baeaa8.js │ │ └── framework.02051909e0f1ada25890.js │ │ ├── css │ │ ├── 27d585dfd8ed8f93aa53.css │ │ └── dc01097aa72d35a5aff2.css │ │ ├── csybM67iZ0zv6HoZKDs72 │ │ ├── _buildManifest.js │ │ ├── _ssgManifest.js │ │ └── pages │ │ │ ├── _app.js │ │ │ ├── _error.js │ │ │ └── index.js │ │ ├── development │ │ ├── _buildManifest.js │ │ ├── _ssgManifest.js │ │ ├── dll │ │ │ ├── dll_0bba8b07127264a49ab1.js │ │ │ └── dll_0bba8b07127264a49ab1.js.map │ │ └── pages │ │ │ ├── _app.js │ │ │ ├── _error.js │ │ │ └── index.js │ │ ├── runtime │ │ ├── amp.js │ │ ├── main-1c47f61fa50edd6b0de8.js │ │ ├── main-7cecce0728ac81eebb83.js │ │ ├── main.js │ │ ├── polyfills-6d8375a3ba10316e38d3.js │ │ ├── polyfills-c315eeb9b0a223e7ea44.js │ │ ├── polyfills.js │ │ ├── react-refresh.js │ │ ├── webpack-c212667a5f965e81e004.js │ │ └── webpack.js │ │ ├── webpack │ │ └── bfebcabef7ccd61cdc59.hot-update.json │ │ └── zYyqDH_x4Xcm6o5HOOFS1 │ │ ├── _buildManifest.js │ │ ├── _ssgManifest.js │ │ └── pages │ │ ├── _app.js │ │ ├── _error.js │ │ └── index.js ├── favicon-16x16.png ├── favicon-32x32.png ├── favicon.ico └── index.html ├── package.json ├── pages ├── _app.js └── index.js ├── postcss.config.js ├── public ├── favicon-16x16.png ├── favicon-32x32.png └── favicon.ico ├── tailwind.config.js └── yarn.lock /.github/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .next 2 | node_modules 3 | package-lock.json 4 | /demo/out 5 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | docs 2 | node_modules 3 | .next 4 | package-lock.json 5 | yarn.lock 6 | -------------------------------------------------------------------------------- /components/MarkdownSample.mdx: -------------------------------------------------------------------------------- 1 |

2 | Until now, trying to style an article, document, or blog post with Tailwind has been a tedious 3 | task that required a keen eye for typography and a lot of complex custom CSS. 4 |

5 | 6 | By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you _really are_ just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive. 7 | 8 | We get lots of complaints about it actually, with people regularly asking us things like: 9 | 10 | > Why is Tailwind removing the default styles on my `h1` elements? How do I disable this? What do you mean I lose all the other base styles too? 11 | 12 | We hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a `p` element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look _awesome_, not awful. 13 | 14 | The `@tailwindcss/typography` plugin is our attempt to give you what you _actually_ want, without any of the downsides of doing something stupid like disabling our base styles. 15 | 16 | It adds a new `prose` class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document: 17 | 18 | ```html 19 |
20 |

Garlic bread with cheese: What the science tells us

21 |

22 | For years parents have espoused the health benefits of eating garlic bread with cheese to their 23 | children, with the food earning such an iconic status in our culture that kids will often dress 24 | up as warm, cheesy loaf for Halloween. 25 |

26 |

27 | But a recent study shows that the celebrated appetizer may be linked to a series of rabies cases 28 | springing up around the country. 29 |

30 | 31 |
32 | ``` 33 | 34 | For more information about how to use the plugin and the features it includes, [read the documentation](https://github.com/tailwindcss/typography/blob/master/README.md). 35 | 36 | --- 37 | 38 | ## What to expect from here on out 39 | 40 | What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like **bold text**, unordered lists, ordered lists, code blocks, block quotes, _and even italics_. 41 | 42 | It's important to cover all of these use cases for a few reasons: 43 | 44 | 1. We want everything to look good out of the box. 45 | 2. Really just the first reason, that's the whole point of the plugin. 46 | 3. Here's a third pretend reason though a list with three items looks more realistic than a list with two items. 47 | 48 | Now we're going to try out another header style. 49 | 50 | ### Typography should be easy 51 | 52 | So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable. 53 | 54 | Something a wise person once told me about typography is: 55 | 56 | > Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad. 57 | 58 | It's probably important that images look okay here by default as well: 59 | 60 |
61 | 65 |
66 | Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of 67 | classical Latin literature from 45 BC, making it over 2000 years old. 68 |
69 |
70 | 71 | Now I'm going to show you an example of an unordered list to make sure that looks good, too: 72 | 73 | - So here is the first item in this list. 74 | - In this example we're keeping the items short. 75 | - Later, we'll use longer, more complex list items. 76 | 77 | And that's the end of this section. 78 | 79 | ## What if we stack headings? 80 | 81 | ### We should make sure that looks good, too. 82 | 83 | Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be. 84 | 85 | ### When a heading comes after a paragraph … 86 | 87 | When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like. 88 | 89 | - **I often do this thing where list items have headings.** 90 | 91 | For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right. 92 | 93 | I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way. 94 | 95 | - **Since this is a list, I need at least two items.** 96 | 97 | I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles. 98 | 99 | - **It's not a bad idea to add a third item either.** 100 | 101 | I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it. 102 | 103 | After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading. 104 | 105 | ## Code should look okay by default. 106 | 107 | I think most people are going to use [highlight.js](https://highlightjs.org/) or [Prism](https://prismjs.com/) or something if they want to style their code blocks but it wouldn't hurt to make them look _okay_ out of the box, even with no syntax highlighting. 108 | 109 | Here's what a default `tailwind.config.js` file looks like at the time of writing: 110 | 111 | ```js 112 | module.exports = { 113 | purge: [], 114 | theme: { 115 | extend: {}, 116 | }, 117 | variants: {}, 118 | plugins: [], 119 | } 120 | ``` 121 | 122 | Hopefully that looks good enough to you. 123 | 124 | ### What about nested lists? 125 | 126 | Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work. 127 | 128 | 1. **Nested lists are rarely a good idea.** 129 | - You might feel like you are being really "organized" or something but you are just creating a gross shape on the screen that is hard to read. 130 | - Nested navigation in UIs is a bad idea too, keep things as flat as possible. 131 | - Nesting tons of folders in your source code is also not helpful. 132 | 2. **Since we need to have more items, here's another one.** 133 | - I'm not sure if we'll bother styling more than two levels deep. 134 | - Two is already too much, three is guaranteed to be a bad idea. 135 | - If you nest four levels deep you belong in prison. 136 | 3. **Two items isn't really a list, three is good though.** 137 | - Again please don't nest lists if you want people to actually read your content. 138 | - Nobody wants to look at this. 139 | - I'm upset that we even have to bother styling this. 140 | 141 | The most annoying thing about lists in Markdown is that `
  • ` elements aren't given a child `

    ` tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too. 142 | 143 | - **For example, here's another nested list.** 144 | 145 | But this time with a second paragraph. 146 | 147 | - These list items won't have `

    ` tags 148 | - Because they are only one line each 149 | 150 | - **But in this second top-level list item, they will.** 151 | 152 | This is especially annoying because of the spacing on this paragraph. 153 | 154 | - As you can see here, because I've added a second line, this list item now has a `

    ` tag. 155 | 156 | This is the second line I'm talking about by the way. 157 | 158 | - Finally here's another list item so it's more like a list. 159 | 160 | - A closing list item, but with no nested list, because why not? 161 | 162 | And finally a sentence to close off this section. 163 | 164 | ## There are other elements we need to style 165 | 166 | I almost forgot to mention links, like [this link to the Tailwind CSS website](https://tailwindcss.com). We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier. 167 | 168 | We even included table styles, check it out: 169 | 170 | | Wrestler | Origin | Finisher | 171 | | ----------------------- | ------------ | ------------------ | 172 | | Bret "The Hitman" Hart | Calgary, AB | Sharpshooter | 173 | | Stone Cold Steve Austin | Austin, TX | Stone Cold Stunner | 174 | | Randy Savage | Sarasota, FL | Elbow Drop | 175 | | Vader | Boulder, CO | Vader Bomb | 176 | | Razor Ramon | Chuluota, FL | Razor's Edge | 177 | 178 | We also need to make sure inline code looks good, like if I wanted to talk about `` elements or tell you the good news about `@tailwindcss/typography`. 179 | 180 | ### Sometimes I even use `code` in headings 181 | 182 | Even though it's probably a bad idea, and historically I've had a hard time making it look good. This _"wrap the code blocks in backticks"_ trick works pretty well though really. 183 | 184 | Another thing I've done in the past is put a `code` tag inside of a link, like if I wanted to tell you about the [`tailwindcss/docs`](https://github.com/tailwindcss/docs) repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it. 185 | 186 | #### We haven't used an `h4` yet 187 | 188 | But now we have. Please don't use `h5` or `h6` in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a `before` pseudo-element to scream at you if you use an `h5` or `h6`. 189 | 190 | We don't style them at all out of the box because `h4` elements are already so small that they are the same size as the body copy. What are we supposed to do with an `h5`, make it _smaller_ than the body copy? No thanks. 191 | 192 | ### We still need to think about stacked headings though. 193 | 194 | #### Let's make sure we don't screw that up with `h4` elements, either. 195 | 196 | Phew, with any luck we have styled the headings above this text and they look pretty good. 197 | 198 | Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document. 199 | 200 | What I've written here is probably long enough, but adding this final sentence can't hurt. 201 | -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- 1 | const withMDX = require('@next/mdx')() 2 | 3 | module.exports = withMDX({ 4 | pageExtensions: ['js', 'jsx', 'mdx'], 5 | }) 6 | -------------------------------------------------------------------------------- /out/404.html: -------------------------------------------------------------------------------- 1 | 404: This page could not be found

    404

    This page could not be found.

    -------------------------------------------------------------------------------- /out/_next/static/bobFJWyewP3Byjcw7qTgg/_buildManifest.js: -------------------------------------------------------------------------------- 1 | self.__BUILD_MANIFEST = {};self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB() -------------------------------------------------------------------------------- /out/_next/static/bobFJWyewP3Byjcw7qTgg/_ssgManifest.js: -------------------------------------------------------------------------------- 1 | self.__SSG_MANIFEST=new Set;self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() -------------------------------------------------------------------------------- /out/_next/static/bobFJWyewP3Byjcw7qTgg/pages/_app.js: -------------------------------------------------------------------------------- 1 | (window.webpackJsonp=window.webpackJsonp||[]).push([[3],{0:function(t,n,e){e("3Ckp"),t.exports=e("bBV7")},"1TCz":function(t,n,e){"use strict";function r(t,n){for(var e=0;ee.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]&&arguments[0],t=[r.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(r.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===r.default.Fragment?e.concat(r.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var s=["name","httpEquiv","charSet","itemProp"];function d(e,t){return e.reduce((function(e,t){var n=r.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(f,[]).reverse().concat(l(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,n=new Set,r={};return function(o){var u=!0;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){var a=o.key.slice(o.key.indexOf("$")+1);e.has(a)?u=!1:e.add(a)}switch(o.type){case"title":case"base":t.has(o.type)?u=!1:t.add(o.type);break;case"meta":for(var i=0,c=s.length;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,r=e.hybrid,o=void 0!==r&&r,u=e.hasQuery;return n||o&&(void 0!==u&&u)}},x9yg:function(e,t,n){"use strict";var r=Object.assign.bind(Object);e.exports=r,e.exports.default=e.exports}},[["EsAr",0,1]]]); -------------------------------------------------------------------------------- /out/_next/static/bobFJWyewP3Byjcw7qTgg/pages/index.js: -------------------------------------------------------------------------------- 1 | (window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"+IV6":function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},"+Sw5":function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n0&&void 0!==arguments[0]&&arguments[0],t=[a.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function p(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var h=["name","httpEquiv","charSet","itemProp"];function c(e,t){return e.reduce((function(e,t){var n=a.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(p,[]).reverse().concat(u(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,n=new Set,a={};return function(o){var r=!0;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){var l=o.key.slice(o.key.indexOf("$")+1);e.has(l)?r=!1:e.add(l)}switch(o.type){case"title":case"base":t.has(o.type)?r=!1:t.add(o.type);break;case"meta":for(var i=0,s=h.length;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var d=o.a.createContext({}),m=function(e){var t=o.a.useContext(d),n=t;return e&&(n="function"===typeof e?e(t):h(h({},t),e)),n},f="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return(o.a.createElement(o.a.Fragment,{},t))}},g=o.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,r=e.originalType,l=e.parentName,i=c(e,["components","mdxType","originalType","parentName"]),s=m(n),u=a,p=s["".concat(l,".").concat(u)]||s[u]||y[u]||r;return n?o.a.createElement(p,h(h({ref:t},i),{},{components:n})):o.a.createElement(p,h({ref:t},i))}));function b(e,t){var n=arguments,a=t&&t.mdxType;if("string"===typeof e||a){var r=n.length,l=new Array(r);l[0]=g;var i={};for(var s in t)hasOwnProperty.call(t,s)&&(i[s]=t[s]);i.originalType=e,i[f]="string"===typeof e?e:a,l[1]=i;for(var u=2;u\n

    Garlic bread with cheese: What the science tells us

    \n

    \n For years parents have espoused the health benefits of eating garlic bread with cheese to their\n children, with the food earning such an iconic status in our culture that kids will often dress\n up as warm, cheesy loaf for Halloween.\n

    \n

    \n But a recent study shows that the celebrated appetizer may be linked to a series of rabies cases\n springing up around the country.\n

    \n \x3c!-- ... --\x3e\n\n')),b("p",null,"For more information about how to use the plugin and the features it includes, ",b("a",i({parentName:"p"},{href:"https://github.com/tailwindcss/typography/blob/master/README.md"}),"read the documentation"),"."),b("hr",null),b("h2",null,"What to expect from here on out"),b("p",null,"What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like ",b("strong",{parentName:"p"},"bold text"),", unordered lists, ordered lists, code blocks, block quotes, ",b("em",{parentName:"p"},"and even italics"),"."),b("p",null,"It's important to cover all of these use cases for a few reasons:"),b("ol",null,b("li",{parentName:"ol"},"We want everything to look good out of the box."),b("li",{parentName:"ol"},"Really just the first reason, that's the whole point of the plugin."),b("li",{parentName:"ol"},"Here's a third pretend reason though a list with three items looks more realistic than a list with two items.")),b("p",null,"Now we're going to try out another header style."),b("h3",null,"Typography should be easy"),b("p",null,"So that's a header for you \u2014 with any luck if we've done our job correctly that will look pretty reasonable."),b("p",null,"Something a wise person once told me about typography is:"),b("blockquote",null,b("p",{parentName:"blockquote"},"Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.")),b("p",null,"It's probably important that images look okay here by default as well:"),b("figure",null,b("img",{src:"https://images.unsplash.com/photo-1556740758-90de374c12ad?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1000&q=80",alt:""}),b("figcaption",null,"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.")),b("p",null,"Now I'm going to show you an example of an unordered list to make sure that looks good, too:"),b("ul",null,b("li",{parentName:"ul"},"So here is the first item in this list."),b("li",{parentName:"ul"},"In this example we're keeping the items short."),b("li",{parentName:"ul"},"Later, we'll use longer, more complex list items.")),b("p",null,"And that's the end of this section."),b("h2",null,"What if we stack headings?"),b("h3",null,"We should make sure that looks good, too."),b("p",null,"Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be."),b("h3",null,"When a heading comes after a paragraph \u2026"),b("p",null,"When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like."),b("ul",null,b("li",{parentName:"ul"},b("p",{parentName:"li"},b("strong",{parentName:"p"},"I often do this thing where list items have headings.")),b("p",{parentName:"li"},"For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right."),b("p",{parentName:"li"},"I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.")),b("li",{parentName:"ul"},b("p",{parentName:"li"},b("strong",{parentName:"p"},"Since this is a list, I need at least two items.")),b("p",{parentName:"li"},"I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.")),b("li",{parentName:"ul"},b("p",{parentName:"li"},b("strong",{parentName:"p"},"It's not a bad idea to add a third item either.")),b("p",{parentName:"li"},"I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it."))),b("p",null,"After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading."),b("h2",null,"Code should look okay by default."),b("p",null,"I think most people are going to use ",b("a",i({parentName:"p"},{href:"https://highlightjs.org/"}),"highlight.js")," or ",b("a",i({parentName:"p"},{href:"https://prismjs.com/"}),"Prism")," or something if they want to style their code blocks but it wouldn't hurt to make them look ",b("em",{parentName:"p"},"okay")," out of the box, even with no syntax highlighting."),b("p",null,"Here's what a default ",b("inlineCode",{parentName:"p"},"tailwind.config.js")," file looks like at the time of writing:"),b("pre",null,b("code",i({parentName:"pre"},{className:"language-js"}),"module.exports = {\n purge: [],\n theme: {\n extend: {},\n },\n variants: {},\n plugins: [],\n}\n")),b("p",null,"Hopefully that looks good enough to you."),b("h3",null,"What about nested lists?"),b("p",null,"Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work."),b("ol",null,b("li",{parentName:"ol"},b("strong",{parentName:"li"},"Nested lists are rarely a good idea."),b("ul",{parentName:"li"},b("li",{parentName:"ul"},'You might feel like you are being really "organized" or something but you are just creating a gross shape on the screen that is hard to read.'),b("li",{parentName:"ul"},"Nested navigation in UIs is a bad idea too, keep things as flat as possible."),b("li",{parentName:"ul"},"Nesting tons of folders in your source code is also not helpful."))),b("li",{parentName:"ol"},b("strong",{parentName:"li"},"Since we need to have more items, here's another one."),b("ul",{parentName:"li"},b("li",{parentName:"ul"},"I'm not sure if we'll bother styling more than two levels deep."),b("li",{parentName:"ul"},"Two is already too much, three is guaranteed to be a bad idea."),b("li",{parentName:"ul"},"If you nest four levels deep you belong in prison."))),b("li",{parentName:"ol"},b("strong",{parentName:"li"},"Two items isn't really a list, three is good though."),b("ul",{parentName:"li"},b("li",{parentName:"ul"},"Again please don't nest lists if you want people to actually read your content."),b("li",{parentName:"ul"},"Nobody wants to look at this."),b("li",{parentName:"ul"},"I'm upset that we even have to bother styling this.")))),b("p",null,"The most annoying thing about lists in Markdown is that ",b("inlineCode",{parentName:"p"},"
  • ")," elements aren't given a child ",b("inlineCode",{parentName:"p"},"

    ")," tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too."),b("ul",null,b("li",{parentName:"ul"},b("p",{parentName:"li"},b("strong",{parentName:"p"},"For example, here's another nested list.")),b("p",{parentName:"li"},"But this time with a second paragraph."),b("ul",{parentName:"li"},b("li",{parentName:"ul"},"These list items won't have ",b("inlineCode",{parentName:"li"},"

    ")," tags"),b("li",{parentName:"ul"},"Because they are only one line each"))),b("li",{parentName:"ul"},b("p",{parentName:"li"},b("strong",{parentName:"p"},"But in this second top-level list item, they will.")),b("p",{parentName:"li"},"This is especially annoying because of the spacing on this paragraph."),b("ul",{parentName:"li"},b("li",{parentName:"ul"},b("p",{parentName:"li"},"As you can see here, because I've added a second line, this list item now has a ",b("inlineCode",{parentName:"p"},"

    ")," tag."),b("p",{parentName:"li"},"This is the second line I'm talking about by the way.")),b("li",{parentName:"ul"},b("p",{parentName:"li"},"Finally here's another list item so it's more like a list.")))),b("li",{parentName:"ul"},b("p",{parentName:"li"},"A closing list item, but with no nested list, because why not?"))),b("p",null,"And finally a sentence to close off this section."),b("h2",null,"There are other elements we need to style"),b("p",null,"I almost forgot to mention links, like ",b("a",i({parentName:"p"},{href:"https://tailwindcss.com"}),"this link to the Tailwind CSS website"),". We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier."),b("p",null,"We even included table styles, check it out:"),b("table",null,b("thead",{parentName:"table"},b("tr",{parentName:"thead"},b("th",i({parentName:"tr"},{align:null}),"Wrestler"),b("th",i({parentName:"tr"},{align:null}),"Origin"),b("th",i({parentName:"tr"},{align:null}),"Finisher"))),b("tbody",{parentName:"table"},b("tr",{parentName:"tbody"},b("td",i({parentName:"tr"},{align:null}),'Bret "The Hitman" Hart'),b("td",i({parentName:"tr"},{align:null}),"Calgary, AB"),b("td",i({parentName:"tr"},{align:null}),"Sharpshooter")),b("tr",{parentName:"tbody"},b("td",i({parentName:"tr"},{align:null}),"Stone Cold Steve Austin"),b("td",i({parentName:"tr"},{align:null}),"Austin, TX"),b("td",i({parentName:"tr"},{align:null}),"Stone Cold Stunner")),b("tr",{parentName:"tbody"},b("td",i({parentName:"tr"},{align:null}),"Randy Savage"),b("td",i({parentName:"tr"},{align:null}),"Sarasota, FL"),b("td",i({parentName:"tr"},{align:null}),"Elbow Drop")),b("tr",{parentName:"tbody"},b("td",i({parentName:"tr"},{align:null}),"Vader"),b("td",i({parentName:"tr"},{align:null}),"Boulder, CO"),b("td",i({parentName:"tr"},{align:null}),"Vader Bomb")),b("tr",{parentName:"tbody"},b("td",i({parentName:"tr"},{align:null}),"Razor Ramon"),b("td",i({parentName:"tr"},{align:null}),"Chuluota, FL"),b("td",i({parentName:"tr"},{align:null}),"Razor's Edge")))),b("p",null,"We also need to make sure inline code looks good, like if I wanted to talk about ",b("inlineCode",{parentName:"p"},"")," elements or tell you the good news about ",b("inlineCode",{parentName:"p"},"@tailwindcss/typography"),"."),b("h3",null,"Sometimes I even use ",b("inlineCode",{parentName:"h3"},"code")," in headings"),b("p",null,"Even though it's probably a bad idea, and historically I've had a hard time making it look good. This ",b("em",{parentName:"p"},'"wrap the code blocks in backticks"')," trick works pretty well though really."),b("p",null,"Another thing I've done in the past is put a ",b("inlineCode",{parentName:"p"},"code")," tag inside of a link, like if I wanted to tell you about the ",b("a",i({parentName:"p"},{href:"https://github.com/tailwindcss/docs"}),b("inlineCode",{parentName:"a"},"tailwindcss/docs"))," repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it."),b("h4",null,"We haven't used an ",b("inlineCode",{parentName:"h4"},"h4")," yet"),b("p",null,"But now we have. Please don't use ",b("inlineCode",{parentName:"p"},"h5")," or ",b("inlineCode",{parentName:"p"},"h6")," in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a ",b("inlineCode",{parentName:"p"},"before")," pseudo-element to scream at you if you use an ",b("inlineCode",{parentName:"p"},"h5")," or ",b("inlineCode",{parentName:"p"},"h6"),"."),b("p",null,"We don't style them at all out of the box because ",b("inlineCode",{parentName:"p"},"h4")," elements are already so small that they are the same size as the body copy. What are we supposed to do with an ",b("inlineCode",{parentName:"p"},"h5"),", make it ",b("em",{parentName:"p"},"smaller")," than the body copy? No thanks."),b("h3",null,"We still need to think about stacked headings though."),b("h4",null,"Let's make sure we don't screw that up with ",b("inlineCode",{parentName:"h4"},"h4")," elements, either."),b("p",null,"Phew, with any luck we have styled the headings above this text and they look pretty good."),b("p",null,"Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document."),b("p",null,"What I've written here is probably long enough, but adding this final sentence can't hurt."))}N.isMDXComponent=!0;var k=o.a.createElement,x=(t.default=function(){return k("div",{className:"antialiased text-gray-900"},k(l.a,null,k("title",null,"Tailwind CSS Typography")),k("div",{className:"px-4 py-10 max-w-3xl mx-auto sm:px-6 sm:py-12 lg:max-w-4xl lg:py-16 lg:px-8 xl:max-w-6xl"},k("article",null,k("h1",{className:"sr-only"},"Tailwind CSS Typography"),k("div",{className:"space-y-10 sm:space-y-12 lg:space-y-20 xl:space-y-24"},k("div",{className:"space-y-10 sm:space-y-0 sm:flex sm:items-center sm:justify-between"},k("svg",{className:"h-6 sm:h-8",fill:"none",viewBox:"0 0 297 24"},k("path",{fill:"#16BDCA",fillRule:"evenodd",d:"M19.418.523c-5.178 0-8.415 2.589-9.71 7.767 1.943-2.59 4.208-3.56 6.797-2.913 1.477.37 2.533 1.44 3.702 2.627 1.903 1.933 4.107 4.17 8.92 4.17 5.178 0 8.414-2.59 9.708-7.768-1.941 2.59-4.207 3.56-6.796 2.913-1.477-.37-2.533-1.441-3.702-2.628C26.434 2.76 24.23.523 19.417.523zm-9.71 11.65c-5.177 0-8.413 2.59-9.708 7.767 1.942-2.589 4.207-3.56 6.796-2.913 1.477.37 2.533 1.441 3.702 2.628 1.904 1.932 4.107 4.169 8.92 4.169 5.178 0 8.414-2.59 9.709-7.767-1.942 2.589-4.208 3.56-6.797 2.912-1.477-.369-2.533-1.44-3.701-2.627-1.904-1.932-4.108-4.169-8.92-4.169z",clipRule:"evenodd"}),k("path",{fill:"#1a202c",d:"M59.31 8.962v-2.79h-3.328V2.414l-2.898.858v2.898h-2.468v2.79h2.468v6.44c0 3.489 1.771 4.723 6.225 4.186v-2.602c-2.2.107-3.327.134-3.327-1.584v-6.44h3.327zM72.013 6.171v1.905c-1.02-1.395-2.603-2.254-4.696-2.254-3.649 0-6.68 3.06-6.68 7.057 0 3.971 3.031 7.057 6.68 7.057 2.093 0 3.676-.859 4.696-2.28v1.931h2.897V6.171h-2.897zm-4.24 11.001c-2.415 0-4.24-1.797-4.24-4.293 0-2.495 1.825-4.293 4.24-4.293s4.24 1.798 4.24 4.293c0 2.496-1.825 4.293-4.24 4.293zM79.737 4.159c1.02 0 1.852-.859 1.852-1.851 0-1.02-.832-1.852-1.852-1.852s-1.851.832-1.851 1.852c0 .992.832 1.85 1.851 1.85zm-1.449 15.428h2.898V6.171h-2.898v13.416zM84.55 19.587h2.898V0h-2.897v19.587zM106.268 6.171l-2.629 9.257-2.791-9.257h-2.763l-2.818 9.257-2.602-9.257h-3.06l4.213 13.416h2.844l2.818-9.042 2.79 9.042h2.844l4.213-13.416h-3.059zM112.91 4.159c1.019 0 1.851-.859 1.851-1.851 0-1.02-.832-1.852-1.851-1.852-1.02 0-1.852.832-1.852 1.852 0 .992.832 1.85 1.852 1.85zm-1.449 15.428h2.898V6.171h-2.898v13.416zM124.78 5.822c-1.824 0-3.273.671-4.159 2.067V6.17h-2.898v13.416h2.898v-7.19c0-2.738 1.503-3.865 3.408-3.865 1.824 0 3.005 1.074 3.005 3.113v7.942h2.898V11.35c0-3.488-2.147-5.528-5.152-5.528zM143.677.805v7.271c-1.019-1.395-2.602-2.254-4.695-2.254-3.649 0-6.681 3.06-6.681 7.057 0 3.971 3.032 7.057 6.681 7.057 2.093 0 3.676-.859 4.695-2.28v1.931h2.898V.805h-2.898zm-4.239 16.367c-2.415 0-4.239-1.797-4.239-4.293 0-2.495 1.824-4.293 4.239-4.293s4.239 1.798 4.239 4.293c0 2.496-1.824 4.293-4.239 4.293z"}),k("path",{fill:"#16BDCA",d:"M161.544 5.748h-10.182v2.61h3.717v11.23h2.728V8.357h3.737v-2.61zM175.997 5.748h-3.084l-3.005 5.773-3.006-5.773h-3.084l4.725 8.442v5.397h2.709V14.19l4.745-8.442zM184.461 5.748h-5.16v13.84h2.728V15.04h2.432c2.669 0 4.725-2.056 4.725-4.646s-2.056-4.646-4.725-4.646zm0 6.741h-2.432V8.3h2.432c1.166 0 2.016.889 2.016 2.095 0 1.186-.85 2.095-2.016 2.095zM199.387 19.864c3.994 0 7.196-3.163 7.196-7.197 0-4.053-3.202-7.196-7.196-7.196-3.994 0-7.177 3.143-7.177 7.196 0 4.034 3.183 7.197 7.177 7.197zm0-2.67c-2.511 0-4.468-1.877-4.468-4.527 0-2.669 1.957-4.547 4.468-4.547s4.468 1.878 4.468 4.547c0 2.65-1.957 4.528-4.468 4.528zM224.061 12.153h-6.94v2.412h4.191c-.474 1.582-1.858 2.63-4.033 2.63-2.886 0-4.725-1.938-4.725-4.508 0-2.63 1.898-4.567 4.527-4.567 1.681 0 3.085.81 3.717 1.918l2.333-1.345c-1.166-1.897-3.4-3.222-6.03-3.222-4.132 0-7.256 3.203-7.256 7.216 0 3.954 3.085 7.177 7.414 7.177 3.974 0 6.802-2.65 6.802-6.643v-1.068zM235.57 19.587h2.946l-3.064-5.22c1.581-.73 2.669-2.293 2.669-4.033 0-2.53-2.057-4.586-4.607-4.586h-5.536v13.84h2.729v-4.805h2.076l2.787 4.804zm-4.863-11.289h2.807c1.028 0 1.878.89 1.878 2.037 0 1.146-.85 2.056-1.878 2.056h-2.807V8.298zM250.996 19.587h2.966l-4.864-13.84h-3.38l-4.844 13.84h2.946l.83-2.491h5.516l.83 2.491zm-5.476-5.041l1.898-5.655 1.898 5.655h-3.796zM262.443 5.748h-5.16v13.84h2.728V15.04h2.432c2.669 0 4.725-2.056 4.725-4.646s-2.056-4.646-4.725-4.646zm0 6.741h-2.432V8.3h2.432c1.167 0 2.017.889 2.017 2.095 0 1.186-.85 2.095-2.017 2.095zM278.79 5.748v5.496h-5.14V5.748h-2.728v13.84h2.728v-5.734h5.14v5.733h2.709V5.747h-2.709zM297 5.748h-3.084l-3.005 5.773-3.006-5.773h-3.084l4.725 8.442v5.397h2.709V14.19L297 5.748z"})),k("div",null,k("a",{href:"https://github.com/tailwindcss/typography",className:"inline-flex items-center py-2 px-3 space-x-2 rounded-md bg-gray-800 text-gray-300 text-sm leading-5 font-medium shadow-lg hover:bg-gray-700 transition ease-in-out duration-100"},k("svg",{className:"h-5 w-5 text-gray-500",fill:"currentColor",viewBox:"0 0 20 20"},k("path",{fillRule:"evenodd",d:"M10 0C4.477 0 0 4.484 0 10.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0110 4.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.203 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.942.359.31.678.921.678 1.856 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0020 10.017C20 4.484 15.522 0 10 0z",clipRule:"evenodd"})),k("span",null,"View on GitHub")))),k("div",{className:"prose prose-sm sm:prose lg:prose-lg xl:prose-2xl mx-auto"},k(N,null))))))},{unstable_runtimeJS:!1})},SDJZ:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},T1e2:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},TqC3:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n("RNiq")}])},WI9V:function(e,t){function n(t,a){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,a)}e.exports=n},Zhxd:function(e,t,n){var a=n("+Sw5");e.exports=function(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}},bxxT:function(e,t,n){"use strict";var a;t.__esModule=!0,t.HeadManagerContext=void 0;var o=((a=n("mXGw"))&&a.__esModule?a:{default:a}).default.createContext(null);t.HeadManagerContext=o},"e+GP":function(e,t){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},"eef+":function(e,t,n){var a=n("WI9V");e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}},iNmH:function(e,t,n){var a=n("+Sw5");e.exports=function(e){if(Array.isArray(e))return a(e)}},kluZ:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},vI6Y:function(e,t,n){"use strict";t.__esModule=!0,t.isInAmpMode=l,t.useAmp=function(){return l(o.default.useContext(r.AmpStateContext))};var a,o=(a=n("mXGw"))&&a.__esModule?a:{default:a},r=n("9rrO");function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,a=e.hybrid,o=void 0!==a&&a,r=e.hasQuery;return n||o&&(void 0!==r&&r)}},x9yg:function(e,t,n){"use strict";var a=Object.assign.bind(Object);e.exports=a,e.exports.default=e.exports}},[["TqC3",0,1]]]); -------------------------------------------------------------------------------- /out/_next/static/chunks/0.js: -------------------------------------------------------------------------------- 1 | (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],{ 2 | 3 | /***/ "../node_modules/next/dist/client/dev/noop.js": 4 | /*!****************************************************!*\ 5 | !*** ../node_modules/next/dist/client/dev/noop.js ***! 6 | \****************************************************/ 7 | /*! no static exports found */ 8 | /***/ (function(module, exports, __webpack_require__) { 9 | 10 | "use strict"; 11 | eval("/* WEBPACK VAR INJECTION */(function(module) {\n\n;\n var _a, _b;\n // Legacy CSS implementations will `eval` browser code in a Node.js context\n // to extract CSS. For backwards compatibility, we need to check we're in a\n // browser context before continuing.\n if (typeof self !== 'undefined' &&\n // AMP / No-JS mode does not inject these helpers:\n '$RefreshHelpers$' in self) {\n var currentExports_1 = module.__proto__.exports;\n var prevExports = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevExports) !== null && _b !== void 0 ? _b : null;\n // This cannot happen in MainTemplate because the exports mismatch between\n // templating and execution.\n self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports_1, module.i);\n // A module can be accepted automatically based on its exports, e.g. when\n // it is a Refresh Boundary.\n if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports_1)) {\n // Save the previous exports on update so we can compare the boundary\n // signatures.\n module.hot.dispose(function (data) {\n data.prevExports = currentExports_1;\n });\n // Unconditionally accept an update to this module, we'll check if it's\n // still a Refresh Boundary later.\n module.hot.accept();\n // This field is set when the previous version of this module was a\n // Refresh Boundary, letting us know we need to check for invalidation or\n // enqueue an update.\n if (prevExports !== null) {\n // A boundary can become ineligible if its exports are incompatible\n // with the previous exports.\n //\n // For example, if you add/remove/change exports, we'll want to\n // re-execute the importing modules, and force those components to\n // re-render. Similarly, if you convert a class component to a\n // function, we want to invalidate the boundary.\n if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevExports, currentExports_1)) {\n module.hot.invalidate();\n }\n else {\n self.$RefreshHelpers$.scheduleUpdate();\n }\n }\n }\n else {\n // Since we just executed the code for the module, it's possible that the\n // new exports made it ineligible for being a boundary.\n // We only care about the case when we were _previously_ a boundary,\n // because we already accepted this update (accidental side effect).\n var isNoLongerABoundary = prevExports !== null;\n if (isNoLongerABoundary) {\n module.hot.invalidate();\n }\n }\n }\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../webpack/buildin/module.js */ \"../node_modules/webpack/buildin/module.js\")(module)))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiIuLi9ub2RlX21vZHVsZXMvbmV4dC9kaXN0L2NsaWVudC9kZXYvbm9vcC5qcy5qcyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../node_modules/next/dist/client/dev/noop.js\n"); 12 | 13 | /***/ }) 14 | 15 | }]); -------------------------------------------------------------------------------- /out/_next/static/css/27d585dfd8ed8f93aa53.css: -------------------------------------------------------------------------------- 1 | /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}strong{font-weight:bolder}code{font-family:monospace,monospace;font-size:1em}small{font-size:80%}img{border-style:none}blockquote,figure,h1,h2,h3,h4,h5,h6,hr,ol,p,pre,ul{margin:0}ol,ul{list-style:none;padding:0}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{box-sizing:border-box;border:0 solid #e2e8f0}hr{border-top-width:1px}img{border-style:solid}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}code,pre{font-family:Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}img,svg{display:block;vertical-align:middle}img{max-width:100%;height:auto}.prose{color:#4a5568;max-width:65ch}.prose .lead{color:#4a5568;font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose a{color:#1a202c;text-decoration:underline}.prose strong{color:#1a202c;font-weight:600}.prose ol{counter-reset:list-counter;margin-top:1.25em;margin-bottom:1.25em}.prose ol>li{position:relative;counter-increment:list-counter;padding-left:1.75em}.prose ol>li:before{content:counter(list-counter) ".";position:absolute;font-weight:400;color:#718096}.prose ul>li{position:relative;padding-left:1.75em}.prose ul>li:before{content:"";position:absolute;background-color:#cbd5e0;border-radius:50%;width:.375em;height:.375em;top:.6875em;left:.25em}.prose hr{border-color:#e2e8f0;border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose blockquote{font-weight:500;font-style:italic;color:#1a202c;border-left-width:.25rem;border-left-color:#e2e8f0;quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose blockquote p:first-of-type:before{content:open-quote}.prose blockquote p:last-of-type:after{content:close-quote}.prose h1{color:#1a202c;font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose h2{color:#1a202c;font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose h3{font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose h3,.prose h4{color:#1a202c;font-weight:600}.prose h4{margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose figure figcaption{color:#718096;font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose code{color:#1a202c;font-weight:600;font-size:.875em}.prose code:after,.prose code:before{content:"`"}.prose pre{color:#e2e8f0;background-color:#2d3748;overflow-x:auto;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose pre code{background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:400;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose pre code:after,.prose pre code:before{content:""}.prose table{width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose thead{color:#1a202c;font-weight:600;border-bottom-width:1px;border-bottom-color:#cbd5e0}.prose thead th{vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose tbody tr{border-bottom-width:1px;border-bottom-color:#e2e8f0}.prose tbody tr:last-child{border-bottom-width:0}.prose tbody td{vertical-align:top;padding:.5714286em}.prose{font-size:1rem;line-height:1.75}.prose p{margin-top:1.25em;margin-bottom:1.25em}.prose figure,.prose img{margin-top:2em;margin-bottom:2em}.prose figure>*{margin-top:0;margin-bottom:0}.prose h2 code{font-size:.875em}.prose h3 code{font-size:.9em}.prose ul{margin-top:1.25em;margin-bottom:1.25em}.prose li{margin-top:.5em;margin-bottom:.5em}.prose ol>li:before{left:0}.prose>ul>li p{margin-top:.75em;margin-bottom:.75em}.prose>ul>li>:first-child{margin-top:1.25em}.prose>ul>li>:last-child{margin-bottom:1.25em}.prose>ol>li>:first-child{margin-top:1.25em}.prose>ol>li>:last-child{margin-bottom:1.25em}.prose ol ol,.prose ol ul,.prose ul ol,.prose ul ul{margin-top:.75em;margin-bottom:.75em}.prose h2+*,.prose h3+*,.prose h4+*,.prose hr+*{margin-top:0}.prose thead th:first-child{padding-left:0}.prose thead th:last-child{padding-right:0}.prose tbody td:first-child{padding-left:0}.prose tbody td:last-child{padding-right:0}.prose>:first-child{margin-top:0}.prose>:last-child{margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm p{margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm .lead{font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm blockquote{margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.1111111em}.prose-sm h1{font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm h2{font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm h3{font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm h4{margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm figure,.prose-sm img{margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm figure>*{margin-top:0;margin-bottom:0}.prose-sm figure figcaption{font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm code{font-size:.8571429em}.prose-sm h2 code{font-size:.9em}.prose-sm h3 code{font-size:.8888889em}.prose-sm pre{font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding:.6666667em 1em}.prose-sm ol,.prose-sm ul{margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm li{margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm ol>li{padding-left:1.5714286em}.prose-sm ol>li:before{left:0}.prose-sm ul>li{padding-left:1.5714286em}.prose-sm ul>li:before{height:.3571429em;width:.3571429em;top:.67857em;left:.2142857em}.prose-sm>ul>li p{margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm>ul>li>:first-child{margin-top:1.1428571em}.prose-sm>ul>li>:last-child{margin-bottom:1.1428571em}.prose-sm>ol>li>:first-child{margin-top:1.1428571em}.prose-sm>ol>li>:last-child{margin-bottom:1.1428571em}.prose-sm ol ol,.prose-sm ol ul,.prose-sm ul ol,.prose-sm ul ul{margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm hr{margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm h2+*,.prose-sm h3+*,.prose-sm h4+*,.prose-sm hr+*{margin-top:0}.prose-sm table{font-size:.8571429em;line-height:1.5}.prose-sm thead th{padding-right:1em;padding-bottom:.6666667em;padding-left:1em}.prose-sm thead th:first-child{padding-left:0}.prose-sm thead th:last-child{padding-right:0}.prose-sm tbody td{padding:.6666667em 1em}.prose-sm tbody td:first-child{padding-left:0}.prose-sm tbody td:last-child{padding-right:0}.prose-sm>:first-child{margin-top:0}.prose-sm>:last-child{margin-bottom:0}.space-x-2>:not(template)~:not(template){--space-x-reverse:0;margin-right:calc(0.5rem*var(--space-x-reverse));margin-left:calc(0.5rem*(1 - var(--space-x-reverse)))}.space-y-10>:not(template)~:not(template){--space-y-reverse:0;margin-top:calc(2.5rem*(1 - var(--space-y-reverse)));margin-bottom:calc(2.5rem*var(--space-y-reverse))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.bg-gray-800{--bg-opacity:1;background-color:#2d3748;background-color:rgba(45,55,72,var(--bg-opacity))}.hover\:bg-gray-700:hover{--bg-opacity:1;background-color:#4a5568;background-color:rgba(74,85,104,var(--bg-opacity))}.rounded-md{border-radius:.375rem}.block{display:block}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.items-center{align-items:center}.font-medium{font-weight:500}.h-5{height:1.25rem}.h-6{height:1.5rem}.text-sm{font-size:.875rem}.leading-5{line-height:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.max-w-3xl{max-width:48rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.absolute{position:absolute}.shadow-lg{box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.text-gray-300{--text-opacity:1;color:#e2e8f0;color:rgba(226,232,240,var(--text-opacity))}.text-gray-500{--text-opacity:1;color:#a0aec0;color:rgba(160,174,192,var(--text-opacity))}.text-gray-900{--text-opacity:1;color:#1a202c;color:rgba(26,32,44,var(--text-opacity))}.underline{text-decoration:underline}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.w-5{width:1.25rem}.transition{transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}@media (min-width:640px){.sm\:prose{color:#4a5568;max-width:65ch}.sm\:prose a{color:#1a202c;text-decoration:underline}.sm\:prose strong{color:#1a202c;font-weight:600}.sm\:prose ol{counter-reset:list-counter;margin-top:1.25em;margin-bottom:1.25em}.sm\:prose ol>li{position:relative;counter-increment:list-counter;padding-left:1.75em}.sm\:prose ol>li:before{content:counter(list-counter) ".";position:absolute;font-weight:400;color:#718096}.sm\:prose ul>li{position:relative;padding-left:1.75em}.sm\:prose ul>li:before{content:"";position:absolute;background-color:#cbd5e0;border-radius:50%;width:.375em;height:.375em;top:.6875em;left:.25em}.sm\:prose hr{border-color:#e2e8f0;border-top-width:1px;margin-top:3em;margin-bottom:3em}.sm\:prose blockquote{font-weight:500;font-style:italic;color:#1a202c;border-left-width:.25rem;border-left-color:#e2e8f0;quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.sm\:prose blockquote p:first-of-type:before{content:open-quote}.sm\:prose blockquote p:last-of-type:after{content:close-quote}.sm\:prose h1{color:#1a202c;font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.sm\:prose h2{color:#1a202c;font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.sm\:prose h3{font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.sm\:prose h3,.sm\:prose h4{color:#1a202c;font-weight:600}.sm\:prose h4{margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.sm\:prose figure figcaption{color:#718096;font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.sm\:prose code{color:#1a202c;font-weight:600;font-size:.875em}.sm\:prose code:after,.sm\:prose code:before{content:"`"}.sm\:prose pre{color:#e2e8f0;background-color:#2d3748;overflow-x:auto;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.sm\:prose pre code{background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:400;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.sm\:prose pre code:after,.sm\:prose pre code:before{content:""}.sm\:prose table{width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.sm\:prose thead{color:#1a202c;font-weight:600;border-bottom-width:1px;border-bottom-color:#cbd5e0}.sm\:prose thead th{vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.sm\:prose tbody tr{border-bottom-width:1px;border-bottom-color:#e2e8f0}.sm\:prose tbody tr:last-child{border-bottom-width:0}.sm\:prose tbody td{vertical-align:top;padding:.5714286em}.sm\:prose{font-size:1rem;line-height:1.75}.sm\:prose p{margin-top:1.25em;margin-bottom:1.25em}.sm\:prose figure,.sm\:prose img{margin-top:2em;margin-bottom:2em}.sm\:prose figure>*{margin-top:0;margin-bottom:0}.sm\:prose h2 code{font-size:.875em}.sm\:prose h3 code{font-size:.9em}.sm\:prose ul{margin-top:1.25em;margin-bottom:1.25em}.sm\:prose li{margin-top:.5em;margin-bottom:.5em}.sm\:prose ol>li:before{left:0}.sm\:prose>ul>li p{margin-top:.75em;margin-bottom:.75em}.sm\:prose>ul>li>:first-child{margin-top:1.25em}.sm\:prose>ul>li>:last-child{margin-bottom:1.25em}.sm\:prose>ol>li>:first-child{margin-top:1.25em}.sm\:prose>ol>li>:last-child{margin-bottom:1.25em}.sm\:prose ol ol,.sm\:prose ol ul,.sm\:prose ul ol,.sm\:prose ul ul{margin-top:.75em;margin-bottom:.75em}.sm\:prose h2+*,.sm\:prose h3+*,.sm\:prose h4+*,.sm\:prose hr+*{margin-top:0}.sm\:prose thead th:first-child{padding-left:0}.sm\:prose thead th:last-child{padding-right:0}.sm\:prose tbody td:first-child{padding-left:0}.sm\:prose tbody td:last-child{padding-right:0}.sm\:prose>:first-child{margin-top:0}.sm\:prose>:last-child{margin-bottom:0}.sm\:space-y-0>:not(template)~:not(template){--space-y-reverse:0;margin-top:calc(0px*(1 - var(--space-y-reverse)));margin-bottom:calc(0px*var(--space-y-reverse))}.sm\:space-y-12>:not(template)~:not(template){--space-y-reverse:0;margin-top:calc(3rem*(1 - var(--space-y-reverse)));margin-bottom:calc(3rem*var(--space-y-reverse))}.sm\:flex{display:flex}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:h-8{height:2rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-12{padding-top:3rem;padding-bottom:3rem}}@media (min-width:1024px){.lg\:prose-lg{font-size:1.125rem;line-height:1.7777778}.lg\:prose-lg p{margin-top:1.3333333em;margin-bottom:1.3333333em}.lg\:prose-lg blockquote{margin-top:1.6666667em;margin-bottom:1.6666667em;padding-left:1em}.lg\:prose-lg h1{font-size:2.6666667em;margin-top:0;margin-bottom:.8333333em;line-height:1}.lg\:prose-lg h2{font-size:1.6666667em;margin-top:1.8666667em;margin-bottom:1.0666667em;line-height:1.3333333}.lg\:prose-lg h3{font-size:1.3333333em;margin-top:1.6666667em;margin-bottom:.6666667em;line-height:1.5}.lg\:prose-lg h4{margin-top:1.7777778em;margin-bottom:.4444444em;line-height:1.5555556}.lg\:prose-lg figure,.lg\:prose-lg img{margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\:prose-lg figure>*{margin-top:0;margin-bottom:0}.lg\:prose-lg figure figcaption{font-size:.8888889em;line-height:1.5;margin-top:1em}.lg\:prose-lg code{font-size:.8888889em}.lg\:prose-lg h2 code{font-size:.8666667em}.lg\:prose-lg h3 code{font-size:.875em}.lg\:prose-lg pre{font-size:.8888889em;line-height:1.75;margin-top:2em;margin-bottom:2em;border-radius:.375rem;padding:1em 1.5em}.lg\:prose-lg ol,.lg\:prose-lg ul{margin-top:1.3333333em;margin-bottom:1.3333333em}.lg\:prose-lg li{margin-top:.6666667em;margin-bottom:.6666667em}.lg\:prose-lg ol>li{padding-left:1.6666667em}.lg\:prose-lg ol>li:before{left:0}.lg\:prose-lg ul>li{padding-left:1.6666667em}.lg\:prose-lg ul>li:before{width:.3333333em;height:.3333333em;top:.72222em;left:.2222222em}.lg\:prose-lg>ul>li p{margin-top:.8888889em;margin-bottom:.8888889em}.lg\:prose-lg>ul>li>:first-child{margin-top:1.3333333em}.lg\:prose-lg>ul>li>:last-child{margin-bottom:1.3333333em}.lg\:prose-lg>ol>li>:first-child{margin-top:1.3333333em}.lg\:prose-lg>ol>li>:last-child{margin-bottom:1.3333333em}.lg\:prose-lg ol ol,.lg\:prose-lg ol ul,.lg\:prose-lg ul ol,.lg\:prose-lg ul ul{margin-top:.8888889em;margin-bottom:.8888889em}.lg\:prose-lg hr{margin-top:3.1111111em;margin-bottom:3.1111111em}.lg\:prose-lg h2+*,.lg\:prose-lg h3+*,.lg\:prose-lg h4+*,.lg\:prose-lg hr+*{margin-top:0}.lg\:prose-lg table{font-size:.8888889em;line-height:1.5}.lg\:prose-lg thead th{padding-right:.75em;padding-bottom:.75em;padding-left:.75em}.lg\:prose-lg thead th:first-child{padding-left:0}.lg\:prose-lg thead th:last-child{padding-right:0}.lg\:prose-lg tbody td{padding:.75em}.lg\:prose-lg tbody td:first-child{padding-left:0}.lg\:prose-lg tbody td:last-child{padding-right:0}.lg\:prose-lg>:first-child{margin-top:0}.lg\:prose-lg>:last-child{margin-bottom:0}.lg\:space-y-20>:not(template)~:not(template){--space-y-reverse:0;margin-top:calc(5rem*(1 - var(--space-y-reverse)));margin-bottom:calc(5rem*var(--space-y-reverse))}.lg\:max-w-4xl{max-width:56rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:py-16{padding-top:4rem;padding-bottom:4rem}}@media (min-width:1280px){.xl\:prose-2xl{font-size:1.5rem;line-height:1.6666667}.xl\:prose-2xl p{margin-top:1.3333333em;margin-bottom:1.3333333em}.xl\:prose-2xl blockquote{margin-top:1.7777778em;margin-bottom:1.7777778em;padding-left:1.1111111em}.xl\:prose-2xl h1{font-size:2.6666667em;margin-top:0;margin-bottom:.875em;line-height:1}.xl\:prose-2xl h2{font-size:2em;margin-top:1.5em;margin-bottom:.8333333em;line-height:1.0833333}.xl\:prose-2xl h3{font-size:1.5em;margin-top:1.5555556em;margin-bottom:.6666667em;line-height:1.2222222}.xl\:prose-2xl h4{margin-top:1.6666667em;margin-bottom:.6666667em;line-height:1.5}.xl\:prose-2xl figure,.xl\:prose-2xl img{margin-top:2em;margin-bottom:2em}.xl\:prose-2xl figure>*{margin-top:0;margin-bottom:0}.xl\:prose-2xl figure figcaption{font-size:.8333333em;line-height:1.6;margin-top:1em}.xl\:prose-2xl code{font-size:.8333333em}.xl\:prose-2xl h2 code{font-size:.875em}.xl\:prose-2xl h3 code{font-size:.8888889em}.xl\:prose-2xl pre{font-size:.8333333em;line-height:1.8;margin-top:2em;margin-bottom:2em;border-radius:.5rem;padding:1.2em 1.6em}.xl\:prose-2xl ol,.xl\:prose-2xl ul{margin-top:1.3333333em;margin-bottom:1.3333333em}.xl\:prose-2xl li{margin-top:.5em;margin-bottom:.5em}.xl\:prose-2xl ol>li{padding-left:1.6666667em}.xl\:prose-2xl ol>li:before{left:0}.xl\:prose-2xl ul>li{padding-left:1.6666667em}.xl\:prose-2xl ul>li:before{width:.3333333em;height:.3333333em;top:.66667em;left:.25em}.xl\:prose-2xl>ul>li p{margin-top:.8333333em;margin-bottom:.8333333em}.xl\:prose-2xl>ul>li>:first-child{margin-top:1.3333333em}.xl\:prose-2xl>ul>li>:last-child{margin-bottom:1.3333333em}.xl\:prose-2xl>ol>li>:first-child{margin-top:1.3333333em}.xl\:prose-2xl>ol>li>:last-child{margin-bottom:1.3333333em}.xl\:prose-2xl ol ol,.xl\:prose-2xl ol ul,.xl\:prose-2xl ul ol,.xl\:prose-2xl ul ul{margin-top:.6666667em;margin-bottom:.6666667em}.xl\:prose-2xl hr{margin-top:3em;margin-bottom:3em}.xl\:prose-2xl h2+*,.xl\:prose-2xl h3+*,.xl\:prose-2xl h4+*,.xl\:prose-2xl hr+*{margin-top:0}.xl\:prose-2xl table{font-size:.8333333em;line-height:1.4}.xl\:prose-2xl thead th{padding-right:.6em;padding-bottom:.8em;padding-left:.6em}.xl\:prose-2xl thead th:first-child{padding-left:0}.xl\:prose-2xl thead th:last-child{padding-right:0}.xl\:prose-2xl tbody td{padding:.8em .6em}.xl\:prose-2xl tbody td:first-child{padding-left:0}.xl\:prose-2xl tbody td:last-child{padding-right:0}.xl\:prose-2xl>:first-child{margin-top:0}.xl\:prose-2xl>:last-child{margin-bottom:0}.xl\:space-y-24>:not(template)~:not(template){--space-y-reverse:0;margin-top:calc(6rem*(1 - var(--space-y-reverse)));margin-bottom:calc(6rem*var(--space-y-reverse))}.xl\:max-w-6xl{max-width:72rem}} -------------------------------------------------------------------------------- /out/_next/static/css/dc01097aa72d35a5aff2.css: -------------------------------------------------------------------------------- 1 | /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */body{margin:0}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}strong{font-weight:bolder}code{font-family:monospace,monospace;font-size:1em}small{font-size:80%}img{border-style:none}blockquote,figure,h1,h2,h3,h4,h5,h6,hr,ol,p,pre,ul{margin:0}ol,ul{list-style:none;padding:0}*,:after,:before{box-sizing:border-box;border:0 solid #e2e8f0}hr{border-top-width:1px}img{border-style:solid}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}code,pre{font-family:Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}img,svg{display:block;vertical-align:middle}img{max-width:100%;height:auto}.prose{color:#4a5568;max-width:65ch}.prose .lead{color:#4a5568;font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose a{color:#1a202c;text-decoration:underline}.prose strong{color:#1a202c;font-weight:600}.prose ol{counter-reset:list-counter;margin-top:1.25em;margin-bottom:1.25em}.prose ol>li{position:relative;counter-increment:list-counter;padding-left:1.75em}.prose ol>li:before{content:counter(list-counter) ".";position:absolute;font-weight:400;color:#718096}.prose ul>li{position:relative;padding-left:1.75em}.prose ul>li:before{content:"";position:absolute;background-color:#cbd5e0;border-radius:50%;width:.375em;height:.375em;top:.6875em;left:.25em}.prose hr{border-color:#e2e8f0;border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose blockquote{font-weight:500;font-style:italic;color:#1a202c;border-left-width:.25rem;border-left-color:#e2e8f0;quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose blockquote p:first-of-type:before{content:open-quote}.prose blockquote p:last-of-type:after{content:close-quote}.prose h1{color:#1a202c;font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose h2{color:#1a202c;font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose h3{font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose h3,.prose h4{color:#1a202c;font-weight:600}.prose h4{margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose figure figcaption{color:#718096;font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose code{color:#1a202c;font-weight:600;font-size:.875em}.prose code:after,.prose code:before{content:"`"}.prose pre{color:#e2e8f0;background-color:#2d3748;overflow-x:auto;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose pre code{background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:400;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose pre code:after,.prose pre code:before{content:""}.prose table{width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose thead{color:#1a202c;font-weight:600;border-bottom-width:1px;border-bottom-color:#cbd5e0}.prose thead th{vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose tbody tr{border-bottom-width:1px;border-bottom-color:#e2e8f0}.prose tbody tr:last-child{border-bottom-width:0}.prose tbody td{vertical-align:top;padding:.5714286em}.prose{font-size:1rem;line-height:1.75}.prose p{margin-top:1.25em;margin-bottom:1.25em}.prose figure,.prose img{margin-top:2em;margin-bottom:2em}.prose figure>*{margin-top:0;margin-bottom:0}.prose h2 code{font-size:.875em}.prose h3 code{font-size:.9em}.prose ul{margin-top:1.25em;margin-bottom:1.25em}.prose li{margin-top:.5em;margin-bottom:.5em}.prose ol>li:before{left:0}.prose>ul>li p{margin-top:.75em;margin-bottom:.75em}.prose>ul>li>:first-child{margin-top:1.25em}.prose>ul>li>:last-child{margin-bottom:1.25em}.prose>ol>li>:first-child{margin-top:1.25em}.prose>ol>li>:last-child{margin-bottom:1.25em}.prose ol ol,.prose ol ul,.prose ul ol,.prose ul ul{margin-top:.75em;margin-bottom:.75em}.prose h2+*,.prose h3+*,.prose h4+*,.prose hr+*{margin-top:0}.prose thead th:first-child{padding-left:0}.prose thead th:last-child{padding-right:0}.prose tbody td:first-child{padding-left:0}.prose tbody td:last-child{padding-right:0}.prose>:first-child{margin-top:0}.prose>:last-child{margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm p{margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm .lead{font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm blockquote{margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.1111111em}.prose-sm h1{font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm h2{font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm h3{font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm h4{margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm figure,.prose-sm img{margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm figure>*{margin-top:0;margin-bottom:0}.prose-sm figure figcaption{font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm code{font-size:.8571429em}.prose-sm h2 code{font-size:.9em}.prose-sm h3 code{font-size:.8888889em}.prose-sm pre{font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding:.6666667em 1em}.prose-sm ol,.prose-sm ul{margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm li{margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm ol>li{padding-left:1.5714286em}.prose-sm ol>li:before{left:0}.prose-sm ul>li{padding-left:1.5714286em}.prose-sm ul>li:before{height:.3571429em;width:.3571429em;top:.67857em;left:.2142857em}.prose-sm>ul>li p{margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm>ul>li>:first-child{margin-top:1.1428571em}.prose-sm>ul>li>:last-child{margin-bottom:1.1428571em}.prose-sm>ol>li>:first-child{margin-top:1.1428571em}.prose-sm>ol>li>:last-child{margin-bottom:1.1428571em}.prose-sm ol ol,.prose-sm ol ul,.prose-sm ul ol,.prose-sm ul ul{margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm hr{margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm h2+*,.prose-sm h3+*,.prose-sm h4+*,.prose-sm hr+*{margin-top:0}.prose-sm table{font-size:.8571429em;line-height:1.5}.prose-sm thead th{padding-right:1em;padding-bottom:.6666667em;padding-left:1em}.prose-sm thead th:first-child{padding-left:0}.prose-sm thead th:last-child{padding-right:0}.prose-sm tbody td{padding:.6666667em 1em}.prose-sm tbody td:first-child{padding-left:0}.prose-sm tbody td:last-child{padding-right:0}.prose-sm>:first-child{margin-top:0}.prose-sm>:last-child{margin-bottom:0}.space-x-2>:not(template)~:not(template){--space-x-reverse:0;margin-right:calc(0.5rem*var(--space-x-reverse));margin-left:calc(0.5rem*(1 - var(--space-x-reverse)))}.space-y-10>:not(template)~:not(template){--space-y-reverse:0;margin-top:calc(2.5rem*(1 - var(--space-y-reverse)));margin-bottom:calc(2.5rem*var(--space-y-reverse))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.bg-gray-800{--bg-opacity:1;background-color:#2d3748;background-color:rgba(45,55,72,var(--bg-opacity))}.hover\:bg-gray-700:hover{--bg-opacity:1;background-color:#4a5568;background-color:rgba(74,85,104,var(--bg-opacity))}.rounded-md{border-radius:.375rem}.block{display:block}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.items-center{align-items:center}.font-medium{font-weight:500}.h-5{height:1.25rem}.h-6{height:1.5rem}.text-sm{font-size:.875rem}.leading-5{line-height:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.max-w-3xl{max-width:48rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.absolute{position:absolute}.shadow-lg{box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.text-gray-300{--text-opacity:1;color:#e2e8f0;color:rgba(226,232,240,var(--text-opacity))}.text-gray-500{--text-opacity:1;color:#a0aec0;color:rgba(160,174,192,var(--text-opacity))}.text-gray-900{--text-opacity:1;color:#1a202c;color:rgba(26,32,44,var(--text-opacity))}.underline{text-decoration:underline}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.w-5{width:1.25rem}.transition{transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}@media (min-width:640px){.sm\:prose{color:#4a5568;max-width:65ch}.sm\:prose a{color:#1a202c;text-decoration:underline}.sm\:prose strong{color:#1a202c;font-weight:600}.sm\:prose ol{counter-reset:list-counter;margin-top:1.25em;margin-bottom:1.25em}.sm\:prose ol>li{position:relative;counter-increment:list-counter;padding-left:1.75em}.sm\:prose ol>li:before{content:counter(list-counter) ".";position:absolute;font-weight:400;color:#718096}.sm\:prose ul>li{position:relative;padding-left:1.75em}.sm\:prose ul>li:before{content:"";position:absolute;background-color:#cbd5e0;border-radius:50%;width:.375em;height:.375em;top:.6875em;left:.25em}.sm\:prose hr{border-color:#e2e8f0;border-top-width:1px;margin-top:3em;margin-bottom:3em}.sm\:prose blockquote{font-weight:500;font-style:italic;color:#1a202c;border-left-width:.25rem;border-left-color:#e2e8f0;quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.sm\:prose blockquote p:first-of-type:before{content:open-quote}.sm\:prose blockquote p:last-of-type:after{content:close-quote}.sm\:prose h1{color:#1a202c;font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.sm\:prose h2{color:#1a202c;font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.sm\:prose h3{font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.sm\:prose h3,.sm\:prose h4{color:#1a202c;font-weight:600}.sm\:prose h4{margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.sm\:prose figure figcaption{color:#718096;font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.sm\:prose code{color:#1a202c;font-weight:600;font-size:.875em}.sm\:prose code:after,.sm\:prose code:before{content:"`"}.sm\:prose pre{color:#e2e8f0;background-color:#2d3748;overflow-x:auto;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.sm\:prose pre code{background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:400;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.sm\:prose pre code:after,.sm\:prose pre code:before{content:""}.sm\:prose table{width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.sm\:prose thead{color:#1a202c;font-weight:600;border-bottom-width:1px;border-bottom-color:#cbd5e0}.sm\:prose thead th{vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.sm\:prose tbody tr{border-bottom-width:1px;border-bottom-color:#e2e8f0}.sm\:prose tbody tr:last-child{border-bottom-width:0}.sm\:prose tbody td{vertical-align:top;padding:.5714286em}.sm\:prose{font-size:1rem;line-height:1.75}.sm\:prose p{margin-top:1.25em;margin-bottom:1.25em}.sm\:prose figure,.sm\:prose img{margin-top:2em;margin-bottom:2em}.sm\:prose figure>*{margin-top:0;margin-bottom:0}.sm\:prose h2 code{font-size:.875em}.sm\:prose h3 code{font-size:.9em}.sm\:prose ul{margin-top:1.25em;margin-bottom:1.25em}.sm\:prose li{margin-top:.5em;margin-bottom:.5em}.sm\:prose ol>li:before{left:0}.sm\:prose>ul>li p{margin-top:.75em;margin-bottom:.75em}.sm\:prose>ul>li>:first-child{margin-top:1.25em}.sm\:prose>ul>li>:last-child{margin-bottom:1.25em}.sm\:prose>ol>li>:first-child{margin-top:1.25em}.sm\:prose>ol>li>:last-child{margin-bottom:1.25em}.sm\:prose ol ol,.sm\:prose ol ul,.sm\:prose ul ol,.sm\:prose ul ul{margin-top:.75em;margin-bottom:.75em}.sm\:prose h2+*,.sm\:prose h3+*,.sm\:prose h4+*,.sm\:prose hr+*{margin-top:0}.sm\:prose thead th:first-child{padding-left:0}.sm\:prose thead th:last-child{padding-right:0}.sm\:prose tbody td:first-child{padding-left:0}.sm\:prose tbody td:last-child{padding-right:0}.sm\:prose>:first-child{margin-top:0}.sm\:prose>:last-child{margin-bottom:0}.sm\:space-y-0>:not(template)~:not(template){--space-y-reverse:0;margin-top:calc(0px*(1 - var(--space-y-reverse)));margin-bottom:calc(0px*var(--space-y-reverse))}.sm\:space-y-12>:not(template)~:not(template){--space-y-reverse:0;margin-top:calc(3rem*(1 - var(--space-y-reverse)));margin-bottom:calc(3rem*var(--space-y-reverse))}.sm\:flex{display:flex}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:h-8{height:2rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-12{padding-top:3rem;padding-bottom:3rem}}@media (min-width:1024px){.lg\:prose-lg{font-size:1.125rem;line-height:1.7777778}.lg\:prose-lg p{margin-top:1.3333333em;margin-bottom:1.3333333em}.lg\:prose-lg blockquote{margin-top:1.6666667em;margin-bottom:1.6666667em;padding-left:1em}.lg\:prose-lg h1{font-size:2.6666667em;margin-top:0;margin-bottom:.8333333em;line-height:1}.lg\:prose-lg h2{font-size:1.6666667em;margin-top:1.8666667em;margin-bottom:1.0666667em;line-height:1.3333333}.lg\:prose-lg h3{font-size:1.3333333em;margin-top:1.6666667em;margin-bottom:.6666667em;line-height:1.5}.lg\:prose-lg h4{margin-top:1.7777778em;margin-bottom:.4444444em;line-height:1.5555556}.lg\:prose-lg figure,.lg\:prose-lg img{margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\:prose-lg figure>*{margin-top:0;margin-bottom:0}.lg\:prose-lg figure figcaption{font-size:.8888889em;line-height:1.5;margin-top:1em}.lg\:prose-lg code{font-size:.8888889em}.lg\:prose-lg h2 code{font-size:.8666667em}.lg\:prose-lg h3 code{font-size:.875em}.lg\:prose-lg pre{font-size:.8888889em;line-height:1.75;margin-top:2em;margin-bottom:2em;border-radius:.375rem;padding:1em 1.5em}.lg\:prose-lg ol,.lg\:prose-lg ul{margin-top:1.3333333em;margin-bottom:1.3333333em}.lg\:prose-lg li{margin-top:.6666667em;margin-bottom:.6666667em}.lg\:prose-lg ol>li{padding-left:1.6666667em}.lg\:prose-lg ol>li:before{left:0}.lg\:prose-lg ul>li{padding-left:1.6666667em}.lg\:prose-lg ul>li:before{width:.3333333em;height:.3333333em;top:.72222em;left:.2222222em}.lg\:prose-lg>ul>li p{margin-top:.8888889em;margin-bottom:.8888889em}.lg\:prose-lg>ul>li>:first-child{margin-top:1.3333333em}.lg\:prose-lg>ul>li>:last-child{margin-bottom:1.3333333em}.lg\:prose-lg>ol>li>:first-child{margin-top:1.3333333em}.lg\:prose-lg>ol>li>:last-child{margin-bottom:1.3333333em}.lg\:prose-lg ol ol,.lg\:prose-lg ol ul,.lg\:prose-lg ul ol,.lg\:prose-lg ul ul{margin-top:.8888889em;margin-bottom:.8888889em}.lg\:prose-lg hr{margin-top:3.1111111em;margin-bottom:3.1111111em}.lg\:prose-lg h2+*,.lg\:prose-lg h3+*,.lg\:prose-lg h4+*,.lg\:prose-lg hr+*{margin-top:0}.lg\:prose-lg table{font-size:.8888889em;line-height:1.5}.lg\:prose-lg thead th{padding-right:.75em;padding-bottom:.75em;padding-left:.75em}.lg\:prose-lg thead th:first-child{padding-left:0}.lg\:prose-lg thead th:last-child{padding-right:0}.lg\:prose-lg tbody td{padding:.75em}.lg\:prose-lg tbody td:first-child{padding-left:0}.lg\:prose-lg tbody td:last-child{padding-right:0}.lg\:prose-lg>:first-child{margin-top:0}.lg\:prose-lg>:last-child{margin-bottom:0}.lg\:space-y-20>:not(template)~:not(template){--space-y-reverse:0;margin-top:calc(5rem*(1 - var(--space-y-reverse)));margin-bottom:calc(5rem*var(--space-y-reverse))}.lg\:max-w-4xl{max-width:56rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:py-16{padding-top:4rem;padding-bottom:4rem}}@media (min-width:1280px){.xl\:prose-2xl{font-size:1.5rem;line-height:1.6666667}.xl\:prose-2xl p{margin-top:1.3333333em;margin-bottom:1.3333333em}.xl\:prose-2xl blockquote{margin-top:1.7777778em;margin-bottom:1.7777778em;padding-left:1.1111111em}.xl\:prose-2xl h1{font-size:2.6666667em;margin-top:0;margin-bottom:.875em;line-height:1}.xl\:prose-2xl h2{font-size:2em;margin-top:1.5em;margin-bottom:.8333333em;line-height:1.0833333}.xl\:prose-2xl h3{font-size:1.5em;margin-top:1.5555556em;margin-bottom:.6666667em;line-height:1.2222222}.xl\:prose-2xl h4{margin-top:1.6666667em;margin-bottom:.6666667em;line-height:1.5}.xl\:prose-2xl figure,.xl\:prose-2xl img{margin-top:2em;margin-bottom:2em}.xl\:prose-2xl figure>*{margin-top:0;margin-bottom:0}.xl\:prose-2xl figure figcaption{font-size:.8333333em;line-height:1.6;margin-top:1em}.xl\:prose-2xl code{font-size:.8333333em}.xl\:prose-2xl h2 code{font-size:.875em}.xl\:prose-2xl h3 code{font-size:.8888889em}.xl\:prose-2xl pre{font-size:.8333333em;line-height:1.8;margin-top:2em;margin-bottom:2em;border-radius:.5rem;padding:1.2em 1.6em}.xl\:prose-2xl ol,.xl\:prose-2xl ul{margin-top:1.3333333em;margin-bottom:1.3333333em}.xl\:prose-2xl li{margin-top:.5em;margin-bottom:.5em}.xl\:prose-2xl ol>li{padding-left:1.6666667em}.xl\:prose-2xl ol>li:before{left:0}.xl\:prose-2xl ul>li{padding-left:1.6666667em}.xl\:prose-2xl ul>li:before{width:.3333333em;height:.3333333em;top:.66667em;left:.25em}.xl\:prose-2xl>ul>li p{margin-top:.8333333em;margin-bottom:.8333333em}.xl\:prose-2xl>ul>li>:first-child{margin-top:1.3333333em}.xl\:prose-2xl>ul>li>:last-child{margin-bottom:1.3333333em}.xl\:prose-2xl>ol>li>:first-child{margin-top:1.3333333em}.xl\:prose-2xl>ol>li>:last-child{margin-bottom:1.3333333em}.xl\:prose-2xl ol ol,.xl\:prose-2xl ol ul,.xl\:prose-2xl ul ol,.xl\:prose-2xl ul ul{margin-top:.6666667em;margin-bottom:.6666667em}.xl\:prose-2xl hr{margin-top:3em;margin-bottom:3em}.xl\:prose-2xl h2+*,.xl\:prose-2xl h3+*,.xl\:prose-2xl h4+*,.xl\:prose-2xl hr+*{margin-top:0}.xl\:prose-2xl table{font-size:.8333333em;line-height:1.4}.xl\:prose-2xl thead th{padding-right:.6em;padding-bottom:.8em;padding-left:.6em}.xl\:prose-2xl thead th:first-child{padding-left:0}.xl\:prose-2xl thead th:last-child{padding-right:0}.xl\:prose-2xl tbody td{padding:.8em .6em}.xl\:prose-2xl tbody td:first-child{padding-left:0}.xl\:prose-2xl tbody td:last-child{padding-right:0}.xl\:prose-2xl>:first-child{margin-top:0}.xl\:prose-2xl>:last-child{margin-bottom:0}.xl\:space-y-24>:not(template)~:not(template){--space-y-reverse:0;margin-top:calc(6rem*(1 - var(--space-y-reverse)));margin-bottom:calc(6rem*var(--space-y-reverse))}.xl\:max-w-6xl{max-width:72rem}} -------------------------------------------------------------------------------- /out/_next/static/csybM67iZ0zv6HoZKDs72/_buildManifest.js: -------------------------------------------------------------------------------- 1 | self.__BUILD_MANIFEST = {};self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB() -------------------------------------------------------------------------------- /out/_next/static/csybM67iZ0zv6HoZKDs72/_ssgManifest.js: -------------------------------------------------------------------------------- 1 | self.__SSG_MANIFEST=new Set;self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() -------------------------------------------------------------------------------- /out/_next/static/csybM67iZ0zv6HoZKDs72/pages/_app.js: -------------------------------------------------------------------------------- 1 | (window.webpackJsonp=window.webpackJsonp||[]).push([[3],{0:function(t,n,e){e("3Ckp"),t.exports=e("bBV7")},"1TCz":function(t,n,e){"use strict";function r(t,n){for(var e=0;ee.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]&&arguments[0],t=[r.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(r.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===r.default.Fragment?e.concat(r.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var s=["name","httpEquiv","charSet","itemProp"];function d(e,t){return e.reduce((function(e,t){var n=r.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(f,[]).reverse().concat(l(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,n=new Set,r={};return function(o){var u=!0;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){var a=o.key.slice(o.key.indexOf("$")+1);e.has(a)?u=!1:e.add(a)}switch(o.type){case"title":case"base":t.has(o.type)?u=!1:t.add(o.type);break;case"meta":for(var i=0,c=s.length;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,r=e.hybrid,o=void 0!==r&&r,u=e.hasQuery;return n||o&&(void 0!==u&&u)}},x9yg:function(e,t,n){"use strict";var r=Object.assign.bind(Object);e.exports=r,e.exports.default=e.exports}},[["EsAr",0,1]]]); -------------------------------------------------------------------------------- /out/_next/static/csybM67iZ0zv6HoZKDs72/pages/index.js: -------------------------------------------------------------------------------- 1 | (window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"+IV6":function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},"+Sw5":function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n0&&void 0!==arguments[0]&&arguments[0],t=[a.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function p(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var h=["name","httpEquiv","charSet","itemProp"];function c(e,t){return e.reduce((function(e,t){var n=a.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(p,[]).reverse().concat(u(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,n=new Set,a={};return function(o){var r=!0;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){var l=o.key.slice(o.key.indexOf("$")+1);e.has(l)?r=!1:e.add(l)}switch(o.type){case"title":case"base":t.has(o.type)?r=!1:t.add(o.type);break;case"meta":for(var i=0,s=h.length;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var d=o.a.createContext({}),m=function(e){var t=o.a.useContext(d),n=t;return e&&(n="function"===typeof e?e(t):h(h({},t),e)),n},f="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return(o.a.createElement(o.a.Fragment,{},t))}},g=o.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,r=e.originalType,l=e.parentName,i=c(e,["components","mdxType","originalType","parentName"]),s=m(n),u=a,p=s["".concat(l,".").concat(u)]||s[u]||y[u]||r;return n?o.a.createElement(p,h(h({ref:t},i),{},{components:n})):o.a.createElement(p,h({ref:t},i))}));function b(e,t){var n=arguments,a=t&&t.mdxType;if("string"===typeof e||a){var r=n.length,l=new Array(r);l[0]=g;var i={};for(var s in t)hasOwnProperty.call(t,s)&&(i[s]=t[s]);i.originalType=e,i[f]="string"===typeof e?e:a,l[1]=i;for(var u=2;u\n

    Garlic bread with cheese: What the science tells us

    \n

    \n For years parents have espoused the health benefits of eating garlic bread with cheese to their\n children, with the food earning such an iconic status in our culture that kids will often dress\n up as warm, cheesy loaf for Halloween.\n

    \n

    \n But a recent study shows that the celebrated appetizer may be linked to a series of rabies cases\n springing up around the country.\n

    \n \x3c!-- ... --\x3e\n\n')),b("p",null,"For more information about how to use the plugin and the features it includes, ",b("a",i({parentName:"p"},{href:"https://github.com/tailwindcss/typography/blob/master/README.md"}),"read the documentation"),"."),b("hr",null),b("h2",null,"What to expect from here on out"),b("p",null,"What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like ",b("strong",{parentName:"p"},"bold text"),", unordered lists, ordered lists, code blocks, block quotes, ",b("em",{parentName:"p"},"and even italics"),"."),b("p",null,"It's important to cover all of these use cases for a few reasons:"),b("ol",null,b("li",{parentName:"ol"},"We want everything to look good out of the box."),b("li",{parentName:"ol"},"Really just the first reason, that's the whole point of the plugin."),b("li",{parentName:"ol"},"Here's a third pretend reason though a list with three items looks more realistic than a list with two items.")),b("p",null,"Now we're going to try out another header style."),b("h3",null,"Typography should be easy"),b("p",null,"So that's a header for you \u2014 with any luck if we've done our job correctly that will look pretty reasonable."),b("p",null,"Something a wise person once told me about typography is:"),b("blockquote",null,b("p",{parentName:"blockquote"},"Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.")),b("p",null,"It's probably important that images look okay here by default as well:"),b("figure",null,b("img",{src:"https://images.unsplash.com/photo-1556740758-90de374c12ad?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1000&q=80",alt:""}),b("figcaption",null,"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.")),b("p",null,"Now I'm going to show you an example of an unordered list to make sure that looks good, too:"),b("ul",null,b("li",{parentName:"ul"},"So here is the first item in this list."),b("li",{parentName:"ul"},"In this example we're keeping the items short."),b("li",{parentName:"ul"},"Later, we'll use longer, more complex list items.")),b("p",null,"And that's the end of this section."),b("h2",null,"What if we stack headings?"),b("h3",null,"We should make sure that looks good, too."),b("p",null,"Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be."),b("h3",null,"When a heading comes after a paragraph \u2026"),b("p",null,"When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like."),b("ul",null,b("li",{parentName:"ul"},b("p",{parentName:"li"},b("strong",{parentName:"p"},"I often do this thing where list items have headings.")),b("p",{parentName:"li"},"For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right."),b("p",{parentName:"li"},"I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.")),b("li",{parentName:"ul"},b("p",{parentName:"li"},b("strong",{parentName:"p"},"Since this is a list, I need at least two items.")),b("p",{parentName:"li"},"I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.")),b("li",{parentName:"ul"},b("p",{parentName:"li"},b("strong",{parentName:"p"},"It's not a bad idea to add a third item either.")),b("p",{parentName:"li"},"I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it."))),b("p",null,"After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading."),b("h2",null,"Code should look okay by default."),b("p",null,"I think most people are going to use ",b("a",i({parentName:"p"},{href:"https://highlightjs.org/"}),"highlight.js")," or ",b("a",i({parentName:"p"},{href:"https://prismjs.com/"}),"Prism")," or something if they want to style their code blocks but it wouldn't hurt to make them look ",b("em",{parentName:"p"},"okay")," out of the box, even with no syntax highlighting."),b("p",null,"Here's what a default ",b("inlineCode",{parentName:"p"},"tailwind.config.js")," file looks like at the time of writing:"),b("pre",null,b("code",i({parentName:"pre"},{className:"language-js"}),"module.exports = {\n purge: [],\n theme: {\n extend: {},\n },\n variants: {},\n plugins: [],\n}\n")),b("p",null,"Hopefully that looks good enough to you."),b("h3",null,"What about nested lists?"),b("p",null,"Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work."),b("ol",null,b("li",{parentName:"ol"},b("strong",{parentName:"li"},"Nested lists are rarely a good idea."),b("ul",{parentName:"li"},b("li",{parentName:"ul"},'You might feel like you are being really "organized" or something but you are just creating a gross shape on the screen that is hard to read.'),b("li",{parentName:"ul"},"Nested navigation in UIs is a bad idea too, keep things as flat as possible."),b("li",{parentName:"ul"},"Nesting tons of folders in your source code is also not helpful."))),b("li",{parentName:"ol"},b("strong",{parentName:"li"},"Since we need to have more items, here's another one."),b("ul",{parentName:"li"},b("li",{parentName:"ul"},"I'm not sure if we'll bother styling more than two levels deep."),b("li",{parentName:"ul"},"Two is already too much, three is guaranteed to be a bad idea."),b("li",{parentName:"ul"},"If you nest four levels deep you belong in prison."))),b("li",{parentName:"ol"},b("strong",{parentName:"li"},"Two items isn't really a list, three is good though."),b("ul",{parentName:"li"},b("li",{parentName:"ul"},"Again please don't nest lists if you want people to actually read your content."),b("li",{parentName:"ul"},"Nobody wants to look at this."),b("li",{parentName:"ul"},"I'm upset that we even have to bother styling this.")))),b("p",null,"The most annoying thing about lists in Markdown is that ",b("inlineCode",{parentName:"p"},"
  • ")," elements aren't given a child ",b("inlineCode",{parentName:"p"},"

    ")," tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too."),b("ul",null,b("li",{parentName:"ul"},b("p",{parentName:"li"},b("strong",{parentName:"p"},"For example, here's another nested list.")),b("p",{parentName:"li"},"But this time with a second paragraph."),b("ul",{parentName:"li"},b("li",{parentName:"ul"},"These list items won't have ",b("inlineCode",{parentName:"li"},"

    ")," tags"),b("li",{parentName:"ul"},"Because they are only one line each"))),b("li",{parentName:"ul"},b("p",{parentName:"li"},b("strong",{parentName:"p"},"But in this second top-level list item, they will.")),b("p",{parentName:"li"},"This is especially annoying because of the spacing on this paragraph."),b("ul",{parentName:"li"},b("li",{parentName:"ul"},b("p",{parentName:"li"},"As you can see here, because I've added a second line, this list item now has a ",b("inlineCode",{parentName:"p"},"

    ")," tag."),b("p",{parentName:"li"},"This is the second line I'm talking about by the way.")),b("li",{parentName:"ul"},b("p",{parentName:"li"},"Finally here's another list item so it's more like a list.")))),b("li",{parentName:"ul"},b("p",{parentName:"li"},"A closing list item, but with no nested list, because why not?"))),b("p",null,"And finally a sentence to close off this section."),b("h2",null,"There are other elements we need to style"),b("p",null,"I almost forgot to mention links, like ",b("a",i({parentName:"p"},{href:"https://tailwindcss.com"}),"this link to the Tailwind CSS website"),". We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier."),b("p",null,"We even included table styles, check it out:"),b("table",null,b("thead",{parentName:"table"},b("tr",{parentName:"thead"},b("th",i({parentName:"tr"},{align:null}),"Wrestler"),b("th",i({parentName:"tr"},{align:null}),"Origin"),b("th",i({parentName:"tr"},{align:null}),"Finisher"))),b("tbody",{parentName:"table"},b("tr",{parentName:"tbody"},b("td",i({parentName:"tr"},{align:null}),'Bret "The Hitman" Hart'),b("td",i({parentName:"tr"},{align:null}),"Calgary, AB"),b("td",i({parentName:"tr"},{align:null}),"Sharpshooter")),b("tr",{parentName:"tbody"},b("td",i({parentName:"tr"},{align:null}),"Stone Cold Steve Austin"),b("td",i({parentName:"tr"},{align:null}),"Austin, TX"),b("td",i({parentName:"tr"},{align:null}),"Stone Cold Stunner")),b("tr",{parentName:"tbody"},b("td",i({parentName:"tr"},{align:null}),"Randy Savage"),b("td",i({parentName:"tr"},{align:null}),"Sarasota, FL"),b("td",i({parentName:"tr"},{align:null}),"Elbow Drop")),b("tr",{parentName:"tbody"},b("td",i({parentName:"tr"},{align:null}),"Vader"),b("td",i({parentName:"tr"},{align:null}),"Boulder, CO"),b("td",i({parentName:"tr"},{align:null}),"Vader Bomb")),b("tr",{parentName:"tbody"},b("td",i({parentName:"tr"},{align:null}),"Razor Ramon"),b("td",i({parentName:"tr"},{align:null}),"Chuluota, FL"),b("td",i({parentName:"tr"},{align:null}),"Razor's Edge")))),b("p",null,"We also need to make sure inline code looks good, like if I wanted to talk about ",b("inlineCode",{parentName:"p"},"")," elements or tell you the good news about ",b("inlineCode",{parentName:"p"},"@tailwindcss/typography"),"."),b("h3",null,"Sometimes I even use ",b("inlineCode",{parentName:"h3"},"code")," in headings"),b("p",null,"Even though it's probably a bad idea, and historically I've had a hard time making it look good. This ",b("em",{parentName:"p"},'"wrap the code blocks in backticks"')," trick works pretty well though really."),b("p",null,"Another thing I've done in the past is put a ",b("inlineCode",{parentName:"p"},"code")," tag inside of a link, like if I wanted to tell you about the ",b("a",i({parentName:"p"},{href:"https://github.com/tailwindcss/docs"}),b("inlineCode",{parentName:"a"},"tailwindcss/docs"))," repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it."),b("h4",null,"We haven't used an ",b("inlineCode",{parentName:"h4"},"h4")," yet"),b("p",null,"But now we have. Please don't use ",b("inlineCode",{parentName:"p"},"h5")," or ",b("inlineCode",{parentName:"p"},"h6")," in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a ",b("inlineCode",{parentName:"p"},"before")," pseudo-element to scream at you if you use an ",b("inlineCode",{parentName:"p"},"h5")," or ",b("inlineCode",{parentName:"p"},"h6"),"."),b("p",null,"We don't style them at all out of the box because ",b("inlineCode",{parentName:"p"},"h4")," elements are already so small that they are the same size as the body copy. What are we supposed to do with an ",b("inlineCode",{parentName:"p"},"h5"),", make it ",b("em",{parentName:"p"},"smaller")," than the body copy? No thanks."),b("h3",null,"We still need to think about stacked headings though."),b("h4",null,"Let's make sure we don't screw that up with ",b("inlineCode",{parentName:"h4"},"h4")," elements, either."),b("p",null,"Phew, with any luck we have styled the headings above this text and they look pretty good."),b("p",null,"Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document."),b("p",null,"What I've written here is probably long enough, but adding this final sentence can't hurt."))}N.isMDXComponent=!0;var k=o.a.createElement,x=(t.default=function(){return k("div",{className:"antialiased text-gray-900"},k(l.a,null,k("title",null,"Tailwind CSS Typography")),k("div",{className:"px-4 py-10 max-w-3xl mx-auto sm:px-6 sm:py-12 lg:max-w-4xl lg:py-16 lg:px-8 xl:max-w-6xl"},k("article",null,k("h1",{className:"sr-only"},"Tailwind CSS Typography"),k("div",{className:"space-y-10 sm:space-y-12 lg:space-y-20 xl:space-y-24"},k("div",{className:"space-y-10 sm:space-y-0 sm:flex sm:items-center sm:justify-between"},k("svg",{className:"h-6 sm:h-8",fill:"none",viewBox:"0 0 297 24"},k("path",{fill:"#16BDCA",fillRule:"evenodd",d:"M19.418.523c-5.178 0-8.415 2.589-9.71 7.767 1.943-2.59 4.208-3.56 6.797-2.913 1.477.37 2.533 1.44 3.702 2.627 1.903 1.933 4.107 4.17 8.92 4.17 5.178 0 8.414-2.59 9.708-7.768-1.941 2.59-4.207 3.56-6.796 2.913-1.477-.37-2.533-1.441-3.702-2.628C26.434 2.76 24.23.523 19.417.523zm-9.71 11.65c-5.177 0-8.413 2.59-9.708 7.767 1.942-2.589 4.207-3.56 6.796-2.913 1.477.37 2.533 1.441 3.702 2.628 1.904 1.932 4.107 4.169 8.92 4.169 5.178 0 8.414-2.59 9.709-7.767-1.942 2.589-4.208 3.56-6.797 2.912-1.477-.369-2.533-1.44-3.701-2.627-1.904-1.932-4.108-4.169-8.92-4.169z",clipRule:"evenodd"}),k("path",{fill:"#1a202c",d:"M59.31 8.962v-2.79h-3.328V2.414l-2.898.858v2.898h-2.468v2.79h2.468v6.44c0 3.489 1.771 4.723 6.225 4.186v-2.602c-2.2.107-3.327.134-3.327-1.584v-6.44h3.327zM72.013 6.171v1.905c-1.02-1.395-2.603-2.254-4.696-2.254-3.649 0-6.68 3.06-6.68 7.057 0 3.971 3.031 7.057 6.68 7.057 2.093 0 3.676-.859 4.696-2.28v1.931h2.897V6.171h-2.897zm-4.24 11.001c-2.415 0-4.24-1.797-4.24-4.293 0-2.495 1.825-4.293 4.24-4.293s4.24 1.798 4.24 4.293c0 2.496-1.825 4.293-4.24 4.293zM79.737 4.159c1.02 0 1.852-.859 1.852-1.851 0-1.02-.832-1.852-1.852-1.852s-1.851.832-1.851 1.852c0 .992.832 1.85 1.851 1.85zm-1.449 15.428h2.898V6.171h-2.898v13.416zM84.55 19.587h2.898V0h-2.897v19.587zM106.268 6.171l-2.629 9.257-2.791-9.257h-2.763l-2.818 9.257-2.602-9.257h-3.06l4.213 13.416h2.844l2.818-9.042 2.79 9.042h2.844l4.213-13.416h-3.059zM112.91 4.159c1.019 0 1.851-.859 1.851-1.851 0-1.02-.832-1.852-1.851-1.852-1.02 0-1.852.832-1.852 1.852 0 .992.832 1.85 1.852 1.85zm-1.449 15.428h2.898V6.171h-2.898v13.416zM124.78 5.822c-1.824 0-3.273.671-4.159 2.067V6.17h-2.898v13.416h2.898v-7.19c0-2.738 1.503-3.865 3.408-3.865 1.824 0 3.005 1.074 3.005 3.113v7.942h2.898V11.35c0-3.488-2.147-5.528-5.152-5.528zM143.677.805v7.271c-1.019-1.395-2.602-2.254-4.695-2.254-3.649 0-6.681 3.06-6.681 7.057 0 3.971 3.032 7.057 6.681 7.057 2.093 0 3.676-.859 4.695-2.28v1.931h2.898V.805h-2.898zm-4.239 16.367c-2.415 0-4.239-1.797-4.239-4.293 0-2.495 1.824-4.293 4.239-4.293s4.239 1.798 4.239 4.293c0 2.496-1.824 4.293-4.239 4.293z"}),k("path",{fill:"#16BDCA",d:"M161.544 5.748h-10.182v2.61h3.717v11.23h2.728V8.357h3.737v-2.61zM175.997 5.748h-3.084l-3.005 5.773-3.006-5.773h-3.084l4.725 8.442v5.397h2.709V14.19l4.745-8.442zM184.461 5.748h-5.16v13.84h2.728V15.04h2.432c2.669 0 4.725-2.056 4.725-4.646s-2.056-4.646-4.725-4.646zm0 6.741h-2.432V8.3h2.432c1.166 0 2.016.889 2.016 2.095 0 1.186-.85 2.095-2.016 2.095zM199.387 19.864c3.994 0 7.196-3.163 7.196-7.197 0-4.053-3.202-7.196-7.196-7.196-3.994 0-7.177 3.143-7.177 7.196 0 4.034 3.183 7.197 7.177 7.197zm0-2.67c-2.511 0-4.468-1.877-4.468-4.527 0-2.669 1.957-4.547 4.468-4.547s4.468 1.878 4.468 4.547c0 2.65-1.957 4.528-4.468 4.528zM224.061 12.153h-6.94v2.412h4.191c-.474 1.582-1.858 2.63-4.033 2.63-2.886 0-4.725-1.938-4.725-4.508 0-2.63 1.898-4.567 4.527-4.567 1.681 0 3.085.81 3.717 1.918l2.333-1.345c-1.166-1.897-3.4-3.222-6.03-3.222-4.132 0-7.256 3.203-7.256 7.216 0 3.954 3.085 7.177 7.414 7.177 3.974 0 6.802-2.65 6.802-6.643v-1.068zM235.57 19.587h2.946l-3.064-5.22c1.581-.73 2.669-2.293 2.669-4.033 0-2.53-2.057-4.586-4.607-4.586h-5.536v13.84h2.729v-4.805h2.076l2.787 4.804zm-4.863-11.289h2.807c1.028 0 1.878.89 1.878 2.037 0 1.146-.85 2.056-1.878 2.056h-2.807V8.298zM250.996 19.587h2.966l-4.864-13.84h-3.38l-4.844 13.84h2.946l.83-2.491h5.516l.83 2.491zm-5.476-5.041l1.898-5.655 1.898 5.655h-3.796zM262.443 5.748h-5.16v13.84h2.728V15.04h2.432c2.669 0 4.725-2.056 4.725-4.646s-2.056-4.646-4.725-4.646zm0 6.741h-2.432V8.3h2.432c1.167 0 2.017.889 2.017 2.095 0 1.186-.85 2.095-2.017 2.095zM278.79 5.748v5.496h-5.14V5.748h-2.728v13.84h2.728v-5.734h5.14v5.733h2.709V5.747h-2.709zM297 5.748h-3.084l-3.005 5.773-3.006-5.773h-3.084l4.725 8.442v5.397h2.709V14.19L297 5.748z"})),k("div",null,k("a",{href:"https://github.com/tailwindcss/typography",className:"inline-flex items-center py-2 px-3 space-x-2 rounded-md bg-gray-800 text-gray-300 text-sm leading-5 font-medium shadow-lg hover:bg-gray-700 transition ease-in-out duration-100"},k("svg",{className:"h-5 w-5 text-gray-500",fill:"currentColor",viewBox:"0 0 20 20"},k("path",{fillRule:"evenodd",d:"M10 0C4.477 0 0 4.484 0 10.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0110 4.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.203 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.942.359.31.678.921.678 1.856 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0020 10.017C20 4.484 15.522 0 10 0z",clipRule:"evenodd"})),k("span",null,"View on GitHub")))),k("div",{className:"prose prose-sm sm:prose lg:prose-lg xl:prose-2xl mx-auto"},k(N,null))))))},{unstable_runtimeJS:!1})},SDJZ:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},T1e2:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},TqC3:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n("RNiq")}])},WI9V:function(e,t){function n(t,a){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,a)}e.exports=n},Zhxd:function(e,t,n){var a=n("+Sw5");e.exports=function(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}},bxxT:function(e,t,n){"use strict";var a;t.__esModule=!0,t.HeadManagerContext=void 0;var o=((a=n("mXGw"))&&a.__esModule?a:{default:a}).default.createContext(null);t.HeadManagerContext=o},"e+GP":function(e,t){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},"eef+":function(e,t,n){var a=n("WI9V");e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}},iNmH:function(e,t,n){var a=n("+Sw5");e.exports=function(e){if(Array.isArray(e))return a(e)}},kluZ:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},vI6Y:function(e,t,n){"use strict";t.__esModule=!0,t.isInAmpMode=l,t.useAmp=function(){return l(o.default.useContext(r.AmpStateContext))};var a,o=(a=n("mXGw"))&&a.__esModule?a:{default:a},r=n("9rrO");function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,a=e.hybrid,o=void 0!==a&&a,r=e.hasQuery;return n||o&&(void 0!==r&&r)}},x9yg:function(e,t,n){"use strict";var a=Object.assign.bind(Object);e.exports=a,e.exports.default=e.exports}},[["TqC3",0,1]]]); -------------------------------------------------------------------------------- /out/_next/static/development/_buildManifest.js: -------------------------------------------------------------------------------- 1 | self.__BUILD_MANIFEST = {};self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB() -------------------------------------------------------------------------------- /out/_next/static/development/_ssgManifest.js: -------------------------------------------------------------------------------- 1 | self.__SSG_MANIFEST=new Set;self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() -------------------------------------------------------------------------------- /out/_next/static/runtime/main-1c47f61fa50edd6b0de8.js: -------------------------------------------------------------------------------- 1 | (window.webpackJsonp=window.webpackJsonp||[]).push([[6],{"3vO/":function(e,t){Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))}},"8VmE":function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:-1;return{name:e,value:t,delta:0,entries:[],id:o(),isFinal:!1}},c=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},u=!1,s=!1,f=function(e){u=!e.persisted},l=function(){addEventListener("pagehide",f),addEventListener("unload",(function(){}))},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s||(l(),s=!0),addEventListener("visibilitychange",(function(t){var n=t.timeStamp;"hidden"===document.visibilityState&&e({timeStamp:n,isUnloading:u})}),{capture:!0,once:t})},d=function(e,t,n,r){var a;return function(){n&&t.isFinal&&n.disconnect(),t.value>=0&&(r||t.isFinal||"hidden"===document.visibilityState)&&(t.delta=t.value-(a||0),(t.delta||t.isFinal||void 0===a)&&(e(t),a=t.value))}},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=i("CLS",0),r=function(e){e.hadRecentInput||(n.value+=e.value,n.entries.push(e),o())},a=c("layout-shift",r),o=d(e,n,a,t);p((function(e){var t=e.isUnloading;a&&a.takeRecords().map(r),t&&(n.isFinal=!0),o()}))},v=function(){return void 0===r&&(r="hidden"===document.visibilityState?0:1/0,p((function(e){var t=e.timeStamp;return r=t}),!0)),{get timeStamp(){return r}}},h=function(e){var t=i("FCP"),n=v(),r=c("paint",(function(e){"first-contentful-paint"===e.name&&e.startTime1&&void 0!==arguments[1]&&arguments[1],n=i("LCP"),r=v(),a=function(e){var t=e.startTime;t0&&void 0!==s[0]?s[0]:{},n.webpackHMR,e.next=4,U.loadPageScript("/_app");case 4:return a=e.sent,o=a.page,i=a.mod,J=o,i&&i.reportWebVitals&&(W=function(e){var t,n=e.id,r=e.name,a=e.startTime,o=e.value,c=e.duration,u=e.entryType,s=e.entries,f="".concat(Date.now(),"-").concat(Math.floor(Math.random()*(9e12-1))+1e12);s&&s.length&&(t=s[0].startTime),i.reportWebVitals({id:n||f,name:r,startTime:a||t,value:null==o?c:o,label:"mark"===u||"measure"===u?"custom":"web-vital"})}),c=N,e.prev=10,e.next=14,U.loadPage(I);case 14:u=e.sent,V=u.page,e.next=20;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(10),c=e.t0;case 25:if(!window.__NEXT_PRELOADREADY){e.next=29;break}return e.next=29,window.__NEXT_PRELOADREADY(L);case 29:return t.router=X=(0,v.createRouter)(I,M,O,{initialProps:k,pageLoader:U,App:J,Component:V,wrapApp:ce,err:c,isFallback:B,subscription:function(e,t){return Y({App:t,Component:e.Component,props:e.props,err:e.err})}}),Y({App:J,Component:V,props:k,err:c}),e.abrupt("return",z);case 35:e.next=37;break;case 37:case"end":return e.stop()}}),e,null,[[10,22]])})));return function(){return e.apply(this,arguments)}}();function Y(e){return ee.apply(this,arguments)}function ee(){return(ee=a(r.mark((function e(t){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.err){e.next=4;break}return e.next=3,te(t);case 3:return e.abrupt("return");case 4:return e.prev=4,e.next=7,ue(t);case 7:e.next=14;break;case 9:return e.prev=9,e.t0=e.catch(4),e.next=14,te((0,m.default)((0,m.default)({},t),{},{err:e.t0}));case 14:case"end":return e.stop()}}),e,null,[[4,9]])})))).apply(this,arguments)}function te(e){var t=e.App,n=e.err;return console.error(n),U.loadPage("/_error").then((function(r){var a=r.page,o=ce(t),i={Component:a,AppTree:o,router:X,ctx:{err:n,pathname:I,query:M,asPath:O,AppTree:o}};return Promise.resolve(e.props?e.props:(0,T.loadGetInitialProps)(t,i)).then((function(t){return ue((0,m.default)((0,m.default)({},e),{},{err:n,Component:a,props:t}))}))}))}t.default=Q;var ne="function"===typeof y.default.hydrate;function re(){T.ST&&(performance.mark("afterHydrate"),performance.measure("Next.js-before-hydration","navigationStart","beforeRender"),performance.measure("Next.js-hydration","beforeRender","afterHydrate"),W&&performance.getEntriesByName("Next.js-hydration").forEach(W),oe())}function ae(){if(T.ST){performance.mark("afterRender");var e=performance.getEntriesByName("routeChange","mark");e.length&&(performance.measure("Next.js-route-change-to-render",e[0].name,"beforeRender"),performance.measure("Next.js-render","beforeRender","afterRender"),W&&(performance.getEntriesByName("Next.js-render").forEach(W),performance.getEntriesByName("Next.js-route-change-to-render").forEach(W)),oe(),["Next.js-route-change-to-render","Next.js-render"].forEach((function(e){return performance.clearMeasures(e)})))}}function oe(){["beforeRender","afterHydrate","afterRender","routeChange"].forEach((function(e){return performance.clearMarks(e)}))}function ie(e){var t=e.children;return(g.default.createElement(Z,{fn:function(e){return te({App:J,err:e}).catch((function(e){return console.error("Error rendering page: ",e)}))}},g.default.createElement(E.RouterContext.Provider,{value:(0,v.makePublicRouterInstance)(X)},g.default.createElement(_.HeadManagerContext.Provider,{value:$},t))))}var ce=function(e){return function(t){var n=(0,m.default)((0,m.default)({},t),{},{Component:V,err:N,router:X});return(g.default.createElement(ie,null,g.default.createElement(e,n)))}};function ue(e){return se.apply(this,arguments)}function se(){return(se=a(r.mark((function e(t){var n,a,o,i,c,u,s;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.App,a=t.Component,o=t.props,i=t.err,a=a||q.Component,o=o||q.props,c=(0,m.default)((0,m.default)({},o),{},{Component:a,err:i,router:X}),q=c,s=new Promise((function(e,t){G&&G(),u=function(){G=null,e()},G=function(){G=null,t()}})),r=g.default.createElement(fe,{callback:u},g.default.createElement(ie,null,g.default.createElement(n,c))),f=K,T.ST&&performance.mark("beforeRender"),ne?(y.default.hydrate(r,f,re),ne=!1,W&&T.ST&&(0,R.default)(W)):y.default.render(r,f,ae),e.next=10,s;case 10:case"end":return e.stop()}var r,f}),e)})))).apply(this,arguments)}function fe(e){var t=e.callback,n=e.children;return g.default.useLayoutEffect((function(){return t()}),[t]),n}},"pO+a":function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n("H3UU");t.default=function(e){(0,r.getCLS)(e),(0,r.getFID)(e),(0,r.getFCP)(e),(0,r.getLCP)(e),(0,r.getTTFB)(e)}}},[["LwBP",0,1,2]]]); -------------------------------------------------------------------------------- /out/_next/static/runtime/main-7cecce0728ac81eebb83.js: -------------------------------------------------------------------------------- 1 | (window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"3vO/":function(e,t){Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))}},"8VmE":function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:-1;return{name:e,value:t,delta:0,entries:[],id:o(),isFinal:!1}},c=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},u=!1,s=!1,f=function(e){u=!e.persisted},l=function(){addEventListener("pagehide",f),addEventListener("unload",(function(){}))},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s||(l(),s=!0),addEventListener("visibilitychange",(function(t){var n=t.timeStamp;"hidden"===document.visibilityState&&e({timeStamp:n,isUnloading:u})}),{capture:!0,once:t})},d=function(e,t,n,r){var a;return function(){n&&t.isFinal&&n.disconnect(),t.value>=0&&(r||t.isFinal||"hidden"===document.visibilityState)&&(t.delta=t.value-(a||0),(t.delta||t.isFinal||void 0===a)&&(e(t),a=t.value))}},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=i("CLS",0),r=function(e){e.hadRecentInput||(n.value+=e.value,n.entries.push(e),o())},a=c("layout-shift",r),o=d(e,n,a,t);p((function(e){var t=e.isUnloading;a&&a.takeRecords().map(r),t&&(n.isFinal=!0),o()}))},v=function(){return void 0===r&&(r="hidden"===document.visibilityState?0:1/0,p((function(e){var t=e.timeStamp;return r=t}),!0)),{get timeStamp(){return r}}},h=function(e){var t=i("FCP"),n=v(),r=c("paint",(function(e){"first-contentful-paint"===e.name&&e.startTime1&&void 0!==arguments[1]&&arguments[1],n=i("LCP"),r=v(),a=function(e){var t=e.startTime;t0&&void 0!==s[0]?s[0]:{},n.webpackHMR,e.next=4,U.loadPageScript("/_app");case 4:return a=e.sent,o=a.page,i=a.mod,J=o,i&&i.reportWebVitals&&(W=function(e){var t,n=e.id,r=e.name,a=e.startTime,o=e.value,c=e.duration,u=e.entryType,s=e.entries,f="".concat(Date.now(),"-").concat(Math.floor(Math.random()*(9e12-1))+1e12);s&&s.length&&(t=s[0].startTime),i.reportWebVitals({id:n||f,name:r,startTime:a||t,value:null==o?c:o,label:"mark"===u||"measure"===u?"custom":"web-vital"})}),c=N,e.prev=10,e.next=14,U.loadPage(I);case 14:u=e.sent,V=u.page,e.next=20;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(10),c=e.t0;case 25:if(!window.__NEXT_PRELOADREADY){e.next=29;break}return e.next=29,window.__NEXT_PRELOADREADY(L);case 29:return t.router=X=(0,v.createRouter)(I,M,O,{initialProps:k,pageLoader:U,App:J,Component:V,wrapApp:ce,err:c,isFallback:B,subscription:function(e,t){return Y({App:t,Component:e.Component,props:e.props,err:e.err})}}),Y({App:J,Component:V,props:k,err:c}),e.abrupt("return",z);case 35:e.next=37;break;case 37:case"end":return e.stop()}}),e,null,[[10,22]])})));return function(){return e.apply(this,arguments)}}();function Y(e){return ee.apply(this,arguments)}function ee(){return(ee=a(r.mark((function e(t){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.err){e.next=4;break}return e.next=3,te(t);case 3:return e.abrupt("return");case 4:return e.prev=4,e.next=7,ue(t);case 7:e.next=14;break;case 9:return e.prev=9,e.t0=e.catch(4),e.next=14,te((0,m.default)((0,m.default)({},t),{},{err:e.t0}));case 14:case"end":return e.stop()}}),e,null,[[4,9]])})))).apply(this,arguments)}function te(e){var t=e.App,n=e.err;return console.error(n),U.loadPage("/_error").then((function(r){var a=r.page,o=ce(t),i={Component:a,AppTree:o,router:X,ctx:{err:n,pathname:I,query:M,asPath:O,AppTree:o}};return Promise.resolve(e.props?e.props:(0,T.loadGetInitialProps)(t,i)).then((function(t){return ue((0,m.default)((0,m.default)({},e),{},{err:n,Component:a,props:t}))}))}))}t.default=Q;var ne="function"===typeof y.default.hydrate;function re(){T.ST&&(performance.mark("afterHydrate"),performance.measure("Next.js-before-hydration","navigationStart","beforeRender"),performance.measure("Next.js-hydration","beforeRender","afterHydrate"),W&&performance.getEntriesByName("Next.js-hydration").forEach(W),oe())}function ae(){if(T.ST){performance.mark("afterRender");var e=performance.getEntriesByName("routeChange","mark");e.length&&(performance.measure("Next.js-route-change-to-render",e[0].name,"beforeRender"),performance.measure("Next.js-render","beforeRender","afterRender"),W&&(performance.getEntriesByName("Next.js-render").forEach(W),performance.getEntriesByName("Next.js-route-change-to-render").forEach(W)),oe(),["Next.js-route-change-to-render","Next.js-render"].forEach((function(e){return performance.clearMeasures(e)})))}}function oe(){["beforeRender","afterHydrate","afterRender","routeChange"].forEach((function(e){return performance.clearMarks(e)}))}function ie(e){var t=e.children;return(g.default.createElement(Z,{fn:function(e){return te({App:J,err:e}).catch((function(e){return console.error("Error rendering page: ",e)}))}},g.default.createElement(E.RouterContext.Provider,{value:(0,v.makePublicRouterInstance)(X)},g.default.createElement(_.HeadManagerContext.Provider,{value:$},t))))}var ce=function(e){return function(t){var n=(0,m.default)((0,m.default)({},t),{},{Component:V,err:N,router:X});return(g.default.createElement(ie,null,g.default.createElement(e,n)))}};function ue(e){return se.apply(this,arguments)}function se(){return(se=a(r.mark((function e(t){var n,a,o,i,c,u,s;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.App,a=t.Component,o=t.props,i=t.err,a=a||q.Component,o=o||q.props,c=(0,m.default)((0,m.default)({},o),{},{Component:a,err:i,router:X}),q=c,s=new Promise((function(e,t){G&&G(),u=function(){G=null,e()},G=function(){G=null,t()}})),r=g.default.createElement(fe,{callback:u},g.default.createElement(ie,null,g.default.createElement(n,c))),f=K,T.ST&&performance.mark("beforeRender"),ne?(y.default.hydrate(r,f,re),ne=!1,W&&T.ST&&(0,R.default)(W)):y.default.render(r,f,ae),e.next=10,s;case 10:case"end":return e.stop()}var r,f}),e)})))).apply(this,arguments)}function fe(e){var t=e.callback,n=e.children;return g.default.useLayoutEffect((function(){return t()}),[t]),n}},"pO+a":function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n("H3UU");t.default=function(e){(0,r.getCLS)(e),(0,r.getFID)(e),(0,r.getFCP)(e),(0,r.getLCP)(e),(0,r.getTTFB)(e)}}},[["LwBP",0,1,2]]]); -------------------------------------------------------------------------------- /out/_next/static/runtime/webpack-c212667a5f965e81e004.js: -------------------------------------------------------------------------------- 1 | !function(e){function r(r){for(var n,l,f=r[0],i=r[1],a=r[2],c=0,s=[];ce.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]&&arguments[0],t=[r.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(r.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===r.default.Fragment?e.concat(r.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var s=["name","httpEquiv","charSet","itemProp"];function d(e,t){return e.reduce((function(e,t){var n=r.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(f,[]).reverse().concat(l(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,n=new Set,r={};return function(o){var u=!0;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){var a=o.key.slice(o.key.indexOf("$")+1);e.has(a)?u=!1:e.add(a)}switch(o.type){case"title":case"base":t.has(o.type)?u=!1:t.add(o.type);break;case"meta":for(var i=0,c=s.length;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,r=e.hybrid,o=void 0!==r&&r,u=e.hasQuery;return n||o&&(void 0!==u&&u)}},x9yg:function(e,t,n){"use strict";var r=Object.assign.bind(Object);e.exports=r,e.exports.default=e.exports}},[["EsAr",0,1]]]); -------------------------------------------------------------------------------- /out/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamwathan/tailwindcss-dark-mode-prototype/b477705ece888e5cc703fa8793d6e2073a449904/out/favicon-16x16.png -------------------------------------------------------------------------------- /out/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamwathan/tailwindcss-dark-mode-prototype/b477705ece888e5cc703fa8793d6e2073a449904/out/favicon-32x32.png -------------------------------------------------------------------------------- /out/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamwathan/tailwindcss-dark-mode-prototype/b477705ece888e5cc703fa8793d6e2073a449904/out/favicon.ico -------------------------------------------------------------------------------- /out/index.html: -------------------------------------------------------------------------------- 1 | Tailwind CSS Typography

    Tailwind CSS Typography

    Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.

    By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you really are just trying to style some content that came from a rich-text editor in a CMS or a markdown file, it can be surprising and unintuitive.

    We get lots of complaints about it actually, with people regularly asking us things like:

    Why is Tailwind removing the default styles on my h1 elements? How do I disable this? What do you mean I lose all the other base styles too?

    We hear you, but we're not convinced that simply disabling our base styles is what you really want. You don't want to have to remove annoying margins every time you use a p element in a piece of your dashboard UI. And I doubt you really want your blog posts to use the user-agent styles either — you want them to look awesome, not awful.

    The @tailwindcss/typography plugin is our attempt to give you what you actually want, without any of the downsides of doing something stupid like disabling our base styles.

    It adds a new prose class that you can slap on any block of vanilla HTML content and turn it into a beautiful, well-formatted document:

    <article class="prose">
     2 |   <h1>Garlic bread with cheese: What the science tells us</h1>
     3 |   <p>
     4 |     For years parents have espoused the health benefits of eating garlic bread with cheese to their
     5 |     children, with the food earning such an iconic status in our culture that kids will often dress
     6 |     up as warm, cheesy loaf for Halloween.
     7 |   </p>
     8 |   <p>
     9 |     But a recent study shows that the celebrated appetizer may be linked to a series of rabies cases
    10 |     springing up around the country.
    11 |   </p>
    12 |   <!-- ... -->
    13 | </article>
    14 | 

    For more information about how to use the plugin and the features it includes, read the documentation.


    What to expect from here on out

    What follows from here is just a bunch of absolute nonsense I've written to dogfood the plugin itself. It includes every sensible typographic element I could think of, like bold text, unordered lists, ordered lists, code blocks, block quotes, and even italics.

    It's important to cover all of these use cases for a few reasons:

    1. We want everything to look good out of the box.
    2. Really just the first reason, that's the whole point of the plugin.
    3. Here's a third pretend reason though a list with three items looks more realistic than a list with two items.

    Now we're going to try out another header style.

    Typography should be easy

    So that's a header for you — with any luck if we've done our job correctly that will look pretty reasonable.

    Something a wise person once told me about typography is:

    Typography is pretty important if you don't want your stuff to look like trash. Make it good then it won't be bad.

    It's probably important that images look okay here by default as well:

    Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.

    Now I'm going to show you an example of an unordered list to make sure that looks good, too:

    • So here is the first item in this list.
    • In this example we're keeping the items short.
    • Later, we'll use longer, more complex list items.

    And that's the end of this section.

    What if we stack headings?

    We should make sure that looks good, too.

    Sometimes you have headings directly underneath each other. In those cases you often have to undo the top margin on the second heading because it usually looks better for the headings to be closer together than a paragraph followed by a heading should be.

    When a heading comes after a paragraph …

    When a heading comes after a paragraph, we need a bit more space, like I already mentioned above. Now let's see what a more complex list would look like.

    • I often do this thing where list items have headings.

      For some reason I think this looks cool which is unfortunate because it's pretty annoying to get the styles right.

      I often have two or three paragraphs in these list items, too, so the hard part is getting the spacing between the paragraphs, list item heading, and separate list items to all make sense. Pretty tough honestly, you could make a strong argument that you just shouldn't write this way.

    • Since this is a list, I need at least two items.

      I explained what I'm doing already in the previous list item, but a list wouldn't be a list if it only had one item, and we really want this to look realistic. That's why I've added this second list item so I actually have something to look at when writing the styles.

    • It's not a bad idea to add a third item either.

      I think it probably would've been fine to just use two items but three is definitely not worse, and since I seem to be having no trouble making up arbitrary things to type, I might as well include it.

    After this sort of list I usually have a closing statement or paragraph, because it kinda looks weird jumping right to a heading.

    Code should look okay by default.

    I think most people are going to use highlight.js or Prism or something if they want to style their code blocks but it wouldn't hurt to make them look okay out of the box, even with no syntax highlighting.

    Here's what a default tailwind.config.js file looks like at the time of writing:

    module.exports = {
    15 |   purge: [],
    16 |   theme: {
    17 |     extend: {},
    18 |   },
    19 |   variants: {},
    20 |   plugins: [],
    21 | }
    22 | 

    Hopefully that looks good enough to you.

    What about nested lists?

    Nested lists basically always look bad which is why editors like Medium don't even let you do it, but I guess since some of you goofballs are going to do it we have to carry the burden of at least making it work.

    1. Nested lists are rarely a good idea.
      • You might feel like you are being really "organized" or something but you are just creating a gross shape on the screen that is hard to read.
      • Nested navigation in UIs is a bad idea too, keep things as flat as possible.
      • Nesting tons of folders in your source code is also not helpful.
    2. Since we need to have more items, here's another one.
      • I'm not sure if we'll bother styling more than two levels deep.
      • Two is already too much, three is guaranteed to be a bad idea.
      • If you nest four levels deep you belong in prison.
    3. Two items isn't really a list, three is good though.
      • Again please don't nest lists if you want people to actually read your content.
      • Nobody wants to look at this.
      • I'm upset that we even have to bother styling this.

    The most annoying thing about lists in Markdown is that <li> elements aren't given a child <p> tag unless there are multiple paragraphs in the list item. That means I have to worry about styling that annoying situation too.

    • For example, here's another nested list.

      But this time with a second paragraph.

      • These list items won't have <p> tags
      • Because they are only one line each
    • But in this second top-level list item, they will.

      This is especially annoying because of the spacing on this paragraph.

      • As you can see here, because I've added a second line, this list item now has a <p> tag.

        This is the second line I'm talking about by the way.

      • Finally here's another list item so it's more like a list.

    • A closing list item, but with no nested list, because why not?

    And finally a sentence to close off this section.

    There are other elements we need to style

    I almost forgot to mention links, like this link to the Tailwind CSS website. We almost made them blue but that's so yesterday, so we went with dark gray, feels edgier.

    We even included table styles, check it out:

    WrestlerOriginFinisher
    Bret "The Hitman" HartCalgary, ABSharpshooter
    Stone Cold Steve AustinAustin, TXStone Cold Stunner
    Randy SavageSarasota, FLElbow Drop
    VaderBoulder, COVader Bomb
    Razor RamonChuluota, FLRazor's Edge

    We also need to make sure inline code looks good, like if I wanted to talk about <span> elements or tell you the good news about @tailwindcss/typography.

    Sometimes I even use code in headings

    Even though it's probably a bad idea, and historically I've had a hard time making it look good. This "wrap the code blocks in backticks" trick works pretty well though really.

    Another thing I've done in the past is put a code tag inside of a link, like if I wanted to tell you about the tailwindcss/docs repository. I don't love that there is an underline below the backticks but it is absolutely not worth the madness it would require to avoid it.

    We haven't used an h4 yet

    But now we have. Please don't use h5 or h6 in your content, Medium only supports two heading levels for a reason, you animals. I honestly considered using a before pseudo-element to scream at you if you use an h5 or h6.

    We don't style them at all out of the box because h4 elements are already so small that they are the same size as the body copy. What are we supposed to do with an h5, make it smaller than the body copy? No thanks.

    We still need to think about stacked headings though.

    Let's make sure we don't screw that up with h4 elements, either.

    Phew, with any luck we have styled the headings above this text and they look pretty good.

    Let's add a closing paragraph here so things end with a decently sized block of text. I can't explain why I want things to end that way but I have to assume it's because I think things will look weird or unbalanced if there is a heading too close to the end of the document.

    What I've written here is probably long enough, but adding this final sentence can't hurt.

    -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "scripts": { 3 | "dev": "next dev", 4 | "build": "next build", 5 | "export": "next export", 6 | "deploy": "npm run build && npm run export" 7 | }, 8 | "dependencies": { 9 | "@mdx-js/loader": "^1.0.19", 10 | "@mdx-js/mdx": "^1.6.6", 11 | "@next/mdx": "^8.1.0", 12 | "@tailwindcss/typography": "^0.2.0", 13 | "@tailwindcss/ui": "^0.4.0", 14 | "autoprefixer": "^9.6.1", 15 | "clean-css": "^4.2.1", 16 | "cssnano": "^4.1.10", 17 | "dedent": "^0.7.0", 18 | "highlight.js": "^9.15.6", 19 | "lodash": "^4.17.19", 20 | "next": "^9.4.4", 21 | "postcss": "^7.0.17", 22 | "postcss-selector-parser": "^6.0.2", 23 | "react": "^16.8.6", 24 | "react-dom": "^16.8.6", 25 | "tailwindcss": "^1.5" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /pages/_app.js: -------------------------------------------------------------------------------- 1 | import 'tailwindcss/tailwind.css' 2 | import React from 'react' 3 | import App from 'next/app' 4 | 5 | class MyApp extends App { 6 | render() { 7 | const { Component, pageProps } = this.props 8 | return 9 | } 10 | } 11 | 12 | export default MyApp 13 | -------------------------------------------------------------------------------- /pages/index.js: -------------------------------------------------------------------------------- 1 | import Head from 'next/head' 2 | import MarkdownSample from '../components/MarkdownSample.mdx' 3 | import { useState, useEffect } from 'react' 4 | 5 | function ThemeToggle({ scheme, onChange }) { 6 | function handleKeyDown(e) { 7 | if ([' ', 'Enter'].includes(e.key)) { 8 | e.preventDefault() 9 | onChange() 10 | } 11 | } 12 | 13 | return ( 14 | onChange()} 19 | onKeyDown={(e) => handleKeyDown(e)} 20 | className={`${ 21 | scheme === 'dark' ? 'bg-indigo-600' : 'bg-gray-200' 22 | } select-none relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:shadow-outline`} 23 | > 24 | 57 | 58 | ) 59 | } 60 | 61 | export default () => { 62 | const [scheme, setScheme] = useState('light') 63 | 64 | useEffect(() => { 65 | document.body.classList.add('dark:bg-gray-900') 66 | 67 | if (scheme === 'dark') { 68 | document.documentElement.classList.add('scheme-dark') 69 | } else { 70 | document.documentElement.classList.remove('scheme-dark') 71 | } 72 | }, [scheme]) 73 | 74 | return ( 75 |
    76 | 77 | Tailwind CSS Typography 78 | 79 |
    80 |
    81 |

    Tailwind CSS Typography

    82 |
    83 |
    84 | 85 | 91 | 96 | 100 | 101 | 102 |
    103 | setScheme(scheme === 'light' ? 'dark' : 'light')} 106 | /> 107 |
    108 |
    109 |
    110 | 111 |
    112 |
    113 |
    114 |
    115 |
    116 | ) 117 | } 118 | 119 | export const config = { 120 | // unstable_runtimeJS: false, 121 | } 122 | -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /public/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamwathan/tailwindcss-dark-mode-prototype/b477705ece888e5cc703fa8793d6e2073a449904/public/favicon-16x16.png -------------------------------------------------------------------------------- /public/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamwathan/tailwindcss-dark-mode-prototype/b477705ece888e5cc703fa8793d6e2073a449904/public/favicon-32x32.png -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamwathan/tailwindcss-dark-mode-prototype/b477705ece888e5cc703fa8793d6e2073a449904/public/favicon.ico -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- 1 | const mdx = require('@mdx-js/mdx') 2 | const plugin = require('tailwindcss/plugin') 3 | const selectorParser = require('postcss-selector-parser') 4 | 5 | module.exports = { 6 | purge: { 7 | mode: 'all', 8 | content: ['./pages/**/*.{js,mdx}', './components/**/*.{js,mdx}'], 9 | options: { 10 | whitelist: ['html', 'body', 'scheme-dark'], 11 | extractors: [ 12 | { 13 | extensions: ['mdx'], 14 | extractor: (content) => { 15 | content = mdx.sync(content) 16 | 17 | // Capture as liberally as possible, including things like `h-(screen-1.5)` 18 | const broadMatches = content.match(/[^<>"'`\s]*[^<>"'`\s:]/g) || [] 19 | 20 | // Capture classes within other delimiters like .block(class="w-1/2") in Pug 21 | const innerMatches = 22 | content.match(/[^<>"'`\s.(){}[\]#=%]*[^<>"'`\s.(){}[\]#=%:]/g) || [] 23 | 24 | return broadMatches.concat(innerMatches) 25 | }, 26 | }, 27 | ], 28 | }, 29 | }, 30 | 31 | theme: { 32 | typography: (theme) => ({ 33 | dark: { 34 | css: { 35 | color: theme('colors.gray.300'), 36 | '[class~="lead"]': { 37 | color: theme('colors.gray.400'), 38 | }, 39 | blockquote: { 40 | color: theme('colors.gray.300'), 41 | borderLeftColor: theme('colors.gray.700'), 42 | }, 43 | hr: { 44 | borderTopColor: theme('colors.gray.800'), 45 | }, 46 | strong: { 47 | color: theme('colors.white'), 48 | }, 49 | 'figure figcaption': { 50 | color: theme('colors.gray.500'), 51 | }, 52 | a: { 53 | color: theme('colors.white'), 54 | }, 55 | th: { 56 | color: theme('colors.white'), 57 | }, 58 | 'h1, h2, h3, h4': { 59 | color: theme('colors.white'), 60 | }, 61 | code: { 62 | color: theme('colors.gray.300'), 63 | }, 64 | 'code:before': { 65 | color: theme('colors.gray.300'), 66 | }, 67 | 'code:after': { 68 | color: theme('colors.gray.300'), 69 | }, 70 | 'ol > li:before': { 71 | color: theme('colors.gray.400'), 72 | }, 73 | 'ul > li:before': { 74 | backgroundColor: theme('colors.gray.600'), 75 | }, 76 | }, 77 | }, 78 | }), 79 | }, 80 | variants: { 81 | textColor: ['responsive', 'dark', 'hover', 'focus'], 82 | backgroundColor: ['responsive', 'dark', 'hover', 'focus'], 83 | typography: ['responsive', 'dark'], 84 | }, 85 | plugins: [ 86 | plugin(function ({ addVariant, prefix }) { 87 | addVariant('dark', ({ modifySelectors, separator }) => { 88 | modifySelectors(({ selector }) => { 89 | return selectorParser((selectors) => { 90 | selectors.walkClasses((sel) => { 91 | sel.value = `dark${separator}${sel.value}` 92 | sel.parent.insertBefore(sel, selectorParser().astSync(prefix('.scheme-dark '))) 93 | }) 94 | }).processSync(selector) 95 | }) 96 | }) 97 | }), 98 | require('@tailwindcss/typography'), 99 | require('@tailwindcss/ui'), 100 | ], 101 | } 102 | --------------------------------------------------------------------------------