Floral Theme

New Background Texture for GreenGale

By GreenGale (@greengale.app)
Published:

Introduction

GreenGale is introducing a new floral background. This joins the existing graph paper grid and the new cloud background as a background texture, selectable for user publications, individual posts, and/or site-wide.

Implementation

The floral texture is a procedurally generated 400×400px SVG tile that repeats seamlessly. It is generated entirely client-side from the active theme's colors and set as a CSS background-image data URI.

Color Derivation

Colors are derived in OKLCH color space from the theme inputs: background, text, and accent.

Motifs

Ten SVG shapes are randomly placed, weighted to favor smaller filler elements:

| Category | Motifs | Weight | |----------|--------|--------| | Flowers | 5-petal rose, 6-petal daisy, 4-petal cross, tulip, star flower | ~10 | | Fillers | Bud, berry cluster, sprig, single leaf, dot cluster | ~28 |

Each motif is placed at a random rotation and scale (0.4–1.1×), with colors shuffled from the palette.

Placement Algorithm

Give it a try with your next blog post, on your publication page, or select it in the sidebar to apply the floral texture site-wide.