Tailwind
- Add the following colours to your Tailwind config
/** @type {import('tailwindcss').Config} */
module.exports = {
theme: {
extend: {
colors: {
'twitter-black': '#0f1419',
'twitter-grey': '#536471',
},
},
},
}
-
Add
twitter.svg
to/public
and adjust the path in the component if needed -
Add Twitter avatars to
/src/assets/avatars/
with{user}.jpg
filenames
<div class="flex flex-col md:flex-row gap-4">
<Tweet
class="flex-1 md:w-0"
id="1674801223235665922"
user="zeldman"
>
… Have purchased and installed. Works beautifully in Safari. Beautiful UI, too. Already breathing easier …
</Tweet>
<Tweet
class="flex-1 md:w-0"
displayName="Corey Quinn"
id="1790396191534195044"
user="QuinnyPig"
>
Holy crap my favorite extension knows who I am!
</Tweet>
</div>