screenshot of the document in Studio
I'm authoring this post in Sanity Studio!
screenshot of the document in Studio
I'm authoring this post in Sanity Studio!
screenshot of the post in Sanity
This post is being authored in Sanity and sent to Bluesky using Sanity Functions.
Figma just made adding a glass effect super easy.
It looks nice and lots of designers will be using it.
Add effect > glass > play with params π«°
Just overrode the Monokai theme background and not sure why I didnβt do this 10 years ago
DRY (donβt repeat yourself) is a core development principle.
Hardcode an email in 3 places on a site, and human error will strike if you need to update it. Plus, it just takes more work.
Now you can define reusable data on the Global Root. Think phone numbers, emails, CMS API info, etc.
Official Webstudio sections library coming soon!
- Built with Craft
- One-click insert
- Auto-adapts to your design system on insert
- Quality > quantity
- Accessible and SEOβd
Talk soon π
A 36.55% boost in conversionsβ¦ Iβll take it! π₯
The title experiment was a success.
βCustom frontend without custom codeβ converts at 7.45% π€―
Just tested a new feature on Webstudio π₯π₯π₯
Talk soon π
Starting an A/B test for our homepage title.
Itβs been extremely challenging to ideate these, specifically balancing clarity, SEO, punchiness, target audience, and unique value proposition.
These CSS interactions were fun to make and strengthened the marketing messages, making them more impactful than static ones.
Made entirely with Webstudio UI features. π« No code was written.
π Advanced styles
- Pointer events none so you can hover over the globe and it registers as hovering over the stats
- Calcs to use a consistent offset and move things around
- Using --ease-squish-3 from Open Props
- The only custom CSS was keyframes for the live indicator
Dev files to data sources
π The data gets into KV via a Worker Schedule that runs once per day.
To achieve extremely high perf, I made a cron job that fetches data from 4 different sources (Cloudflare, Discord, GitHub, and Supabase).
Most sources require multiple fetches to get the required data.
π The API was custom-built using a tiny Cloudflare Worker.
It responds to GET requests by fetching a single key-value pair from Cloudflare KV.
It takes 40-50ms β‘οΈ
Webstudio Resource with response
π Webstudio Resources are used to fetch the data from an API.
I pasted in the API URL, it gets the data, and then I connect or bind that data to my text blocks.
Every SaaS website needs this live stats section.
Iβll show you how I built it.
It involves Webstudio Resources, Cloudflare Workers, and advanced styles.
Details π
Updating my template starter kit with these styles π
What do you do when implementing a Figma design that has images that go to the edge of the design and then are cut off? How should this be handled on larger screens?
I personally export the non-clipped image and on larger screens show the full image outside of the container.
Iβve found that AI (or my prompts?) havenβt been reliable with colors, which is why 1. I try to do as much without AI as possible, and 2. there is manual intervention. TBD how to move forward, though the current process is still faster than manually doing it all.
Figma to WS update: Color vars!
1 Feed it CSS from Figma
2 Suggest the Open Props color groups
3 AI maps colors to palette variables (βgray-12)
4 Human intervention lets you customize the mappings
5 AI maps the color vars to semantic vars by interpreting their usage from the CSS
New AI SaaS template coming soon π₯
Iβm using Preview mode 5x more with the new shortcutβ¦
β + Shift + D
All with the left hand.
This shortcut is for toggling to Design mode, but if youβre already in it, itβll take you to Preview.
π More to come! Credit goes to @oleg.id
We just announced a huge feature with AI Santa.
Took one minute and we scrapped our previous launch idea that took over a day and didnβt turn out great.
Thanks for the assist @synthesia.io π
Webstudio Tip: Use the Expression Editor for conditional plural formatting.
Example: Display "1 template" or "6 templates" dynamically with this expression:
`${total} template${+total == 1 ? '' : 's'}`
Woah, I just learned that if you hold option while taking a screenshot, it grows outwards from the center point.
This makes it a lot easier to take a screenshot with the desired focal point in the middle.
New SaaS template coming soon to the Webstudio Marketplace.
Includes 7 pages
We use them on Webstudio's site! The out-of-the-box easings and fluid/clamp sizes are super helpful
Figma β Webstudio update:
Added support for Local Styles! Including:
- Grid template columns based on what it sees
- Flex with direction and Craft gap vars
- Background colors (on `section`)
Also added a CLI and some other helpful tasks π
Figma to Webstudio update:
Now using OpenAI API in the local script to convert the image to HTML.
Then the usual code converts the HTML to Webstudio AST and copies it to the clipboard.
Note: I trimmed the video, the API takes longer than that :)
Yes, and my goal is to make it 100% Craft compliant and never do anything I have to undo. I'd rather have it provide the exact foundation I need, and I build onto it than it do too much that is not proper.
The ChatGPT > HTML is really good. The HTML to WS is perfect because itβs just 1:1 mapping.