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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-examples-geolocation-custom-styling-workflow-guide.md | A 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.text | A 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.text | A 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - 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
