As a Design Systems Engine
<div class="md:flex bg-white rounded-lg p-6">
<img
class="h-16 w-16 md:h-24 md:w-24 rounded-full mx-auto md:mx-0 md:mr-6"
src="avatar.jpg"
>
<div class="text-center md:text-left">
<h2 class="text-lg">Maya Shavin</h2>
<div class="text-purple-500">Senior FED</div>
<div class="text-gray-600">@mayashavin</div>
</div>
</div>
yarn add tailwindcss
/* main.css */
@tailwind base;
@tailwind components;
@tailwind utilities;
npx tailwindcss init
// tailwind.config.js
module.exports = {
future: {},
purge: [],
theme: {
extend: {},
},
variants: {},
plugins: [],
}
module.exports = {
important: true,
theme: {
fontFamily: {
display: ['Gilroy', 'sans-serif'],
body: ['Graphik', 'sans-serif'],
},
extend: {
colors: {
cyan: '#9cdbff',
},
margin: {
'96': '24rem',
'128': '32rem',
},
}
},
variants: {
opacity: ['responsive', 'hover']
}
}