Dark theme Tweet with JavaScript
Adding Twitter’s widget script will hydrate the HTML markup of <Tweet>
.
<script async src="https://platform.twitter.com/widgets.js"></script>
<Tweet theme="dark" id="https://twitter.com/astrodotbuild/status/1632809919291457537"/>
The above code produces the following result:
Welcome, world. https://t.co/hibLNamu3v pic.twitter.com/prRRSbjT5h
— Astro (@astrodotbuild) March 6, 2023