Skip to main content

Event Card

The Event Card turns each row of a SharePoint list into a clean event tile with a calendar-style date block, the event title, and the location, so an events list reads like a program instead of a table. It is built with a standard Microsoft List and a small piece of gallery view formatting JSON. Each card shows the month and day in a colored block, then the event type, title, location, and time, and the block color keys to the type. It is the fastest way to make any events or calendar list easy to scan.
Author
SharePoint Maven
Built with
Features
Choice Column, Date and Time Column, JSON, Single Line of Text Column
Category
JSON

Want one like this?

Talk to Greg
  • Renders each list item as an event tile with a calendar-style date block using the SharePoint Gallery layout
  • The month and day are pulled straight from the event date, so the block always matches the item
  • The block color keys to the event type, making conferences, workshops, and webinars easy to tell apart
  • Location and time sit beneath the title with small icons for a quick read
  • Applied as gallery view formatting JSON, so the whole list switches to cards without changing the underlying data
  • Works on any events or calendar list, and the fields and colors are easy to adapt
  • Company events and webinars
  • Training and workshop schedule
  • Conference or roadshow calendar
  • Community or user-group meetups
  • Room or facility bookings
  • Deadlines and key dates

1. Create a list with the following columns. The internal name [in brackets] must match the JSON code exactly:
[Title] Single line of text
[EventDate] Date
[Type] Choice (Conference, Workshop, Webinar, Meetup, Training)
[Location] Single line of text
[Time] Single line of text

2. Populate the list with data. The date block reads the month and day from EventDate, and Time is shown as text such as 9:00 AM.

3. Create a Gallery view on the list (view dropdown at the top right, Create new view, set the layout to Gallery, then Create).

4. With the new gallery view open, open the view dropdown again and choose Format current view.

5. Switch to Advanced mode, paste the JSON below, and click Save.

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/tile-formatting.schema.json",
  "height": 120,
  "width": 300,
  "hideSelection": false,
  "formatter": {
    "elmType": "div",
    "style": {
      "display": "flex",
      "flex-direction": "row",
      "box-sizing": "border-box",
      "height": "100%",
      "border": "1px solid #edebe9",
      "border-radius": "10px",
      "background-color": "#ffffff",
      "overflow": "hidden"
    },
    "children": [
      {
        "elmType": "div",
        "style": {
          "display": "flex",
          "flex-direction": "column",
          "align-items": "center",
          "justify-content": "center",
          "width": "74px",
          "flex-shrink": "0",
          "color": "#ffffff",
          "background-color": "=if([$EventType] == 'Conference', '#0078d4', if([$EventType] == 'Workshop', '#8764b8', if([$EventType] == 'Webinar', '#038387', if([$EventType] == 'Meetup', '#ca5010', if([$EventType] == 'Training', '#107c10', '#605e5c')))))"
        },
        "children": [
          {
            "elmType": "div",
            "style": {
              "font-size": "12px",
              "font-weight": "600",
              "letter-spacing": "0.5px"
            },
            "txtContent": "=if(getMonth([$EventDate]) == 0, 'JAN', if(getMonth([$EventDate]) == 1, 'FEB', if(getMonth([$EventDate]) == 2, 'MAR', if(getMonth([$EventDate]) == 3, 'APR', if(getMonth([$EventDate]) == 4, 'MAY', if(getMonth([$EventDate]) == 5, 'JUN', if(getMonth([$EventDate]) == 6, 'JUL', if(getMonth([$EventDate]) == 7, 'AUG', if(getMonth([$EventDate]) == 8, 'SEP', if(getMonth([$EventDate]) == 9, 'OCT', if(getMonth([$EventDate]) == 10, 'NOV', if(getMonth([$EventDate]) == 11, 'DEC', ''))))))))))))"
          },
          {
            "elmType": "div",
            "style": {
              "font-size": "28px",
              "font-weight": "700",
              "line-height": "1.1"
            },
            "txtContent": "=getDate([$EventDate])"
          }
        ]
      },
      {
        "elmType": "div",
        "style": {
          "display": "flex",
          "flex-direction": "column",
          "justify-content": "center",
          "padding": "12px 14px",
          "flex-grow": "1"
        },
        "children": [
          {
            "elmType": "div",
            "style": {
              "font-size": "11px",
              "font-weight": "600",
              "color": "=if([$EventType] == 'Conference', '#0078d4', if([$EventType] == 'Workshop', '#8764b8', if([$EventType] == 'Webinar', '#038387', if([$EventType] == 'Meetup', '#ca5010', if([$EventType] == 'Training', '#107c10', '#605e5c')))))",
              "text-transform": "uppercase",
              "letter-spacing": "0.3px"
            },
            "txtContent": "[$EventType]"
          },
          {
            "elmType": "div",
            "style": {
              "font-size": "15px",
              "font-weight": "600",
              "color": "#242424",
              "margin-top": "2px"
            },
            "txtContent": "[$Title]"
          },
          {
            "elmType": "div",
            "style": {
              "display": "flex",
              "align-items": "center",
              "margin-top": "8px"
            },
            "children": [
              {
                "elmType": "span",
                "attributes": {
                  "iconName": "MapPin"
                },
                "style": {
                  "font-size": "12px",
                  "color": "#8a8886",
                  "margin-right": "5px"
                }
              },
              {
                "elmType": "span",
                "style": {
                  "font-size": "12px",
                  "color": "#605e5c"
                },
                "txtContent": "[$Location]"
              }
            ]
          },
          {
            "elmType": "div",
            "style": {
              "display": "flex",
              "align-items": "center",
              "margin-top": "4px"
            },
            "children": [
              {
                "elmType": "span",
                "attributes": {
                  "iconName": "Clock"
                },
                "style": {
                  "font-size": "12px",
                  "color": "#8a8886",
                  "margin-right": "5px"
                }
              },
              {
                "elmType": "span",
                "style": {
                  "font-size": "12px",
                  "color": "#605e5c"
                },
                "txtContent": "[$Time]"
              }
            ]
          }
        ]
      }
    ]
  }
}

Common Questions About the Event Card

What is the Event Card built with?

It is built with a standard Microsoft List (SharePoint list) and gallery view formatting expressed in JSON. There is no custom development, no SPFx solution, and no third-party tools. It is the kind of clean, maintainable formatting Greg Zelfond builds for teams that want an events view without ongoing development overhead.

How does the date block work?

The block reads the event date and shows its month and day, so it always stays in sync with the item. You only store a single date, and the JSON pulls the month abbreviation and the day number from it to build the calendar-style block.

What columns does it need?

It uses five columns: a Title, an EventDate, a Type, a Location, and a Time. The card refers to each column by its internal name, so the JSON and the columns must line up exactly – here those names are Title, EventDate, Type, Location, and Time.

Does this design use any custom development or third-party tools?

No. It uses only out-of-the-box SharePoint view formatting and its built-in icons, which Microsoft supports natively. That keeps it stable and easy to maintain, and nothing breaks when SharePoint is updated. Out-of-the-box is the only way Greg builds, so you can own and extend the design yourself for years.

If LookBook 365 is code-free and out-of-the-box, why does this example include JSON?

Because SharePoint formatting JSON is not custom code – it is a native configuration feature built into lists and libraries. It is declarative: it only describes how existing columns and views look, and cannot run scripts, reach external services, or change your data. Nothing is deployed and nothing breaks when Microsoft updates SharePoint, and you can edit or remove it anytime. That is why LookBook 365 treats it as out-of-the-box and low risk.

Can Greg build an events view like this for our team?

Yes – this is exactly the kind of work Greg Zelfond does. As an independent SharePoint consultant and Microsoft MVP, he designs out-of-the-box list and library formatting like this so your team can read and maintain it without a developer. Reach out through the contact page to talk about your events list.