Calendar
When to use it
Section titled “When to use it”- Use type picker for guests to choose check in and check out, with the nightly price under each day; show two months side by side on web and one on mobile.
- Use type occupancy in the back office to see how full each day of a month is: rooms sold, the percentage, and sold-out days in navy.
- Mark a stay with start and end on the check in and check out days, and in-range on the nights between.
- Grey out past days and strike through days that can’t be booked, so people never pick a date that fails later.
- Keep the price short with no currency on each day, and show the currency once nearby.
- In occupancy, explain the colours under the grid, such as “Navy is sold out. Red percentages are above 95%.”
When not to use it
Section titled “When not to use it”- For a single known date such as a date of birth: use a date field.
Instead: date field - To pick a time range for a report, such as the last 7 days: use Buttongroup type segmented.
Instead: Buttongroup - To list bookings or events by day: use a Table.
Instead: Table
Best practice
Section titled “Best practice”From the Figma documentation page (usage node 236:573), as written. These items aren’t carried into Calendar.intent.json, which has no field for them.
- Grey out past days and strike through days that can’t be booked, so people never pick a date that fails later.
- Keep the price short with no currency on each day, and show the currency once nearby.
- In occupancy, explain the colours under the grid, such as “Navy is sold out. Red percentages are above 95%.”
What each variant is for
Section titled “What each variant is for”| Property | Value | What it is for |
|---|---|---|
type |
picker |
for guests to choose check in and check out, with the nightly price under each day; show two months side by side on web and one on mobile. |
type |
occupancy |
in the back office to see how full each day of a month is: rooms sold, the percentage, and sold-out days in navy. |
state (CalendarDay and CalendarOccupancyDay, internal) |
empty |
Figma doesn’t say. |
state (CalendarDay, internal) |
past |
Grey out past days |
state (CalendarDay, internal) |
available |
Figma doesn’t say. |
state (CalendarDay, internal) |
today |
Figma doesn’t say. |
state (CalendarDay, internal) |
unavailable |
strike through days that can’t be booked |
state (CalendarDay, internal) |
start |
on the check in day of a stay. |
state (CalendarDay, internal) |
in-range |
on the nights between check in and check out. |
state (CalendarDay, internal) |
end |
on the check out day of a stay. |
state (CalendarOccupancyDay, internal) |
normal |
Figma doesn’t say. |
state (CalendarOccupancyDay, internal) |
high |
Red percentages are above 95%. |
state (CalendarOccupancyDay, internal) |
soldout |
sold-out days in navy. |
state (CalendarOccupancyDay, internal) |
over |
Figma doesn’t say. |
12 of these 14 keys are states of internal parts, not values of a Calendar prop. picker and occupancy are the values of type (CalendarType), the only variant union Calendar takes. The other 12 are the states of CalendarDay and CalendarOccupancyDay, which Calendar renders and the package root does not export (see “Parts it renders” on the Code tab), so a reader of this page cannot set them on Calendar. The stories’ header comment says: “Day states are derived from these, never set by hand.” (Calendar.stories.tsx:7-12). empty is a state of both parts and is one key.
From the release review, under “Findings outside the gates”, as written:
State keys describe parts that are not Calendar props. Twelve of the 14 variant_intent keys are states of the internal sub-components, which are not exported from the package root; a reader of the docs page cannot set them on Calendar. Not a gate finding under the reading above. Owner: doc-generator and a human, to decide how the docs page presents them.
The release review’s “Check 5 reading” explains why the keys are read this way, and ends: “A human may confirm the reading.” (release review)
Accessibility
Section titled “Accessibility”- The picker is a role=“group” named by the month title (aria-labelledby), wrapping a role=“grid” with columnheader weekdays, rows and gridcell days.
src/components/Calendar/Calendar.tsx:260 - The month title is an aria-live=“polite” region, so a month change is announced.
src/components/Calendar/Calendar.tsx:274 - The previous and next month controls are native <button type=“button”> named “Previous month” and “Next month”; their chevron icons are aria-hidden.
src/components/Calendar/Calendar.tsx:266 - The chevron icon is hidden from assistive technology (aria-hidden).
src/components/Calendar/Calendar.tsx:70 - Each picker day is a gridcell with aria-selected for start, end and in-range, aria-disabled for past and unavailable days, aria-current=“date” for today, and an aria-label of the long date, with the price and check in or check out when they apply.
src/components/Calendar/Calendar.tsx:311 - Empty cells outside the month are aria-hidden.
src/components/Calendar/Calendar.tsx:298 - Only one picker day is in the tab order (tabIndex 0: the focused day, else the check in day, else today, else the 1st); the others have tabIndex -1.
src/components/Calendar/Calendar.tsx:310 - Keyboard: arrow keys move by day and week, Home and End to the start and end of the week, PageUp and PageDown change the month (with Shift, the year), Enter or Space picks the day.
src/components/Calendar/Calendar.tsx:228 - The month navigation buttons and the picker days show a focus-visible ring in the focus border colour.
src/components/Calendar/Calendar.css:90 - The occupancy type is a role=“grid” named by aria-label (the aria-label prop, falling back to “Occupancy, <month>”), with columnheader weekdays and gridcell days.
src/components/Calendar/Calendar.tsx:148 - The occupancy divider is aria-hidden.
src/components/Calendar/Calendar.tsx:160 - Empty occupancy cells outside the month are aria-hidden.
src/components/Calendar/Calendar.tsx:165
What this version promises
Section titled “What this version promises”From Versioning (VERSIONING.md at b9ffb76):
0.3.0 adds six components on top of 0.2.1: Calendar, Card, Form, Modal, SideBar and Table. It contains twenty-three components, each exported from the package root with its props type: Avatar, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Checkbox, Chip, Dropdown, File, Form, Header, Image, Link, Logo, Modal, ProgressBar, RadioCard, SearchBar, SideBar, Stepper, Table, Toggle. Textfield is exported from the package root as well, with TextfieldProps and TextfieldState, and is public like the others (see decisions.md, 2026-10-07, Textfield). It commits you to their props, prop values and defaults, their hz- class names, the tokens in tokens.css and the three entry points (., ./styles.css, ./tokens.css). Everything in 0.3.0 beyond 0.2.1 is an addition: nothing from 0.2.1 was changed, removed or renamed. A change that breaks any of these on 0.x bumps the version to 0.4.0.
Two things about this release are worth knowing:
- Form, Modal and Table each passed release review with their literal sizes covered by a ruling in decisions.md (Card, SideBar and Calendar have their own), because no size tokens exist for them. Those literals are accepted until the designer adds matching tokens, so a later change to use tokens at the same rendered sizes would be a patch, not a breaking change.
- Dark theme is not verified for Table, and its warning tag has low contrast. The Table docs page says so. Neither is a breaking-change risk, but a fix that changes a token’s value is a patch and is listed in the changelog.
Stories
Section titled “Stories”Picker Two Months
Section titled “Picker Two Months”Day Empty
Section titled “Day Empty”Internal part. This story renders CalendarDay on its own. The package root does not export it, so this is not code you can write against @layerbasesystemic/horizon-design-system; the Code tab’s “Parts it renders” says why.
Day Past
Section titled “Day Past”Internal part. This story renders CalendarDay on its own. The package root does not export it, so this is not code you can write against @layerbasesystemic/horizon-design-system; the Code tab’s “Parts it renders” says why.
Day Available
Section titled “Day Available”Internal part. This story renders CalendarDay on its own. The package root does not export it, so this is not code you can write against @layerbasesystemic/horizon-design-system; the Code tab’s “Parts it renders” says why.
Day Today
Section titled “Day Today”Internal part. This story renders CalendarDay on its own. The package root does not export it, so this is not code you can write against @layerbasesystemic/horizon-design-system; the Code tab’s “Parts it renders” says why.
Day Unavailable
Section titled “Day Unavailable”Internal part. This story renders CalendarDay on its own. The package root does not export it, so this is not code you can write against @layerbasesystemic/horizon-design-system; the Code tab’s “Parts it renders” says why.
Day Start
Section titled “Day Start”Internal part. This story renders CalendarDay on its own. The package root does not export it, so this is not code you can write against @layerbasesystemic/horizon-design-system; the Code tab’s “Parts it renders” says why.
Day In Range
Section titled “Day In Range”Internal part. This story renders CalendarDay on its own. The package root does not export it, so this is not code you can write against @layerbasesystemic/horizon-design-system; the Code tab’s “Parts it renders” says why.
Day End
Section titled “Day End”Internal part. This story renders CalendarDay on its own. The package root does not export it, so this is not code you can write against @layerbasesystemic/horizon-design-system; the Code tab’s “Parts it renders” says why.
Occupancy Day Empty
Section titled “Occupancy Day Empty”Internal part. This story renders CalendarOccupancyDay on its own. The package root does not export it, so this is not code you can write against @layerbasesystemic/horizon-design-system; the Code tab’s “Parts it renders” says why.
Occupancy Day Normal
Section titled “Occupancy Day Normal”Internal part. This story renders CalendarOccupancyDay on its own. The package root does not export it, so this is not code you can write against @layerbasesystemic/horizon-design-system; the Code tab’s “Parts it renders” says why.
Occupancy Day High
Section titled “Occupancy Day High”Internal part. This story renders CalendarOccupancyDay on its own. The package root does not export it, so this is not code you can write against @layerbasesystemic/horizon-design-system; the Code tab’s “Parts it renders” says why.
Occupancy Day Soldout
Section titled “Occupancy Day Soldout”Internal part. This story renders CalendarOccupancyDay on its own. The package root does not export it, so this is not code you can write against @layerbasesystemic/horizon-design-system; the Code tab’s “Parts it renders” says why.
Occupancy Day Over
Section titled “Occupancy Day Over”Internal part. This story renders CalendarOccupancyDay on its own. The package root does not export it, so this is not code you can write against @layerbasesystemic/horizon-design-system; the Code tab’s “Parts it renders” says why.
Picker Uncontrolled
Section titled “Picker Uncontrolled”Picker Controlled
Section titled “Picker Controlled”The single-variant stories (Picker, Occupancy) are rows of the variant matrix; the Design tab links each one.
Import
Section titled “Import”import { Calendar } from "@layerbasesystemic/horizon-design-system";import type { CalendarProps, CalendarType, CalendarDateRange, CalendarOccupancyEntry } from "@layerbasesystemic/horizon-design-system";@layerbasesystemic/horizon-design-system/tokens.css and @layerbasesystemic/horizon-design-system/styles.css must be loaded too; see Developing.
| Prop | Type | Default | Description |
|---|---|---|---|
type |
CalendarType |
"picker" |
picker (default): the guest date-range picker. occupancy: the back office month grid. |
month |
string |
— | picker only. The month title text; defaults to the visible month, for example “September 2026”. |
visibleMonth |
Date |
— | The month shown (any day in it). Controlled. Defaults to the month of today. |
defaultVisibleMonth |
Date |
— | — |
onVisibleMonthChange |
(month: Date) => void |
— | — |
value |
CalendarDateRange |
— | picker only. The chosen stay. Controlled. |
defaultValue |
CalendarDateRange |
EMPTY_RANGE |
— |
onChange |
(range: CalendarDateRange) => void |
— | — |
today |
Date |
— | picker only. Days before this one are past. Defaults to the real today. |
prices |
Record<string, string> |
— | picker only. Nightly price per day, no currency, keyed YYYY-MM-DD. |
isDateUnavailable |
(date: Date) => boolean |
— | picker only. Days that can’t be booked are drawn unavailable and can’t be picked. |
occupancy |
Record<string, CalendarOccupancyEntry> |
— | occupancy only. Rooms sold per day, keyed YYYY-MM-DD. Days without an entry show only the day number. |
CalendarProps also extends Omit<HTMLAttributes<HTMLDivElement>, "children" \| "onChange" \| "defaultValue">, so native attributes pass through to the element (Calendar.tsx:41).
Props that are not Figma properties. The stories’ header comment says: “Figma properties: type (picker | occupancy); Month text (picker title) maps to month. The day parts’ state, day and price (and sold / percent on the occupancy parts) are layer overrides in Figma. Not Figma properties (added so the picker is usable): value / defaultValue / onChange (the stay), visibleMonth / defaultVisibleMonth / onVisibleMonthChange, today, prices, isDateUnavailable, occupancy, plus passthrough div attributes. Day states are derived from these, never set by hand. Figma draws no hover or pressed state; keyboard focus shows the focus-border ring.” (Calendar.stories.tsx:7-12). The ten that are not Figma properties are declared at value, defaultValue, onChange, visibleMonth, defaultVisibleMonth, onVisibleMonthChange, today, prices, isDateUnavailable, occupancy.
From the release review, under “Findings outside the gates”, as written:
Props that are not Figma properties. value, defaultValue, onChange, visibleMonth, defaultVisibleMonth, onVisibleMonthChange, today, prices, isDateUnavailable and occupancy are part of the public API once published (a 0.x breaking-change surface under VERSIONING.md). Owner: a human, to accept them as intended API.
Parts it renders
Section titled “Parts it renders”Calendar.tsx renders 2 parts of its own, each a file in src/components/Calendar: CalendarDay (Figma _calendar-day, node 234:29) and CalendarOccupancyDay (Figma _calendar-occupancy-day, node 234:65). They are not other Horizon components, so the registry’s Composes column for Calendar is empty; the QA report says, as written: “Composes nothing: Figma has no Button, Chip or Link instances here.” (QA report). Calendar.intent.json has placement and pairs_with as empty lists, so the Usage tab leaves out “Where it goes” and “Composition”; this section is where the composition is stated.
CalendarDay
Section titled “CalendarDay”Calendar.tsx imports it (Calendar.tsx:4) and renders <CalendarDay> at Calendar.tsx:298, Calendar.tsx:303. Its own comment says, as written: “Internal part of Calendar type=“picker” (Figma _calendar-day). Not for direct use.” (CalendarDay.tsx:25). The package root does not export it: src/index.ts exports only Calendar, CalendarProps, CalendarType, CalendarDateRange, CalendarOccupancyEntry from Calendar (src/index.ts:43-49), so CalendarDay and CalendarDayState are not importable from @layerbasesystemic/horizon-design-system.
CalendarDayState: empty, past, available, today, unavailable, start, in-range, end
The parts’ props are listed because the stories and the Design tab’s state tables use them; CalendarDay is not for direct use.
| Prop | Type | Default | Description |
|---|---|---|---|
state |
CalendarDayState |
"empty" |
— |
day |
string |
"14" |
The day number. Not shown in empty. |
price |
string |
"121" |
Nightly price, no currency. Shown in available, today, start, in-range and end; left out when empty. |
CalendarOccupancyDay
Section titled “CalendarOccupancyDay”Calendar.tsx imports it (Calendar.tsx:6) and renders <CalendarOccupancyDay> at Calendar.tsx:165, Calendar.tsx:169, Calendar.tsx:174. Its own comment says, as written: “Internal part of Calendar type=“occupancy” (Figma _calendar-occupancy-day). Not for direct use.” (CalendarOccupancyDay.tsx:24). The package root does not export it: src/index.ts exports only Calendar, CalendarProps, CalendarType, CalendarDateRange, CalendarOccupancyEntry from Calendar (src/index.ts:43-49), so CalendarOccupancyDay and CalendarOccupancyDayState are not importable from @layerbasesystemic/horizon-design-system.
CalendarOccupancyDayState: empty, normal, high, soldout, over
The parts’ props are listed because the stories and the Design tab’s state tables use them; CalendarOccupancyDay is not for direct use.
| Prop | Type | Default | Description |
|---|---|---|---|
state |
CalendarOccupancyDayState |
"empty" |
— |
day |
string |
"12" |
The day number. Not shown in empty. |
sold |
string |
— | Rooms sold, for example “38 of 48”. |
percent |
string |
— | Percentage, for example “79%”. |
Union types
Section titled “Union types”CalendarType: picker, occupancy
Tokens it needs
Section titled “Tokens it needs”Every CSS custom property Calendar.css reads, with its value in the token build at b9ffb76.
| Token | Light | Dark |
|---|---|---|
--border-width-md |
2px |
same as light |
--border-width-sm |
1px |
same as light |
--color-bg-elevated |
#f9fafb |
#4d5361 |
--color-bg-inverse |
#161925 |
#f9fafb |
--color-bg-surface |
#f2f3f5 |
#272a37 |
--color-border-default |
#d7dee7 |
#4d5361 |
--color-border-focus |
#1d44ba |
#6692f8 |
--color-border-subtle |
#eef1f5 |
#272a37 |
--color-primary-default |
#2b5ad6 |
#6692f8 |
--color-primary-light |
#eff3ff |
#162d69 |
--color-status-error |
#d02727 |
#f36969 |
--color-status-error-bg |
#fff1f1 |
#650b0b |
--color-status-success |
#229c4a |
#4dba6d |
--color-text-disabled |
#d1d5db |
#6a7180 |
--color-text-inverse |
#f9fafb |
#161925 |
--color-text-inverse-secondary |
#d1d5db |
#6a7180 |
--color-text-primary |
#161925 |
#f9fafb |
--color-text-secondary |
#4d5361 |
#9ca2b1 |
--fontfamily-body |
Inter |
same as light |
--fontsize-lg |
13px |
same as light |
--fontsize-sm |
11px |
same as light |
--fontsize-xl |
14px |
same as light |
--fontsize-xs |
10px |
same as light |
--lineheight-lg |
20px |
same as light |
--lineheight-sm |
16px |
same as light |
--lineheight-xl |
20px |
same as light |
--lineheight-xs |
16px |
same as light |
--radius-xs |
2px |
same as light |
--spacing-md |
12px |
same as light |
--spacing-sm |
8px |
same as light |
--spacing-xl |
20px |
same as light |
--spacing-xs |
4px |
same as light |
This matches required_tokens in Calendar.intent.json exactly.
Figma node
Section titled “Figma node”Page Calendar (57:1647), documentation frame ❖ calendar (236:261), component set calendar (235:392). The file is shared with the team only, so the frame and the link ask anyone outside it to sign in.
The page also holds _calendar-day (234:29), which Figma describes as: “Internal part of calendar type=picker (not for direct use). One day: empty (padding before or after the month), past, available (day + nightly price), today (outlined), unavailable (struck through), start and end of the stay (solid blue) and in-range (the nights between, light blue).” Its Figma variants: state=empty (234:5), state=past (234:8), state=available (234:11), state=today (234:14), state=unavailable (234:17), state=start (234:20), state=in-range (234:23), state=end (234:26). It also holds _calendar-occupancy-day (234:65), which Figma describes as: “Internal part of calendar type=occupancy (not for direct use). One day of the back office occupancy grid: empty, normal (green %), high (red %, above 95%), soldout (navy) or over (navy with an ‘over’ tag: sold more rooms than exist).” Its Figma variants: state=empty (234:30), state=normal (234:37), state=high (234:44), state=soldout (234:51), state=over (234:58).
Variant matrix
Section titled “Variant matrix”type (2) = 2 cells. The component set (235:392) publishes two variants, type=picker (235:2, 536x340) and type=occupancy (235:137, 1170x645). Month (the picker’s month title text) is a text property of the set, not a variant. The day and occupancy-day parts are separate component sets with their own state variants: _calendar-day (234:29) has 8 (234:5 to 234:26, each 64x40) and _calendar-occupancy-day (234:65) has 5 (234:30 to 234:58, each 158x90); they are listed in the two state tables below. The canvas also holds a two-month specimen, ‘Web: two months’ (236:265 and 236:400, 536x340 each), and the specimen board (233:1147). Figma draws no hover, pressed, disabled or focus state.
type |
Figma node | Story |
|---|---|---|
picker |
235:2 |
Picker |
occupancy |
235:137 |
Occupancy |
_calendar-day states
Section titled “_calendar-day states”_calendar-day (node 234:29) publishes 8 state variants. They are the same 8 values as CalendarDayState in the code. Calendar derives each day’s state from its props; the CalendarDay part is not exported, so state is not something you set on Calendar.
| Figma variant | Figma node | Story |
|---|---|---|
state=empty |
234:5 |
DayEmpty |
state=past |
234:8 |
DayPast |
state=available |
234:11 |
DayAvailable |
state=today |
234:14 |
DayToday |
state=unavailable |
234:17 |
DayUnavailable |
state=start |
234:20 |
DayStart |
state=in-range |
234:23 |
DayInRange |
state=end |
234:26 |
DayEnd |
Each story renders <CalendarDay> on its own, inside a 64px-wide wrapper (Calendar.stories.tsx:110, link), not through Calendar.
_calendar-occupancy-day states
Section titled “_calendar-occupancy-day states”_calendar-occupancy-day (node 234:65) publishes 5 state variants. They are the same 5 values as CalendarOccupancyDayState in the code. Calendar derives each day’s state from its props; the CalendarOccupancyDay part is not exported, so state is not something you set on Calendar.
| Figma variant | Figma node | Story |
|---|---|---|
state=empty |
234:30 |
OccupancyDayEmpty |
state=normal |
234:37 |
OccupancyDayNormal |
state=high |
234:44 |
OccupancyDayHigh |
state=soldout |
234:51 |
OccupancyDaySoldout |
state=over |
234:58 |
OccupancyDayOver |
Each story renders <CalendarOccupancyDay> on its own, inside a 158px-wide wrapper (Calendar.stories.tsx:123, link), not through Calendar.
Themes
Section titled “Themes”The calendar component set renders every cell once, in one theme. It has no separate light and dark frames.
The token build defines 179 tokens for light and redeclares 50 for dark; the Code tab shows Calendar’s tokens in both.
Values Figma never bound
Section titled “Values Figma never bound”Values on the Figma node that aren’t bound to a variable, and what Calendar.css at b9ffb76 does with each.
| Layer | Property | Figma value | In the code |
|---|---|---|---|
| Weekdays and Week rows, type=picker (235:11, 235:27) | width of each day column | 64px |
grid-template-columns: repeat(7, 64px); |
| _calendar-day, every state (234:5 to 234:26) | height | 40px |
aspect-ratio: 8 / 5; /* 64 x 40 at the Figma column width */ |
| _calendar-day, every state (234:5 to 234:26) | width | 64px |
Not set on the day: the 64px comes from the grid column above |
| Header, type=picker (235:3) | width | 496px |
Not set: the header stretches to the width of the seven columns and six gaps |
| Previous (235:4) and Next (235:8), type=picker | width | 28px |
width: 2em; |
| Previous (235:4) and Next (235:8), type=picker | height | 28px |
height: 2em; |
| Icon in Previous (235:5) and Next (235:9), type=picker | width and height | 14px |
width: 1em; |
| Weekdays and Week rows, type=occupancy (235:138) | width of each day column | 158px |
grid-template-columns: repeat(7, 158px); |
| Weekdays, type=occupancy (235:138) | padding top and bottom (typed, not bound) | 12px |
padding-block: calc(var(--spacing-md) - var(--border-width-sm)) var(--spacing-md); |
| Weekday labels, type=occupancy (235:139 and the other six) | padding left (typed, not bound) | 8px |
padding-inline-start: var(--spacing-sm); |
| _calendar-occupancy-day, every state (234:30 to 234:58) | height | 90px |
aspect-ratio: 158 / 90; |
| Over tag, state=over (234:61) | padding (6px sides, 2px top and bottom) | 6px 2px |
padding: calc(var(--spacing-xs) / 2) calc(var(--spacing-xs) * 1.5); |
| Border, calendar and occupancy day | colour (bound in Figma to the variable color/border/subtle, which is not named like a –color-… token; the code reads –color-border-subtle) | #eef1f5 |
border: var(--border-width-sm) solid var(--color-border-subtle); |
Figma variables against the token build
Section titled “Figma variables against the token build”| Figma variable | Figma value | Token in the build | Built light value | Agrees |
|---|---|---|---|---|
--color-text-secondary |
#4d5361 |
--color-text-secondary |
#4d5361 |
yes |
--radius-xs |
2 |
--radius-xs |
2px |
yes |
--border-width-sm |
1 |
--border-width-sm |
1px |
yes |
--color-bg-elevated |
#f9fafb |
--color-bg-elevated |
#f9fafb |
yes |
--color-border-default |
#d7dee7 |
--color-border-default |
#d7dee7 |
yes |
--color-text-primary |
#161925 |
--color-text-primary |
#161925 |
yes |
--fontSize-xl |
14 |
--fontsize-xl |
14px |
yes |
--fontWeight-semibold |
Semi Bold |
no such token | — | no token |
--fontFamily-body |
Inter |
--fontfamily-body |
Inter |
yes |
--lineHeight-xl |
20 |
--lineheight-xl |
20px |
yes |
--fontSize-sm |
11 |
--fontsize-sm |
11px |
yes |
--fontWeight-medium |
Medium |
no such token | — | no token |
--lineHeight-sm |
16 |
--lineheight-sm |
16px |
yes |
--spacing-sm |
8 |
--spacing-sm |
8px |
yes |
--color-text-disabled |
#d1d5db |
--color-text-disabled |
#d1d5db |
yes |
--fontSize-lg |
13 |
--fontsize-lg |
13px |
yes |
--fontWeight-regular |
Regular |
no such token | — | no token |
--lineHeight-lg |
20 |
--lineheight-lg |
20px |
yes |
--color-bg-surface |
#f2f3f5 |
--color-bg-surface |
#f2f3f5 |
yes |
--fontSize-xs |
10 |
--fontsize-xs |
10px |
yes |
--lineHeight-xs |
16 |
--lineheight-xs |
16px |
yes |
--color-primary-default |
#3b71f2 |
--color-primary-default |
#2b5ad6 |
no |
--color-text-inverse |
#f9fafb |
--color-text-inverse |
#f9fafb |
yes |
--color-text-inverse-secondary |
#d1d5db |
--color-text-inverse-secondary |
#d1d5db |
yes |
--color-primary-light |
#eff3ff |
--color-primary-light |
#eff3ff |
yes |
--spacing-md |
12 |
--spacing-md |
12px |
yes |
--spacing-xl |
20 |
--spacing-xl |
20px |
yes |
--spacing-xs |
4 |
--spacing-xs |
4px |
yes |
--color-status-success |
#229c4a |
--color-status-success |
#229c4a |
yes |
--color-status-error |
#ea3d3d |
--color-status-error |
#d02727 |
no |
--color-bg-inverse |
#161925 |
--color-bg-inverse |
#161925 |
yes |
--color-status-error-bg |
#fff1f1 |
--color-status-error-bg |
#fff1f1 |
yes |
--fontWeight-semibold, --fontWeight-medium, --fontWeight-regular are bound in Figma but the token build has no token of that name.
2 colour variables in Figma still hold a different value from the token build, so the design file and the shipped component render --color-primary-default, --color-status-error differently.
Design gaps recorded against it
Section titled “Design gaps recorded against it”Column widths with no token. The ruling “2026-10-05 · Calendar column widths with no token” in decisions.md says, as written: “These literals in src/components/Calendar/Calendar.css are accepted, because they are what the Figma nodes specify, until the designer adds matching size tokens.”
Value Property Selector Lines 64pxgrid-template-columns (picker weekday and week rows, seven columns).hz-calendar--picker .hz-calendar__weekdays, .hz-calendar--picker .hz-calendar__week68158pxgrid-template-columns (occupancy weekday and week rows, seven columns).hz-calendar--occupancy .hz-calendar__weekdays, .hz-calendar--occupancy .hz-calendar__week187
The two declarations are at Calendar.css:68 and Calendar.css:187. The ruling goes on: “Gate 2 passes for exactly these values on exactly these properties in Calendar.css. Quote this ruling in the report. When a size token for 64px or 158px appears, the ruling no longer covers that value: use the token.”
The occupancy sample data in Figma is inconsistent, and the stories reproduce it. From the ruling’s “Not ruled” paragraph, as written: “The inconsistent occupancy sample data in Figma (the 30th shown as 48 of 48, 99%, in the high style; 47 of 48 shown as 97% and as 98%; 35 of 48 shown as 72%): the stories reproduce the drawn values and that is for the designer.” The drawn pairs are OCCUPANCY_DRAWN (Calendar.stories.tsx:72-76), kept as Figma draws them, with an explicit percent on every day and state: "high" forced on 30 August (Calendar.stories.tsx:80-81: “Figma draws 30 August as “48 of 48, 99%” in the high (red) style, not soldout.“).
| Day (August 2026) | Figma draws | Why it is inconsistent |
|---|---|---|
| 30 | 48 of 48, 99%, high (red) style |
48 of 48 is sold out, which Figma draws in navy, and 99% is not 100% |
| 15 | 47 of 48, 97% |
47 of 48 is drawn as 97% on the 15th and as 98% on the 22nd |
| 22 | 47 of 48, 98% |
47 of 48 is drawn as 97% on the 15th and as 98% on the 22nd |
| 19 | 35 of 48, 72% |
35 of 48 is drawn as 72% |
Calendar prints percent when it is given and rounds sold / total otherwise (Calendar.tsx:172).
From the QA report, as written:
Figma’s occupancy data is inconsistent (day 30 reads “48 of 48, 99%” in the red high style rather than soldout; 47 of 48 reads 97% on the 15th and 98% on the 22nd; 35 of 48 reads 72%). The story reproduces the drawn values with explicit percent and state.
From the release review, under “Findings outside the gates”, as written:
Pipeline colour drift and inconsistent Figma sample data. Named in the ruling’s “Not ruled”, so not findings under it. Owner: the designer.
States Figma doesn’t draw. The component description (node 235:392) and the matrices above cover type and the two parts’ states only. Figma draws no hover, pressed or disabled state. The stylesheet adds a keyboard-focus ring on the navigation buttons and the picker days (Calendar.css:90-94), a pointer cursor on days you can pick (Calendar.css:169-170) and cursor: not-allowed on aria-disabled days (Calendar.css:173-174); past and unavailable days are aria-disabled, which is how the code marks a day that can’t be picked, not a disabled state Figma draws.
From the QA report, as written:
Figma draws no month title for the occupancy cell (aria-label only), and no hover, pressed or disabled state. The keyboard focus ring and the pointer cursor are engineer additions.
From the release review, under “Findings outside the gates”, as written:
Focus ring and pointer cursor are not in Figma (engineer additions, per the QA report). Figma draws no month title for the occupancy cell (aria-label only).
The occupancy type has no month title. Figma draws a month title only on the picker (the Month text property of node 235:7). month is documented as “picker only” (Calendar.tsx:44), and the occupancy grid renders no title element: it is named by aria-label (the prop, falling back to “Occupancy, <month>”) at Calendar.tsx:149. So a visible month name for the occupancy grid is for the page that uses it to supply. The release review’s finding 7, quoted above under “States Figma doesn’t draw”, says the same.
Colour drift. --color-primary-default is #3b71f2 in Figma and #2b5ad6 in the token build at b9ffb76 (see the table above). Calendar.css reads it for the check in and check out days (Calendar.css:150) and the outline on today, so the shipped calendar renders them #2b5ad6. The ruling’s “Not ruled” paragraph says, as written: “The primary colour, which uses –color-primary-default (#2b5ad6) and differs from the #3b71f2 Figma shows: that is accepted pipeline drift, not a gate finding.” The release review’s finding 6, quoted above under the occupancy sample data, names the same drift. The table above shows one more variable that differs and Calendar.css reads: --color-status-error is #ea3d3d in Figma and #d02727 in the build, read at Calendar.css:256, Calendar.css:279. Neither the ruling nor the release review names it; it is listed here because the table shows it, for the designer.
- 2026-10-05 · Calendar column widths with no token (decisions.md). These literals in src/components/Calendar/Calendar.css are accepted, because they are what the Figma nodes specify, until the designer adds matching size tokens. Accepted values:
64px(grid-template-columns (picker weekday and week rows, seven columns),.hz-calendar--picker .hz-calendar__weekdays, .hz-calendar--picker .hz-calendar__week, line 68);158px(grid-template-columns (occupancy weekday and week rows, seven columns),.hz-calendar--occupancy .hz-calendar__weekdays, .hz-calendar--occupancy .hz-calendar__week, line 187). Not ruled: Any other literal value, including a var() fallback. These values in any other component. A change to these values: a different number needs a new ruling or a token. The aspect-ratio values 8/5 and 158/90, the 2em navigation button, the 1em icon, and the calc over spacing tokens for the “over” tag padding: none is a px literal, so they need no ruling, and whether they should be tokens is for the designer. The font weights 400, 500 and 600, which are unitless numbers. The primary colour, which uses –color-primary-default (#2b5ad6) and differs from the #3b71f2 Figma shows: that is accepted pipeline drift, not a gate finding. The inconsistent occupancy sample data in Figma (the 30th shown as 48 of 48, 99%, in the high style; 47 of 48 shown as 97% and as 98%; 35 of 48 shown as 72%): the stories reproduce the drawn values and that is for the designer. Any state Figma does not draw.
Every commit to src/components/Calendar up to b9ffb76, newest first, with the published version that carries it.
| Commit | Date | Version | Change |
|---|---|---|---|
9c7ff32 |
2026-10-05 | 0.3.0 | Calendar intent: cite occupancy empty cell line |
1eaba8d |
2026-10-05 | 0.3.0 | Calendar: add intent file |
29e7c46 |
2026-10-05 | 0.3.0 | Calendar: build from Figma 57:1647 (picker + occupancy) |