supastarter - build in public log #5
๐ ๐ผ Just build this color mode picker with zag.js (headless component library) and Tailwind CSS.
Awesome combination, you should definitely try it ๐ฅ
A wonderful sunday everyone โ๏ธโ๏ธ
What a great weekend for some coding! ๐ง๐ผโ๐ป
I am curious: What VSCode theme do you use?
For me it's currently the Github Dark theme:
supastarter - build in public log #5
๐ ๐ผ Just build this color mode picker with zag.js (headless component library) and Tailwind CSS.
Awesome combination, you should definitely try it ๐ฅ
A wonderful sunday everyone โ๏ธโ๏ธ
What a great weekend for some coding! ๐ง๐ผโ๐ป
I am curious: What VSCode theme do you use?
For me it's currently the Github Dark theme:
๐ง๐ผโ๐ป Fixed a bug and added a small new feature (redirect after signin) to the current supastarter version
๐ Now continuing to work on the password reset flow for new supastarter version.
What are you working on this weekend? ๐ฅ
supastarter - build in public log #2
๐ ๐ผ Using my friday night to design some more components for the new supastarter version (for example alerts and inputs)
Do you like the look?
supastarter - build in public log #1:
๐ ๐ผ designed the new signin form
๐ง๐ผโ๐ป started implementing "password reset flow" with next-auth
๐กlearned how tailwinds arbitrary selectors can help me style child elements in components
It can also be helpful, if you don't have direct access to the content of an element and there cannot add tailwind classes.
Learn more about arbitrary variants in the official tailwind docs:
โจ Tailwind CSS quick tip
โก๏ธ Style child elements
๐ก Using arbitrary selectors you can style child elements from within a parent. I use this for example for icons in my button component, so I don't have to apply the styles all the time manually.
https://play.tailwindcss.com/UyHXxgNDNu
โจ VSCode quick tip
๐ก You can enable showing the parameter names of a function for JS/TS.
This is incredibly helpful, especially for functions with many parameters ๐ฅ
I am thinking about tweeting a daily log of what I am doing for supastarter (marketing, sales, coding, etc.) ๐ง๐ผโ๐ป
Would you be interested in that? ๐ง#buildinpublic
You can define scroll-margin for all sides of an element. The exampel above uses scroll-mt-20 because the header has a height of 20.
Read more about scroll margin in the official tailwind docs:
โจ Tailwind CSS quick tip
โก๏ธ Scroll margin
๐คฏ This blew my mind, when I found out it possible.
๐ก Use scroll margin to scroll to an element with offset. This is super useful when you have a fixed header on your page and want to scroll to a section.
https://play.tailwindcss.com/KfT5RHBPMj
๐๐ธ โฌ1624 revenue (-20% | โฌ4787 in total)
๐ 2952 unique visitors on website (+90%)
๐๏ธ 2 podcasts recorded and 1 article published
๐จโ๐จโ๐ง 774 new followers
๐ ๐ผ New logo #buildinpublic
What others stats would you like to see? ๐ฅ
If you only want to apply important to one specific class, prefix it with an exclamation mark like !font-bold
This will add !important only for this specific style.
You can also also define a css selector in the important config, which will prefix all your tailwind classes in the output stylesheet with this selector, so your styles will have a higher specificity.
Read more on css specificity here: https://css-tricks.com/specifics-on-css-specificityโฆ
โจ Tailwind CSS quick tip
โก๏ธ Important config
When using Tailwind CSS together with other styles or a component library, you might run into the issues, that those override your tailwind classes.
Here are some possible solutions using the important config ๐๐ผ
โจ Tailwind CSS tips are back
โก๏ธ Text gradient
๐กUse bg-clip-text + text-transparent to make the background gradient clip to the text.
https://play.tailwindcss.com/HALaNGP8xh
Hallo Friens!
Eine neue Folge ist live! Dieses mal habe ich mit @jonathan_wilke gesprochen. Jonathan ist Indie Hacker. Was das bedeutet und wie das geht, erfahrt ihr hier:
#indiedev#indiehackers#germandev#podcasthttps://open.spotify.com/episode/25qH3qCehfuSqI6uQLOMiu?si=8bd328fa92894abcโฆ
The bootstrapped founder - @arvidkahl@devenv_podcast โ @luckybusted@indiebitespod - @jmckinven@minimalempires - @TweetsOfSumit
Startups for the rest of us - @robwalling
The SaaS podcast - @omerkhan
Quick announcement ๐ฃ
I am taking a week off from Twitter to get some headspace and focus on building ๐งโ๐ป
Iโll be back with #buildinpublic and Tailwind CSS tips next week ๐
Keep hacking, friends ๐
Tailwind CSS Tip
You can create some cool looking loaders and spinners using @tailwindcss. Thanks to @tailscan for the inspiration.
Demo & Code https://play.tailwindcss.com/OPAsySKNCd
(14/30) follow for 16 more tips