{
    "version": "https://jsonfeed.org/version/1",
    "title": "Template",
    "home_page_url": "https://template.osinga.vc/blog",
    "feed_url": "https://template.osinga.vc/blog/feed.json",
    "description": "The Template blog.",
    "author": {
        "name": "Osinga"
    },
    "items": [
        {
            "id": "https://template.osinga.vc/blog/et-facilis-voluptatem-deleniti",
            "content_html": "<p>Ratione quis qui a qui. Pariatur rerum facere rerum dolore ut voluptas eum\nillo. Iste ullam et qui dolor omnis hic distinctio facere harum. Sed voluptate\ndolorem aspernatur deleniti enim maiores qui. Nesciunt excepturi in iure\ndolorem sed aut et.</p>\n<p>Magnam sapiente est eum consequatur amet rerum eligendi. Beatae quia et nisi\nofficiis reiciendis libero quam magnam tenetur. Ea repellendus quia assumenda.</p>\n<h2>Distinctio Nihil Fugit</h2>\n<p>Reiciendis sint ut reprehenderit omnis maiores laudantium velit. Vel\nconsequuntur nisi harum dolor placeat libero cupiditate ut est. Animi assumenda\nfugiat hic commodi repudiandae cupiditate minima sequi corrupti. Error ipsum\nculpa autem dolor et. Esse nam sit atque id id nostrum.</p>\n<p>Excepturi ut nobis et. Tempore at in nesciunt iusto repellendus quaerat sunt\ncorrupti molestiae. Eos aut asperiores nesciunt voluptatem. Est ab ducimus\nipsum sint sint enim commodi commodi iste.</p>\n<p>Quo a debitis. Minus vel cupiditate. Ut quis explicabo ducimus minus ea ut.</p>\n<h2>Qui Doloribus Voluptas Et</h2>\n<p>Eveniet nam modi qui. Consequatur qui laboriosam explicabo consequatur quia qui\nquo. Occaecati possimus tenetur molestiae aut veniam ducimus dolores dolorem\nofficia. Totam suscipit accusamus illo ratione et temporibus dolorem quas\ndeleniti. Nam rerum libero eum quam explicabo.</p>\n<p>Eaque cum perferendis in quisquam. Eos et ea adipisci illum itaque totam est.\nNatus minima blanditiis repudiandae qui velit eaque.</p>",
            "url": "https://template.osinga.vc/blog/et-facilis-voluptatem-deleniti",
            "title": "Et Facilis Voluptatem Deleniti",
            "summary": "Et rem rem assumenda dolores reiciendis neque ut hic est molestiae.",
            "date_modified": "1970-01-08T00:00:00.000Z",
            "author": {
                "name": "Osinga"
            }
        },
        {
            "id": "https://template.osinga.vc/blog/style-guide",
            "content_html": "<p>Until now, trying to style an article, document, or blog post with Tailwind has\nbeen a tedious task that required a keen eye for typography and a lot of\ncomplex custom CSS.</p>\n<p>By default, Tailwind removes all of the default browser styling from\nparagraphs, headings, lists and more. This ends up being really useful for\nbuilding application UIs because you spend less time undoing user-agent styles,\nbut when you <em>really are</em> just trying to style some content that came from a\nrich-text editor in a CMS or a markdown file, it can be surprising and\nunintuitive.</p>\n<p>We get lots of complaints about it actually, with people regularly asking us\nthings like:</p>\n<blockquote>\n<p>Why is Tailwind removing the default styles on my <code>h1</code> elements? How do I\ndisable this? What do you mean I lose all the other base styles too?</p>\n</blockquote>\n<p>We hear you, but we're not convinced that simply disabling our base styles is\nwhat you really want. You don't want to have to remove annoying margins every\ntime you use a <code>p</code> element in a piece of your dashboard UI. And I doubt you\nreally want your blog posts to use the user-agent styles either — you want them\nto look <em>awesome</em>, not awful.</p>\n<p>The <code>@tailwindcss/typography</code> plugin is our attempt to give you what you\n<em>actually</em> want, without any of the downsides of doing something stupid like\ndisabling our base styles.</p>\n<p>It adds a new <code>prose</code> class that you can slap on any block of vanilla HTML\ncontent and turn it into a beautiful, well-formatted document:</p>\n<pre><code class=\"language-html\">&#x3C;article class=\"prose\">\n  &#x3C;h1>Garlic bread with cheese: What the science tells us&#x3C;/h1>\n  &#x3C;p>\n    For years parents have espoused the health benefits of eating garlic bread\n    with cheese to their children, with the food earning such an iconic status\n    in our culture that kids will often dress up as warm, cheesy loaf for\n    Halloween.\n  &#x3C;/p>\n  &#x3C;p>\n    But a recent study shows that the celebrated appetizer may be linked to a\n    series of rabies cases springing up around the country.\n  &#x3C;/p>\n  &#x3C;!-- ... -->\n&#x3C;/article>\n</code></pre>\n<p>For more information about how to use the plugin and the features it includes,\n<a href=\"https://github.com/tailwindcss/typography/blob/master/README.md\">read the documentation</a>.</p>\n<hr>\n<h2>What to expect from here on out</h2>\n<p>What follows from here is just a bunch of absolute nonsense I've written to\ndogfood the plugin itself. It includes every sensible typographic element I\ncould think of, like <strong>bold text</strong>, unordered lists, ordered lists, code\nblocks, block quotes, <em>and even italics</em>.</p>\n<p>It's important to cover all of these use cases for a few reasons:</p>\n<ol>\n<li>We want everything to look good out of the box.</li>\n<li>Really just the first reason, that's the whole point of the plugin.</li>\n<li>Here's a third pretend reason though a list with three items looks more\nrealistic than a list with two items.</li>\n</ol>\n<p>Now we're going to try out another header style.</p>\n<h3>Typography should be easy</h3>\n<p>So that's a header for you — with any luck if we've done our job correctly that\nwill look pretty reasonable.</p>\n<p>Something a wise person once told me about typography is:</p>\n<blockquote>\n<p>Typography is pretty important if you don't want your stuff to look like\ntrash. Make it good then it won't be bad.</p>\n</blockquote>\n<p>It's probably important that images look okay here by default as well:</p>\n<p><img src=\"/images/blog/style-guide/photo.jpeg\" alt=\"Photo\"></p>\n<p>Now I'm going to show you an example of an unordered list to make sure that\nlooks good, too:</p>\n<ul>\n<li>So here is the first item in this list.</li>\n<li>In this example we're keeping the items short.</li>\n<li>Later, we'll use longer, more complex list items.</li>\n</ul>\n<p>And that's the end of this section.</p>\n<h2>What if we stack headings?</h2>\n<h3>We should make sure that looks good, too.</h3>\n<p>Sometimes you have headings directly underneath each other. In those cases you\noften have to undo the top margin on the second heading because it usually\nlooks better for the headings to be closer together than a paragraph followed\nby a heading should be.</p>\n<h3>When a heading comes after a paragraph …</h3>\n<p>When a heading comes after a paragraph, we need a bit more space, like I\nalready mentioned above. Now let's see what a more complex list would look\nlike.</p>\n<ul>\n<li>\n<p><strong>I often do this thing where list items have headings.</strong></p>\n<p>For some reason I think this looks cool which is unfortunate because it's\npretty annoying to get the styles right.</p>\n<p>I often have two or three paragraphs in these list items, too, so the hard\npart is getting the spacing between the paragraphs, list item heading, and\nseparate list items to all make sense. Pretty tough honestly, you could make\na strong argument that you just shouldn't write this way.</p>\n</li>\n<li>\n<p><strong>Since this is a list, I need at least two items.</strong></p>\n<p>I explained what I'm doing already in the previous list item, but a list\nwouldn't be a list if it only had one item, and we really want this to look\nrealistic. That's why I've added this second list item so I actually have\nsomething to look at when writing the styles.</p>\n</li>\n<li>\n<p><strong>It's not a bad idea to add a third item either.</strong></p>\n<p>I think it probably would've been fine to just use two items but three is\ndefinitely not worse, and since I seem to be having no trouble making up\narbitrary things to type, I might as well include it. I'm going to press\n<kbd>Enter</kbd> now.</p>\n</li>\n</ul>\n<p>After this sort of list I usually have a closing statement or paragraph,\nbecause it kinda looks weird jumping right to a heading.</p>\n<h2>Code should look okay by default.</h2>\n<p>I think most people are going to use <a href=\"https://highlightjs.org/\">highlight.js</a>\nor <a href=\"https://prismjs.com/\">Prism</a> or something if they want to style their code\nblocks but it wouldn't hurt to make them look <em>okay</em> out of the box, even with\nno syntax highlighting.</p>\n<p>Here's what a default <code>tailwind.config.ts</code> file looks like at the time of writing:</p>\n<pre><code class=\"language-typescript\">import type { Config } from 'tailwindcss'\n\nconst config = {\n  purge: [],\n  theme: {\n    extend: {},\n  },\n  variants: {},\n  plugins: [],\n} satisfies Config\n\nexport default config\n</code></pre>\n<p>Hopefully that looks good enough to you.</p>\n<h3>What about nested lists?</h3>\n<p>Nested lists basically always look bad which is why editors like Medium don't\neven let you do it, but I guess since some of you goofballs are going to do it\nwe have to carry the burden of at least making it work.</p>\n<ol>\n<li><strong>Nested lists are rarely a good idea.</strong>\n<ul>\n<li>You might feel like you are being really \"organized\" or something but you\nare just creating a gross shape on the screen that is hard to read.</li>\n<li>Nested navigation in UIs is a bad idea too, keep things as flat as\npossible.</li>\n<li>Nesting tons of folders in your source code is also not helpful.</li>\n</ul>\n</li>\n<li><strong>Since we need to have more items, here's another one.</strong>\n<ul>\n<li>I'm not sure if we'll bother styling more than two levels deep.</li>\n<li>Two is already too much, three is guaranteed to be a bad idea.</li>\n<li>If you nest four levels deep you belong in prison.</li>\n</ul>\n</li>\n<li><strong>Two items isn't really a list, three is good though.</strong>\n<ul>\n<li>Again please don't nest lists if you want people to actually read your\ncontent.</li>\n<li>Nobody wants to look at this.</li>\n<li>I'm upset that we even have to bother styling this.</li>\n</ul>\n</li>\n</ol>\n<p>The most annoying thing about lists in Markdown is that <code>&#x3C;li></code> elements aren't\ngiven a child <code>&#x3C;p></code> tag unless there are multiple paragraphs in the list item.\nThat means I have to worry about styling that annoying situation too.</p>\n<ul>\n<li>\n<p><strong>For example, here's another nested list.</strong></p>\n<p>But this time with a second paragraph.</p>\n<ul>\n<li>These list items won't have <code>&#x3C;p></code> tags</li>\n<li>Because they are only one line each</li>\n</ul>\n</li>\n<li>\n<p><strong>But in this second top-level list item, they will.</strong></p>\n<p>This is especially annoying because of the spacing on this paragraph.</p>\n<ul>\n<li>\n<p>As you can see here, because I've added a second line, this list item now\nhas a <code>&#x3C;p></code> tag.</p>\n<p>This is the second line I'm talking about by the way.</p>\n</li>\n<li>\n<p>Finally here's another list item so it's more like a list.</p>\n</li>\n</ul>\n</li>\n<li>\n<p>A closing list item, but with no nested list, because why not?</p>\n</li>\n</ul>\n<p>And finally a sentence to close off this section.</p>\n<h2>There are other elements we need to style</h2>\n<p>I almost forgot to mention links, like <a href=\"https://tailwindcss.com\">this link to the Tailwind CSS\nwebsite</a>. We almost made them blue but that's so\nyesterday, so we went with dark gray, feels edgier.</p>\n<p>We even included table styles, check it out:</p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<table><thead><tr><th>Wrestler</th><th>Origin</th><th>Finisher</th></tr></thead><tbody><tr><td>Bret \"The Hitman\" Hart</td><td>Calgary, AB</td><td>Sharpshooter</td></tr><tr><td>Stone Cold Steve Austin</td><td>Austin, TX</td><td>Stone Cold Stunner</td></tr><tr><td>Randy Savage</td><td>Sarasota, FL</td><td>Elbow Drop</td></tr><tr><td>Vader</td><td>Boulder, CO</td><td>Vader Bomb</td></tr><tr><td>Razor Ramon</td><td>Chuluota, FL</td><td>Razor's Edge</td></tr></tbody></table>\n<p>We also need to make sure inline code looks good, like if I wanted to talk\nabout <code>&#x3C;span></code> elements or tell you the good news about\n<code>@tailwindcss/typography</code>.</p>\n<h3>Sometimes I even use <code>code</code> in headings</h3>\n<p>Even though it's probably a bad idea, and historically I've had a hard time\nmaking it look good. This <em>\"wrap the code blocks in backticks\"</em> trick works\npretty well though really.</p>\n<p>Another thing I've done in the past is put a <code>code</code> tag inside of a link, like\nif I wanted to tell you about the\n<a href=\"https://github.com/tailwindcss/docs\"><code>tailwindcss/docs</code></a> repository. I don't\nlove that there is an underline below the backticks but it is absolutely not\nworth the madness it would require to avoid it.</p>\n<h4>We haven't used an <code>h4</code> yet</h4>\n<p>But now we have. Please don't use <code>h5</code> or <code>h6</code> in your content, Medium only\nsupports two heading levels for a reason, you animals. I honestly considered\nusing a <code>before</code> pseudo-element to scream at you if you use an <code>h5</code> or <code>h6</code>.</p>\n<p>We don't style them at all out of the box because <code>h4</code> elements are already so\nsmall that they are the same size as the body copy. What are we supposed to do\nwith an <code>h5</code>, make it <em>smaller</em> than the body copy? No thanks.</p>\n<h3>We still need to think about stacked headings though.</h3>\n<h4>Let's make sure we don't screw that up with <code>h4</code> elements, either.</h4>\n<p>Phew, with any luck we have styled the headings above this text and they look\npretty good.</p>\n<p>Let's add a closing paragraph here so things end with a decently sized block of\ntext. I can't explain why I want things to end that way but I have to assume\nit's because I think things will look weird or unbalanced if there is a heading\ntoo close to the end of the document.</p>\n<p>What I've written here is probably long enough, but adding this final sentence\ncan't hurt.</p>",
            "url": "https://template.osinga.vc/blog/style-guide",
            "title": "Style Guide",
            "summary": "A post with all possible content.",
            "date_modified": "1970-01-01T00:00:00.000Z",
            "author": {
                "name": "Osinga"
            }
        }
    ]
}