How to Add Conditional Colors to a SharePoint Modern Calendar View
Question details
The user wants to apply conditional colors to items in a SharePoint modern calendar view, similar to the color legends found in classic views.

- Product
- SharePoint
- Device & OS
- not provided
- Scenario
- Customizing the visual appearance of a SharePoint modern calendar to differentiate list items using specific conditional rules.
- Observed behavior
- Items in the modern calendar view currently appear in default colors, and the goal is to automatically color-code them based on specific metadata or conditions.
Ensure you have the necessary 'Edit' or 'Design' permissions for the SharePoint list to modify the view formatting settings.
Apply Conditional Formatting in Calendar View Settings
Use SharePoint's native view formatting tools to quickly apply color rules without writing any code.
SharePoint modern lists include a built-in formatting pane that allows you to easily style calendar items based on column values.
Navigate to your SharePoint list and ensure you are currently viewing the modern Calendar view.
Click on the view selector dropdown menu (usually labeled 'Calendar View' or your custom view name) in the top right command bar, then select 'Format current view'.
In the format pane that appears on the right, toggle on the 'Conditional formatting' option.
Click 'Manage rules' to define your conditions (e.g., setting a rule where 'Category' equals 'Meeting') and assign specific background and text colors to those list items.

Create an Advanced Calendar using Power Apps
For highly customized calendar designs that go beyond standard view formatting, build a Power Apps calendar and embed it in SharePoint.
Manage Your Project Schedules Efficiently with WPS Office
While SharePoint offers web-based calendars, WPS Spreadsheet provides a robust, highly customizable alternative for project scheduling and offline color-coding. Enjoy a lightweight, free Office suite that perfectly supports Microsoft Office formats.
- 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite for your device.
- 2. Open a Calendar Template: Launch WPS Spreadsheet, go to the template library, and search for 'Calendar' to start tracking your events.
- 3. Apply Conditional Formatting: Select your date cells, click 'Conditional Formatting' in the Home tab, and set up your color rules effortlessly.

Frequently Asked Questions
Can I use classic color legends in a SharePoint modern calendar view?
No, the classic color overlays and legends are not natively supported in the modern experience. Instead, you must use conditional formatting rules in the 'Format current view' pane to color-code items.
Why don't I see the 'Format current view' option?
This option may be hidden if you lack the necessary 'Edit' or 'Design' permissions for the list, or if your organization's SharePoint administrator has restricted custom scripting and formatting.
Can I use JSON formatting for more complex color rules in SharePoint calendars?
Yes, clicking 'Advanced mode' at the bottom of the Format view pane allows you to write or paste custom JSON code to apply highly specific styling and logic beyond the basic user interface.
Are conditional formatting colors visible on the SharePoint mobile app?
Yes, conditional formatting applied to modern list and calendar views generally renders correctly on the SharePoint mobile app, ensuring a consistent experience across devices.




