@behavioral-agentic-design-system/core 0.12.2 → 0.14.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@behavioral-agentic-design-system/core",
3
- "version": "0.12.2",
3
+ "version": "0.14.0",
4
4
  "description": "BADS core — tokens, shadcn/ui components, and the BADS template shell (app routes, customize tab, theme hooks). Forks consume this and re-export, keeping client repos to ~30 lines of glue.",
5
5
  "license": "MIT",
6
6
  "author": "Matthew Stephens <work@matthewstephens.com> (https://github.com/matthewlarn)",
@@ -149,7 +149,13 @@ import {
149
149
  HoverCardDescription,
150
150
  HoverCardTrigger,
151
151
  } from "@behavioral-agentic-design-system/core/components/ui/hover-card";
152
- import { Sparkles, Info, CircleAlert, CalendarIcon, BuildingIcon } from "lucide-react";
152
+ import { Sparkles, Info, CircleAlert, CalendarIcon, BuildingIcon, CheckIcon, CreditCardIcon, ClipboardCheckIcon, TrophyIcon, UserCheckIcon } from "lucide-react";
153
+ import { DatePicker } from "@behavioral-agentic-design-system/core/components/ui/date-picker";
154
+ import { RatingGroup } from "@behavioral-agentic-design-system/core/components/ui/rating-group";
155
+ import { SegmentedControl, SegmentedControlItem } from "@behavioral-agentic-design-system/core/components/ui/segmented-control";
156
+ import { Timeline, TimelineItem } from "@behavioral-agentic-design-system/core/components/ui/timeline";
157
+ import { TagsInput } from "@behavioral-agentic-design-system/core/components/ui/tags-input";
158
+
153
159
  import { Toaster } from "@behavioral-agentic-design-system/core/components/ui/sonner";
154
160
  import { toast } from "sonner";
155
161
 
@@ -581,6 +587,10 @@ export default function ComponentsPreview() {
581
587
  </ScrollArea>
582
588
  </Section>
583
589
 
590
+ <Section title="SegmentedControl">
591
+ <SegmentedControlShowcase />
592
+ </Section>
593
+
584
594
  <Section title="BottomSheet">
585
595
  <div className="flex flex-wrap gap-3">
586
596
  {/* Default — grab handle + close button */}
@@ -1585,7 +1595,423 @@ export default function ComponentsPreview() {
1585
1595
  </div>
1586
1596
  </div>
1587
1597
  </Section>
1598
+
1599
+ <Section title="Date Picker">
1600
+ <div className="space-y-6">
1601
+ <div className="space-y-3">
1602
+ <p className="text-sm font-medium text-muted-foreground">Sizes</p>
1603
+ <div className="flex flex-col gap-3 max-w-xs">
1604
+ <DatePickerShowcase size="sm" placeholder="Small — pick a date" />
1605
+ <DatePickerShowcase size="default" placeholder="Default — pick a date" />
1606
+ <DatePickerShowcase size="lg" placeholder="Large — pick a date" />
1607
+ </div>
1608
+ </div>
1609
+ <div className="space-y-3">
1610
+ <p className="text-sm font-medium text-muted-foreground">With value + clearable</p>
1611
+ <div className="max-w-xs">
1612
+ <DatePickerShowcase
1613
+ defaultValue={new Date("2026-08-15")}
1614
+ clearable
1615
+ placeholder="Pick a date"
1616
+ />
1617
+ </div>
1618
+ </div>
1619
+ <div className="space-y-3">
1620
+ <p className="text-sm font-medium text-muted-foreground">Disabled</p>
1621
+ <div className="max-w-xs">
1622
+ <DatePicker
1623
+ disabled
1624
+ value={new Date("2026-06-24")}
1625
+ placeholder="Pick a date"
1626
+ />
1627
+ </div>
1628
+ </div>
1629
+ <div className="space-y-3">
1630
+ <p className="text-sm font-medium text-muted-foreground">Realistic use — schedule form</p>
1631
+ <DatePickerScheduleForm />
1632
+ </div>
1633
+ </div>
1634
+ </Section>
1635
+
1636
+ <Section title="Rating Group">
1637
+ <div className="space-y-6">
1638
+ <div className="space-y-3">
1639
+ <p className="text-sm font-medium text-muted-foreground">Sizes</p>
1640
+ <div className="flex flex-col gap-3">
1641
+ <RatingGroupShowcase size="sm" defaultValue={3} label="Small rating" />
1642
+ <RatingGroupShowcase size="default" defaultValue={3} label="Default rating" />
1643
+ <RatingGroupShowcase size="lg" defaultValue={3} label="Large rating" />
1644
+ </div>
1645
+ </div>
1646
+ <div className="space-y-3">
1647
+ <p className="text-sm font-medium text-muted-foreground">Interactive (unset)</p>
1648
+ <RatingGroupShowcase label="Rate this" />
1649
+ </div>
1650
+ <div className="space-y-3">
1651
+ <p className="text-sm font-medium text-muted-foreground">Read-only</p>
1652
+ <RatingGroup value={4} readOnly label="Average rating: 4 of 5" />
1653
+ </div>
1654
+ <div className="space-y-3">
1655
+ <p className="text-sm font-medium text-muted-foreground">Disabled</p>
1656
+ <RatingGroup value={2} disabled label="Rating" />
1657
+ </div>
1658
+ <div className="space-y-3">
1659
+ <p className="text-sm font-medium text-muted-foreground">Realistic use — session feedback</p>
1660
+ <RatingGroupFeedbackDemo />
1661
+ </div>
1662
+ </div>
1663
+ </Section>
1664
+
1665
+ <Section title="TagsInput">
1666
+ <div className="space-y-6">
1667
+ <div className="space-y-3">
1668
+ <p className="text-sm font-medium text-muted-foreground">Default — empty</p>
1669
+ <TagsInputShowcase placeholder="Add a tag…" />
1670
+ </div>
1671
+ <div className="space-y-3">
1672
+ <p className="text-sm font-medium text-muted-foreground">With initial tags</p>
1673
+ <TagsInputShowcase
1674
+ initialTags={["butterfly", "freestyle", "backstroke"]}
1675
+ placeholder="Add stroke…"
1676
+ />
1677
+ </div>
1678
+ <div className="space-y-3">
1679
+ <p className="text-sm font-medium text-muted-foreground">Max tags (4)</p>
1680
+ <TagsInputShowcase
1681
+ initialTags={["warm-up", "main set"]}
1682
+ maxTags={4}
1683
+ placeholder="Add phase (max 4)…"
1684
+ />
1685
+ </div>
1686
+ <div className="space-y-3">
1687
+ <p className="text-sm font-medium text-muted-foreground">Disabled</p>
1688
+ <TagsInputShowcase
1689
+ initialTags={["100m freestyle", "200m backstroke"]}
1690
+ disabled
1691
+ placeholder="Disabled"
1692
+ />
1693
+ </div>
1694
+ <div className="space-y-3">
1695
+ <p className="text-sm font-medium text-muted-foreground">Realistic use — Breezy Hills Aquatic Club session filters</p>
1696
+ <TagsInputFilterDemo />
1697
+ </div>
1698
+ </div>
1699
+ </Section>
1700
+
1701
+ <Section title="Timeline">
1702
+ <div className="space-y-8">
1703
+ <div className="space-y-3">
1704
+ <p className="text-sm font-medium text-muted-foreground">Status variants</p>
1705
+ <Timeline>
1706
+ <TimelineItem status="complete" title="Complete" description="Step is done." time="Yesterday" />
1707
+ <TimelineItem status="active" title="Active" description="Currently in progress." time="Today" />
1708
+ <TimelineItem status="default" title="Default" description="No semantic status." />
1709
+ <TimelineItem status="pending" title="Pending" description="Not yet started." time="Next week" />
1710
+ </Timeline>
1711
+ </div>
1712
+ <div className="space-y-3">
1713
+ <p className="text-sm font-medium text-muted-foreground">With icons</p>
1714
+ <Timeline>
1715
+ <TimelineItem
1716
+ status="complete"
1717
+ icon={<CheckIcon className="size-3" strokeWidth={1.5} aria-hidden />}
1718
+ title="Registration confirmed"
1719
+ time="Jun 20"
1720
+ />
1721
+ <TimelineItem
1722
+ status="complete"
1723
+ icon={<CreditCardIcon className="size-3" strokeWidth={1.5} aria-hidden />}
1724
+ title="Payment received"
1725
+ time="Jun 21"
1726
+ />
1727
+ <TimelineItem
1728
+ status="active"
1729
+ title="Heat assignment"
1730
+ description="Times submitted to meet director"
1731
+ time="Jun 25 (today)"
1732
+ />
1733
+ <TimelineItem
1734
+ status="pending"
1735
+ title="Meet day"
1736
+ description="Breezy Hills Aquatic Center"
1737
+ time="Jun 28"
1738
+ />
1739
+ </Timeline>
1740
+ </div>
1741
+ <div className="space-y-3">
1742
+ <p className="text-sm font-medium text-muted-foreground">Realistic use — athlete registration journey</p>
1743
+ <TimelineRealisticDemo />
1744
+ </div>
1745
+ </div>
1746
+ </Section>
1747
+ </div>
1748
+ </div>
1749
+ );
1750
+ }
1751
+
1752
+ function DatePickerShowcase({
1753
+ size,
1754
+ placeholder,
1755
+ defaultValue,
1756
+ clearable,
1757
+ }: {
1758
+ size?: "sm" | "default" | "lg";
1759
+ placeholder?: string;
1760
+ defaultValue?: Date;
1761
+ clearable?: boolean;
1762
+ }) {
1763
+ const [date, setDate] = React.useState<Date | undefined>(defaultValue);
1764
+ return (
1765
+ <DatePicker
1766
+ size={size}
1767
+ value={date}
1768
+ onValueChange={setDate}
1769
+ placeholder={placeholder}
1770
+ clearable={clearable}
1771
+ />
1772
+ );
1773
+ }
1774
+
1775
+ function DatePickerScheduleForm() {
1776
+ const [startDate, setStartDate] = React.useState<Date | undefined>(undefined);
1777
+ const [endDate, setEndDate] = React.useState<Date | undefined>(undefined);
1778
+ return (
1779
+ <div className="w-80 space-y-4 rounded-lg border border-border bg-card p-4">
1780
+ <div className="space-y-1">
1781
+ <p className="text-sm font-semibold">Schedule practice block</p>
1782
+ <p className="text-xs text-muted-foreground">
1783
+ Breezy Hills Aquatic Club · Summer season
1784
+ </p>
1785
+ </div>
1786
+ <div className="space-y-3">
1787
+ <div className="space-y-1.5">
1788
+ <label className="text-sm font-medium">Start date</label>
1789
+ <DatePicker
1790
+ value={startDate}
1791
+ onValueChange={setStartDate}
1792
+ placeholder="Pick start date"
1793
+ clearable
1794
+ toDate={endDate}
1795
+ />
1796
+ </div>
1797
+ <div className="space-y-1.5">
1798
+ <label className="text-sm font-medium">End date</label>
1799
+ <DatePicker
1800
+ value={endDate}
1801
+ onValueChange={setEndDate}
1802
+ placeholder="Pick end date"
1803
+ clearable
1804
+ fromDate={startDate}
1805
+ />
1806
+ </div>
1807
+ </div>
1808
+ <div className="flex justify-end gap-2">
1809
+ <Button variant="outline" size="sm" className="min-h-11">Cancel</Button>
1810
+ <Button size="sm" className="min-h-11">Schedule</Button>
1811
+ </div>
1812
+ </div>
1813
+ );
1814
+ }
1815
+
1816
+ function RatingGroupShowcase({
1817
+ size,
1818
+ defaultValue = 0,
1819
+ label,
1820
+ }: {
1821
+ size?: "sm" | "default" | "lg";
1822
+ defaultValue?: number;
1823
+ label: string;
1824
+ }) {
1825
+ const [value, setValue] = React.useState(defaultValue);
1826
+ return <RatingGroup size={size} value={value} onValueChange={setValue} label={label} />;
1827
+ }
1828
+
1829
+ function SegmentedControlShowcase() {
1830
+ const [view, setView] = React.useState("grid");
1831
+ const [period, setPeriod] = React.useState("month");
1832
+ const [filter, setFilter] = React.useState("active");
1833
+ return (
1834
+ <div className="flex flex-col gap-6">
1835
+ <div className="flex flex-col gap-4">
1836
+ <p className="text-sm font-medium text-muted-foreground">Size sm</p>
1837
+ <SegmentedControl value={period} onValueChange={setPeriod} size="sm" label="Time period">
1838
+ <SegmentedControlItem value="day">Day</SegmentedControlItem>
1839
+ <SegmentedControlItem value="week">Week</SegmentedControlItem>
1840
+ <SegmentedControlItem value="month">Month</SegmentedControlItem>
1841
+ </SegmentedControl>
1842
+
1843
+ <p className="text-sm font-medium text-muted-foreground">Default — view toggle</p>
1844
+ <SegmentedControl value={view} onValueChange={setView} label="View">
1845
+ <SegmentedControlItem value="list">List</SegmentedControlItem>
1846
+ <SegmentedControlItem value="grid">Grid</SegmentedControlItem>
1847
+ <SegmentedControlItem value="map">Map</SegmentedControlItem>
1848
+ </SegmentedControl>
1849
+
1850
+ <p className="text-sm font-medium text-muted-foreground">With disabled item</p>
1851
+ <SegmentedControl value={filter} onValueChange={setFilter} label="Filter">
1852
+ <SegmentedControlItem value="all">All</SegmentedControlItem>
1853
+ <SegmentedControlItem value="active">Active</SegmentedControlItem>
1854
+ <SegmentedControlItem value="archived">Archived</SegmentedControlItem>
1855
+ <SegmentedControlItem value="deleted" disabled>Deleted</SegmentedControlItem>
1856
+ </SegmentedControl>
1857
+
1858
+ <p className="text-sm font-medium text-muted-foreground">Disabled</p>
1859
+ <SegmentedControl value="week" onValueChange={() => {}} disabled label="Disabled">
1860
+ <SegmentedControlItem value="day">Day</SegmentedControlItem>
1861
+ <SegmentedControlItem value="week">Week</SegmentedControlItem>
1862
+ <SegmentedControlItem value="month">Month</SegmentedControlItem>
1863
+ </SegmentedControl>
1864
+ </div>
1865
+
1866
+ <Card className="w-80"><CardContent className="p-4 space-y-3">
1867
+ <p className="text-sm font-semibold">Breezy Hills Aquatic Club</p>
1868
+ <SegmentedControl value={filter} onValueChange={setFilter} label="Session filter">
1869
+ <SegmentedControlItem value="active">Upcoming</SegmentedControlItem>
1870
+ <SegmentedControlItem value="archived">Past</SegmentedControlItem>
1871
+ <SegmentedControlItem value="all">All</SegmentedControlItem>
1872
+ </SegmentedControl>
1873
+ <p className="text-xs text-muted-foreground">
1874
+ Showing{" "}
1875
+ <span className="font-medium text-foreground">
1876
+ {filter === "active" ? "upcoming" : filter === "archived" ? "past" : "all"}
1877
+ </span>{" "}
1878
+ sessions · Avery Castillo coaching
1879
+ </p>
1880
+ </CardContent></Card>
1881
+ </div>
1882
+ );
1883
+ }
1884
+
1885
+ function TimelineRealisticDemo() {
1886
+ return (
1887
+ <Card className="w-96">
1888
+ <CardContent className="p-5 space-y-4">
1889
+ <div className="space-y-0.5">
1890
+ <p className="text-sm font-semibold">Avery Castillo · Summer Invitational</p>
1891
+ <p className="text-xs text-muted-foreground">Breezy Hills Aquatic Club</p>
1892
+ </div>
1893
+ <Timeline>
1894
+ <TimelineItem
1895
+ status="complete"
1896
+ icon={<UserCheckIcon className="size-3" strokeWidth={2} aria-hidden />}
1897
+ title="Registration submitted"
1898
+ description="200m freestyle · 400m IM"
1899
+ time="Jun 20, 9:00 AM"
1900
+ />
1901
+ <TimelineItem
1902
+ status="complete"
1903
+ icon={<CreditCardIcon className="size-3" strokeWidth={2} aria-hidden />}
1904
+ title="Payment confirmed"
1905
+ description="$85 — credit card ending 4821"
1906
+ time="Jun 21, 11:30 AM"
1907
+ />
1908
+ <TimelineItem
1909
+ status="complete"
1910
+ icon={<ClipboardCheckIcon className="size-3" strokeWidth={2} aria-hidden />}
1911
+ title="Waiver signed"
1912
+ description="Guardian: Morgan Castillo"
1913
+ time="Jun 22, 3:15 PM"
1914
+ />
1915
+ <TimelineItem
1916
+ status="active"
1917
+ title="Heat assignment pending"
1918
+ description="Sheet expected Jun 26"
1919
+ time="Jun 25 (today)"
1920
+ />
1921
+ <TimelineItem
1922
+ status="pending"
1923
+ icon={<TrophyIcon className="size-3" strokeWidth={2} aria-hidden />}
1924
+ title="Summer Invitational"
1925
+ description="Check-in 7:30 AM · South entrance"
1926
+ time="Jun 28, 2026"
1927
+ />
1928
+ </Timeline>
1929
+ </CardContent>
1930
+ </Card>
1931
+ );
1932
+ }
1933
+
1934
+ function RatingGroupFeedbackDemo() {
1935
+ const [value, setValue] = React.useState(0);
1936
+ const [submitted, setSubmitted] = React.useState(false);
1937
+ const labels = ["", "Needs work", "Below average", "Average", "Good", "Excellent"];
1938
+ return (
1939
+ <div className="w-72 rounded-lg border border-border bg-card p-4 space-y-4">
1940
+ <div className="space-y-1">
1941
+ <p className="text-sm font-semibold">Rate your practice session</p>
1942
+ <p className="text-xs text-muted-foreground">Breezy Hills Aquatic Club · Tuesday AM</p>
1588
1943
  </div>
1944
+ {submitted ? (
1945
+ <div className="space-y-2">
1946
+ <RatingGroup value={value} readOnly label="Your submitted rating" />
1947
+ <p className="text-sm text-muted-foreground">Thanks for your feedback!</p>
1948
+ </div>
1949
+ ) : (
1950
+ <div className="space-y-3">
1951
+ <div className="space-y-1.5">
1952
+ <RatingGroup value={value} onValueChange={setValue} label="Session rating" />
1953
+ {value > 0 && (
1954
+ <p className="text-xs text-muted-foreground">{labels[value]}</p>
1955
+ )}
1956
+ </div>
1957
+ <Button
1958
+ disabled={value === 0}
1959
+ size="sm"
1960
+ className="w-full min-h-11"
1961
+ onClick={() => setSubmitted(true)}
1962
+ >
1963
+ Submit rating
1964
+ </Button>
1965
+ </div>
1966
+ )}
1967
+ </div>
1968
+ );
1969
+ }
1970
+
1971
+ function TagsInputShowcase({
1972
+ initialTags = [],
1973
+ ...props
1974
+ }: Omit<React.ComponentProps<typeof TagsInput>, "value" | "onValueChange"> & {
1975
+ initialTags?: string[];
1976
+ }) {
1977
+ const [tags, setTags] = React.useState<string[]>(initialTags);
1978
+ return (
1979
+ <div className="w-80">
1980
+ <TagsInput value={tags} onValueChange={setTags} {...props} />
1981
+ </div>
1982
+ );
1983
+ }
1984
+
1985
+ function TagsInputFilterDemo() {
1986
+ const [tags, setTags] = React.useState<string[]>(["Junior A", "Summer Invitational"]);
1987
+ return (
1988
+ <div className="w-96 space-y-3">
1989
+ <Card>
1990
+ <CardContent className="p-4 space-y-3">
1991
+ <div>
1992
+ <p className="text-sm font-semibold">Breezy Hills Aquatic Club</p>
1993
+ <p className="text-xs text-muted-foreground">Filter practice sessions by tag</p>
1994
+ </div>
1995
+ <div className="space-y-1.5">
1996
+ <label className="text-sm font-medium">Active filters</label>
1997
+ <TagsInput
1998
+ value={tags}
1999
+ onValueChange={setTags}
2000
+ placeholder="Add filter tag…"
2001
+ maxTags={6}
2002
+ />
2003
+ <p className="text-xs text-muted-foreground">
2004
+ Press Enter or comma to add · Backspace to remove last
2005
+ </p>
2006
+ </div>
2007
+ </CardContent>
2008
+ </Card>
2009
+ {tags.length > 0 && (
2010
+ <p className="text-sm text-muted-foreground">
2011
+ Filtering by:{" "}
2012
+ <span className="font-medium text-foreground">{tags.join(", ")}</span>
2013
+ </p>
2014
+ )}
1589
2015
  </div>
1590
2016
  );
1591
2017
  }
package/src/app/shell.tsx CHANGED
@@ -408,13 +408,34 @@ export function Shell({ tabs, defaultTab }: ShellProps) {
408
408
  <header className="border-b bg-card shrink-0">
409
409
  <div className="flex h-14 items-center px-4 sm:px-6">
410
410
  <div className="flex items-center gap-2 min-w-0">
411
- <div
412
- className="h-8 w-8 rounded-lg flex items-center justify-center bg-primary text-primary-foreground shrink-0"
413
- >
414
- <BrandMark size={20} />
415
- </div>
416
- <span className="text-lg font-semibold truncate">{brand.name}</span>
417
- <Badge variant="outline" className="ml-2 text-xs hidden sm:inline-flex">{brand.tagline}</Badge>
411
+ {brand.logo?.lockup ? (
412
+ // Full lockup slot: a brand whose identity is a combined
413
+ // mark+wordmark renders it as ONE sanitized SVG, sized to the
414
+ // header. This preserves the artwork's intrinsic alignment and
415
+ // replaces the boxed mark + product-name. The wordmark's
416
+ // currentColor follows chrome text (legible light/dark); any
417
+ // brand-colored mark fills are preserved. Sanitized server-side
418
+ // by /api/brand-mark before it lands in brand.config, same as
419
+ // `logo.svg` — safe to inline render.
420
+ <span
421
+ role="img"
422
+ aria-label={`${brand.name} logo`}
423
+ className="flex h-7 items-center shrink-0 min-w-0 text-foreground [&>svg]:h-full [&>svg]:w-auto [&>svg]:max-w-full"
424
+ dangerouslySetInnerHTML={{ __html: brand.logo.lockup }}
425
+ />
426
+ ) : (
427
+ <>
428
+ <div
429
+ className="h-8 w-8 rounded-lg flex items-center justify-center bg-primary text-primary-foreground shrink-0"
430
+ >
431
+ <BrandMark size={20} />
432
+ </div>
433
+ <span className="text-lg font-semibold truncate">{brand.name}</span>
434
+ </>
435
+ )}
436
+ {brand.tagline ? (
437
+ <Badge variant="outline" className="ml-2 text-xs hidden sm:inline-flex">{brand.tagline}</Badge>
438
+ ) : null}
418
439
  </div>
419
440
  <div className="ml-auto flex items-center gap-1.5 sm:gap-2 shrink-0">
420
441
  {/* Fork-configurable header links — set `headerLinks` in brand.config
@@ -427,7 +448,7 @@ export function Shell({ tabs, defaultTab }: ShellProps) {
427
448
  asChild
428
449
  variant="ghost"
429
450
  size="sm"
430
- className="group h-8 gap-1.5 border border-foreground/30 hover:!bg-foreground hover:!text-background hover:border-foreground"
451
+ className="group h-8 gap-1.5 border border-foreground/30 hover:!bg-primary hover:!text-primary-foreground hover:border-primary"
431
452
  title={`Open ${link.label}`}
432
453
  >
433
454
  <a href={link.href} target="_blank" rel="noreferrer" aria-label={`Open ${link.label} in a new tab`}>
@@ -441,7 +462,7 @@ export function Shell({ tabs, defaultTab }: ShellProps) {
441
462
  asChild
442
463
  variant="ghost"
443
464
  size="sm"
444
- className="group h-8 gap-1.5 border border-foreground/30 hover:!bg-foreground hover:!text-background hover:border-foreground"
465
+ className="group h-8 gap-1.5 border border-foreground/30 hover:!bg-primary hover:!text-primary-foreground hover:border-primary"
445
466
  title="Open Storybook"
446
467
  >
447
468
  <a href={storybookUrl} target="_blank" rel="noreferrer" aria-label="Open Storybook in a new tab">
@@ -455,7 +476,7 @@ export function Shell({ tabs, defaultTab }: ShellProps) {
455
476
  asChild
456
477
  variant="ghost"
457
478
  size="sm"
458
- className="group h-8 gap-1.5 border border-foreground/30 hover:!bg-foreground hover:!text-background hover:border-foreground"
479
+ className="group h-8 gap-1.5 border border-foreground/30 hover:!bg-primary hover:!text-primary-foreground hover:border-primary"
459
480
  title={`Open ${brand.repo.replace(/^https?:\/\//, "")} on GitHub`}
460
481
  >
461
482
  <a href={brand.repo} target="_blank" rel="noreferrer" aria-label="Open GitHub repo in a new tab">
@@ -468,7 +489,7 @@ export function Shell({ tabs, defaultTab }: ShellProps) {
468
489
  variant="ghost"
469
490
  size="icon"
470
491
  onClick={toggleDark}
471
- className="group size-8 border border-foreground/30 hover:!bg-foreground hover:!text-background hover:border-foreground"
492
+ className="group size-8 border border-foreground/30 hover:!bg-primary hover:!text-primary-foreground hover:border-primary"
472
493
  aria-label={dark ? "Switch to light mode" : "Switch to dark mode"}
473
494
  >
474
495
  {dark ? (
@@ -159,7 +159,7 @@ function AddFontTile({ kind }: { kind: FontKind }) {
159
159
  <PopoverTrigger asChild>
160
160
  <button
161
161
  type="button"
162
- className="group flex flex-col items-center justify-center gap-3 rounded-lg border border-dashed border-border p-4 transition-all hover:border-foreground/40 min-h-[7.5rem]"
162
+ className="group flex flex-col items-center justify-center gap-3 rounded-lg border border-dashed border-border p-4 transition-all hover:border-primary/40 min-h-[7.5rem]"
163
163
  aria-label={`Add custom ${kind} font`}
164
164
  >
165
165
  <div className="flex h-10 w-10 items-center justify-center rounded-full border border-dashed border-border text-muted-foreground group-hover:text-foreground">
@@ -333,7 +333,7 @@ function FontCardGrid<K extends string>({
333
333
  className={`group flex flex-col items-start gap-3 rounded-lg border p-4 text-left transition-all ${
334
334
  isActive
335
335
  ? "border-primary ring-2 ring-primary/30"
336
- : "border-border hover:border-foreground/40"
336
+ : "border-border hover:border-primary/40"
337
337
  }`}
338
338
  >
339
339
  <span
@@ -74,7 +74,7 @@ export function LetterSpacingPanel() {
74
74
  className={`text-xs font-medium px-2 py-1 rounded-md border transition-colors ${
75
75
  active
76
76
  ? "border-primary text-primary"
77
- : "border-border text-muted-foreground hover:border-foreground/40"
77
+ : "border-border text-muted-foreground hover:border-primary/40"
78
78
  }`}
79
79
  >
80
80
  {preset.label}
@@ -92,7 +92,7 @@ export function TypeScalePanel() {
92
92
  className={`text-xs font-medium px-2 py-1 rounded-md border transition-colors ${
93
93
  active
94
94
  ? "border-primary text-primary"
95
- : "border-border text-muted-foreground hover:border-foreground/40"
95
+ : "border-border text-muted-foreground hover:border-primary/40"
96
96
  }`}
97
97
  >
98
98
  {preset.label}
@@ -126,7 +126,7 @@ function ColorSwatch({
126
126
  className="group block w-full text-left rounded-lg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
127
127
  >
128
128
  <div
129
- className={`h-20 rounded-lg border ${className} flex items-end p-2.5 transition-all group-hover:border-foreground/40 ${
129
+ className={`h-20 rounded-lg border ${className} flex items-end p-2.5 transition-all group-hover:border-primary/40 ${
130
130
  isOverridden ? "ring-2 ring-primary/30" : ""
131
131
  }`}
132
132
  >
@@ -225,7 +225,7 @@ function ColorSwatch({
225
225
  className={`group/sw flex flex-col items-center gap-1.5 rounded-md border p-2 transition-all ${
226
226
  isActive
227
227
  ? "border-primary ring-2 ring-primary/30"
228
- : "border-border hover:border-foreground/40"
228
+ : "border-border hover:border-primary/40"
229
229
  }`}
230
230
  >
231
231
  <div
@@ -250,7 +250,7 @@ function ColorSwatch({
250
250
  type="button"
251
251
  onClick={() => setShowAdd(true)}
252
252
  title="Add a new brand color and apply it here"
253
- className="group/sw flex flex-col items-center gap-1.5 rounded-md border border-dashed border-border p-2 transition-all hover:border-foreground/40"
253
+ className="group/sw flex flex-col items-center gap-1.5 rounded-md border border-dashed border-border p-2 transition-all hover:border-primary/40"
254
254
  >
255
255
  <div className="flex h-7 w-7 items-center justify-center rounded-full border border-dashed border-border/60 text-muted-foreground group-hover/sw:text-foreground">
256
256
  <Plus className="h-3.5 w-3.5" strokeWidth={1.5} />
@@ -358,7 +358,7 @@ function AddBrandColorButton({
358
358
  <PopoverTrigger asChild>
359
359
  <button
360
360
  type="button"
361
- className="group flex flex-col items-center justify-center gap-2 rounded-lg border border-dashed border-border p-3 transition-all hover:border-foreground/40 min-h-[8.5rem]"
361
+ className="group flex flex-col items-center justify-center gap-2 rounded-lg border border-dashed border-border p-3 transition-all hover:border-primary/40 min-h-[8.5rem]"
362
362
  aria-label="Add brand color"
363
363
  >
364
364
  <div className="flex h-12 w-12 items-center justify-center rounded-full border border-dashed border-border text-muted-foreground group-hover:text-foreground">
@@ -509,7 +509,7 @@ function BrandColorCard({
509
509
  className={`flex w-full flex-col items-center gap-2 rounded-lg border p-3 transition-all min-h-[8.5rem] ${
510
510
  isActive
511
511
  ? "border-primary ring-2 ring-primary/30"
512
- : "border-border hover:border-foreground/40"
512
+ : "border-border hover:border-primary/40"
513
513
  } ${pending ? "opacity-60" : ""}`}
514
514
  >
515
515
  <div
@@ -557,7 +557,7 @@ function BrandColorCard({
557
557
  type="button"
558
558
  aria-label={`Edit ${opt.label}`}
559
559
  disabled={pending !== null}
560
- className="absolute top-1.5 right-1.5 inline-flex h-6 w-6 items-center justify-center rounded-md border border-border bg-background text-muted-foreground hover:text-foreground hover:border-foreground/40 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity disabled:opacity-50"
560
+ className="absolute top-1.5 right-1.5 inline-flex h-6 w-6 items-center justify-center rounded-md border border-border bg-background text-muted-foreground hover:text-foreground hover:border-primary/40 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity disabled:opacity-50"
561
561
  >
562
562
  <MoreHorizontal className="h-3 w-3" strokeWidth={1.5} />
563
563
  </button>
@@ -101,9 +101,18 @@ function BottomSheetFooter({
101
101
  }
102
102
 
103
103
  function BottomSheetTitle({
104
+ className,
105
+ children,
104
106
  ...props
105
107
  }: React.ComponentProps<typeof SheetTitle>) {
106
- return <SheetTitle data-slot="bottom-sheet-title" {...props} />
108
+ // Render as a real h3 (Sheet/Dialog Title defaults to h2 and ships no size).
109
+ // asChild keeps the Radix Title wiring so the sheet stays aria-labelledby it,
110
+ // while the h3 carries an explicit heading size for clear hierarchy.
111
+ return (
112
+ <SheetTitle asChild data-slot="bottom-sheet-title" {...props}>
113
+ <h3 className={cn("text-lg", className)}>{children}</h3>
114
+ </SheetTitle>
115
+ )
107
116
  }
108
117
 
109
118
  function BottomSheetDescription({
@@ -176,7 +176,7 @@ function CarouselContent({
176
176
  ? "overflow-x-auto snap-x snap-mandatory scroll-smooth"
177
177
  : "flex-col overflow-y-auto snap-y snap-mandatory scroll-smooth",
178
178
  // Hide scrollbar visually while keeping scroll functionality
179
- "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
179
+ "scrollbar-none",
180
180
  // BADS focus ring on the keyboard-navigable scroll container
181
181
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
182
182
  className