Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Geolocation: Custom Styling

Implements a Cloudflare Worker to personalize website styling by detecting a user's location and adjusting visual elements based on their local time.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Geolocation: Custom Styling

Implements a Cloudflare Worker to personalize website styling by detecting a user's location and adjusting visual elements based on their local time.

When To Use

Use when you need to implement a Cloudflare Worker that modifies website CSS or visual themes based on the geographic location and local time of the end user.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-examples-geolocation-custom-styling-workflow-guide.mdA guide and implementation example for personalizing website styling based on localized user time using Cloudflare Workers geolocation data.Questions about a guide and implementation example for personalizing website styling based on localized user time using Cloudflare Wo...
examples/workers-examples-geolocation-custom-styling-cloudflare-workers-geolocati.textA JavaScript worker script that uses geolocation data to apply custom color gradients to a response.Exact payloads, commands, or snippets shown in A JavaScript worker script that uses geolocation data to apply custom color gradients to a response.
examples/workers-examples-geolocation-custom-styling-cloudflare-workers-geolocati-2.textA JavaScript Cloudflare Worker script that uses geolocation data to apply custom color gradients to a response.Exact payloads, commands, or snippets shown in A JavaScript Cloudflare Worker script that uses geolocation data to apply custom color gradients to a response.
examples/workers-examples-geolocation-custom-styling-cloudflare-workers-geolocati-3.textA Hono application implementation that uses Cloudflare Workers geolocation data to apply dynamic CSS gradient color stops based on the hour of the day.Exact payloads, commands, or snippets shown in A Hono application implementation that uses Cloudflare Workers geolocation data to apply dynamic CSS gradient color s...

What This Skill Covers

  • Personalize website styling based on localized user time.
  • Main sections: Tags.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/examples/geolocation-custom-styling