Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

994 B
Raw Blame

Customize kepler.gl Theme

This example shows how to customize the kepler.gl theme:

  1. Define an object (theme) to override kepler.gl styles
  2. Pass the newly created object as the theme prop to the KeplerGl component

Pre-requirements

1. Install Dependencies

Go to the examples/custom-theme directory and run:

touch yarn.lock && yarn

touch yarn.lock is required once to mark this directory as a standalone Yarn project, independent of the monorepo root.

2. Start the App

yarn start

The app will be available at http://localhost:8080.

Use the checkbox in the bottom-right corner to toggle between the default and the custom (light) theme.

Production Build

yarn build

The output will be in the dist/ directory.