You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pages/blog/catalyst-v0-1-0/index.mdx
+16-12Lines changed: 16 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
import { adamwathan } from'@/authors'
2
2
importcardfrom'./card.png'
3
+
importvideofrom'./catalyst-switch.mp4'
3
4
4
5
5
6
exportconst meta = {
@@ -19,7 +20,7 @@ Today's the day — we just released Catalyst v0.1.0, our first fully-componenti
19
20
20
21
**Today's the day** — we just hit the deploy button on [Catalyst v0.1.0](https://tailwindui.com/templates/catalyst), just in time for your holiday hacking sessions.
21
22
22
-

23
+

23
24
24
25
**Catalyst is our first fully-componentized, batteries-included application UI kit** — real React components with thoughtfully designed APIs that build on each other to create a real component architecture, the same way we'd do it in a real application.
25
26
@@ -53,29 +54,32 @@ Getting the visual style right on a project like this is hard. We went into it w
53
54
54
55
It took a lot of work and there were a lot of trade-offs to balance, but I'm really in love with where we ended up:
55
56
56
-
_Some sort of image showcasing the visual style_
57
+

57
58
58
59
**To be competitive**, we invested in lots of details like subtle backdrop blurs on dropdown menus, perfecting the way shadows and borders blend with each other on form controls, and thoughtful use of animation in things like dialogs and toggle switches.
59
60
60
-
_Some image showing the stuff I mentioned above_
61
+

61
62
62
63
**To be timeless**, we tried to strike the right balance between flat and skeuomorphic design, with just enough depth cues that our components will look great even if the trends change a bit in either direction.
63
64
64
-
_Something showing off button design probably_
65
+

65
66
66
67
We also took inspiration from the browser, and used unopinionated blue focus rings to avoid picking a treatment that might soon look out of fashion.
67
68
68
-
_Something showing off focus rings_
69
-
70
69
**To be productive**, we worked carefully to make sure there was still plenty of whitespace, but that the UI was still dense enough to fit plenty of information on the screen.
71
70
72
-
_Something showing tables probably_
71
+

73
72
74
73
We also limited our use of transitions and animations only to places where it felt important, and even then tried to keep them fast so it never feels like you're waiting on the UI.
**Catalyst also ships with full dark mode support**, and anything you build with Catalyst components automatically adapts between light and dark modes.
77
81
78
-
_Something showing dark mode_
82
+

79
83
80
84
It's not obvious, but there are a ton of little details we had to change to make things look their best in dark mode, like adjusting shadows, changing outer rings to inner rings to mimic the change in lighting, and more.
81
85
@@ -88,7 +92,7 @@ We spent a _lot_ of time working on the component APIs, trying very hard to make
88
92
89
93
It's common for UI libraries to use APIs like this:
By keeping things composable like this, it makes it really easy to do things like constrain the width of the input, without constraining the width of any of the other elements:
0 commit comments