Tailwind Css
Tailwind Css
tailwindcss
Klaus Fischer
[email protected]
@klausinger
Goal
Motivate 3 people
to try tailwind!
How is the motivation happening? (Agenda)
1. What is tailwind?
4. Quickstart
A utility-first
CSS framework
for rapidly building
custom designs.
WTF Utility-first
High
and
DRY
#soDRY
2. What problems
does tailwind solve?
Scope: Think less when styling
<span class=”text-lg
md:text-xl
hover:text-red
md:hover:text-blue”>
Importante!
</span>
Establish flexible design systems
‐ Atoms → Components
.tw-input {
@apply px-4 py-3 border border-gray-400 appearance-none;
}
It’s CSS only!
‐ uikit 2 → uikit 3
‐ Encourage enthusiasm
‐ Decide afterwards
“Mkay, gimme half the pill and a way out.”
Technical integration
‐ SCSS (uikit)
‐ Gulp
→
PostCSS
Why PostCSS?
‐ postcss-preset-env (!!!)
‐ tailwind.config.js overrides
‐ Start building!
4. tailwindcss Quickstart
tailwindcss Quickstart
‐ Component-based approach
‐ Improve combo-readability
‐ https://www.tailwindui.com/
‐ Share experiences!
Summary (finally!)
Summary
Klaus Fischer
@klausinger
STOP CSS NOW, TALK JS
Wanna code tailwind or something else?
klaus.fi[email protected]
Klaus Fischer
@klausinger