Auth UI is a pre-built React component for authenticating users with Supabase Auth. It supports custom themes and extensible styles to match your brand and aesthetic.
Hey friends! π (It's been a while!)
Some of you may already know, Auth UI started out as a component called `Auth` in our Supabase UI GitHub repository. We saw lots of developers we're using the (quite large) `supabase/ui` package just so they could use the Auth component.
We decided to double down our efforts on that component, we moved it to it's own repository, and renamed it Auth UI. We've also added a bunch of features developers we're demanding from us...
π Pre built themesβ¨ - We will be making pre-made themes so you can get going right away. No styling necessary.β¨
π§° Extend appearance of theme - β¨Not happy with the prebuilt themes? Override variables from prebuilt themes with your own styles.
π Theme sets (dark mode) - β¨Extend and configure multiple sets of styles in a single theme. That means you can include dark mode, light mode, sepia mode...β¨
βοΈ Custom css classes and inline styles - Inject css classes so you can target specific elements and also inline styles. A prepended ClassName can also be added to all elements.
π£ Custom labels - β¨Use your own text for any of the labels, so you can now accommodate for various languages, or perhaps different tones of voice.
What's the future of Auth UI?
We'd like to keep working on this and improve it for more use cases such as:
π Phone auth - Support for Supabase Phone Auth, so a user can input their OTP into the Auth UI to log in.
π More frameworks - We've only shipped React so far, but we've had requests for Svelte and Flutter support.
πͺͺ Profile UI - Perhaps prebuilt UI for viewing user information, user profile, and user actions to update password, update details and so on.
One more thing...It's all open source.
View all the code here right now on GitHub.
Also a shout out to stiches.js. We used it to make the customization part possible. πͺ‘
---
Thanks everyone.
Feel free to leave your positive (and negative) feedback and comments.
Jonny,
Supabase team
I'm always on the lookout for tools that make my dev life easier and help me build cool stuff without having to remember how to do a million things. This looks really cool! Saving to my list to check out. Congrats on the launch!
Hey friends, we're constantly aiming to make Auth as easy as possible and this is another step into that direction. Let us know if this is useful for you and what features you would like to see. Thanks :)
Great stuff! Been trying out Supabase for a recent project and so far very happy. The documentation across the site needs cleaning up, though. For example, there are multiple versions of Auth floating around and one of em is deprecated? Another one only works with an older version of React. That's all a bit confusing.
@mictuc Yea, we're in the process of upgrading things to supabase-js v2.
Got any links to the docs pages you're struggling with? we can prioritize getting those looked at.
Love to see this one out! Auth UI is a great and fast way to get auth working while also matching your brand and aesthetic π€π―
Can't wait to see what the community builds with it!
Love this! I have so many snippets of code for this that I am taking from project to project, glad to see this done properly in a such a modular way. (And yes, Mac theme is the best π )
hey @everconfusedguy !
Some of you may already know, but Auth UI was a component called `Auth` in our Supabase UI GitHub repository.
To my genuine surprise (I didn't think anyone would use it) we saw a lot of developers using the component in their own apps without using any other components. They were also applying custom hacks to change various styling or to replace text in the labels.
It made sense to properly support the Auth component as a standalone package, and also remove it from a package that was primarily a library of radix react components that were styled with tailwind. We also didn't want to force developers to use Tailwind just to install a UI component.
Now that it is in its own repo and package, we can probably also think about supporting other frameworks more easily like Svelte and Flutter.
Wow, this looks amazing! Congrats on the launch!
I'm an engineer on the Supabase Realtime team and we're currently building an app with Phoenix LiveView that'll make it easier for developers to play with and debug their Realtime functionality.
I was just thinking about adding auth as next steps so developers can sign in and select their projects without manually having to copy/paste.
We'll explore integrating this swanky auth UI component into the LiveView app and drop some feedback.
Keep up the great work!
This looks amazing! The added theming flexibility, and that it got spun out due to how developers were previously using it, is just fantastic.
Love that the community has a voice when it comes to Supabase!
@_pcnc There were a few issues popping up on GitHub and I was also seeing some weird hacks developers were trying just to do something like change a label. Hopefully this is a step in the right direction π
Supabase