Fabian Bastwöste (@amprosius) header
Fabian Bastwöste (@amprosius) profile picture

Frontend developer with autism. I like to teach the stuff I build and share my best practices.

Germany
Joined October 2021
Photo by Fabian Bastwöste (@amprosius)Photo by Fabian Bastwöste (@amprosius)Photo by Fabian Bastwöste (@amprosius)Photo by Fabian Bastwöste (@amprosius)Photo by Fabian Bastwöste (@amprosius)Photo by Fabian Bastwöste (@amprosius)Photo by Fabian Bastwöste (@amprosius)Photo by Fabian Bastwöste (@amprosius)Photo by Fabian Bastwöste (@amprosius)Photo by Fabian Bastwöste (@amprosius)
"Every @tailwindcss website looks the same." Well ... if you don't use predefined design systems, that's not true. I recently updated gothic-reloaded-mod.org from Bootstrap 5 to Tailwind 4 + Elements and reduced the CSS and JS assets to ~ 20 kB combined.
1
71
An inline tag group built with @devongovett's React Aria Components and @tailwindcss. Check out the example and the code here: amprosius.de/recipes/inline-… The styling is borrowed from @tailwindui's "Input group" and "Badge" to show you how awesome and fast you can build anything with their components: tailwindui.com/components/ap… This example uses React Aria's tag group under the hood: react-spectrum.adobe.com/rea…. It's completely accessible and keyboard friendly. I also thought about adding animation to the tag group, but that would have come at the cost of losing accessibility. So I ditched the animation and simply used a matching style for the placeholder so you don't have a layout shift when you add a tag. A learned a lot building this and I'm happy to finally share it with you! If you have any suggestions how this tag group can be improved, leave a comment.
2
9
110
16,196
Update for the Inline Tag Group: ✅ Styling with Tailwind CSS ✅ Built with React Aria Components ✅ Adding tags ❌ Removing tags ❌ Animation with Framer Motion #builtinpublic
2
217
Working on an accessible tag group in combination with a combo box that will look like an input field with tags inside. Built with Tailwind CSS, React Aria Components and a sprinkle of Framer Motion. Stay tuned!
2
159
What if I told you that you don't need Framer Motion for some nice and smooth transitions? This example only uses CSS transitions. Inspired by @emilkowalski's course on animation and powered by React Aria Components. Feedback is welcome. amprosius.de/recipes/animate…
1
226
Learn how to create clean reusable skeleton components with @tailwindcss. Narrow down types with template literals and access object values with directly using their indices on the definition. A big thanks to @iLoTepxo for the initial implementation! amprosius.de/recipes/skeleto…
1
1
145
Problem: I have multiple interactive elements with rounded borders that I want to concatenate into a single shape without touching the elements themselves. Solution: Wrap the elements in a `Group` (I used React Aria Components as always) and handle the children's styles with modern @tailwindcss features like arbitrary values, the `&` selector and the new `:has` variant. amprosius.de/recipes/input-g…
4
218
Writing a new recipe for input groups with @tailwindcss classes like: [&+*]:*:-ml-px It feels like just putting random characters after each other, but trust me, it'll all make sense in the end. It's awesome to be able to chain all of this by default!
1
132
I built a more polished version of the animated tabs using Tailwind CSS. Also got the color transition working as suggested by @samselikoff. As always this example uses React Aria Components because it's awesome. Interactive example: amprosius.de/recipes/animate…
1
23
3,447
Replying to @devongovett
@devongovett is there any way I can use Framer Motion's `AnimatePresence` on a dynamic collection (react-spectrum.adobe.com/rea…) or do I have to use an array map for that?
1
77
An easy way to inherit colors from the parent is to define custom properties on the parent and use these properties on the child. Works very well for components with a `color` property like tags. Working example repository with React Aria Components: github.com/AmProsius/tag-gro…
1
161
I recreated Tailwind UI's tab switch with React Aria Components. Inspired by @_buildui's Animated Tabs recipe: buildui.com/recipes/animated… Sandbox: codesandbox.io/p/sandbox/ani…
3
2
42
7,292
Whenever I add an atomic component to my project, I also add a skeleton loader for that component. The skeleton renders the shape of the component with a loading animation and requires a width utility class from @tailwindcss. This makes loading states much more readable in code.
1
121
This post is inspired by @mattpocockuk's question for types with template literals. nitter.cf/mattpocockuk/status/17…
What do you use template literal types for in TS? I'm talking types, like: type Route = `/user/${string}`; I'm having a mental block and can only think of routes.
1
120
I've created a simple installation guide for using @tailwindcss with the @symfony framework (with an optional ready-to-use repository): github.com/AmProsius/symfony…