Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
Customize kepler.gl Theme
This example shows how to customize the kepler.gl theme:
- Define an object (
theme) to override kepler.gl styles - Pass the newly created object as the
themeprop to theKeplerGlcomponent
Pre-requirements
- Node.js ^20.x
- Yarn 4.4.0: See the installation instructions.
1. Install Dependencies
Go to the examples/custom-theme directory and run:
touch yarn.lock && yarn
touch yarn.lockis 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.