Svelte Blog Templates - Flowbite Svelte Blocks

Get started with a collection of Tailwind CSS blog templates, themes, and article layouts to publish content crafted with built-in SEO optimization.

Default blog template #

Use this free blog template to show the content of an article using the Flowbite Typography plugin including the author, post date, and a comments section.

Jese Leos

Graphic Designer, educator & CEO Flowbite

Best practices for successful prototypes

Flowbite is an open-source library of UI components built with the utility-first classes from Tailwind CSS. It also includes interactive elements such as dropdowns, modals, datepickers.

Before going digital, you might benefit from scribbling down some ideas in a sketchbook. This way, you can think things through before committing to an actual design project.

But then I found a component library based on Tailwind CSS called Flowbite. It comes with the most commonly used UI components, such as buttons, navigation bars, cards, form elements, and more which are conveniently built with the utility classes from Tailwind CSS.

Digital art by Anonymous

Getting started with Flowbite

First of all you need to understand how Flowbite works. This library is not another framework. Rather, it is a set of components based on Tailwind CSS that you can just copy-paste from the documentation.

  1. Usability testing. Does your user know how to exit out of screens? Can they follow your intended user journey and buy something from the site you've designed? By running a usability test, you'll be able to see how users will interact with your design once it's live;
  2. Involving stakeholders. Need to check if your GDPR consent boxes are displaying properly? Pass your prototype to your data protection team and they can test it for real;
  3. Impressing a client. Prototypes can help explain or even sell your idea by providing your client with a hands-on experience;
  4. Communicating your vision. By using an interactive medium to preview and test design elements, designers and developers can understand each other — and the project — better.

Laying the groundwork for best design

Before going digital, you might benefit from scribbling down some ideas in a sketchbook. This way, you can think things through before committing to an actual design project.

Let's start by including the CSS file inside the head tag of your HTML.

Understanding typography

Type properties

A typeface is a collection of letters. While each letter is unique, certain shapes are shared across letters. A typeface represents shared patterns across a collection of letters.

Baseline

A typeface is a collection of letters. While each letter is unique, certain shapes are shared across letters. A typeface represents shared patterns across a collection of letters.

Measurement from the baseline

A typeface is a collection of letters. While each letter is unique, certain shapes are shared across letters. A typeface represents shared patterns across a collection of letters.

Type classification

Serif

A serif is a small shape or projection that appears at the beginning or end of a stroke on a letter.

Typefaces with serifs are called serif typefaces. Serif fonts are classified as one of the following:

Old-Style serifs

  • Low contrast between thick and thin strokes
  • Diagonal stress in the strokes
  • Slanted serifs on lower-case ascenders
  1. Low contrast between thick and thin strokes
  2. Diagonal stress in the strokes
  3. Slanted serifs on lower-case ascenders

Laying the best for successful prototyping

A serif is a small shape or projection that appears at the beginning:

Flowbite is just awesome. It contains tons of predesigned components and pages starting from login screen to complex dashboard. Perfect choice for your next SaaS application.

Code example

A serif is a small shape or projection that appears at the beginning or end of a stroke on a letter. Typefaces with serifs are called serif typefaces. Serif fonts are classified as one of the following:

<dl class="grid grid-cols-2 gap-8 max-w-screen-md text-gray-900 sm:grid-cols-3 dark:text-white">
<div class="flex flex-col justify-center items-center">
  <dt class="mb-2 text-3xl font-extrabold">73M+</dt>
  <dd class="text-lg font-normal text-gray-500 dark:text-gray-400">developers</dd>
</div>
<div class="flex flex-col justify-center items-center">
  <dt class="mb-2 text-3xl font-extrabold">1B+</dt>
  <dd class="text-lg font-normal text-gray-500 dark:text-gray-400">contributors</dd>
</div>
<div class="flex flex-col justify-center items-center">
  <dt class="mb-2 text-3xl font-extrabold">4M+</dt>
  <dd class="text-lg font-normal text-gray-500 dark:text-gray-400">organizations</dd>
</div>
</dl>

Table example

A serif is a small shape or projection that appears at the beginning or end of a stroke on a letter.

CountryDate & TimeAmount
United StatesApril 21, 2021$2,300
CanadaMay 31, 2021$300
United KingdomJune 3, 2021$2,500
AustraliaJune 23, 2021$3,543
GermanyJuly 6, 2021$99
FranceAugust 23, 2021$2,540

Best practices for setting up your prototype

Low fidelity or high fidelity? Fidelity refers to how close a prototype will be to the real deal. If you're simply preparing a quick visual aid for a presentation, a low-fidelity prototype — like a wireframe with placeholder images and some basic text — would be more than enough. But if you're going for more intricate usability testing, a high-fidelity prototype — with on-brand colors, fonts and imagery — could help get more pointed results.

Consider your user. To create an intuitive user flow, try to think as your user would when interacting with your product. While you can fine-tune this during beta testing, considering your user's needs and habits early on will save you time by setting you on the right path.

Start from the inside out. A nice way to both organize your tasks and create more user-friendly prototypes is by building your prototypes ‘inside out'. Start by focusing on what will be important to your user, like a Buy now button or an image gallery, and list each element by order of priority. This way, you'll be able to create a prototype that puts your users' needs at the heart of your design.

And there you have it! Everything you need to design and share prototypes — right in Flowbite Figma.

Discussion (20)

Michael Gough Michael Gough

Very straight-to-point article. Really worth time reading. Thank you! But tools are just the instruments for the UX designers. The knowledge of the design tools are as important as the creation of the design strategy.

Jese Leos Jese Leos

Much appreciated! Glad you liked it ☺️

Bonnie Green Bonnie Green

The article covers the essentials, challenges, myths and stages the UX designer should consider while creating the design strategy.

Helene Engels Helene Engels

Thanks for sharing this. I do came from the Backend development and explored some of the tools to design my Side Projects.

  • Svelte
<script>
  import { Section, BlogTemplate, Comment, CommentItem } from 'flowbite-svelte-blocks';
  import { Button, Textarea, Label, Dropdown, DropdownItem } from 'flowbite-svelte';
  import { DotsHorizontalOutline } from 'flowbite-svelte-icons';
  import blog from './blog-example.json';
  const comments = [
    {
      id: "comment1",
      commenter: {
        name: "Michael Gough",
        profilePicture: "https://flowbite.com/docs/images/people/profile-picture-2.jpg",
      },
      date: "Feb. 8, 2022",
      content: "Very straight-to-point article. Really worth time reading. Thank you! But tools are just the instruments for the UX designers. The knowledge of the design tools are as important as the creation of the design strategy.",
      replies: [
        {
          id: "reply1",
          commenter: {
            name: "Jese Leos",
            profilePicture: "https://flowbite.com/docs/images/people/profile-picture-5.jpg",
          },
          date: "Feb. 12, 2022",
          content: "Much appreciated! Glad you liked it ☺️",
        },
      ],
    },
    {
      id: "comment2",
      commenter: {
        name: "Bonnie Green",
        profilePicture: "https://flowbite.com/docs/images/people/profile-picture-3.jpg",
      },
      date: "Mar. 12, 2022",
      content: "The article covers the essentials, challenges, myths and stages the UX designer should consider while creating the design strategy.",
      replies: [],
    },
    {
      id: "comment3",
      commenter: {
        name: "Helene Engels",
        profilePicture: "https://flowbite.com/docs/images/people/profile-picture-4.jpg",
      },
      date: "Jun. 23, 2022",
      content: "Thanks for sharing this. I do came from the Backend development and explored some of the tools to design my Side Projects.",
      replies: [],
    },
    // Add more comments and replies here
  ];

</script>

<Section name='blogTemplate' classSection='pt-8 pb-16 lg:pt-16 lg:pb-24 bg-white dark:bg-gray-900'>
  <article class="mx-auto w-full max-w-2xl format format-sm sm:format-base lg:format-lg format-blue dark:format-invert">
    <BlogTemplate {blog} />

    <Section name='comment' classSection='not-format' classDiv="px-0">
      <Comment title="Discussion (20)">
        <form class="mb-6">
          <Label for="comment" class="sr-only">Your comment</Label>
          <Textarea id="comment" rows="6" class="mb-4"
              placeholder="Write a comment..." required>
          </Textarea>
          <Button type="submit" class="px-4 text-xs font-medium">
            Post comment
          </Button>
        </form>
        {#each comments as comment, i}
          <CommentItem {comment} articleClass ={ i !== 0 ? 'border-t':''}>
            <svelte:fragment slot="dropdownMenu">
          <DotsHorizontalOutline class="dots-menu dark:text-white" />
          <Dropdown triggeredBy=".dots-menu">
            <DropdownItem>Edit</DropdownItem>
            <DropdownItem>Remove</DropdownItem>
            <DropdownItem>Report</DropdownItem>
          </Dropdown>
        </svelte:fragment>
          </CommentItem>
        {/each}
      </Comment>
    </Section>
  </article>
</Section>