Syntax Video
Are we cooked? Claude Fable is out of hand.
Transcript
Can a vibe coder outcode a senior developer? Today we're going to find out. I am joined by West Boss and Randy Recctor, the syntax producer. Welcome in guys. Thank you. Thank you. Stoked to be here. So today they're going to be recreating this button that we found on Twitter by Raul Drunka. Wes can use whatever he wants. He can he can use AI. He can vibe code. Randy is a bit newer to this space. So Randy, can you first who are you?
I'm producer Randy. So I I produce the videos here. I do the editing on our YouTube channel. Uh trying to make the guys look nice. Nice. And what's your experience with Vibe coding? Like have you made apps before? So mostly like video editing related. Mostly running scripts inside Da Vinci Resolve. Lots of experience with Python, but not actually coding it, just telling the English language how to fix it.
Randy is an absolute dangerous by [laughter] coder. Like the stuff that he comes to us with. Yeah. And he's just like, "Look what I build." We're like, "Oh boy, he's out of control. He's writing Python. Okay. So, the rules are you're going to have 20 minutes to build this thing. I'm going to have a 10-minute check-in. So, at 10 minutes, we're going to kind of just do a quick recap. Then, I'm going to grade you at the very end. So, I'm going to grade you first just on overall aesthetics. How close is it to the original video of the button that you're trying to recreate?
And this will be a small portion of your score, but I am going to look at the code. So, we'll see if the AI generated code from either of them is scalable. like does it work on multiple screen sizes? Like does the code look decent? Would I want to work in that codebase? So, are you guys ready? Ready. Let's do this. Let's do it.
All right. 10 minutes. Here we go. All right. So, I am looking at this button now, and I'm seeing several things. There is obviously the blue uh mosaic background, the 3D effect, an effect. When you move the cursor, it sort of lightens what's around it. And then there is an effect when you click it, the circle will sort of ring out.
All right. Uh I don't know how the guys talk and do this at the same time. We're gonna see. I think I gonna have a lot of time here to to think because this thing's just going to be working away. Um and I got dictation set up so I can just talk to it. And I hope that's going to be a little bit faster. So I want to create a button. And I've got you pointed at a repo in my folder.
Yeah. I'm very curious to see how how Randy pulls this out. So he has claude desktop which I haven't used. I use cloud CLI. He has it open in the folder with with the starter template. So we have a starter template with HTML I think like a base CSS file and then it's going to be modified from there. And the HTML also has a link to the X post the Twitter post. So it probably could do some screenshots and figure out I don't even know if it can watch the video.
We'll see how how it's doing. Monochromatic blue pattern behind it. That's maybe. Let's count these out. I guess I don't want to include that. Oh, it's still going. Oh, no. I want to generate the background programmatically in JavaScript. So, this is something I I reach for AI to do all the time. So, what I'm going to do is I'm going to grab a color picker and I'm going to try to grab this is the standard I'm a web developer way to do this. Get the get the the color picker out. Figure out what is your palette, you know, just be very methodical about it. Whereas Randy is kind of taking like a bigger bigger picture view here.
He's trying to really describe 44 when I honestly I think an easier approach would be just give it a screenshot of the button. I want this to open in my Chrome instance and I want it to have hot reload so that I can make tweaks very quickly and see them live. Yeah. And I like Ry's approach here. I was curious how he's going to tell it that he wants to be able to preview it.
So he's using Fable. It's very possible it'll spin up like a a V dev server or something where it gets auto refresh. Create a function that uses HTML canvas to generate a mosaic of tiles. The colors should be random from the variable blue one to the variable blue 2. The size of each square should be 20.
The gap should be two, which is set to the square gap variable. And the squares should stack 13 high by 50 wide. Make sure you create variables for everything so we can quickly change out these values. I think what's going to happen here is I'm going to get really really far ahead of Wes very, very quickly and then I think I'm going to plateau and I think Wes is going to pass me. When it comes to pixel pushing, I think that's where the limitation of being a vibe coder is really going to live. But I think I'm going to get something on the page super quick. So we'll see. We'll see how long this takes here. for 30 seconds. Burning through some tokens here. Thank you, Sentry, for allowing me these free tokens, by the way. They're not free. We're paying for them. But this video is brought to you by Sentry.
What a rip. Yeah. And uh we can now see how a senior developer prompts an AI. It's cool to see that both of them are using uh speech to text, so they don't have to type it in. That's really a work a workflow maximizer. So Wes's button is kind of looks like like Windows XP almost. I'm sure he'll he'll get there.
It'll set the font. Make it bigger. Okay. So, it's looking for a port that it can use. I think it's found one. I should have something on the screen here. Let's see. Oh, come on. Come on. Let's go. Okay. Pretty close. Obviously, right off the very first prompt has gotten him the base button. What? We are like what? 4 minutes into this challenge. Oh, it is opening up in my actual Chrome. Look at this. Oh, man.
Wes, get wrecked. Get wrecked, Wes. All we need to do right now is work on the hover effect and this nice little All we need to do is work on the hover effect. We'll see. We'll see how AI approaches this. Um the width is 100%.
Um padding 50px border radius. Okay. Uh I don't need uppercase. That's actually looking pretty good already. Yeah, Wes is looking great. Let's just make that 80%. Let's overlap this. guessing he he had AI generate a function to [laughter] to give it that more of that gradient style.
When the cursor hovers over the button, it should have a slight white glow outward. And when you click on the button, there should be like a waterlike ripple that ripples out from the middle of the button toward the outside. It looks like it's just one single ripple with no decay or anything. All right, we're off. Let's see what this does. Let's see what this does.
Baby, this looks really good. Okay. Looking amazing for 5 minutes in a Wow. border bottom on this button. We need to take these. Here's what we'll do. Can you inject the blue variables into the body as CSS variables so I can use them in my CSS? This is this is the issue here, right? I'm I've been waiting now like a couple of minutes for this next step. So, I could open up a second maybe that's what I do. Maybe I open up a second one and just tell the robot to do something else while it's focusing on this cuz I could probably get this. Oh, whoa. Look at this. [laughter] Dang.
Classic five coder. Surprised that the code is working. Let's try clicking. Oh man, it did that. Okay, so it's not under the cursor though, so we need to move that under the cursor. No, I'm not going to fuss with the all of these little details. I always do this. I always start fussing too much. I think what we should do now is start working on Yeah, let's do the mouse thing because there's going to be two things that follow the mouse. Okay. So, see see the grid in between here? How it's the there's the grid lines in between?
They're not getting lighter as I do that. Okay, great job. The hover effect looks pretty good, but one challenge is that the dark grid lines in between don't also illuminate from the hover effect. Those also need to go up in brightness. All right, so we'll give it that. I think that's pretty good. We'll get the the hover effect last, like the the sort of um side to side skewing that's happening here. Panning, tilting, yaw, yaw. might be yaw.
These little subtle interactions like hover effects and and everything else like that's a lot harder to just express in words. We'll see what Randy comes out with, but I I feel like we're reaching the limits of exactly what you can just describe to the AI without really knowing how how I guess how UI works or how code works. I don't know. So, let's go into our button and we're going to have three elements. We're going to have the button text. We're going to have the We're gonna have a span with the button glow.
There's a second one. If we put the controls on this video and start to scrub it. Yeah. You see when he clicks, there's like a a button explosion. Now, that will be the next one. We'll call that an explosion. Oh, this is looking good. Okay. So, yeah. See this? Now, it's actually starting to make the grid lines lighter, too. So, the grid lines are going up. We also want to check the Yeah. Okay. Okay. So, that's too bright.
We're gonna have to darken that just a little. It's not quite as pronounced when he clicks. Yeah. So, Randy actually is getting really really close, but again, he's gonna have to describe the spread of this ripple, right? The the brightness is wider. It needs to be more uh has more have more opacity. The ripple effect that you created is great, but the wave itself needs to be wider and slightly less strong.
Less strong. Yeah. Less we want to take this and do overflow hidden on that. When I hover over my button, keep track of where the mouse pointer is. Inject the X and Y values into variables on the button every time I move my mouse. Great. The speed of the ripple needs to go across faster, and it needs to be even less visible, a little bit more translucent. Let's think of dialing it down to like 60% of what it currently is. So, what that's going to do is it's going to take the X and Y values of my mouse, give them to me as CSS variables, and then I'm going to be able to modify the these values here based on that. I probably could use CSS anchor position, but I don't know that as well as I do just absolutely positioning it. So, what we'll do is var dash dash mouse Y and mouse X. So now when I move this, look at that. Okay, let's try this. See if it's got this
down. Oh, that looks so much better. It looks a little bit different as a timing pretty darn good. Watch out. Right now, watch out, Wes. Okay, the hover effect is more like like a a white opaque blob instead of actually affecting the background color of each of the cells. The border radiuses need to be squirles. Can you make them a squirle instead of just a simple border radius? Oh, CJ's calling me. Okay, okay, okay. I got to I got to pause here. [laughter] So, we're 10 minutes in. I just want to do a quick check-in. How you guys feeling?
I am way farther than I thought it would be. I am doing fantastic at this. It's a really fun exercise. I just know how to tackle it. I'm feeling really good about it. Nice. What about you, Randy? I'm feeling pretty good, too, Wes. I'm not going to lie. I'm feeling pretty confident about this. It's very interesting to see it written in plain text using words that we don't normally use, but then AI is able to figure it out. But let's get back into it. 10 minutes left. You think you guys can finish it in 10 minutes?
It's going to be tight. Uh, let's see. Let's see where we're at in 10 minutes. Okay, I think I can finish it in one more prompt. What? [laughter] Maybe we are cooked, guys. We want to make the box shadow of this glow quite a bit more, right? Um, so 0 0. What if this is five? Okay. And then the walk. Yes. But then we bring it way down. Okay.
Uh, it doesn't dissipate as nicely. Maybe I have this is too much here. I don't know what the actual term is for this. I'm going to say it's yaw and skew. We're going to go with that. Fantastic. Okay. Now, in the hover effect, we need a way to make it sort of yaw and skew like in the video. You can reference the video to see what I mean.
But as it's hovered, the sides kind [music] of tilt almost in a 3D space. There's a little bit of vertical tilting. It appears to be. So, good luck. [laughter] Good. Good luck, AI. Interesting. It's It's getting jerky. Why is it jerky? Why is it doing that? Oh, no. I got rendering problems now. Why is it going into a square? Um, okay. We got too many decimal points here.
Round to the closest pixel. Oh my god, look at this. Look at this. Holy crap. We're cooking. When I move my mouse quickly, it seems to get jittery and the border radius goes almost square for a while. Why would that be? Well, that is figuring it out. Um, let's work on the 3D effect.
So, what we need to do is go to our button and put a perspective on it. We want to preserve 3D. What is that? What is the preserve 3D? Transform [music] style. Then we want to transform translate Z. I've built this so many times in my career. Oh, actually, look at that. When they're off of it, it's quite a bit more muted. And then when it gets to Oh, that's interesting. When it gets to the edge of the button, look what's happening over here. See how this is dark on this side? Oh, there's a bit of a uh shadow on the inside of it. Oh, how are we going to prompt that? Okay.
Also, there needs to be a slight inner shadow around the outside of the border, giving it almost a slightly embossed effect. Also, before the button is hovered, there's should be a slightly darker blue or solid blue layer on top that dissolves slightly as the cursor hits the edge of the button.
That's a good way to describe it. Like, I actually would describe it as each of the cells is changing colors, but you should get that effect if you already have them the color that they should be and then a layer on top that dissolves as your mouse moves to show through. Transform. Oh, no. It's rotate. Rotate. Rotate.
What is the flip one? Is that rotate Z? Rotate X. Okay, there we go. So, yeah, Wes is working on the 3D here. He's working on the transform, trying to get that rotation. And he's going through each frame of the video to really identify like how that that skew is is happening. We don't need Z. Yes, that's what we need. The Y and Z. Okay.
So, I wasn't quite right on about having one more prompt to finish this. There's a couple a couple little tweaks here. It's looking much better with that blue overlay over on Ry's side. I think he can get there if he kind of just has the AI tweak the amount of opacity as his his mouse hovers on it. Let's look at this. Get started. Get started. It's also Theirs is more blue. Mine is a bit more purple. Blue layer that you just added on top seems a bit more purple. We need to make it more blue like the original layers.
When I move my mouse over the button, I want a subtle 3D look. When I'm in the bottom right hand corner, that corner should be rotated down. And as I move my mouse around to the different corners, it is rotating on the X and Y value to give it a subtle 3D look.
Cuz Wes was trying to do it by hand first and then he just resolved to to prompting to get it out. So, we only got about 4 minutes left. The animation and transition when the cursor hovers over it needs to be a little more gradual and a little prettier. We'll see how that does. Okay. Okay, you don't need to build my application every single time. I'm running a dev server elsewhere. Can you create two variables that constrain the X and Y? In fact, I need you to turn them both up a little and then we'll tweak the values.
Oh my gosh, the button mosaic is being injected as base 64. Yeah, that's going to give you rendering issues. It would be better if you use the canvas 2 blob to give it a URL value. Okay, this looks better. That is less purple. Perfect. Perfect. All it. But when I hover it, it goes a little purple. So, let's get rid of that. Maybe it's going to do it itself. Who knows? We'll see what the robot does. Okay. A couple small fixes here. The yaw needs to be a little bit more. The skewing that happens as you hover over it. And also, once you hover it, the base layers seem to be a little bit purple still. Let's make them all the same sort of monochromatic blue color. Look at it spelling color like an American.
Since that image is already in memory, you can simply just create a blob URL to that image. And that didn't fix my problem. [laughter] Damn it. Damn it. Damn it. Damn it. Okay. Um, close enough. Okay. Two fix. Oh, it's more tilt. Oh, why wasn't anything tilt? Okay.
Wo. Ry's is looking good now. I do think the hover effect is not quite it. And watch that corner as it reveals. You can see it fades out that sort of solid color. I think I need the solid color actually needs to be a little bit I don't know. Let's look here. Their uh shadow of the inner shadow is [music] way it comes out to like here. That's like what is that like 50 pixels probably 100 pixels. So I need to make the shadow quite a bit bigger. Like my shadow is maybe only like let's say let's tell it to double the shadow. Ah, it doesn't look as good. Doesn't look as good. Um add a slight blue glow to the outside of the button. Got 2 minutes left. 2 minutes left. Um 20 minutes. You think 20 minutes is a lot of time, but man, it is not. It's going to add the ugliest glow. I guarantee you.
Oh, that's actually decent. Okay. All right. Only 2 minutes left. Let's see what they're going to pull out in these last few minutes, though. I think Ry's also that beautiful inner shadow that you made. It needs to be a little bit stronger and about double the size. Add a another element for the button explosion. This is going to be similar to button glow, but it will only show up when I click and then it will grow in size and sort of explode out. Think of it as a glowing ring. I did not expect to be prompting this much. I expected to be coding a lot more by hand, but 20 minutes up against producer Randy, that's not a lot. Um, let's tweak these values here. Max Y rotation. Let's take that to 15. Oh, there's a there's a shadow across the whole bottom of the button. Wes is probably hoping I didn't see stuff like that cuz he's going to notice stuff like that. He's like so dialed on this stuff. There is a shadow across the entire bottom of the button.
And it looks like there's like a slight radial. See, I'm I'm accomplishing it with like a sha uh I don't know what the word is I'm looking for, but a shadow on the outside. And I think it's actually a radial gradient if you look at this here, cuz it's like the brightest right here, and then it gets darker vignettes as it goes out. Oh, shoot. It just messed that up. See, it just made the border like smaller and stronger.
That looks pretty good. We got the click. Oh, the click. See, this this looks like an AI did it, right? He's getting there in the last minute. It's looking much better, though. Yeah, his explosion click is not quite there. It's like a solid circle, but I saw his hover interaction. Those are looking really good. Like 20%.
It still looks like This is such a crappy AI design. There should be a slight vignette toward the outside starting from the top middle. This is sort of what I've been trying to accomplish with the shadow on the outside. Look at the original frames. It needs to have a bit of a shadow specifically across the bottom of the button and in the corners. The lightest spot should be the top middle. The box shadow also needs to be inset. The ring is too defined. It needs to have a glow inward and outward. 23 seconds.
Boom, boom, boom, boom. See, this is Yeah, this is iteration hell. Like, I did say make it stronger, and this is what CJ's talking about how like my vocabulary might not match up to what a developer is looking for. And I think Claude is looking for what a developer would say here. I I said earlier embossed and I think it's adding that. There we go. Okay, that's way better. Okay.
You know what? I also didn't do this glow. when you hover over top of the glow, it's like it's making the and more saturation on the whole thing behind it brighter. So, what I'm going to do is let's go back to our more saturation and maybe we could pop a mix blend mode pretty close to time here.
Oh, CJ's waving mode. I got that last prompt in. We're good. Oh, time's up. Time [laughter] is up. How are you feeling after those brutal 20 minutes? That was not enough time. [laughter] And it it just goes to show the difference in UI of like I I prompted way more than I thought and it's just like a crappy version of the button.
There are so many little things that the original designer did that are hard to put into words unless you like sit down and are able to tweak each individual thing. Your final challenge is I need to be able to use this button. Oh, I don't even know how to get that to you. Exactly. Okay. So, I'm going to give you 5 minutes to figure out how to give me a public URL where I can interact with your button.
Oh, Wes is going to do this in 3 seconds. All right. Piece of cake. Deploy to Cloudflare. [laughter] Deploy to Cloudflare. Can you set this up in a way that I could allow them to use this button and try it out for a demonstration purpose? Button background. Oh, no. The radio gradient. No, no, no, no. Undo. Undo.
Undo. Okay. [laughter] Wes's last prompt just deploying to Cloudflare. While my agent does all the hard work, I'm going to continue to tweak. [music] Fastest public link publishing the button is a hosted artifact page on claude. Oh, wow. Yeah, CL has it all built in now. It's going to use their artifact page. Publish. Let me take one look at the live page just to confirm it renders. My button glow should not have been an outer a box shadow. It should have been a radial gradient.
[music] So the background should be a radial gradient and then we don't need the absolute position here. The gradient simply just needs to move. The background should be oh no yes the button glow should be 100% width and height and then we simply set the radial gradient as the background image.
So interestingly it's giving me this but that's not my button. [laughter] I did not expect AI to bork the deployment process. Like it's removed some of his code and I Yeah. Okay. The bundle runs locally without errors. Replace the middle of the dot. Okay. Copy. Wes better not be designing still. I think he's designing still, isn't he? I think Randy might actually get it because Cloudflare lets you deploy without creating account now because exactly this use case of I don't know what I'm doing. I just want it on the internet.
Uh use the share menu on the artifact page to grant access to your organiz. Okay. So share and then [music] copy link and I'll get this to CJ. Okay, we're good. We golden. The background image radio gradient should be white. He's still tweaking values here. Blue. [laughter] It's my show. Producer Randy, I do what I want.
I didn't know he wasn't muted. Times up. I need a link. I need a leak quest. Oh, hold on. Oh my I'm just Okay. Oh, Ry's looks so good. It's judgment time, boys. Uh, congrats on getting this thing deployed. I'm going to look at Wes's first. Yeah, we can see right now that the hover doesn't go away when the um Okay, first of all, you're using Firefox, which doesn't have squirle border.
I like that you guys have the video embedded in the in the demo. That's nice. I think that was in the template, right? Or did you just do that? Yeah, your your your AI took it out, Randy. I told it just to go to town. I don't know. Oh my gosh, Ry's background is hundreds of eye tags with inline styles. [laughter] Okay, but but let's let's get to Wes's first. So, first of all, the when the mouse comes off of the button, the hover doesn't go away, right? Like it doesn't settle back to like a blue color.
Um, so I'm not seeing that. Also, the the button is almost missing like a top bevel. Like you'll notice like there's like this almost curve from top to bottom and Wes's just looks flat. Like I'm not It doesn't protrude from the screen. Do you see what I'm saying? Yes. It's the shadow in the corners a little bit. Right. It's the shadow. Yeah. Yeah.
It's the box shadow behind it. There's multiple box shadows in Rules. And then the tilt is just a little too exaggerated. It's a lot more There might be some easing in the original one. It's a little more subtle. And then when the mouse goes off, it like pops back. I I would like to see more of a subtle animation back to normal. Yeah, the hover really is kind of just a white box versus changing the color or seeing through a top layer. So, overall, I'd give this like a 3.5 out of 10. Out of five. 3.5 out of five.
[laughter] Oh, out of five. Okay. Out of five. Out of five. 3.5. Like, the the idea is there, but there's all these subtle things that are that are still missing. Lacking all of the polish. And I'm looking at Ry's right now, and I am I'm shocked at how good this is. Wait, quick question. How did you how did you get your colors? Did you color pick that color picker?
And then did you like set like a high value and a low value for the the whitest of the squares? Yeah, I set like a blue one and a blue two and then told it so to randomize the color per square between those two blues. First off, and this is actually going to be I want to get minus big points for this. It's not a squirle. So AI only No.
So AI only used border radius in your example. No, it did. Open it in. Open it in a browser that contains squirles. Okay. It's work in Firefox. [laughter] Do you guys like the instructions at the bottom? Hover to reveal the grid. It's so It's so AIDS. Tell Tell me how to work with a button.
If just looking at the button, you're a lot closer than Wes on like the resting state. I will say that the top of the button is a little too white. Like it needs to be darker like overall darker layer. But you did get the shadow at the bottom. So that looks good. So like if we just compare exactly like if I'm in the bottom left corner like it is in the video washed out.
Yeah, you're seeing the differences here. Like where the mouse is is a little too white and then I think yours might be tilted a little bit too much. So it's like ve very subtle. But I do like that it's a dark blue overlay and then when I hover it starts to see through. But I almost think that there shouldn't even be white. It's almost like you need the base layer with all of its colors and then the top layer it just becomes see-through as you hover versus having like a white circle where your mouse is. But yeah, I I love the animation when your mouse goes off. But I I think I would I would give Randy a four out of five. So he beat you by.5 here on this one. But the vibe coders prevail.
Can we look at a couple things here? Which is Ry's background. Yeah. Oh, the code is literally 660 itallic tags. Is that weird? Yes. With inline and I'm I'm just I'm running a frames per second meter on here. Five frames a second it's rendering at. It's really good though.
I'm going to say like you use Fable for this. Fable 5.1. Yep. Yeah man. The day that it's going to be implement interfaces this close like I think we're there man. Like that is very very good. And like I could take this and then be like hey don't use 660 italic tags. Yeah.
So, Randy, can you do slash usage? How much did that cost you? That cost me $745 [laughter] for a button. It's a nice button, though. I've certainly been paid more than $7 to make a button in my career, though. [laughter] True.
Quote it with credit and a link. Quoting Syntax