Ultrasound Referral in Chicago, IL

VDC Insights

Blog

Your blog category

Blog

What to expect from here on out

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. 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"> <h1>Garlic bread with cheese: What the science tells us</h1> <p> For years parents have espoused the health benefits of eating garlic bread with cheese to their children, with the food earning such an iconic status in our culture that kids will often dress up as warm, cheesy loaf for Halloween. </p> <p> But a recent study shows that the celebrated appetizer may be linked to a series of rabies cases springing up around the country. </p> <!-- ... --> </article> 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: We want everything to look good out of the box. Really just the first reason, that's the whole point of the plugin. 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 = { purge: [], theme: { extend: {}, }, variants: {}, plugins: [], } 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. 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. 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. 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: WrestlerOriginFinisherBret "The Hitman" HartCalgary, ABSharpshooterStone Cold Steve AustinAustin, TXStone Cold StunnerRandy SavageSarasota, FLElbow DropVaderBoulder, COVader BombRazor 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.

Read article
Chicago veterinary cardiology
Blog

What Pet Owners Should Know Before Scheduling a Veterinary Ultrasound

When a pet is sick, one of the hardest parts for owners is not knowing what’s wrong. A dog may stop eating, begin vomiting, act lethargic, or show subtle changes that are difficult to explain. Cats often hide illness even longer, making diagnosis even more challenging.As veterinarians, we rely heavily on diagnostics because our patients cannot tell us where it hurts or describe what they are feeling. One of the most valuable diagnostic tools we use in veterinary medicine is ultrasound.In our practice, veterinary ultrasound helps us evaluate internal organs in real time, identify abnormalities, guide treatment decisions, and sometimes even detect life-threatening conditions before they become emergencies.Many pet owners are unfamiliar with what a veterinary ultrasound actually involves, when it is needed, or what it can and cannot diagnose. Understanding the process ahead of time helps reduce anxiety and allows owners to make more informed decisions about their pet’s care.What Is a Veterinary Ultrasound?A veterinary ultrasound is a non-invasive imaging tool that uses sound waves to create real-time images of your pet’s internal organs and tissues.Unlike X-rays, which primarily show size and shape, ultrasound allows veterinarians to evaluate the internal structure and movement of organs. This makes ultrasound especially useful for examining:LiverGallbladderKidneysBladderIntestinal tractPancreasSpleenLymph nodesHeartUltrasound is commonly used in both dogs and cats to investigate symptoms that cannot be fully explained through physical exams, blood work, or radiographs alone.One of the major advantages of ultrasound is that it does not involve radiation, making it a safe diagnostic option for many patients.Common Reasons a Veterinarian May Recommend an UltrasoundIn veterinary medicine, ultrasound is often recommended when basic diagnostics have not provided enough answers.Some of the most common symptoms and conditions that may warrant a veterinary ultrasound include:Chronic Vomiting or DiarrheaPersistent gastrointestinal issues are one of the most common reasons pets are referred for abdominal ultrasound. Ultrasound can help identify:Intestinal inflammationForeign material or blockagesThickened intestinal wallsPancreatitisGallbladder diseaseLiver abnormalitiesMasses or tumorsDecreased Appetite and Weight LossIf a pet is losing weight or refusing food, ultrasound can help determine whether the issue is related to the digestive system, liver, pancreas, kidneys, or another organ system.Elevated Liver Values or Abnormal Blood WorkSometimes pets appear normal at home, but blood tests reveal abnormalities. Ultrasound helps veterinarians investigate what may be causing those changes internally.Urinary ProblemsStraining to urinate, blood in the urine, urinary accidents, or recurrent urinary tract issues may indicate bladder stones, obstruction, kidney disease, or other abnormalities that ultrasound can detect.Heart Murmurs or ArrhythmiasCardiac ultrasound, also called an echocardiogram, allows veterinarians to evaluate heart valves, wall thickness, blood flow, and heart function in real time.This is especially important for pets with:Heart murmursExercise intoleranceCoughingDifficulty breathingAbnormal heart rhythmsDoes My Pet Need Sedation for an Ultrasound?One of the most common misconceptions pet owners have is that pets must be sedated for an ultrasound.In reality, many veterinary ultrasounds can be performed without sedation.Most pets tolerate the procedure very well, especially in a calm, low-stress environment. In many cases, patients simply lie comfortably while the sonographer performs the scan.Sedation may occasionally be recommended for pets that:Are highly anxiousAre painfulCannot remain still safelyRequire additional proceduresHowever, sedation is far less common than many owners expect.Is Veterinary Ultrasound Painful?Ultrasound itself is not painful.The procedure involves placing a probe against the skin using ultrasound gel to help create clearer images. Pets may feel gentle pressure during the exam, but the scan itself is non-invasive and generally very well tolerated.If a pet appears uncomfortable during the appointment, it is often because of the underlying medical condition rather than the ultrasound procedure itself.What Happens During a Veterinary Ultrasound Appointment?While every case is different, most ultrasound appointments follow a similar process.Step 1: Reviewing Medical HistoryThe veterinarian or sonographer reviews:SymptomsPrevious diagnosticsBlood workX-raysMedical historyThis information helps guide the ultrasound examination.Step 2: Preparing the PatientA small area of fur is often shaved to improve image quality. Ultrasound gel is then applied to the skin.Step 3: Performing the UltrasoundThe sonographer systematically examines the organs and tissues in real time.Unlike some imaging methods, ultrasound is highly operator-dependent. This means the experience and skill of the person performing the scan matter significantly.An experienced veterinary sonographer knows how to:Identify subtle abnormalitiesAdjust imaging angles in real timeFocus on high-risk structuresRecognize patterns associated with diseaseStep 4: Interpreting FindingsAfter the scan, the veterinarian discusses findings and next steps.Sometimes ultrasound provides a clear diagnosis immediately. Other times, it helps narrow down possibilities or identify areas requiring additional testing.What Ultrasound Can — And Cannot — Tell YouUltrasound is an extremely valuable diagnostic tool, but it is important for pet owners to understand its limitations.Many owners expect ultrasound to provide a final diagnosis for every condition. Medicine is rarely that straightforward.In some cases, ultrasound helps us:Confirm diseaseRule out major concernsDetect masses or tumorsIdentify inflammationFind internal bleeding or fluidLocate obstructionsHowever, ultrasound cannot always determine:Whether a tumor is cancerousThe exact type of disease presentThe full severity of microscopic diseaseFor example, a veterinarian may identify a mass on ultrasound but still recommend:Fine needle aspirationCytologyBiopsyAdditional blood workCT scanFollow-up imagingUltrasound is often part of the diagnostic process rather than the final answer by itself.Why Experience Matters in Veterinary UltrasoundOne of the most important things pet owners should understand is that ultrasound is highly operator-dependent.Unlike automated imaging systems, ultrasound requires real-time decision-making and technical skill.An experienced veterinary sonographer knows how to:Track difficult intestinal structuresRecognize subtle abnormalitiesIdentify early disease changesObtain diagnostic-quality imagesAdjust techniques based on the patientThis is especially important because factors like gas in the intestines, body size, movement, and anatomy can make ultrasound more challenging.High-quality equipment matters, but the expertise of the person performing the scan is equally critical.When Ultrasound Finds Something UnexpectedOne of the most valuable aspects of ultrasound is its ability to detect problems that were not originally suspected.In veterinary diagnostics, we frequently identify:TumorsGallbladder diseaseBladder stonesEnlarged organsFluid accumulationHidden intestinal diseaseSometimes pets come in for elevated liver values and we unexpectedly discover a splenic tumor or another unrelated issue that requires immediate attention.Early detection can dramatically improve treatment options and outcomes.Veterinary Ultrasound Helps Guide Better Treatment DecisionsEven when ultrasound does not provide a complete diagnosis, it still plays a major role in treatment planning.Ruling out serious conditions can be just as important as identifying them.Ultrasound helps veterinarians determine:Whether surgery is neededWhether disease appears localized or widespreadWhich organs are involvedWhether additional testing is necessaryHow urgent treatment may beIn emergency situations, ultrasound can quickly identify life-threatening problems such as:Internal bleedingRuptured organsUrinary obstructionGastrointestinal perforationThese findings help veterinarians make faster and more informed medical decisions.Frequently Asked Questions About Veterinary UltrasoundDoes my pet need to fast before an ultrasound?In many cases, yes. Fasting helps improve image quality, especially for abdominal ultrasounds. Your veterinarian will provide specific instructions before the appointment.How long does a veterinary ultrasound take?Most ultrasounds take between 30 minutes and one hour depending on the complexity of the case.Will my pet need sedation for an ultrasound?Most pets do not require sedation. However, sedation may occasionally be recommended for anxious, painful, or highly active patients.Can ultrasound detect cancer in dogs and cats?Ultrasound can identify masses and abnormalities that may indicate cancer, but additional testing such as biopsy or cytology is often needed to confirm whether a tumor is malignant.Is ultrasound better than X-rays?Ultrasound and X-rays serve different purposes. X-rays are excellent for evaluating bones and overall organ size, while ultrasound provides more detailed information about soft tissues and organ structure.What symptoms indicate my pet may need an ultrasound?Common symptoms include:VomitingDiarrheaWeight lossLoss of appetiteElevated liver valuesUrinary problemsHeart murmursAbdominal painCan ultrasound detect intestinal blockages?Yes. Ultrasound is commonly used to identify foreign material, intestinal obstruction, and gastrointestinal abnormalities.Is veterinary ultrasound safe?Yes. Ultrasound is considered very safe because it uses sound waves rather than radiation.What happens if the ultrasound does not provide a clear diagnosis?Additional diagnostics such as blood work, biopsy, fine needle aspiration, CT scan, or repeat imaging may be recommended depending on the findings.How often should ultrasounds be repeated?Repeat ultrasounds may be recommended to monitor:Heart diseaseTumor growthGallbladder diseaseChronic conditionsResponse to treatment

Read article
Category 2

What to expect from here on out

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. 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"> <h1>Garlic bread with cheese: What the science tells us</h1> <p> For years parents have espoused the health benefits of eating garlic bread with cheese to their children, with the food earning such an iconic status in our culture that kids will often dress up as warm, cheesy loaf for Halloween. </p> <p> But a recent study shows that the celebrated appetizer may be linked to a series of rabies cases springing up around the country. </p> <!-- ... --> </article> 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: We want everything to look good out of the box. Really just the first reason, that's the whole point of the plugin. 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 = { purge: [], theme: { extend: {}, }, variants: {}, plugins: [], } 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. 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. 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. 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: WrestlerOriginFinisherBret "The Hitman" HartCalgary, ABSharpshooterStone Cold Steve AustinAustin, TXStone Cold StunnerRandy SavageSarasota, FLElbow DropVaderBoulder, COVader BombRazor 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.

Read article
Blog

What to expect from here on out

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. 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"> <h1>Garlic bread with cheese: What the science tells us</h1> <p> For years parents have espoused the health benefits of eating garlic bread with cheese to their children, with the food earning such an iconic status in our culture that kids will often dress up as warm, cheesy loaf for Halloween. </p> <p> But a recent study shows that the celebrated appetizer may be linked to a series of rabies cases springing up around the country. </p> <!-- ... --> </article> 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: We want everything to look good out of the box. Really just the first reason, that's the whole point of the plugin. 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 = { purge: [], theme: { extend: {}, }, variants: {}, plugins: [], } 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. 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. 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. 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: WrestlerOriginFinisherBret "The Hitman" HartCalgary, ABSharpshooterStone Cold Steve AustinAustin, TXStone Cold StunnerRandy SavageSarasota, FLElbow DropVaderBoulder, COVader BombRazor 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.

Read article
Scroll to Top