When it's all done, I can just pop over. I can see I've got a new contact link in the header, so it figured that out automatically. And boom. There's a new contact page. It's beautiful. But getting a new design is great, but what if the design updated? So let me show you what we can do for that.
I'm going to exit out of here. I'm just going to save, commit it, and let's pretend our design updated. Let's say we're going to remove a couple of these fields, and I'm going to select a couple things and we're just going to use some blue highlights now. Maybe this and this. We're going to change these selection colors to primary blue. Okay. A little more fun blue accents.
If I want to bring those design changes in, all I got to do is hit Experts Code again. When it's done breaking it down, I'm just going to grab the CLI command. Same thing again, it's a lot like just copy and paste from Figma. I'm going to run the CLI. I'm going to this time, just say update the contact page, update the contact page with the updated styles, and then just let it rock and roll.
The cool part is it'll figure out automatically what should change. It'll leave the rest untouched. And this opens up some interesting opportunities that we call parallel development. If we want to move faster as a team, one thing that could be great is just have a draft of a design. It doesn't have to be perfect and final. We're not trying to do waterfall development here. And then go and start implementing.
And if the design changes, that's fine. We implemented the original design, the code, we added the functionality. And if the design went further, we got user feedback, et cetera. We can just work that in any time. And so here we can take a look at sort of our diff. We've got, great, we've got our updated colors. Let's go back over the index. So you could see we're updating the colors that we wanted, including dark mode styles here too, so it's able to infer that automatically and not changing anything else, as well as removing our form fields, et cetera, to match the design updates that we had. So here we could just commit the diff and move on. It doesn't have to be a net new thing every time. Anyway, so a million more things we could show here, but I hope this was a helpful overview of interesting tricks I would recommend trying. Cursor and cursor agents, not just for adding UIs based off of specifications you have, but turning on YOLO mode, giving it specific allowances, like it's only allowed to run tests automatically and have it run tests and iterate until tests pass, and then use tools like Builder to sync designs from code, if not just once. You can add and prototype visually with your whole team as well, and then pull down or use a CLI that connects and update every time designs changes. Try these out in your next workflow and let me know how it goes.
Comments