Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
mapbox avatar

Mapbox Style Patterns

  • 1.7k installs
  • 71 repo stars
  • Updated August 4, 2026
  • mapbox/mapbox-agent-skills

Reusable Mapbox GL style layer configurations and design patterns for six common mapping use cases.

About

Mapbox Style Patterns provides battle-tested style and layer configurations for six common mapping scenarios: restaurant/POI finders, real estate, data visualization, navigation, dark mode, and delivery/logistics tracking. Developers use this skill to avoid building styles from scratch by reference a pattern library with specific layer recipes, zoom-optimized filters, and visual requirements for each use case. Key workflows include selecting the appropriate pattern via a decision tree based on content type and viewing environment, implementing the recommended layer stack with correct paint properties and filters, and testing across zoom levels and device sizes using the provided checklist.

  • Six battle-tested patterns with JSON layer configurations (restaurant markers, real estate boundaries, data viz, navigat
  • Decision tree guides pattern selection by content type, viewing environment, user action, and platform
  • Zoom-optimized layer performance patterns that simplify features at lower zoom levels
  • Visual regression testing checklist covering zoom levels 4-20, mobile/desktop viewports, data density, labels, contrast,
  • Reference files for each pattern stored in references/ directory with POI clustering, 3D buildings, terrain, and custom

Mapbox Style Patterns by the numbers

  • 1,695 all-time installs (skills.sh)
  • +75 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #281 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

mapbox-style-patterns capabilities & compatibility

Capabilities
provide pattern library with 6 common mapping us · generate decision tree for pattern selection · supply json layer configurations with filters an · include zoom optimized layer performance pattern · visual regression testing checklist
Use cases
ui design · web design · frontend
Platforms
macOS · Windows · Linux
Runs
Runs locally
Pricing
Free
From the docs

What mapbox-style-patterns says it does

This skill provides battle-tested style patterns and layer configurations for common mapping scenarios.
SKILL.md
npx skills add https://github.com/mapbox/mapbox-agent-skills --skill mapbox-style-patterns

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.7k
repo stars71
Security audit3 / 3 scanners passed
Last updatedAugust 4, 2026
Repositorymapbox/mapbox-agent-skills

What it does

Apply proven Mapbox style layer configurations for restaurant finders, real estate, data visualization, navigation, and delivery tracking maps.

Who is it for?

Web and mobile apps requiring Mapbox GL maps with common use cases; developers unfamiliar with Mapbox styling; rapid prototyping of map-based features.

Skip if: Custom artistic/experimental styles; non-Mapbox GL libraries; static map images; server-side tile rendering.

When should I use this skill?

Starting a new map style for a specific use case; looking for layer configuration examples; implementing common mapping patterns; optimizing existing Mapbox styles; debugging style issues.

What you get

Developer quickly implements a map style matched to use case (restaurant finder, real estate, data viz, etc.) with correct layers, filters, and paint properties.

  • Selected pattern JSON (layers array with paint and layout properties)
  • Decision tree choice rationale
  • Tested style at 5 zoom levels

By the numbers

  • 6 built-in patterns (restaurant/POI, real estate, data viz, navigation, dark mode, delivery/logistics)
  • 7 reference files with additional configurations and recipes
  • 5 required zoom levels for testing (4, 8, 12, 16, 20)

Files

SKILL.mdMarkdownGitHub ↗

Mapbox Style Patterns Skill

This skill provides battle-tested style patterns and layer configurations for common mapping scenarios.

Pattern Library

Pattern 1: Restaurant/POI Finder

Use case: Consumer app showing restaurants, cafes, bars, or other points of interest

Visual requirements:

  • POIs must be immediately visible
  • Street context for navigation
  • Neutral background (photos/content overlay)
  • Mobile-optimized

Recommended layers:

{
  "layers": [
    {
      "id": "background",
      "type": "background",
      "paint": {
        "background-color": "#f5f5f5"
      }
    },
    {
      "id": "water",
      "type": "fill",
      "source": "mapbox-streets",
      "source-layer": "water",
      "paint": {
        "fill-color": "#d4e4f7",
        "fill-opacity": 0.6
      }
    },
    {
      "id": "landuse-parks",
      "type": "fill",
      "source": "mapbox-streets",
      "source-layer": "landuse",
      "filter": ["==", "class", "park"],
      "paint": {
        "fill-color": "#e8f5e8",
        "fill-opacity": 0.5
      }
    },
    {
      "id": "roads-minor",
      "type": "line",
      "source": "mapbox-streets",
      "source-layer": "road",
      "filter": ["in", "class", "street", "street_limited"],
      "paint": {
        "line-color": "#e0e0e0",
        "line-width": {
          "base": 1.5,
          "stops": [
            [12, 0.5],
            [15, 2],
            [18, 6]
          ]
        }
      }
    },
    {
      "id": "roads-major",
      "type": "line",
      "source": "mapbox-streets",
      "source-layer": "road",
      "filter": ["in", "class", "primary", "secondary", "tertiary"],
      "paint": {
        "line-color": "#ffffff",
        "line-width": {
          "base": 1.5,
          "stops": [
            [10, 1],
            [15, 4],
            [18, 12]
          ]
        }
      }
    },
    {
      "id": "restaurant-markers",
      "type": "symbol",
      "source": "restaurants",
      "layout": {
        "icon-image": "restaurant-15",
        "icon-size": 1.5,
        "icon-allow-overlap": false,
        "text-field": ["get", "name"],
        "text-offset": [0, 1.5],
        "text-size": 12,
        "text-allow-overlap": false
      },
      "paint": {
        "icon-color": "#FF6B35",
        "text-color": "#333333",
        "text-halo-color": "#ffffff",
        "text-halo-width": 2
      }
    }
  ]
}

Key features:

  • Desaturated base map (doesn't compete with photos)
  • High-contrast markers (#FF6B35 orange stands out)
  • Clear road network (white on light gray)
  • Parks visible but subtle
  • Text halos for readability

Pattern Selection Guide

Decision Tree

Question 1: What is the primary content?

  • User-generated markers/pins -> POI Finder Pattern
  • Property data/boundaries -> Real Estate Pattern
  • Statistical/analytical data -> Data Visualization Pattern
  • Routes/directions -> Navigation Pattern
  • Real-time tracking/delivery zones -> Delivery/Logistics Pattern (customer markers should include a pulse animation via second circle layer + requestAnimationFrame + setPaintProperty; see references/delivery-logistics.md)

Question 2: What is the viewing environment?

  • Daytime/office -> Light theme
  • Night/dark environment -> Dark Mode Pattern
  • Variable -> Provide theme toggle

Question 3: What is the user's primary action?

  • Browse/explore -> Focus on POIs, rich detail
  • Navigate -> Focus on roads, route visibility
  • Track delivery/logistics -> Real-time updates, zones, status
  • Analyze data -> Minimize base map, maximize data
  • Select location -> Clear boundaries, context

Question 4: What is the platform?

  • Mobile -> Simplified, larger touch targets, less detail
  • Desktop -> Can include more detail and complexity
  • Both -> Design mobile-first, enhance for desktop

Layer Optimization Patterns

Performance Pattern: Simplified by Zoom

{
  "id": "roads",
  "type": "line",
  "source": "mapbox-streets",
  "source-layer": "road",
  "filter": [
    "step",
    ["zoom"],
    ["in", "class", "motorway", "trunk"],
    8,
    ["in", "class", "motorway", "trunk", "primary"],
    12,
    ["in", "class", "motorway", "trunk", "primary", "secondary"],
    14,
    true
  ],
  "paint": {
    "line-width": {
      "base": 1.5,
      "stops": [
        [4, 0.5],
        [10, 1],
        [15, 4],
        [18, 12]
      ]
    }
  }
}

Reference Files

Additional patterns and configurations are available in the references/ directory. Load the relevant file when a specific pattern is needed.

FileContents
references/real-estate.mdPattern 2: Real Estate Map -- property boundaries, price color-coding, amenity markers
references/data-viz-base.mdPattern 3: Data Visualization Base Map -- minimal grayscale base for choropleth/heatmap overlays
references/navigation.mdPattern 4: Navigation/Routing Map -- route display, user location, turn arrows
references/dark-mode.mdPattern 5: Dark Mode / Night Theme -- near-black background, reduced brightness
references/delivery-logistics.mdPattern 6: Delivery/Logistics Map -- real-time tracking, zones, driver markers, ETA badges
references/expressions-clustering.mdData-driven expression patterns + clustering for dense POIs
references/common-modifications.md3D Buildings, Terrain/Hillshade, Custom Markers

Loading instructions: Read the reference file that matches the user's use case. For example, if implementing a delivery tracking map, load references/delivery-logistics.md.

Testing Patterns

Visual Regression Checklist

  • [ ] Test at zoom levels: 4, 8, 12, 16, 20
  • [ ] Verify on mobile (375px width)
  • [ ] Verify on desktop (1920px width)
  • [ ] Test with dense data
  • [ ] Test with sparse data
  • [ ] Check label collision
  • [ ] Verify color contrast (WCAG)
  • [ ] Test loading performance

When to Use This Skill

Invoke this skill when:

  • Starting a new map style for a specific use case
  • Looking for layer configuration examples
  • Implementing common mapping patterns
  • Optimizing existing styles
  • Need proven recipes for typical scenarios
  • Debugging style issues
  • Learning Mapbox style best practices

Related skills

How it compares

Use mapbox-style-patterns for Mapbox GL layer recipes during coding; use geocoding or routing APIs separately when the task is search or navigation backend logic.

FAQ

Which pattern should I use for my delivery tracking app?

Use the Delivery/Logistics Pattern (Pattern 6) if you need real-time tracking, zones, driver markers, and ETA badges. It includes pulse animation via second circle layer and setPaintProperty.

How do I make my map work on both mobile and desktop?

Design mobile-first with simplified features and larger touch targets, then enhance for desktop. Test at viewport widths 375px (mobile) and 1920px (desktop) from the testing checklist.

What zoom levels should I test?

Test at zoom levels 4, 8, 12, 16, and 20 per the visual regression checklist, plus verify label collision and performance at dense and sparse data densities.

Is Mapbox Style Patterns safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.