@classic-homes/theme-mcp 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6,8 +6,251 @@ import { ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
6
6
 
7
7
  // src/data/component-catalog.json
8
8
  var component_catalog_default = {
9
- version: "0.2.2",
9
+ version: "0.3.0",
10
10
  components: [
11
+ {
12
+ name: "ActionHeader",
13
+ description: "Responsive app page header with back link, badges and actions that fold into an overflow menu instead of wrapping",
14
+ category: "layout",
15
+ importPath: "@classic-homes/theme-svelte",
16
+ props: [
17
+ {
18
+ name: "title",
19
+ type: "string",
20
+ required: false,
21
+ description: "Page or record title (clamped to two lines)"
22
+ },
23
+ {
24
+ name: "subtitle",
25
+ type: "string",
26
+ required: false,
27
+ description: "Description under the title"
28
+ },
29
+ {
30
+ name: "headingLevel",
31
+ type: "1 | 2 | 3",
32
+ default: "1",
33
+ required: false,
34
+ description: "Heading element for the title"
35
+ },
36
+ {
37
+ name: "caption",
38
+ type: "string",
39
+ required: false,
40
+ description: 'Small note under the actions, right-aligned (e.g. "Updated 5 minutes ago")'
41
+ },
42
+ {
43
+ name: "backHref",
44
+ type: "string",
45
+ required: false,
46
+ description: "Shows a back arrow linking here"
47
+ },
48
+ {
49
+ name: "backLabel",
50
+ type: "string",
51
+ required: false,
52
+ description: 'Back target name; the aria-label becomes "Back to {backLabel}"'
53
+ },
54
+ {
55
+ name: "actions",
56
+ type: "ActionHeaderAction[]",
57
+ default: "[]",
58
+ required: false,
59
+ description: "Header actions (see below)"
60
+ },
61
+ {
62
+ name: "collapseAt",
63
+ type: "'auto' | 'sm' | 'md' | 'lg' | 'never'",
64
+ default: "'auto'",
65
+ required: false,
66
+ description: "Header width at which secondary actions fold: `sm` \u2248 28rem, `md` \u2248 40rem, `lg` \u2248 52rem. `auto` means `lg` with 2+ secondary actions, otherwise `md`"
67
+ },
68
+ {
69
+ name: "moreLabel",
70
+ type: "string",
71
+ default: "'More actions'",
72
+ required: false,
73
+ description: "Accessible name of the \u22EF trigger"
74
+ },
75
+ {
76
+ name: "media",
77
+ type: "Snippet",
78
+ required: false,
79
+ description: "Leading visual after the back button, e.g. a thumbnail"
80
+ },
81
+ {
82
+ name: "titleSuffix",
83
+ type: "Snippet",
84
+ required: false,
85
+ description: "Small inline content right after the title"
86
+ },
87
+ {
88
+ name: "badges",
89
+ type: "Snippet",
90
+ required: false,
91
+ description: "Status badges or a meta line under the title"
92
+ },
93
+ {
94
+ name: "tools",
95
+ type: "Snippet",
96
+ required: false,
97
+ description: "Icon buttons that are always visible at the end of the header"
98
+ },
99
+ {
100
+ name: "toolbar",
101
+ type: "Snippet",
102
+ required: false,
103
+ description: "Row of controls under the header (view toggles, selects)"
104
+ },
105
+ {
106
+ name: "class",
107
+ type: "string",
108
+ required: false,
109
+ description: "Additional classes"
110
+ }
111
+ ],
112
+ variants: [
113
+ {
114
+ name: "collapseAt",
115
+ values: [
116
+ "auto",
117
+ "sm",
118
+ "md",
119
+ "lg",
120
+ "never"
121
+ ],
122
+ default: "auto"
123
+ }
124
+ ],
125
+ slots: [
126
+ {
127
+ name: "children",
128
+ description: "Main content",
129
+ required: false
130
+ }
131
+ ],
132
+ events: [],
133
+ examples: [
134
+ {
135
+ title: "Basic Usage",
136
+ code: `<ActionHeader
137
+ title="Signs"
138
+ subtitle="Physical signage inventory across all communities."
139
+ actions={[
140
+ { label: 'Export CSV', icon: 'download', onSelect: exportCsv },
141
+ { label: 'Add sign', icon: 'plus', priority: 'primary', onSelect: openCreate },
142
+ ]}
143
+ />`
144
+ },
145
+ {
146
+ title: "Record detail",
147
+ code: `<ActionHeader
148
+ title={sign.name}
149
+ subtitle={sign.community}
150
+ backHref="/marketing/signs"
151
+ backLabel="Signs"
152
+ actions={[
153
+ { label: 'Check in', icon: 'check', priority: 'primary', onSelect: checkIn },
154
+ { label: 'Edit', icon: 'edit', onSelect: edit },
155
+ { label: 'Retire', priority: 'overflow', destructive: true, onSelect: retire },
156
+ ]}
157
+ >
158
+ {#snippet badges()}
159
+ <Badge>Installed</Badge>
160
+ {/snippet}
161
+ {#snippet tools()}
162
+ <RecordTools />
163
+ {/snippet}
164
+ </ActionHeader>`
165
+ },
166
+ {
167
+ title: "With a toolbar",
168
+ code: `<script>
169
+ let groupBy = $state('community');
170
+ let view = $state('list');
171
+ </script>
172
+
173
+ <ActionHeader
174
+ title="All Available Homes"
175
+ subtitle="89 quick move-in homes across all communities"
176
+ caption="Updated 5 minutes ago"
177
+ actions={[{ label: 'PDF', icon: 'file-text', priority: 'primary', variant: 'secondary' }]}
178
+ >
179
+ {#snippet toolbar()}
180
+ <Toolbar label="Inventory tools" class="w-full">
181
+ <Input placeholder="Search homes\u2026" class="max-w-sm" />
182
+ <Button variant="secondary" size="sm">Filters</Button>
183
+ <span class="text-sm">89 homes</span>
184
+ {#snippet end()}
185
+ <SegmentedControl
186
+ label="Group homes by"
187
+ size="sm"
188
+ bind:value={groupBy}
189
+ options={[
190
+ { value: 'community', label: 'Community' },
191
+ { value: 'collection', label: 'Collection' },
192
+ { value: 'floor-plan', label: 'Floor Plan' },
193
+ ]}
194
+ />
195
+ <ViewToggle bind:value={view} />
196
+ {/snippet}
197
+ </Toolbar>
198
+ {/snippet}
199
+ </ActionHeader>`
200
+ }
201
+ ],
202
+ relatedComponents: []
203
+ },
204
+ {
205
+ name: "ActiveFilterChips",
206
+ description: "Row of removable chips naming each filter that narrows a list, with Clear all",
207
+ category: "core",
208
+ importPath: "@classic-homes/theme-svelte",
209
+ props: [
210
+ {
211
+ name: "chips",
212
+ type: "ActiveFilterChip[]",
213
+ required: false,
214
+ description: "`{ key, label, onRemove }` per active filter"
215
+ },
216
+ {
217
+ name: "onClearAll",
218
+ type: "() => void",
219
+ required: false,
220
+ description: 'Shows a trailing "Clear all" button when set'
221
+ },
222
+ {
223
+ name: "children",
224
+ type: "Snippet",
225
+ required: false,
226
+ description: "Extra notes after the chips"
227
+ },
228
+ {
229
+ name: "class",
230
+ type: "string",
231
+ required: false,
232
+ description: "Additional classes"
233
+ }
234
+ ],
235
+ variants: [],
236
+ slots: [
237
+ {
238
+ name: "children",
239
+ description: "Main content",
240
+ required: false
241
+ }
242
+ ],
243
+ events: [],
244
+ examples: [
245
+ {
246
+ title: "Basic Usage",
247
+ code: "<ActiveFilterChips\n chips={[{ key: 'status', label: 'Status: Installed', onRemove: () => (status = '') }]}\n onClearAll={clearFilters}\n/>"
248
+ }
249
+ ],
250
+ relatedComponents: [
251
+ "FilterToolbar"
252
+ ]
253
+ },
11
254
  {
12
255
  name: "Alert",
13
256
  description: "Contextual feedback messages for user actions and system status",
@@ -1505,21 +1748,11 @@ var component_catalog_default = {
1505
1748
  description: "The primary action button with solid background.",
1506
1749
  code: '<Button variant="default">Default Button</Button>'
1507
1750
  },
1508
- {
1509
- title: "Secondary",
1510
- description: "For secondary actions that need less visual emphasis.",
1511
- code: '<Button variant="secondary">Secondary Button</Button>'
1512
- },
1513
1751
  {
1514
1752
  title: "Destructive",
1515
1753
  description: "For dangerous or irreversible actions like delete.",
1516
1754
  code: '<Button variant="destructive">Delete</Button>'
1517
1755
  },
1518
- {
1519
- title: "Outline",
1520
- description: "Bordered button with transparent background.",
1521
- code: '<Button variant="outline">Outline Button</Button>'
1522
- },
1523
1756
  {
1524
1757
  title: "Ghost",
1525
1758
  description: "Minimal button with no background until hovered.",
@@ -5216,6 +5449,146 @@ var component_catalog_default = {
5216
5449
  "Button"
5217
5450
  ]
5218
5451
  },
5452
+ {
5453
+ name: "FilterToolbar",
5454
+ description: "Toolbar that folds filter controls behind a Filters button once more than three controls would sit inline",
5455
+ category: "layout",
5456
+ importPath: "@classic-homes/theme-svelte",
5457
+ props: [
5458
+ {
5459
+ name: "label",
5460
+ type: "string",
5461
+ required: false,
5462
+ description: "Accessible name of the strip (required)"
5463
+ },
5464
+ {
5465
+ name: "search",
5466
+ type: "Snippet",
5467
+ required: false,
5468
+ description: "Search field; always inline"
5469
+ },
5470
+ {
5471
+ name: "filters",
5472
+ type: "Snippet<[{ inline: boolean }]>",
5473
+ required: false,
5474
+ description: "Filter controls; `inline` is false inside the panel/dialog"
5475
+ },
5476
+ {
5477
+ name: "filterCount",
5478
+ type: "number",
5479
+ required: false,
5480
+ description: "Controls rendered by `filters` (drives the collapse rule)"
5481
+ },
5482
+ {
5483
+ name: "activeCount",
5484
+ type: "number",
5485
+ default: "0",
5486
+ required: false,
5487
+ description: "Active filters, shown as a badge on the button"
5488
+ },
5489
+ {
5490
+ name: "summary",
5491
+ type: "Snippet",
5492
+ required: false,
5493
+ description: "Result count after the filters / button"
5494
+ },
5495
+ {
5496
+ name: "end",
5497
+ type: "Snippet",
5498
+ required: false,
5499
+ description: "Right-aligned cluster"
5500
+ },
5501
+ {
5502
+ name: "onClear",
5503
+ type: "() => void",
5504
+ required: false,
5505
+ description: 'Resets every filter ("Clear all")'
5506
+ },
5507
+ {
5508
+ name: "maxInline",
5509
+ type: "number",
5510
+ default: "3",
5511
+ required: false,
5512
+ description: "Most left-side controls (search included) allowed inline"
5513
+ },
5514
+ {
5515
+ name: "open",
5516
+ type: "boolean",
5517
+ default: "false",
5518
+ required: false,
5519
+ description: "Panel/dialog open state (bindable)"
5520
+ },
5521
+ {
5522
+ name: "mobileQuery",
5523
+ type: "string",
5524
+ default: "'(max-width: 1023px)'",
5525
+ required: false,
5526
+ description: "Below this viewport filters always collapse into a dialog"
5527
+ },
5528
+ {
5529
+ name: "class",
5530
+ type: "string",
5531
+ required: false,
5532
+ description: "Additional classes on the wrapper"
5533
+ }
5534
+ ],
5535
+ variants: [],
5536
+ slots: [
5537
+ {
5538
+ name: "children",
5539
+ description: "Main content",
5540
+ required: false
5541
+ }
5542
+ ],
5543
+ events: [],
5544
+ examples: [
5545
+ {
5546
+ title: "Basic Usage",
5547
+ code: `<script>
5548
+ import {
5549
+ FilterToolbar,
5550
+ ActiveFilterChips,
5551
+ Input,
5552
+ Label,
5553
+ Select,
5554
+ } from '@classic-homes/theme-svelte';
5555
+
5556
+ let search = $state('');
5557
+ let status = $state('');
5558
+ let type = $state('');
5559
+ let supplier = $state('');
5560
+
5561
+ const activeCount = $derived([status, type, supplier].filter(Boolean).length);
5562
+ const clear = () => (status = type = supplier = '');
5563
+ </script>
5564
+
5565
+ <FilterToolbar label="Sign tools" filterCount={3} {activeCount} onClear={clear}>
5566
+ {#snippet search()}
5567
+ <Input type="search" aria-label="Search signs" class="w-full sm:w-56" bind:value={search} />
5568
+ {/snippet}
5569
+ {#snippet filters({ inline })}
5570
+ <div class="space-y-1">
5571
+ <Label for="status" class={inline ? 'sr-only' : ''}>Status</Label>
5572
+ <Select id="status" options={statusOptions} bind:value={status} />
5573
+ </div>
5574
+ <!-- \u2026type, supplier -->
5575
+ {/snippet}
5576
+ {#snippet summary()}<span class="text-sm">42 signs</span>{/snippet}
5577
+ </FilterToolbar>
5578
+
5579
+ <ActiveFilterChips
5580
+ chips={status
5581
+ ? [{ key: 'status', label: \`Status: \${status}\`, onRemove: () => (status = '') }]
5582
+ : []}
5583
+ onClearAll={clear}
5584
+ />`
5585
+ }
5586
+ ],
5587
+ relatedComponents: [
5588
+ "Toolbar",
5589
+ "ActionHeader"
5590
+ ]
5591
+ },
5219
5592
  {
5220
5593
  name: "Footer",
5221
5594
  description: "Site footer with link sections and branding",
@@ -8000,7 +8373,7 @@ var component_catalog_default = {
8000
8373
  name: "subtitle",
8001
8374
  type: "string",
8002
8375
  required: false,
8003
- description: "Optional subtitle text"
8376
+ description: "Optional product label (Figtree 600, uppercase, brand red, left-aligned under the wordmark)"
8004
8377
  },
8005
8378
  {
8006
8379
  name: "environment",
@@ -9756,6 +10129,13 @@ var component_catalog_default = {
9756
10129
  required: false,
9757
10130
  description: "Visual variant"
9758
10131
  },
10132
+ {
10133
+ name: "as",
10134
+ type: "'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'",
10135
+ default: "'h1'",
10136
+ required: false,
10137
+ description: "Heading element"
10138
+ },
9759
10139
  {
9760
10140
  name: "class",
9761
10141
  type: "string",
@@ -9779,6 +10159,18 @@ var component_catalog_default = {
9779
10159
  "form"
9780
10160
  ],
9781
10161
  default: "default"
10162
+ },
10163
+ {
10164
+ name: "as",
10165
+ values: [
10166
+ "h1",
10167
+ "h2",
10168
+ "h3",
10169
+ "h4",
10170
+ "h5",
10171
+ "h6"
10172
+ ],
10173
+ default: "h1"
9782
10174
  }
9783
10175
  ],
9784
10176
  slots: [
@@ -11056,6 +11448,100 @@ var component_catalog_default = {
11056
11448
  "Separator"
11057
11449
  ]
11058
11450
  },
11451
+ {
11452
+ name: "SegmentedControl",
11453
+ description: "Single-choice pill group for switching grouping or modes",
11454
+ category: "layout",
11455
+ importPath: "@classic-homes/theme-svelte",
11456
+ props: [
11457
+ {
11458
+ name: "options",
11459
+ type: "SegmentedControlOption[]",
11460
+ required: false,
11461
+ description: "`{ value, label, icon?, disabled? }`"
11462
+ },
11463
+ {
11464
+ name: "value",
11465
+ type: "string",
11466
+ default: "First enabled option",
11467
+ required: false,
11468
+ description: "Selected value (bindable)"
11469
+ },
11470
+ {
11471
+ name: "onValueChange",
11472
+ type: "(value: string) => void",
11473
+ required: false,
11474
+ description: "Called after the selection changes"
11475
+ },
11476
+ {
11477
+ name: "label",
11478
+ type: "string",
11479
+ required: false,
11480
+ description: "Accessible name (required)"
11481
+ },
11482
+ {
11483
+ name: "size",
11484
+ type: "'sm' | 'md'",
11485
+ default: "'md'",
11486
+ required: false,
11487
+ description: "Track height 36px / 40px"
11488
+ },
11489
+ {
11490
+ name: "disabled",
11491
+ type: "boolean",
11492
+ default: "false",
11493
+ required: false,
11494
+ description: "Disables every option"
11495
+ },
11496
+ {
11497
+ name: "class",
11498
+ type: "string",
11499
+ required: false,
11500
+ description: "Additional classes"
11501
+ }
11502
+ ],
11503
+ variants: [
11504
+ {
11505
+ name: "size",
11506
+ values: [
11507
+ "sm",
11508
+ "md"
11509
+ ],
11510
+ default: "md"
11511
+ }
11512
+ ],
11513
+ slots: [
11514
+ {
11515
+ name: "children",
11516
+ description: "Main content",
11517
+ required: false
11518
+ }
11519
+ ],
11520
+ events: [],
11521
+ examples: [
11522
+ {
11523
+ title: "Basic Usage",
11524
+ code: `<script>
11525
+ import { SegmentedControl } from '@classic-homes/theme-svelte';
11526
+
11527
+ let groupBy = $state('community');
11528
+
11529
+ const options = [
11530
+ { value: 'community', label: 'Community' },
11531
+ { value: 'collection', label: 'Collection' },
11532
+ { value: 'floor-plan', label: 'Floor Plan' },
11533
+ ];
11534
+ </script>
11535
+
11536
+ <SegmentedControl label="Group homes by" {options} bind:value={groupBy} />`
11537
+ }
11538
+ ],
11539
+ relatedComponents: [
11540
+ "Toolbar",
11541
+ "ViewToggle",
11542
+ "Tabs"
11543
+ ]
11544
+ },
11059
11545
  {
11060
11546
  name: "Select",
11061
11547
  description: "Dropdown for selecting from a list of options with grouping support",
@@ -13157,6 +13643,91 @@ var component_catalog_default = {
13157
13643
  "AppShell"
13158
13644
  ]
13159
13645
  },
13646
+ {
13647
+ name: "Toolbar",
13648
+ description: "Dark control strip for search, filters, grouping and view toggles under a page header",
13649
+ category: "layout",
13650
+ importPath: "@classic-homes/theme-svelte",
13651
+ props: [
13652
+ {
13653
+ name: "label",
13654
+ type: "string",
13655
+ required: false,
13656
+ description: "Accessible name of the group (required)"
13657
+ },
13658
+ {
13659
+ name: "children",
13660
+ type: "Snippet",
13661
+ required: false,
13662
+ description: "Leading controls (search, filters, count)"
13663
+ },
13664
+ {
13665
+ name: "end",
13666
+ type: "Snippet",
13667
+ required: false,
13668
+ description: "Right-aligned cluster (grouping control, view toggle)"
13669
+ },
13670
+ {
13671
+ name: "class",
13672
+ type: "string",
13673
+ required: false,
13674
+ description: "Additional classes"
13675
+ }
13676
+ ],
13677
+ variants: [],
13678
+ slots: [
13679
+ {
13680
+ name: "children",
13681
+ description: "Main content",
13682
+ required: false
13683
+ }
13684
+ ],
13685
+ events: [],
13686
+ examples: [
13687
+ {
13688
+ title: "Basic Usage",
13689
+ code: `<script>
13690
+ import {
13691
+ Toolbar,
13692
+ SegmentedControl,
13693
+ ViewToggle,
13694
+ Button,
13695
+ Input,
13696
+ Separator,
13697
+ } from '@classic-homes/theme-svelte';
13698
+
13699
+ let groupBy = $state('community');
13700
+ let view = $state('list');
13701
+ </script>
13702
+
13703
+ <Toolbar label="Inventory tools">
13704
+ <Input placeholder="Search homes, communities, floor plans\u2026" class="max-w-sm" />
13705
+ <Button variant="secondary" size="sm">Filters</Button>
13706
+ <span class="text-sm">89 homes</span>
13707
+
13708
+ {#snippet end()}
13709
+ <SegmentedControl
13710
+ label="Group homes by"
13711
+ size="sm"
13712
+ bind:value={groupBy}
13713
+ options={[
13714
+ { value: 'community', label: 'Community' },
13715
+ { value: 'collection', label: 'Collection' },
13716
+ { value: 'floor-plan', label: 'Floor Plan' },
13717
+ ]}
13718
+ />
13719
+ <Separator orientation="vertical" class="h-6 bg-secondary-soft" />
13720
+ <ViewToggle bind:value={view} />
13721
+ {/snippet}
13722
+ </Toolbar>`
13723
+ }
13724
+ ],
13725
+ relatedComponents: [
13726
+ "SegmentedControl",
13727
+ "ViewToggle",
13728
+ "ActionHeader"
13729
+ ]
13730
+ },
13160
13731
  {
13161
13732
  name: "Tooltip",
13162
13733
  description: "Contextual information displayed on hover",
@@ -13610,6 +14181,84 @@ var component_catalog_default = {
13610
14181
  "Lightbox",
13611
14182
  "MediaCarousel"
13612
14183
  ]
14184
+ },
14185
+ {
14186
+ name: "ViewToggle",
14187
+ description: "Icon-only switch between list, grid and map views",
14188
+ category: "layout",
14189
+ importPath: "@classic-homes/theme-svelte",
14190
+ props: [
14191
+ {
14192
+ name: "options",
14193
+ type: "ViewToggleOption[]",
14194
+ default: "list / grid / map",
14195
+ required: false,
14196
+ description: "`{ value, icon, label, disabled? }`"
14197
+ },
14198
+ {
14199
+ name: "value",
14200
+ type: "string",
14201
+ default: "First enabled option",
14202
+ required: false,
14203
+ description: "Selected view (bindable)"
14204
+ },
14205
+ {
14206
+ name: "onValueChange",
14207
+ type: "(value: string) => void",
14208
+ required: false,
14209
+ description: "Called after the selection changes"
14210
+ },
14211
+ {
14212
+ name: "label",
14213
+ type: "string",
14214
+ default: "'View'",
14215
+ required: false,
14216
+ description: "Accessible name of the group"
14217
+ },
14218
+ {
14219
+ name: "disabled",
14220
+ type: "boolean",
14221
+ default: "false",
14222
+ required: false,
14223
+ description: "Disables every option"
14224
+ },
14225
+ {
14226
+ name: "class",
14227
+ type: "string",
14228
+ required: false,
14229
+ description: "Additional classes"
14230
+ }
14231
+ ],
14232
+ variants: [],
14233
+ slots: [
14234
+ {
14235
+ name: "children",
14236
+ description: "Main content",
14237
+ required: false
14238
+ }
14239
+ ],
14240
+ events: [],
14241
+ examples: [
14242
+ {
14243
+ title: "Basic Usage",
14244
+ code: `<script>
14245
+ import { Toolbar, ViewToggle } from '@classic-homes/theme-svelte';
14246
+
14247
+ let view = $state('list');
14248
+ </script>
14249
+
14250
+ <Toolbar label="Inventory tools">
14251
+ <span class="text-sm">89 homes</span>
14252
+ {#snippet end()}
14253
+ <ViewToggle bind:value={view} />
14254
+ {/snippet}
14255
+ </Toolbar>`
14256
+ }
14257
+ ],
14258
+ relatedComponents: [
14259
+ "Toolbar",
14260
+ "SegmentedControl"
14261
+ ]
13613
14262
  }
13614
14263
  ]
13615
14264
  };
@@ -13694,7 +14343,7 @@ function registerComponentResources(server) {
13694
14343
 
13695
14344
  // src/data/token-definitions.json
13696
14345
  var token_definitions_default = {
13697
- version: "0.2.2",
14346
+ version: "0.3.0",
13698
14347
  colors: {
13699
14348
  brand: [
13700
14349
  {
@@ -13937,16 +14586,41 @@ var token_definitions_default = {
13937
14586
  foreground: "#ffffff"
13938
14587
  },
13939
14588
  secondary: {
13940
- light: "sage-100 (#eaebe6)",
14589
+ light: "#6c705b (filled sage controls; spec sage-600 #969a82 fails 4.5:1 under white)",
13941
14590
  dark: "sage-800 (#54574e)",
13942
14591
  hover: {
13943
- light: "#d4d6cc",
13944
- dark: "#5c6156"
14592
+ light: "red-700 (#a91c22)",
14593
+ dark: "red-700 (#a91c22)"
13945
14594
  },
13946
14595
  foreground: {
13947
- light: "gray-600 (#4f4f4f)",
14596
+ light: "#ffffff",
13948
14597
  dark: "gray-100 (#f3f4f6)"
13949
- }
14598
+ },
14599
+ border: {
14600
+ light: "#ffffff",
14601
+ dark: "charcoal-900 (#292424)"
14602
+ },
14603
+ soft: {
14604
+ light: "sage-600 (#969a82)",
14605
+ dark: "sage-700 (#757968)"
14606
+ },
14607
+ note: "Filled sage action color (e.g. PDF / Filters buttons). Use `muted` for subtle light-sage surfaces."
14608
+ },
14609
+ outline: {
14610
+ light: "sage-600 (#969a82)",
14611
+ dark: "sage-500 (#b6baa4)",
14612
+ hover: {
14613
+ light: "#d5d7cd",
14614
+ dark: "sage-300 (#d0d3c5)"
14615
+ },
14616
+ note: "Outline button border; hover pairs with the primary fill."
14617
+ },
14618
+ toolbar: {
14619
+ light: "#1b373b",
14620
+ dark: "#1b373b",
14621
+ foreground: "#ffffff",
14622
+ border: "#d5d7cd",
14623
+ note: "Dark toolbar strip under page headers (Toolbar component)."
13950
14624
  },
13951
14625
  accent: {
13952
14626
  light: "teal-500 (#3ba4a7)",
@@ -14232,7 +14906,7 @@ var token_definitions_default = {
14232
14906
  typography: {
14233
14907
  fontFamilies: {
14234
14908
  sans: "Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif",
14235
- serif: "Source Serif Variable, Source Serif Pro, ui-serif, Georgia, Cambria, Times New Roman, Times, serif",
14909
+ serif: "Spectral, ui-serif, Georgia, Cambria, Times New Roman, Times, serif",
14236
14910
  mono: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace"
14237
14911
  },
14238
14912
  fontSizes: {
@@ -14304,39 +14978,46 @@ var token_definitions_default = {
14304
14978
  },
14305
14979
  headingSizes: {
14306
14980
  h1: {
14307
- size: "2.25rem",
14308
- lineHeight: "2.5rem",
14309
- fontWeight: "600",
14310
- pixels: "36px"
14981
+ size: "2.5rem",
14982
+ lineHeight: "2rem",
14983
+ fontWeight: "500",
14984
+ fontFamily: "serif (Spectral)",
14985
+ fontStyle: "italic",
14986
+ pixels: "40px"
14311
14987
  },
14312
14988
  h2: {
14313
- size: "1.875rem",
14989
+ size: "1.75rem",
14314
14990
  lineHeight: "2.25rem",
14315
14991
  fontWeight: "600",
14316
- pixels: "30px"
14992
+ fontFamily: "sans (Figtree)",
14993
+ pixels: "28px"
14317
14994
  },
14318
14995
  h3: {
14319
14996
  size: "1.5rem",
14320
14997
  lineHeight: "2rem",
14321
14998
  fontWeight: "600",
14999
+ fontFamily: "sans (Figtree)",
14322
15000
  pixels: "24px"
14323
15001
  },
14324
15002
  h4: {
14325
15003
  size: "1.25rem",
14326
15004
  lineHeight: "1.75rem",
14327
15005
  fontWeight: "600",
15006
+ fontFamily: "sans (Figtree)",
14328
15007
  pixels: "20px"
14329
15008
  },
14330
15009
  h5: {
14331
15010
  size: "1.125rem",
14332
- lineHeight: "1.75rem",
15011
+ lineHeight: "1.5rem",
14333
15012
  fontWeight: "600",
15013
+ fontFamily: "sans (Figtree)",
14334
15014
  pixels: "18px"
14335
15015
  },
14336
15016
  h6: {
14337
15017
  size: "1rem",
14338
15018
  lineHeight: "1.5rem",
14339
15019
  fontWeight: "600",
15020
+ fontFamily: "sans (Figtree)",
14340
15021
  pixels: "16px"
14341
15022
  }
14342
15023
  },
@@ -14511,6 +15192,8 @@ var token_definitions_default = {
14511
15192
  "border",
14512
15193
  "input",
14513
15194
  "ring",
15195
+ "outline",
15196
+ "toolbar",
14514
15197
  "background",
14515
15198
  "foreground",
14516
15199
  "primary",
@@ -14530,6 +15213,7 @@ var token_definitions_default = {
14530
15213
  withForeground: [
14531
15214
  "primary",
14532
15215
  "secondary",
15216
+ "toolbar",
14533
15217
  "destructive",
14534
15218
  "muted",
14535
15219
  "accent",
@@ -14545,7 +15229,8 @@ var token_definitions_default = {
14545
15229
  "secondary",
14546
15230
  "destructive",
14547
15231
  "muted",
14548
- "accent"
15232
+ "accent",
15233
+ "outline"
14549
15234
  ]
14550
15235
  }
14551
15236
  },
@@ -14641,7 +15326,7 @@ function registerTokenResources(server) {
14641
15326
 
14642
15327
  // src/data/styles-catalog.json
14643
15328
  var styles_catalog_default = {
14644
- version: "0.2.2",
15329
+ version: "0.3.0",
14645
15330
  package: "@classic-homes/theme-styles",
14646
15331
  description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
14647
15332
  integration: {
@@ -14666,7 +15351,7 @@ var styles_catalog_default = {
14666
15351
  features: [
14667
15352
  {
14668
15353
  name: "Brand Fonts",
14669
- description: "Imports Google Fonts: Figtree (sans-serif) and Source Serif 4 (serif)",
15354
+ description: "Imports Google Fonts: Figtree (sans-serif) and Spectral (serif, 400/500/600 + italics)",
14670
15355
  cssVariables: [
14671
15356
  "--font-sans",
14672
15357
  "--font-serif"
@@ -14678,10 +15363,10 @@ var styles_catalog_default = {
14678
15363
  },
14679
15364
  {
14680
15365
  name: "Heading Styles",
14681
- description: "h1-h6 with serif font (Source Serif 4), proper sizing, and brand-consistent styling",
15366
+ description: "h1 is the display face (Spectral 500 italic); h2-h6 are Figtree 600",
14682
15367
  sizes: {
14683
- h1: "2.25rem (36px)",
14684
- h2: "1.875rem (30px)",
15368
+ h1: "2.5rem (40px) / line-height 2rem, Spectral 500 italic",
15369
+ h2: "1.75rem (28px) / line-height 2.25rem, Figtree 600",
14685
15370
  h3: "1.5rem (24px)",
14686
15371
  h4: "1.25rem (20px)",
14687
15372
  h5: "1.125rem (18px)",
@@ -15014,7 +15699,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
15014
15699
 
15015
15700
  // src/data/pattern-library.json
15016
15701
  var pattern_library_default = {
15017
- version: "0.2.2",
15702
+ version: "0.3.0",
15018
15703
  layouts: [
15019
15704
  {
15020
15705
  id: "dashboard-page",
@@ -15766,14 +16451,11 @@ var pattern_library_default = {
15766
16451
  description: "Notification bell icon with dropdown panel for header integration",
15767
16452
  components: [
15768
16453
  "NotificationBadge",
15769
- "NotificationList",
15770
- "NotificationItem",
15771
- "DropdownMenu",
15772
- "Button"
16454
+ "DropdownMenu"
15773
16455
  ],
15774
16456
  example: `<script lang="ts">
15775
- import { Button, DropdownMenu } from '@classic-homes/theme-svelte';
15776
- import { NotificationBadge, NotificationList } from '@classic-homes/theme-svelte/notifications';
16457
+ import { DropdownMenu } from '@classic-homes/theme-svelte';
16458
+ import { NotificationBadge } from '@classic-homes/theme-svelte/notifications';
15777
16459
  import { notificationService } from '@classic-homes/notifications/core';
15778
16460
  import type { Notification } from '@classic-homes/notifications/core';
15779
16461
  import { goto } from '$app/navigation';
@@ -15794,39 +16476,26 @@ var pattern_library_default = {
15794
16476
  }
15795
16477
  </script>
15796
16478
 
15797
- <DropdownMenu.Root>
15798
- <DropdownMenu.Trigger asChild let:builder>
15799
- <Button builders={[builder]} variant="ghost" size="icon" class="relative">
15800
- <NotificationBadge count={unreadCount} />
15801
- </Button>
15802
- </DropdownMenu.Trigger>
15803
-
15804
- <DropdownMenu.Content class="w-80" align="end">
15805
- <div class="flex items-center justify-between p-4 border-b">
15806
- <h3 class="font-semibold">Notifications</h3>
15807
- {#if unreadCount > 0}
15808
- <Button variant="ghost" size="sm" onclick={() => notificationService.markAllRead()}>
15809
- Mark all read
15810
- </Button>
15811
- {/if}
15812
- </div>
15813
-
15814
- <div class="max-h-96 overflow-y-auto">
15815
- <NotificationList
15816
- {notifications}
15817
- onNotificationClick={handleNotificationClick}
15818
- emptyTitle="No notifications"
15819
- emptyDescription="You're all caught up!"
15820
- />
15821
- </div>
15822
-
15823
- <div class="p-2 border-t">
15824
- <Button variant="ghost" class="w-full" onclick={() => goto('/notifications')}>
15825
- View all notifications
15826
- </Button>
15827
- </div>
15828
- </DropdownMenu.Content>
15829
- </DropdownMenu.Root>`
16479
+ <!-- DropdownMenu takes an items array (not compound parts); style the trigger via triggerClass. -->
16480
+ <DropdownMenu
16481
+ align="end"
16482
+ triggerLabel="Notifications"
16483
+ triggerClass="relative inline-flex h-10 w-10 items-center justify-center rounded-lg hover:bg-muted-hover"
16484
+ items={[
16485
+ { label: 'Notifications', type: 'label' },
16486
+ ...notifications.map((n) => ({
16487
+ label: n.title,
16488
+ onSelect: () => handleNotificationClick(n),
16489
+ })),
16490
+ { type: 'separator' },
16491
+ { label: 'Mark all read', icon: 'check', onSelect: () => notificationService.markAllRead() },
16492
+ { label: 'View all notifications', href: '/notifications' },
16493
+ ]}
16494
+ >
16495
+ {#snippet trigger()}
16496
+ <NotificationBadge count={unreadCount} />
16497
+ {/snippet}
16498
+ </DropdownMenu>`
15830
16499
  }
15831
16500
  ],
15832
16501
  panels: [
@@ -16124,7 +16793,7 @@ function registerLayoutResources(server) {
16124
16793
 
16125
16794
  // src/data/schema-catalog.json
16126
16795
  var schema_catalog_default = {
16127
- version: "0.2.2",
16796
+ version: "0.3.0",
16128
16797
  packageName: "@classic-homes/theme-svelte",
16129
16798
  importPath: "@classic-homes/theme-svelte",
16130
16799
  generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
@@ -16932,7 +17601,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
16932
17601
 
16933
17602
  // src/data/auth-catalog.json
16934
17603
  var auth_catalog_default = {
16935
- version: "0.2.2",
17604
+ version: "0.3.0",
16936
17605
  packageName: "@classic-homes/auth",
16937
17606
  description: "Authentication services and Svelte bindings for Classic Theme apps",
16938
17607
  subpackages: {
@@ -17506,12 +18175,12 @@ var auth_catalog_default = {
17506
18175
  {
17507
18176
  name: "ROLE_NAMES",
17508
18177
  type: "readonly RoleName[]",
17509
- description: "Every role name, ordered most to least privileged: admin, manager, agent, builder, customer_service, demo, stormwater, accounting_staff, architecture_staff, construction_staff, crl_staff, design_staff, hr_staff, it_staff, landdev_staff, marketing_staff, purchasing_staff, sales_staff, warranty_staff, employee, user, vendor, customer, subcontractor, guest. Order is load-bearing - computePrimaryRole takes the first match."
18178
+ description: "Every role name, ordered most to least privileged: admin, manager, agent, builder, customer_service, demo, stormwater, accounting_staff, architecture_staff, construction_staff, crl_staff, design_staff, hr_staff, it_staff, landdev_staff, marketing_staff, purchasing_staff, sales_staff, stormwater_staff, warranty_staff, hotsheet_editor, employee, user, vendor, customer, subcontractor, guest. Order is load-bearing - computePrimaryRole takes the first match."
17510
18179
  },
17511
18180
  {
17512
18181
  name: "ROLE_HIERARCHY",
17513
18182
  type: "Record<string, number>",
17514
- description: "Privilege level per role: guest 0; user/vendor/customer/subcontractor 1; employee/agent/builder/customer_service/demo/stormwater and every <department>_staff 2; manager 3; admin 4."
18183
+ description: "Privilege level per role: guest 0; user/vendor/customer/subcontractor 1; employee/agent/builder/customer_service/demo/stormwater, every <department>_staff and hotsheet_editor 2; manager 3; admin 4."
17515
18184
  }
17516
18185
  ],
17517
18186
  types: [
@@ -19969,7 +20638,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
19969
20638
 
19970
20639
  // src/data/notifications-catalog.json
19971
20640
  var notifications_catalog_default = {
19972
- version: "0.2.2",
20641
+ version: "0.3.0",
19973
20642
  packageName: "@classic-homes/notifications",
19974
20643
  description: "Notification services and Svelte bindings for Classic Theme apps",
19975
20644
  subpackages: {
@@ -20881,7 +21550,7 @@ function registerNotificationsResources(server) {
20881
21550
 
20882
21551
  // src/data/docs-catalog.json
20883
21552
  var docs_catalog_default = {
20884
- version: "0.2.2",
21553
+ version: "0.3.0",
20885
21554
  packageName: "@classic-homes/theme-docs",
20886
21555
  description: "Markdown documentation components for the Classic theme system",
20887
21556
  exports: {
@@ -21809,7 +22478,7 @@ function registerDocsResources(server) {
21809
22478
 
21810
22479
  // src/data/charts-catalog.json
21811
22480
  var charts_catalog_default = {
21812
- version: "0.2.2",
22481
+ version: "0.3.0",
21813
22482
  packageName: "@classic-homes/charts-core",
21814
22483
  description: "Core utilities, types, and themes for Classic Theme chart components",
21815
22484
  subpackages: {
@@ -23646,7 +24315,7 @@ interface SankeyData {
23646
24315
 
23647
24316
  // src/data/maps-catalog.json
23648
24317
  var maps_catalog_default = {
23649
- version: "0.2.2",
24318
+ version: "0.3.0",
23650
24319
  packageName: "@classic-homes/maps-core",
23651
24320
  description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
23652
24321
  subpackages: {
@@ -28977,7 +29646,7 @@ ${catalog5.quickReference.tailwindConfig}
28977
29646
 
28978
29647
  // src/data/native-catalog.json
28979
29648
  var native_catalog_default = {
28980
- version: "0.2.2",
29649
+ version: "0.3.0",
28981
29650
  packageName: "@classic-homes/native",
28982
29651
  description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
28983
29652
  subpackages: {
@@ -31352,7 +32021,7 @@ function registerPrompts(server) {
31352
32021
  // package.json
31353
32022
  var package_default = {
31354
32023
  name: "@classic-homes/theme-mcp",
31355
- version: "0.2.2",
32024
+ version: "0.3.0",
31356
32025
  description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
31357
32026
  type: "module",
31358
32027
  main: "dist/index.js",