Every great screenshot starts with the right backdrop. Betterflow ships with over 100 handcrafted background options across three distinct types — CSS linear gradients, solid colors, and full-bleed images — each of which can be further refined with blur and noise overlays to create depth and texture without leaving the browser.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/betterspacx/app/llms.txt
Use this file to discover all available pages before exploring further.
Background Types
Gradient
CSS
linear-gradient presets, mesh gradients, and magic gradients. Over 100 multi-stop color combinations at 135° by default.Solid Color
34 curated solid swatches — from pure white and charcoal through coral, teal, lavender, and beyond — plus raw hex and RGB input.
Image
Full-bleed photo backgrounds hosted on Cloudflare R2, or upload your own. Images are rendered with
cover sizing and centered automatically.Gradient Sub-types
Betterflow organizes gradients into three distinct sub-families, all accessed through the samegradient type:
- CSS Linear
- Mesh Gradients
- Magic Gradients
Over 100 smooth two- and three-stop
linear-gradient definitions shipped in gradient-colors.ts. Examples include vibrant_orange_pink, cyan_blue_purple, navy_blue, and rainbow. All gradients use a 135° angle for a consistent diagonal direction.Solid Colors
34 named solid colors are available out of the box, organized in seven logical rows:| Row | Colors |
|---|---|
| Neutrals | white, very_light_gray, medium_light_gray, dark_gray |
| Darks | dark_charcoal, darker_charcoal, black |
| Vivids | coral_red, bright_lime, orange, bright_yellow |
| Greens | light_olive_green, medium_green, medium_green_2, light_mint_green |
| Blues | medium_blue, medium_purple_blue, medium_blue_2, light_pastel_blue |
| Pastels | light_pastel_pink, light_peach, light_beige, light_lavender |
| Purples | darker_purple, bright_fuchsia, medium_purple_blue_2, light_teal |
#rrggbb hex code or rgb(r, g, b) value directly — the system detects raw color strings automatically.
TypeScript Interface
The entire background configuration is described by a single interface:value accepts a GradientKey (e.g. "vibrant_orange_pink"), a SolidColorKey (e.g. "dark_charcoal"), a prefixed mesh/magic key ("mesh:aurora", "magic:neon"), a hex/RGB string, or an image URL.
Style Resolution
Two helper functions translate aBackgroundConfig into renderable CSS:
getBackgroundCSS also handles backgroundSize: 'cover', backgroundPosition: 'center', and backgroundRepeat: 'no-repeat' for image backgrounds automatically.
Blur & Noise Effects
Two optional effects can be layered on top of any background type:Background Blur
A CSS
filter: blur(Xpx) is applied to the background layer independently from the foreground image. Use this to soften busy image backgrounds or create the classic frosted-glass look behind your screenshots.Blur and noise are applied as independent layers. You can enable both simultaneously — for example, a blurred gradient with a subtle noise overlay — for a rich, layered result.
Export Behaviour
When you export an image or video frame, Betterflow renders everything — background, image, overlays, borders, shadows — using pure HTML/CSS inside a single container element. The entire container is captured in one pass usingdomToCanvas from modern-screenshot. This ensures CSS gradients, mesh backgrounds, blur filters, and noise overlays all render at full fidelity in the final export regardless of canvas rendering quirks.
The export pipeline for a static image is:
- Full canvas capture —
domToCanvascaptures the complete HTML container at the requested export scale - Blur region post-processing — CSS
backdrop-filterregions are applied manually via Canvas 2Dfilter: blur()after capture - Sharp processing — the canvas is sent to the Sharp API for format compression (PNG, JPEG, or WebP)
- Download + IndexedDB — the final blob is downloaded and saved locally