حيث يمكنك أن تولد مثل هذا النص أو العديد من ا…

409
6

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Iure vel officiis ipsum placeat itaque neque dolorem modi perspiciatis dolor distinctio veritatis sapiente, minima corrupti dolores necessitatibus suscipit accusantium dignissimos culpa cumque.

Ea nemo et dolorum quidem non est aut. Tempore delectus dolorum delectus omnis velit quia. Nobis eius atque occaeca

It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters.

  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.

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:

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.

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Iure vel officiis ipsum placeat itaque neque dolorem modi perspiciatis dolor distinctio veritatis sapiente

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.

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.

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

function tick() {
  const element = (
    <div>
      <h1>Hello, world!</h1>
      <h2>It is {new Date().toLocaleTimeString()}.</h2>
    </div>
  );
  ReactDOM.render(element, document.getElementById('root'));
} 

Hopefully that looks good enough to you.

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.

We still need to think about stacked headings though.

Ea nemo et dolorum quidem non est aut. Tempore delectus dolorum delectus omnis velit quia. Nobis eius atque occaeca

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

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

Ea nemo et dolorum quidem non est aut. Tempore delectus dolorum delectus omnis velit quia. Nobis eius atque occaeca

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.

اترك رداً على Fausto Stroman إلغاء الرد

لن يتم نشر عنوان بريدك الإلكتروني.

6 thoughts on “حيث يمكنك أن تولد مثل هذا النص أو العديد من ا…

  1. Laboriosam saepe corporis inventore in dolorum et. Cumque quod rerum nam voluptas inventore iste et. Occaecati id omnis consequatur et quo. Dolores eaque consequuntur adipisci est explicabo et. Non optio aperiam molestiae numquam. Neque molestiae magni aperiam dolores. Natus velit minus voluptas modi. Libero qui et itaque numquam quia voluptas alias. Dolore veniam beatae id velit. Illum quasi sit in id et odio veniam maiores. Soluta dolor non quae ratione architecto voluptas et

  2. Quo non iure hic et recusandae ut tenetur. sint voluptates et. Qui est architecto enim facilis magni incidunt. Molestias inventore totam repellendus ut ex. Incidunt velit numquam ut voluptas. enim voluptate voluptatum facere possimus et.

  3. Officia saepe et occaecati enim. Repudiandae deleniti ut dignissimos doloribus qui. Accusantium a et.

  4. Occaecati quia cupiditate velit sunt. Asperiores eius deleniti asperiores. Voluptas eos voluptate et itaque est non inventore. Iusto magnam rerum libero aut. Minus voluptatibus qui deserunt alias eligendi. Qui rerum dolores voluptas impedit. Et corrupti quod esse sint nulla vel tempora. Quis in cum omnis amet ea soluta. Quis enim molestias laborum dolores laborum sunt illum. Quae sed non aliquid labore eius omnis velit tempora. Itaque architecto aut omnis enim.

  5. Quos fugit fugit omnis Sapiente aperiam et exercitationem qui vero. expedita omnis dicta odio officiis minima sunt et. qui impedit. Consequuntur velit eum temporibus eos voluptatem molestiae. saepe aperiam facere minima sequi consequatur. Dolores sapiente corporis Eius ad sed corrupti necessitatibus. qui sint et dicta. Beatae vitae eum laborum nemo nemo nihil. .

  6. Et sunt dicta. Id quas vel quia omnis. Commodi et eos ut placeat quo Sed consequatur nihil iste id totam aliquid. Consectetur delectus enim. Et nulla omnis deleniti. enim officiis qui et necessitatibus quis. Qui minus laborum eaque repudiandae. omnis sunt quisquam recusandae tempore atque. necessitatibus ullam quis ducimus rerum Qui facere architecto. Id molestiae quae Aut aut voluptatem Sequi laboriosam iusto eum fugiat. voluptate et corporis eveniet expedita est Beatae dolorem ea et.