> For the complete documentation index, see [llms.txt](https://docs.mapbox.com/help/llms.txt)

# Create a custom style with Mapbox Studio

Most users will find it easier to start by customizing an existing basemap, such as the [Mapbox Standard style](https://docs.mapbox.com/map-styles/standard/guides/), instead of creating a new style from scratch. To explore that approach, see the [Configure the basemap in Mapbox Studio](https://docs.mapbox.com/help/tutorials/configure-basemap-mapbox-studio) tutorial.

This tutorial walks through how to create a custom style from scratch in the [**Mapbox Studio style editor**](https://console.mapbox.com/studio/). You will start with a **blank canvas** and add predefined groups of basemap features, called **components**. You will then customize the colors, fonts, and other properties of your style. The result is a custom style that you can use in your web and mobile applications.

You will learn how to:

-   Add components to a blank map style
-   Customize the colors of selected layers
-   Customize the style's fonts and labels
-   Add 3D buildings and terrain to the style
-   Publish the style to use in your applications

When you finish this tutorial, your style will include custom colors, fonts, 3D buildings, and terrain, like the map below:

## Prerequisites

To complete this tutorial, you need a **Mapbox account**. [Sign up](https://account.mapbox.com/auth/signup/) for free or [log in](https://console.mapbox.com/) if you already have an account.

This tutorial provides every color you need, using a palette of blues:

| Color | Used for |
| --- | --- |
| `#9ccced` | Base color for land and water |
| `#39a3ea` `#0268b1` | Water, from zoomed out to zoomed in |
| `#add4f0` `#1d6294` | Land use and national parks, from zoomed out to zoomed in |

When you build your own styles, it helps to plan a palette like this before you start: a light base color, plus several darker colors for label text and areas you want to highlight.

## Create a new style

A **style** is a document that defines the visual appearance of a map: what data to draw, the order to draw it in, and how to style the data when drawing it. A style can also include images (such as icons, markers, and patterns), fonts, and data.

To create a new custom style:

1.  Log in to your Mapbox account and open the [Mapbox Studio styles page](https://console.mapbox.com/studio/), which lists all your map styles.
2.  Click **New style**. The **Choose a starting point** dialog opens.
3.  Scroll down to **Other options** and select **Start from scratch**.
4.  Click **Customize**.

![Create a new custom style with Mapbox Studio.](https://docs.mapbox.com/help/assets/ideal-img/tutorials--create-a-custom-style--create-new-style.7b373ab.480.png)

The **Mapbox Studio style editor** opens with an empty map. To rename your style, click its name (**Blank**) in the top left corner of the editor.

> **Note: Learn more about map styles**
> 
> For more information about styles, read the [Styles](https://docs.mapbox.com/console-tools/studio/#what-is-a-style) section of the Mapbox Console Tool Manual.

## Overview of the style editor

The sidebar on the left of the style editor has two tabs:

-   **Layers**: Lists the layers in your style. Click the **+** button to add layers, including **Components**, which are ready-made groups of layers for features such as roads, buildings, and labels. Each component adds one or more layer groups, and you can select any layer in a group to style it individually.
-   **Global**: Holds settings that apply to the whole map, such as the projection, 3D terrain, lighting, and weather effects. The **Typography** and **Colors** sections at the bottom of the tab change the fonts and base colors used across all components.

You will use both tabs in this tutorial. For a full description of every setting, see the [Studio interface](https://docs.mapbox.com/console-tools/studio/studio-interface/) section of the Mapbox Console Tool Manual.

![The Mapbox Studio style editor sidebar. On the left, the Layers tab with the add menu open, showing Components. On the right, the Global tab listing Projection, 3D Lighting, 3D Terrain, and weather settings.](https://docs.mapbox.com/help/assets/ideal-img/tutorials--create-a-custom-style--style-editor.ac7408f.480.png)

## Add components to the style

Start by adding two components that give your map land, water, and labels:

1.  Add and color the land and water:
    -   In the **Layers** tab, click the **+** button and select **Components** > **Land & water**.
    -   In the panel that opens, click the **Base** color swatch, enter `#9ccced` in the color field, and press **Enter**.
2.  Add place labels:
    -   Click the **+** button and select **Components** > **Place labels**.
    -   This adds labels for continents, countries, states, and cities.

The globe now shows land and water in shades of blue. Studio hides labels when the map is fully zoomed out, so zoom in a few levels to see continent and country names appear.

> **Note: Troubleshooting**
> 
> If you cannot see the **Components** menu item, your style was not created from scratch. Create a new style and make sure to select **Start from scratch**. Styles created from Mapbox Standard do not offer **Components**.

Your browser doesn't support HTML5 video. Open [link to the video](https://docs.mapbox.com/help/help/assets/medias/tutorials--create-a-style--add-components-c31ae0ee744f87404dfc9981533ebc3b.mp4).

## Change the label fonts

Each component has its own font settings. Change the fonts used for place labels:

1.  In the **Layers** tab, click the **Place labels** layer group. The **Place labels** panel opens.
2.  Under **Typography**, click the dropdown under **Countries** and choose a different font.
3.  Repeat for any other label types you want to change, such as **Continents** or **Major cities**.

![The Place labels component panel in Mapbox Studio with the font list open for Countries.](https://docs.mapbox.com/help/assets/ideal-img/tutorials--create-a-custom-style--change-fonts.2b306f7.480.png)

Zoom in and out to see the new fonts on country and city names. To change a font everywhere it is used in the style, use the **Typography** section of the **Global** tab instead.

## Add 3D buildings

Components also control how Studio draws features. Add buildings and display them in 3D:

1.  In the **Layers** tab, click the **+** button and select **Components** > **Buildings**.
2.  In the panel that opens, click the dropdown next to **Building style** and select **3D**. In the layer list, the **Buildings built** layer group is renamed **Buildings extruded**.
3.  Buildings only appear when you zoom in close to street level. Click the search icon in the upper right corner of the map, search for a city such as San Francisco, and zoom in until you can see building shapes.
4.  Make the buildings easier to see. Switching to 3D sets **Building opacity** to about halfway, so the buildings are faint. Drag the **Building opacity** slider to the right to increase their opacity.

Your browser doesn't support HTML5 video. Open [link to the video](https://docs.mapbox.com/help/help/assets/medias/tutorials--create-a-custom-style--buildings-7a2713632f24a82e56bcf4cefafd9eba.mp4).

The **Buildings** component extrudes building footprints to a set height. For detailed 3D buildings and landmarks out of the box, use the Mapbox Standard style instead.

> **Related content (guide): [Mapbox Standard](https://docs.mapbox.com/map-styles/guides/standard-styles/#mapbox-standard)**
> 
> Explore the 3D buildings, landmarks, and lighting built into the Mapbox Standard style.

## Change the water color on zoom

So far, you have styled whole components. You can also style individual layers within a component, and make a layer's color change with the zoom level. Make the water darker as the map zooms in:

1.  In the **Layers** tab, find the **Land & water** layer group labeled *water*. Click the arrow next to it to expand the group, then select the **water** layer.
2.  In the panel that opens, scroll down below the color picker and click **Style across zoom range**. Two stops appear, at zoom `0` and zoom `22`.
3.  Set the first stop's zoom to `8`. Click its color swatch and set the color to `#39a3ea`.
4.  Set the second stop's zoom to `18`. Click its color swatch and set the color to `#0268b1`.

As you zoom in from zoom 8 to zoom 18, the water gradually shifts from light blue to a deeper, more saturated blue. Below zoom 8 the water stays light blue, and above zoom 18 it stays dark blue.

> **Note**
> 
> Studio converts the colors you enter to `hsl(...)` values, so the layer's JSON does not show the hex codes you typed.

Your browser doesn't support HTML5 video. Open [link to the video](https://docs.mapbox.com/help/help/assets/medias/tutorials--create-a-custom-style--water-zoom-a9cc86814dccc26331b30a3e42d767a9.mp4).

## Style the landuse and national park layers

Use the same technique to change the color of land areas as the map zooms in:

1.  In the **Layers** tab, find the **Land & water** layer group labeled *land*. Click the arrow next to it to expand the group, then select the **landuse** layer.
2.  In the panel that opens, scroll down below the color picker and click **Style across zoom range**.
3.  Set the first stop's zoom to `8` and its color to `#add4f0`.
4.  Set the second stop's zoom to `18`. Keep its default color.
5.  In the same layer group, select the **national-park** layer.
6.  Scroll down below the color picker and click **Style across zoom range**.
7.  Set the first stop's zoom to `8` and its color to `#add4f0`.
8.  Set the second stop's zoom to `18` and its color to `#1d6294`.

Zoom in and out to see the colors of parks and other land areas change. The **national-park** layer has a low opacity, so its color change is subtle.

Your browser doesn't support HTML5 video. Open [link to the video](https://docs.mapbox.com/help/help/assets/medias/tutorials--create-a-custom-style--landuse-65e64b63364fab4405f2182cbefe9387.mp4).

## (Optional) Change the projection

By default, the map uses a globe projection, which you can spin like a globe. To use a flat Mercator map instead:

1.  Click the **Global** tab.
2.  Select **Projection**.
3.  Click the dropdown under **Projection name**.
4.  Scroll through the options and select **Mercator**.

The rest of this tutorial works with either projection.

![The Projection panel in Mapbox Studio with the Projection name dropdown open and Mercator selected.](https://docs.mapbox.com/help/assets/ideal-img/tutorials--create-a-custom-style--change-projection.75ee51f.480.png)

## Add terrain

3D terrain raises the map's surface to show mountains and valleys using Mapbox elevation data. To enable terrain in your style:

1.  In the **Global** tab, click **3D Terrain**.
2.  Under **Enable terrain**, click **Enable**. The default setting is **Inherit**.
3.  Tilt the map to see the terrain. Terrain is hard to see when you look straight down at the map. Hold the `Ctrl` key and drag across the map to tilt and rotate the camera, then find a mountainous area to see the terrain rise from the map.
4.  Make the terrain more prominent. In the **3D Terrain** panel, click **Exaggeration** and increase the value to `3`.

Your browser doesn't support HTML5 video. Open [link to the video](https://docs.mapbox.com/help/help/assets/medias/tutorials--create-a-custom-style--terrain-ed33a7a3a4d5d2051c32ef6b51b040bc.mp4).

## Publish your style

Publish your style so you can use it in a webpage or a mobile application:

1.  Click **Publish...** in the upper right corner of the editor. The publish dialog opens.
2.  Review your changes and make sure the map displays as expected. If this is the first time you are publishing the style, the preview is blank because there is no earlier version to compare it with.
3.  Click **Publish**. To save your changes as a separate copy of the style instead, click **Publish as new**.

To use your style in an application, click **Share** in the top right corner of the editor and copy the style URL. The style URL has this format:

```
mapbox://styles/{username}/{styleid}
```

To set up an interactive map with your new style, follow the guide for your platform:

-   Web: [Set a style](https://docs.mapbox.com/mapbox-gl-js/guides/styles/set-a-style/#custom-styles)
-   Android: [Set a style](https://docs.mapbox.com/android/maps/guides/styles/set-a-style/#custom-styles)
-   iOS: [Set a style](https://docs.mapbox.com/ios/maps/guides/styles/set-a-style/#custom-styles)

## Finished product

You have created a custom style that works from a world view down to street level, anywhere in the world. Explore the finished style at different zoom levels.

## Next steps

To see all the ways you can use your new style, read the [Publish your style](https://docs.mapbox.com/console-tools/studio/studio-interface/#publish) section of the Mapbox Console Tool Manual.

### What we covered

-   Add components to a blank map style
-   Customize the colors of selected layers
-   Customize the style's fonts and labels
-   Add 3D buildings and terrain to the style
-   Publish the style to use in your applications

### Expand on your work

Here are some ideas for improving your style on your own:

-   Customize the colors to match your brand.
-   Remove layers or components for a different look and feel.
-   Add your own data in [Mapbox Studio](https://docs.mapbox.com/help/getting-started/map-developer-journey/data-guide/) or [Mapbox Tiling Service (MTS)](https://docs.mapbox.com/help/tutorials/get-started-mts-and-tilesets-cli/).

### Related learning

You might also be interested in:

-   Learning more about [map design and styles](https://docs.mapbox.com/help/dive-deeper/map-design/) in our dive deeper guide.
-   [Creating a custom color theme](https://docs.mapbox.com/help/tutorials/create-a-custom-color-theme/) using lookup tables.
-   Learning how to add 3D buildings to a map by following our [3D buildings tutorial](https://docs.mapbox.com/help/tutorials/z_add-3d-buildings-studio/).
-   Learning how to add precipitation to the map with our [snow](https://docs.mapbox.com/mapbox-gl-js/example/snow/) and [rain](https://docs.mapbox.com/mapbox-gl-js/example/rain/) examples.