Project 2: Tailwind Custom Designs & Logos - Discovery How to Get Started

If under 'Designs&Logos', a logo doesn't show, it didn't render due to ur Browser [*Safari is known for this shortcoming]
icons8-ClockClock icon by Icons8
This Clock[ICON] gets retrieved from an animated-gif file* in the repo
[*i.e. non-SVG-based rendering].

Requirements (a sw-component):

  1. for the purpose of compiling your styles [on-the-go] and
  2. to launch 'live-server'.

Pre-requisites ( npm commands: npm install & npm run dev ): install and run TailwindCSS

TailwindCSS Hello
Figure: This is the Hello page that can be opened from 'sub-dir' /src of project dir

Tailwind (OpenSource-sw as is) has a shortcoming: it doesn't come w/ pre-designed UI components eg. Cards / Buttons. Instead, it's a low-level class, that lets You build custom designs. However, this means that for instance Cards and Buttons, for that matter, are some of the many possible to implement. So define Tailwind components as follows:
its @layer components {
(for a) .card (And,) @apply "a FlexBox", justified & centered (or so).


In this project, I jumped into ready-made Logos [downloadable in two file-formats, SVG is recommended]. My Discovery: Logos can be placed on web-pages [pasting its tag 'inline' or as SVG-file].
By default [inline-tagged] Logo's size-values are not big enough to notice it. Making an adjustment to size better ables to produce the Logo to look more like a bigger and even colored Logo (that looks more like an 'ICON').

Through a Trial & 'No-Error'-msg, the Lesson Learnt: style.css in this project needed adding a style-class-tag-definition. So [**tag: svg xmlns=... class=ˇw-[value] h-[value]ˇ] placing these values in index.html adjusts SVG even up to be looking-like-an-'ICON'
[**in my experience, this was the case: custom.css has 'GlobalStyles' that apply to other projects' web-page content as well. So in some page-design scenarios, the size-adjustments to Tailwind's class-coded values often in design, is to resize inline placed Logo. Well it was tricky! And, inline-Logo might not show on browsers like Safari* [*Stackoverflow.com has comments on Safari related render issue]

← Back to Portfolio, ← Click!

For instance [Get Stated using]: section className="m-12 flex h-screen items-center justify-centre bg-green-400 text-center text-3xl¨

Break Down of above codes: flex = .flex { display: flex; || items-center = { align-items: center; || justify-center = .justify-center { justify-content: center;
Codepen's TailwindCSS Hello
Figure: CodePen's Tailwind Hello page automagically opes in app once you enter Setup Scroll down enter tailwind and 'click!'
→ TailwindCSS Tutorial for Beginners, to find out more! Click-this-Link →