Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <!-- © -->
<!-- -->
<div id="root"></div>

<div class="zoom-button-list">
  <div class="zoom-button" onclick="seatmapRenderer.zoomIn()">+</div>
  <div class="zoom-button" onclick="seatmapRenderer.zoomOut()">–</div>

<script src=""></script>


                body {
  margin: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

.zoom-button-list {
  position: absolute;
  right: 30px;
  top: 50%;
  z-index: 100;
  transform: translate(0, -50%);

.zoom-button {
  height: 40px;
  width: 40px;
  background-color: #ffffff;
  color: rgba(0, 0, 0, 0.75);
  border-radius: 50%;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px;
  font-size: 27px;
  text-align: center;
  line-height: 36px;
  cursor: pointer;
  margin-bottom: 10px;
  user-select: none;

.zoom-button:hover {
  box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 4px;



                var el = document.getElementById('root');


var settings = {
  publicKey: '99a77be5-4680-4b5e-b9ce-962e78f9b811',
  theme: {
    gridStep: 14,
    bgColor: '#f7f7f7',

    priceColors: [
      ['#2196F3', '#FFC107'],
      ['#673AB7', '#2196F3', '#FFC107']

    // Put your SVG icons here
    images: {
        '<svg width="18" height="18" fill="none" xmlns=""><path d="M1.5 8.5l5 5 10-10" stroke="#fff" stroke-width="2"/></svg>',
        '<svg width="16" height="16" fill="none" xmlns=""><path d="M8 0l2.163 5.023 5.445.505-4.108 3.61 1.202 5.334L8 11.68l-4.702 2.792L4.5 9.137.392 5.527l5.445-.504L8 0z" fill="#fff"/></svg>'

    // Here you can redefine default seat styles
    seatStyles: {
      default: {
        size: 16,
        color: COLOR_UNAVAILABLE
      unavailable: {
        size: 6,
        color: COLOR_UNAVAILABLE
      hovered: {
        size: 38,
        color: COLOR_UNAVAILABLE,
        seatName: {
          font: '18px Arial, sans-serif',
          color: '#fff'
      selected: {
        size: 42,
        color: COLOR_UNAVAILABLE,
        imageId: 'checkmark',
        shadow: {
          blur: 20,
          color: 'rgba(0, 0, 0, 0.3)'
  onBeforeSeatDraw: e => {    
    let newStyle = Object.assign({},;
    // You can use custom condition or conditions
    // state: 'default' | 'unavailable' | 'hovered' | 'selected'
    const isStarred = === '7' && e.state === 'default' &&;    

    if (isStarred) {
      newStyle = {
        size: 28,
        color: COLOR_UNAVAILABLE,
        imageId: 'star'
    // Add price coloring
    if ( {
      newStyle.color = e.context.pricesById[].color;
    return newStyle;

var renderer = (window.seatmapRenderer = new SeatmapBookingRenderer(el, settings));
var eventId = 'a4a75361-7823-4847-bf22-336843022e80';