@softure-ai/theme-notion 0.1.1 → 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.
Files changed (137) hide show
  1. package/CHANGELOG.md +178 -0
  2. package/README.md +239 -12
  3. package/dist/index.d.ts +12 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +12 -0
  6. package/dist/index.js.map +1 -1
  7. package/dist/messages/en.d.ts +20 -0
  8. package/dist/messages/en.d.ts.map +1 -1
  9. package/dist/messages/en.js +11 -0
  10. package/dist/messages/en.js.map +1 -1
  11. package/dist/messages/index.d.ts +20 -0
  12. package/dist/messages/index.d.ts.map +1 -1
  13. package/dist/notion/Code.d.ts +8 -0
  14. package/dist/notion/Code.d.ts.map +1 -0
  15. package/dist/notion/Code.js +12 -0
  16. package/dist/notion/Code.js.map +1 -0
  17. package/dist/notion/DetailTable.d.ts +15 -0
  18. package/dist/notion/DetailTable.d.ts.map +1 -0
  19. package/dist/notion/DetailTable.js +20 -0
  20. package/dist/notion/DetailTable.js.map +1 -0
  21. package/dist/notion/FilterChip.d.ts +24 -0
  22. package/dist/notion/FilterChip.d.ts.map +1 -0
  23. package/dist/notion/FilterChip.js +18 -0
  24. package/dist/notion/FilterChip.js.map +1 -0
  25. package/dist/notion/FoldRow.d.ts +23 -0
  26. package/dist/notion/FoldRow.d.ts.map +1 -0
  27. package/dist/notion/FoldRow.js +14 -0
  28. package/dist/notion/FoldRow.js.map +1 -0
  29. package/dist/notion/MarkPopover.d.ts +19 -0
  30. package/dist/notion/MarkPopover.d.ts.map +1 -0
  31. package/dist/notion/MarkPopover.js +22 -0
  32. package/dist/notion/MarkPopover.js.map +1 -0
  33. package/dist/notion/PageHeader.d.ts +2 -1
  34. package/dist/notion/PageHeader.d.ts.map +1 -1
  35. package/dist/notion/PageHeader.js +2 -2
  36. package/dist/notion/PageHeader.js.map +1 -1
  37. package/dist/notion/SidePanel.d.ts +13 -0
  38. package/dist/notion/SidePanel.d.ts.map +1 -0
  39. package/dist/notion/SidePanel.js +28 -0
  40. package/dist/notion/SidePanel.js.map +1 -0
  41. package/dist/notion/Sortable.d.ts +36 -0
  42. package/dist/notion/Sortable.d.ts.map +1 -0
  43. package/dist/notion/Sortable.js +83 -0
  44. package/dist/notion/Sortable.js.map +1 -0
  45. package/dist/notion/Stats.d.ts +49 -0
  46. package/dist/notion/Stats.d.ts.map +1 -0
  47. package/dist/notion/Stats.js +38 -0
  48. package/dist/notion/Stats.js.map +1 -0
  49. package/dist/notion/Steps.d.ts +18 -0
  50. package/dist/notion/Steps.d.ts.map +1 -0
  51. package/dist/notion/Steps.js +32 -0
  52. package/dist/notion/Steps.js.map +1 -0
  53. package/dist/notion/TabBar.d.ts +15 -0
  54. package/dist/notion/TabBar.d.ts.map +1 -0
  55. package/dist/notion/TabBar.js +6 -0
  56. package/dist/notion/TabBar.js.map +1 -0
  57. package/dist/notion/tones.d.ts +8 -0
  58. package/dist/notion/tones.d.ts.map +1 -0
  59. package/dist/notion/tones.js +37 -0
  60. package/dist/notion/tones.js.map +1 -0
  61. package/dist/page.css +22 -0
  62. package/dist/theme.css +55 -46
  63. package/dist/tokens.d.ts +82 -64
  64. package/dist/tokens.d.ts.map +1 -1
  65. package/dist/tokens.js +22 -19
  66. package/dist/tokens.js.map +1 -1
  67. package/dist/ui/alert.js +1 -1
  68. package/dist/ui/alert.js.map +1 -1
  69. package/dist/ui/badge.d.ts +1 -1
  70. package/dist/ui/badge.d.ts.map +1 -1
  71. package/dist/ui/badge.js +33 -13
  72. package/dist/ui/badge.js.map +1 -1
  73. package/dist/ui/button-group.js +1 -1
  74. package/dist/ui/button-group.js.map +1 -1
  75. package/dist/ui/button.d.ts +1 -1
  76. package/dist/ui/button.js +3 -3
  77. package/dist/ui/button.js.map +1 -1
  78. package/dist/ui/checkbox.js +1 -1
  79. package/dist/ui/checkbox.js.map +1 -1
  80. package/dist/ui/dropdown-menu.js +1 -1
  81. package/dist/ui/empty.js +1 -1
  82. package/dist/ui/empty.js.map +1 -1
  83. package/dist/ui/field.js +2 -2
  84. package/dist/ui/field.js.map +1 -1
  85. package/dist/ui/item.d.ts.map +1 -1
  86. package/dist/ui/item.js +8 -3
  87. package/dist/ui/item.js.map +1 -1
  88. package/dist/ui/progress.d.ts +4 -1
  89. package/dist/ui/progress.d.ts.map +1 -1
  90. package/dist/ui/progress.js +9 -2
  91. package/dist/ui/progress.js.map +1 -1
  92. package/dist/ui/radio-group.d.ts +6 -0
  93. package/dist/ui/radio-group.d.ts.map +1 -0
  94. package/dist/ui/radio-group.js +14 -0
  95. package/dist/ui/radio-group.js.map +1 -0
  96. package/dist/ui/scroll-area.d.ts +3 -1
  97. package/dist/ui/scroll-area.d.ts.map +1 -1
  98. package/dist/ui/scroll-area.js +2 -2
  99. package/dist/ui/scroll-area.js.map +1 -1
  100. package/dist/ui/select.js +2 -2
  101. package/dist/ui/select.js.map +1 -1
  102. package/dist/ui/sidebar.js +4 -4
  103. package/dist/ui/sidebar.js.map +1 -1
  104. package/dist/ui/tabs.js +1 -1
  105. package/dist/ui/tabs.js.map +1 -1
  106. package/package.json +16 -5
  107. package/src/index.ts +32 -0
  108. package/src/messages/en.ts +12 -0
  109. package/src/notion/Code.tsx +39 -0
  110. package/src/notion/DetailTable.tsx +46 -0
  111. package/src/notion/FilterChip.tsx +71 -0
  112. package/src/notion/FoldRow.tsx +78 -0
  113. package/src/notion/MarkPopover.tsx +84 -0
  114. package/src/notion/PageHeader.tsx +4 -2
  115. package/src/notion/SidePanel.tsx +73 -0
  116. package/src/notion/Sortable.tsx +235 -0
  117. package/src/notion/Stats.tsx +165 -0
  118. package/src/notion/Steps.tsx +102 -0
  119. package/src/notion/TabBar.tsx +47 -0
  120. package/src/notion/tones.ts +45 -0
  121. package/src/page.css +22 -0
  122. package/src/tokens.ts +22 -19
  123. package/src/ui/alert.tsx +1 -1
  124. package/src/ui/badge.tsx +35 -13
  125. package/src/ui/button-group.tsx +1 -1
  126. package/src/ui/button.tsx +3 -3
  127. package/src/ui/checkbox.tsx +1 -1
  128. package/src/ui/dropdown-menu.tsx +1 -1
  129. package/src/ui/empty.tsx +1 -1
  130. package/src/ui/field.tsx +2 -2
  131. package/src/ui/item.tsx +16 -7
  132. package/src/ui/progress.tsx +19 -2
  133. package/src/ui/radio-group.tsx +44 -0
  134. package/src/ui/scroll-area.tsx +11 -2
  135. package/src/ui/select.tsx +2 -2
  136. package/src/ui/sidebar.tsx +4 -4
  137. package/src/ui/tabs.tsx +3 -3
@@ -0,0 +1,49 @@
1
+ import type { ReactNode } from "react";
2
+ import { type Tone } from "./tones.js";
3
+ export interface StatsFoldProps {
4
+ /** The section's heading. */
5
+ readonly title: string;
6
+ readonly children: ReactNode;
7
+ readonly className?: string;
8
+ }
9
+ export declare function StatsFold({ title, children, className }: StatsFoldProps): import("react").JSX.Element;
10
+ export interface StatCardAside {
11
+ readonly text: string;
12
+ readonly tone?: Tone;
13
+ }
14
+ export interface StatCard {
15
+ /** Unique within the row; kept as `data-stat`. */
16
+ readonly key: string;
17
+ readonly label: string;
18
+ readonly value: string;
19
+ readonly hint?: string;
20
+ readonly tone?: Tone;
21
+ readonly aside?: StatCardAside;
22
+ /** A bar under the figure, 0–100 (clamped); in the card's `tone` when it has one, primary otherwise. */
23
+ readonly progress?: number;
24
+ /** The bar's accessible name; defaults to `label`. */
25
+ readonly progressLabel?: string;
26
+ }
27
+ export interface StatCardsProps {
28
+ /** The list's accessible name. */
29
+ readonly label: string;
30
+ readonly cards: readonly StatCard[];
31
+ /** The cards stretch across the column (min 14rem) instead of the narrow grid (min 10rem). */
32
+ readonly isFullWidth?: boolean;
33
+ /** Every card in one row from `sm` up, wrapping only on a phone. */
34
+ readonly isOneRow?: boolean;
35
+ }
36
+ export declare function StatCards({ label, cards, isFullWidth, isOneRow }: StatCardsProps): import("react").JSX.Element;
37
+ export interface StatPill {
38
+ readonly key: string;
39
+ readonly label: string;
40
+ readonly value: string;
41
+ readonly tone?: Tone;
42
+ }
43
+ export interface StatPillsProps {
44
+ /** The list's accessible name. */
45
+ readonly label: string;
46
+ readonly pills: readonly StatPill[];
47
+ }
48
+ export declare function StatPills({ label, pills }: StatPillsProps): import("react").JSX.Element;
49
+ //# sourceMappingURL=Stats.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stats.d.ts","sourceRoot":"","sources":["../../src/notion/Stats.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,OAAO,EAAqC,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAE1E,MAAM,WAAW,cAAc;IAC7B,6BAA6B;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAID,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,cAAc,+BAmBvE;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,QAAQ;IACvB,kDAAkD;IAClD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC;IACrB,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC;IAC/B,wGAAwG;IACxG,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,sDAAsD;IACtD,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,cAAc;IAC7B,kCAAkC;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;IACpC,8FAA8F;IAC9F,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,oEAAoE;IACpE,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B;AAeD,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,WAAmB,EAAE,QAAgB,EAAE,EAAE,cAAc,+BAsDhG;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,kCAAkC;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;CACrC;AAGD,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,cAAc,+BAYzD"}
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ChevronRight } from "lucide-react";
3
+ import { Badge } from "../ui/badge.js";
4
+ import { Progress } from "../ui/progress.js";
5
+ import { cn } from "../lib/utils.js";
6
+ import { ICON_STROKE_WIDTH } from "./icon-stroke.js";
7
+ import { TONE_COLORS, TONE_FILL, TONE_TEXT } from "./tones.js";
8
+ // A screen's summary figures folded under a heading, closed by default: the design system's collapsible (a ghost row
9
+ // with a chevron that turns when open, the content indented under it), on native `<details>` so it needs no client.
10
+ export function StatsFold({ title, children, className }) {
11
+ return (_jsxs("details", { "data-slot": "stats-fold", className: cn("group/stats-fold", className), children: [_jsxs("summary", { "data-slot": "stats-fold-summary", className: "flex h-row-height cursor-pointer list-none items-center gap-1 rounded-md px-1 text-foreground transition-colors duration-120 hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none [&::-webkit-details-marker]:hidden", children: [_jsx(ChevronRight, { "aria-hidden": "true", strokeWidth: ICON_STROKE_WIDTH, className: "size-4 shrink-0 text-muted-foreground transition-transform duration-150 group-open/stats-fold:rotate-90" }), _jsx("h2", { className: "text-ui-medium", children: title })] }), _jsx("div", { "data-slot": "stats-fold-content", className: "flex flex-col gap-3 pt-2 pb-1 pl-6", children: children })] }));
12
+ }
13
+ function clampProgress(progress) {
14
+ if (!Number.isFinite(progress))
15
+ return 0;
16
+ return Math.min(100, Math.max(0, progress));
17
+ }
18
+ function getStatCardsLayout(isFullWidth, isOneRow) {
19
+ if (isOneRow)
20
+ return "row";
21
+ return isFullWidth ? "full" : "grid";
22
+ }
23
+ // Summary figures as a row of cards wrapping on a narrow screen: the label, the figure in its tone's colour (never
24
+ // broken, tabular numbers), an optional bar under it, an optional note and an optional short figure on its right as a
25
+ // tag.
26
+ export function StatCards({ label, cards, isFullWidth = false, isOneRow = false }) {
27
+ return (_jsx("ul", { "aria-label": label, "data-slot": "stat-cards", "data-layout": getStatCardsLayout(isFullWidth, isOneRow), className: cn("grid gap-2", isFullWidth
28
+ ? "grid-cols-[repeat(auto-fit,minmax(min(14rem,100%),1fr))]"
29
+ : "grid-cols-[repeat(auto-fill,minmax(min(10rem,100%),1fr))]", isOneRow && "sm:auto-cols-fr sm:grid-flow-col sm:grid-cols-none"), children: cards.map((card) => {
30
+ const tone = card.tone ?? "default";
31
+ return (_jsxs("li", { "data-stat": card.key, className: "flex min-w-0 items-start justify-between gap-2 rounded-lg bg-card p-3 text-card-foreground shadow-card", children: [_jsxs("div", { className: cn("min-w-0", card.progress !== undefined && "flex-1"), children: [_jsx("div", { className: "text-section-label text-muted-foreground", children: card.label }), _jsx("div", { "data-tone": tone, className: cn("mt-1 text-heading-3 whitespace-nowrap tabular-nums", TONE_TEXT[tone]), children: card.value }), card.progress === undefined ? null : (_jsx(Progress, { value: clampProgress(card.progress), "aria-label": card.progressLabel ?? card.label, "data-slot": "stat-card-progress", className: "mt-2", indicatorClassName: card.tone === undefined ? undefined : TONE_FILL[card.tone] })), card.hint === undefined ? null : _jsx("div", { className: "mt-1 text-small text-muted-foreground", children: card.hint })] }), card.aside === undefined ? null : (_jsx(Badge, { variant: "tag", color: TONE_COLORS[card.aside.tone ?? "default"] ?? "default", "data-slot": "stat-card-aside", "data-tone": card.aside.tone ?? "default", className: "text-small", children: card.aside.text }))] }, card.key));
32
+ }) }));
33
+ }
34
+ // Small counts as "label **value**" tags in one row, wrapping only on a phone, each in its tone's colour.
35
+ export function StatPills({ label, pills }) {
36
+ return (_jsx("ul", { "aria-label": label, "data-slot": "stat-pills", className: "flex flex-wrap gap-1.5 sm:flex-nowrap sm:overflow-x-auto", children: pills.map((pill) => (_jsx("li", { "data-stat": pill.key, "data-tone": pill.tone ?? "default", children: _jsxs(Badge, { variant: "tag", color: TONE_COLORS[pill.tone ?? "default"] ?? "default", children: [pill.label, " ", _jsx("strong", { className: "font-medium tabular-nums", children: pill.value })] }) }, pill.key))) }));
37
+ }
38
+ //# sourceMappingURL=Stats.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stats.js","sourceRoot":"","sources":["../../src/notion/Stats.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,YAAY,CAAC;AAS1E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BAAiB,eAChB,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,SAAS,EACvC,SAAS,EAAC,YAAY,YAErB,IAAI,CAAC,KAAK,CAAC,IAAI,GACV,CACT,KA9BI,IAAI,CAAC,GAAG,CA+BV,CACN,CAAC;QACJ,CAAC,CAAC,GACC,CACN,CAAC;AACJ,CAAC;AAeD,0GAA0G;AAC1G,MAAM,UAAU,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,EAAkB;IACxD,OAAO,CACL,2BAAgB,KAAK,eAAY,YAAY,EAAC,SAAS,EAAC,0DAA0D,YAC/G,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,0BAA8B,IAAI,CAAC,GAAG,eAAa,IAAI,CAAC,IAAI,IAAI,SAAS,YACvE,MAAC,KAAK,IAAC,OAAO,EAAC,KAAK,EAAC,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,IAAI,SAAS,CAAC,IAAI,SAAS,aACzE,IAAI,CAAC,KAAK,OAAE,iBAAQ,SAAS,EAAC,0BAA0B,YAAE,IAAI,CAAC,KAAK,GAAU,IACzE,IAHD,IAAI,CAAC,GAAG,CAIZ,CACN,CAAC,GACC,CACN,CAAC;AACJ,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { ReactNode } from "react";
2
+ export type StepState = "done" | "current" | "todo" | "failed";
3
+ export interface StepItem {
4
+ readonly key: string;
5
+ readonly title: string;
6
+ readonly note?: ReactNode;
7
+ readonly state?: StepState;
8
+ readonly aside?: ReactNode;
9
+ }
10
+ export type StepsLayout = "row" | "list";
11
+ export interface StepsProps {
12
+ readonly label: string;
13
+ readonly steps: readonly StepItem[];
14
+ readonly layout?: StepsLayout;
15
+ readonly stateLabels?: Partial<Readonly<Record<StepState, string>>>;
16
+ }
17
+ export declare function Steps({ label, steps, layout, stateLabels }: StepsProps): import("react").JSX.Element;
18
+ //# sourceMappingURL=Steps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Steps.d.ts","sourceRoot":"","sources":["../../src/notion/Steps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE/D,MAAM,WAAW,QAAQ;IAEvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;IAE1B,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAE3B,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;CAC5B;AAGD,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,CAAC;AAEzC,MAAM,WAAW,UAAU;IAEzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;IAE9B,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CACrE;AA2BD,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAc,EAAE,WAAW,EAAE,EAAE,UAAU,+BA8C9E"}
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { en as messages } from "../messages/en.js";
3
+ import { cn } from "../lib/utils.js";
4
+ // Literal class names per state, so Tailwind generates each one (the theme's `@source` covers this folder).
5
+ const STEP_NUMBER_STATE = {
6
+ done: "bg-green-tag text-green-tag-foreground",
7
+ current: "bg-primary text-primary-foreground",
8
+ todo: "bg-muted text-muted-foreground",
9
+ failed: "bg-red-tag text-red-tag-foreground",
10
+ };
11
+ const STEPS_LIST = {
12
+ row: "grid grid-cols-[repeat(auto-fill,minmax(min(12rem,100%),1fr))] gap-2",
13
+ list: "flex flex-col",
14
+ };
15
+ const STEP_ITEM = {
16
+ row: "flex min-w-0 items-start gap-2 rounded-lg bg-card p-3 text-card-foreground shadow-card data-[state=current]:bg-blue-bg",
17
+ list: "flex min-w-0 items-start gap-2 rounded-md px-2 py-1.5 transition-colors duration-120 hover:bg-accent",
18
+ };
19
+ const STEP_NUMBER_SHAPE = {
20
+ row: "rounded-full",
21
+ list: "rounded-sm",
22
+ };
23
+ // An ordered process: each step's number in a badge coloured by its state, its title, an optional note under it and
24
+ // an optional aside at its end. The state is also a word for assistive technology, so it never reads by colour alone.
25
+ export function Steps({ label, steps, layout = "row", stateLabels }) {
26
+ const words = { ...messages.steps, ...stateLabels };
27
+ return (_jsx("ol", { "aria-label": label, "data-slot": "steps", "data-layout": layout, className: STEPS_LIST[layout], children: steps.map((step, index) => {
28
+ const state = step.state ?? "todo";
29
+ return (_jsxs("li", { "data-step": step.key, "data-state": state, "aria-current": state === "current" ? "step" : undefined, className: STEP_ITEM[layout], children: [_jsx("span", { "aria-hidden": "true", "data-slot": "step-number", className: cn("mt-px flex size-5 shrink-0 items-center justify-center text-small font-medium tabular-nums", STEP_NUMBER_SHAPE[layout], STEP_NUMBER_STATE[state]), children: index + 1 }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsxs("div", { className: "text-sm font-medium", children: [step.title, _jsxs("span", { className: "sr-only", children: [", ", words[state]] })] }), step.note === undefined ? null : (_jsx("div", { "data-slot": "step-note", className: "mt-0.5 text-small text-muted-foreground", children: step.note }))] }), step.aside === undefined ? null : (_jsx("div", { "data-slot": "step-aside", className: "shrink-0", children: step.aside }))] }, step.key));
30
+ }) }));
31
+ }
32
+ //# sourceMappingURL=Steps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Steps.js","sourceRoot":"","sources":["../../src/notion/Steps.tsx"],"names":[],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,EAC5F,iBAAiB,CAAC,MAAM,CAAC,EACzB,iBAAiB,CAAC,KAAK,CAAC,CACzB,YAEA,KAAK,GAAG,CAAC,GACL,EACP,eAAK,SAAS,EAAC,gBAAgB,aAC7B,eAAK,SAAS,EAAC,qBAAqB,aACjC,IAAI,CAAC,KAAK,EACX,gBAAM,SAAS,EAAC,SAAS,mBAAI,KAAK,CAAC,KAAK,CAAC,IAAQ,IAC7C,EACL,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAChC,2BAAe,WAAW,EAAC,SAAS,EAAC,yCAAyC,YAC3E,IAAI,CAAC,IAAI,GACN,CACP,IACG,EACL,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACjC,2BAAe,YAAY,EAAC,SAAS,EAAC,UAAU,YAC7C,IAAI,CAAC,KAAK,GACP,CACP,KAhCI,IAAI,CAAC,GAAG,CAiCV,CACN,CAAC;QACJ,CAAC,CAAC,GACC,CACN,CAAC;AACJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { ReactNode } from "react";
2
+ export interface TabBarItem<Key extends string> {
3
+ readonly key: Key;
4
+ readonly label: string;
5
+ readonly href: string;
6
+ readonly icon?: ReactNode;
7
+ readonly count?: number;
8
+ }
9
+ export interface TabBarProps<Key extends string> {
10
+ readonly label: string;
11
+ readonly tabs: readonly TabBarItem<Key>[];
12
+ readonly current: Key;
13
+ }
14
+ export declare function TabBar<Key extends string>({ label, tabs, current }: TabBarProps<Key>): import("react").JSX.Element;
15
+ //# sourceMappingURL=TabBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabBar.d.ts","sourceRoot":"","sources":["../../src/notion/TabBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,UAAU,CAAC,GAAG,SAAS,MAAM;IAE5C,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;IAE1B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,WAAW,CAAC,GAAG,SAAS,MAAM;IAE7C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,SAAS,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;IAC1C,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC;CACvB;AAGD,wBAAgB,MAAM,CAAC,GAAG,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,WAAW,CAAC,GAAG,CAAC,+BAyBpF"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // A screen's tabs as line tabs where each tab is a link, so the shown tab lives in the address and survives a reload.
3
+ export function TabBar({ label, tabs, current }) {
4
+ return (_jsx("nav", { "aria-label": label, "data-slot": "tab-bar", className: "overflow-x-auto border-b border-border", children: _jsx("ul", { className: "flex gap-1 pb-1", children: tabs.map((tab) => (_jsx("li", { children: _jsxs("a", { href: tab.href, className: "relative inline-flex h-control-height items-center gap-1.5 rounded-md px-2 text-ui-medium whitespace-nowrap text-muted-foreground transition-colors duration-120 after:absolute after:inset-x-0 after:-bottom-1 after:h-0.5 after:bg-foreground after:opacity-0 hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none aria-[current=page]:text-foreground aria-[current=page]:after:opacity-100 [&_svg]:size-4 [&_svg]:shrink-0", "data-tab": tab.key, "aria-current": tab.key === current ? "page" : undefined, children: [tab.icon, tab.label, tab.count === undefined ? null : (_jsx("span", { "data-slot": "tab-bar-count", className: "rounded-xs bg-accent px-1 text-small text-muted-foreground tabular-nums", children: tab.count }))] }) }, tab.key))) }) }));
5
+ }
6
+ //# sourceMappingURL=TabBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabBar.js","sourceRoot":"","sources":["../../src/notion/TabBar.tsx"],"names":[],"mappings":";AAoBA,sHAAsH;AACtH,MAAM,UAAU,MAAM,CAAqB,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAoB;IACnF,OAAO,CACL,4BAAiB,KAAK,eAAY,SAAS,EAAC,SAAS,EAAC,wCAAwC,YAC5F,aAAI,SAAS,EAAC,iBAAiB,YAC5B,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACjB,uBACE,aACE,IAAI,EAAE,GAAG,CAAC,IAAI,EACd,SAAS,EAAC,ydAAyd,cACzd,GAAG,CAAC,GAAG,kBACH,GAAG,CAAC,GAAG,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,aAErD,GAAG,CAAC,IAAI,EACR,GAAG,CAAC,KAAK,EACT,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAChC,4BAAgB,eAAe,EAAC,SAAS,EAAC,yEAAyE,YAChH,GAAG,CAAC,KAAK,GACL,CACR,IACC,IAdG,GAAG,CAAC,GAAG,CAeX,CACN,CAAC,GACC,GACD,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { PaletteColor } from "./palette.js";
2
+ export declare const TONES: readonly ["default", "success", "warning", "danger", "muted"];
3
+ export type Tone = (typeof TONES)[number];
4
+ export declare const TONE_COLORS: Readonly<Record<Tone, PaletteColor | null>>;
5
+ export declare const TONE_TEXT: Readonly<Record<Tone, string>>;
6
+ export declare const TONE_FILL: Readonly<Record<Tone, string>>;
7
+ export declare const TONE_EDGE: Readonly<Record<Tone, string>>;
8
+ //# sourceMappingURL=tones.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tones.d.ts","sourceRoot":"","sources":["../../src/notion/tones.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAIjD,eAAO,MAAM,KAAK,+DAAgE,CAAC;AAEnF,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AAG1C,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI,CAAC,CAMnE,CAAC;AAKF,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAMpD,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAMpD,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAMpD,CAAC"}
@@ -0,0 +1,37 @@
1
+ // A figure's colour by what it means: done, to do, owed or failing, out of play, or neutral. Each app keeps its own
2
+ // table of which meaning takes which tone ("booked" → success); the theme owns the colours and the class names.
3
+ export const TONES = ["default", "success", "warning", "danger", "muted"];
4
+ // A tone's palette colour; `default` has none and reads in the text colour.
5
+ export const TONE_COLORS = {
6
+ default: null,
7
+ success: "green",
8
+ warning: "orange",
9
+ danger: "red",
10
+ muted: "gray",
11
+ };
12
+ // Literal class names per tone, so Tailwind generates each one (the theme's `@source` covers this folder).
13
+ // A figure written in its tone's colour.
14
+ export const TONE_TEXT = {
15
+ default: "text-foreground",
16
+ success: "text-green",
17
+ warning: "text-orange",
18
+ danger: "text-red",
19
+ muted: "text-gray",
20
+ };
21
+ // A drawn share (a bar segment) in its tone's colour; the default is a quiet gray.
22
+ export const TONE_FILL = {
23
+ default: "bg-gray",
24
+ success: "bg-green",
25
+ warning: "bg-orange",
26
+ danger: "bg-red",
27
+ muted: "bg-gray",
28
+ };
29
+ // A box's leading edge in its tone's colour; the default is a quiet gray.
30
+ export const TONE_EDGE = {
31
+ default: "border-l-gray",
32
+ success: "border-l-green",
33
+ warning: "border-l-orange",
34
+ danger: "border-l-red",
35
+ muted: "border-l-gray",
36
+ };
37
+ //# sourceMappingURL=tones.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tones.js","sourceRoot":"","sources":["../../src/notion/tones.ts"],"names":[],"mappings":"AAEA,oHAAoH;AACpH,gHAAgH;AAChH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AAInF,4EAA4E;AAC5E,MAAM,CAAC,MAAM,WAAW,GAAgD;IACtE,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,KAAK;IACb,KAAK,EAAE,MAAM;CACd,CAAC;AAEF,2GAA2G;AAE3G,yCAAyC;AACzC,MAAM,CAAC,MAAM,SAAS,GAAmC;IACvD,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,YAAY;IACrB,OAAO,EAAE,aAAa;IACtB,MAAM,EAAE,UAAU;IAClB,KAAK,EAAE,WAAW;CACnB,CAAC;AAEF,mFAAmF;AACnF,MAAM,CAAC,MAAM,SAAS,GAAmC;IACvD,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,UAAU;IACnB,OAAO,EAAE,WAAW;IACpB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,SAAS;CACjB,CAAC;AAEF,0EAA0E;AAC1E,MAAM,CAAC,MAAM,SAAS,GAAmC;IACvD,OAAO,EAAE,eAAe;IACxB,OAAO,EAAE,gBAAgB;IACzB,OAAO,EAAE,iBAAiB;IAC1B,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,eAAe;CACvB,CAAC"}
package/dist/page.css ADDED
@@ -0,0 +1,22 @@
1
+ /*
2
+ * The Notion page base: the rules of the design system's base layer that the kit's `base.css` leaves to the theme.
3
+ * Text outside the components takes the panel size (14 px, `text-sm`), selected text the blue tag colour, and the page
4
+ * greyscale font smoothing on macOS. In `@layer base`, so every component and utility overrides it.
5
+ *
6
+ * Import it after `theme.css` and the kit's `base.css`, through the app's Tailwind (it reads the type scale with
7
+ * `--theme()`).
8
+ */
9
+ @layer base {
10
+ html {
11
+ -webkit-font-smoothing: antialiased;
12
+ }
13
+
14
+ body {
15
+ font-size: --theme(--text-sm);
16
+ line-height: --theme(--text-sm--line-height);
17
+ }
18
+
19
+ ::selection {
20
+ background: var(--blue-tag);
21
+ }
22
+ }
package/dist/theme.css CHANGED
@@ -22,67 +22,69 @@
22
22
  --card-foreground: #37352f;
23
23
  --popover: #ffffff;
24
24
  --popover-foreground: #37352f;
25
- --primary: #2383e2;
25
+ --primary: #0171cf;
26
26
  --primary-foreground: #ffffff;
27
- --primary-hover: #0077d4;
27
+ --primary-hover: #0066b8;
28
+ --link: #0171cf;
28
29
  --secondary: #f1f1ef;
29
30
  --secondary-foreground: #37352f;
31
+ --code-foreground: #c33c39;
30
32
  --muted: #f7f7f5;
31
- --muted-foreground: #787774;
33
+ --muted-foreground: #656461;
32
34
  --accent: rgba(55, 53, 47, 0.08);
33
35
  --accent-foreground: #37352f;
34
36
  --accent-strong: rgba(55, 53, 47, 0.16);
35
- --destructive: #eb5757;
37
+ --destructive: #c63339;
36
38
  --destructive-foreground: #ffffff;
37
39
  --border: #e9e9e7;
38
- --input: rgba(15, 15, 15, 0.1);
40
+ --input: rgba(15, 15, 15, 0.46);
39
41
  --field: rgba(242, 241, 238, 0.6);
40
- --control-off: rgba(135, 131, 120, 0.3);
41
- --ring: rgba(35, 131, 226, 0.57);
42
+ --control-off: rgba(135, 131, 120, 0.95);
43
+ --ring: rgba(1, 113, 207, 0.8);
42
44
  --sidebar: #f7f7f5;
43
45
  --sidebar-foreground: #5f5e5b;
44
- --sidebar-primary: #2383e2;
46
+ --sidebar-primary: #0171cf;
45
47
  --sidebar-primary-foreground: #ffffff;
46
48
  --sidebar-accent: rgba(55, 53, 47, 0.08);
47
49
  --sidebar-accent-foreground: #37352f;
48
50
  --sidebar-border: #ededeb;
49
- --sidebar-ring: rgba(35, 131, 226, 0.57);
51
+ --sidebar-ring: rgba(1, 113, 207, 0.8);
50
52
  --tooltip: #0f0f0f;
51
53
  --tooltip-foreground: rgba(255, 255, 255, 0.9);
52
54
  --overlay: rgba(15, 15, 15, 0.6);
53
- --gray: #787774;
55
+ --gray: #656461;
54
56
  --gray-bg: #f1f1ef;
55
57
  --gray-tag: #e3e2e0;
56
58
  --gray-tag-foreground: #32302c;
57
- --brown: #9f6b53;
59
+ --brown: #98644d;
58
60
  --brown-bg: #f4eeee;
59
61
  --brown-tag: #eee0da;
60
62
  --brown-tag-foreground: #442a1e;
61
- --orange: #d9730d;
63
+ --orange: #af5a02;
62
64
  --orange-bg: #fbecdd;
63
65
  --orange-tag: #fadec9;
64
66
  --orange-tag-foreground: #49290e;
65
- --yellow: #cb912f;
67
+ --yellow: #986702;
66
68
  --yellow-bg: #fbf3db;
67
69
  --yellow-tag: #fdecc8;
68
70
  --yellow-tag-foreground: #402c1b;
69
- --green: #448361;
71
+ --green: #3e7d5c;
70
72
  --green-bg: #edf3ec;
71
73
  --green-tag: #dbeddb;
72
74
  --green-tag-foreground: #1c3829;
73
- --blue: #337ea9;
75
+ --blue: #2b77a2;
74
76
  --blue-bg: #e7f3f8;
75
77
  --blue-tag: #d3e5ef;
76
78
  --blue-tag-foreground: #183347;
77
- --purple: #9065b0;
79
+ --purple: #8a5faa;
78
80
  --purple-bg: #f6f3f9;
79
81
  --purple-tag: #e8deee;
80
82
  --purple-tag-foreground: #412454;
81
- --pink: #c14c8a;
83
+ --pink: #ba4684;
82
84
  --pink-bg: #faf1f5;
83
85
  --pink-tag: #f5e0e9;
84
86
  --pink-tag-foreground: #4c2337;
85
- --red: #d44c47;
87
+ --red: #c8413d;
86
88
  --red-bg: #fdebec;
87
89
  --red-tag: #ffe2dd;
88
90
  --red-tag-foreground: #5d1715;
@@ -106,35 +108,37 @@
106
108
  --card-foreground: #d4d4d4;
107
109
  --popover: #252525;
108
110
  --popover-foreground: #d4d4d4;
109
- --primary: #2383e2;
111
+ --primary: #0171cf;
110
112
  --primary-foreground: #ffffff;
111
- --primary-hover: #0077d4;
113
+ --primary-hover: #0066b8;
114
+ --link: #409cfd;
112
115
  --secondary: #2f2f2f;
113
116
  --secondary-foreground: #d4d4d4;
117
+ --code-foreground: #f86a66;
114
118
  --muted: #202020;
115
- --muted-foreground: #9b9b9b;
119
+ --muted-foreground: #a5a5a5;
116
120
  --accent: rgba(255, 255, 255, 0.055);
117
121
  --accent-foreground: #d4d4d4;
118
122
  --accent-strong: rgba(255, 255, 255, 0.1);
119
- --destructive: #eb5757;
123
+ --destructive: #fd6866;
120
124
  --destructive-foreground: #ffffff;
121
125
  --border: #2f2f2f;
122
- --input: rgba(255, 255, 255, 0.075);
126
+ --input: rgba(255, 255, 255, 0.36);
123
127
  --field: rgba(255, 255, 255, 0.055);
124
- --control-off: rgba(202, 196, 183, 0.15);
125
- --ring: rgba(35, 131, 226, 0.57);
128
+ --control-off: rgba(202, 196, 183, 0.5);
129
+ --ring: rgba(64, 156, 253, 0.65);
126
130
  --sidebar: #202020;
127
131
  --sidebar-foreground: #9b9b9b;
128
- --sidebar-primary: #2383e2;
132
+ --sidebar-primary: #0171cf;
129
133
  --sidebar-primary-foreground: #ffffff;
130
134
  --sidebar-accent: rgba(255, 255, 255, 0.055);
131
135
  --sidebar-accent-foreground: #d4d4d4;
132
136
  --sidebar-border: #2a2a2a;
133
- --sidebar-ring: rgba(35, 131, 226, 0.57);
137
+ --sidebar-ring: rgba(64, 156, 253, 0.65);
134
138
  --tooltip: #373737;
135
139
  --tooltip-foreground: rgba(255, 255, 255, 0.9);
136
140
  --overlay: rgba(0, 0, 0, 0.6);
137
- --gray: #9b9b9b;
141
+ --gray: #a5a5a5;
138
142
  --gray-bg: #2f2f2f;
139
143
  --gray-tag: #5a5a5a;
140
144
  --gray-tag-foreground: rgba(255, 255, 255, 0.81);
@@ -148,7 +152,7 @@
148
152
  --orange-tag-foreground: rgba(255, 255, 255, 0.81);
149
153
  --yellow: #ca984d;
150
154
  --yellow-bg: #564328;
151
- --yellow-tag: #89632a;
155
+ --yellow-tag: #825c23;
152
156
  --yellow-tag-foreground: rgba(255, 255, 255, 0.81);
153
157
  --green: #529e72;
154
158
  --green-bg: #243d30;
@@ -158,15 +162,15 @@
158
162
  --blue-bg: #143a4e;
159
163
  --blue-tag: #28456c;
160
164
  --blue-tag-foreground: rgba(255, 255, 255, 0.81);
161
- --purple: #9d68d3;
165
+ --purple: #a974e0;
162
166
  --purple-bg: #3c2d49;
163
167
  --purple-tag: #492f64;
164
168
  --purple-tag-foreground: rgba(255, 255, 255, 0.81);
165
- --pink: #d15796;
169
+ --pink: #dc61a0;
166
170
  --pink-bg: #4e2c3c;
167
171
  --pink-tag: #69314c;
168
172
  --pink-tag-foreground: rgba(255, 255, 255, 0.81);
169
- --red: #df5452;
173
+ --red: #ea5e5b;
170
174
  --red-bg: #522e2a;
171
175
  --red-tag: #6e3630;
172
176
  --red-tag-foreground: rgba(255, 255, 255, 0.81);
@@ -185,35 +189,37 @@
185
189
  --card-foreground: #d4d4d4;
186
190
  --popover: #252525;
187
191
  --popover-foreground: #d4d4d4;
188
- --primary: #2383e2;
192
+ --primary: #0171cf;
189
193
  --primary-foreground: #ffffff;
190
- --primary-hover: #0077d4;
194
+ --primary-hover: #0066b8;
195
+ --link: #409cfd;
191
196
  --secondary: #2f2f2f;
192
197
  --secondary-foreground: #d4d4d4;
198
+ --code-foreground: #f86a66;
193
199
  --muted: #202020;
194
- --muted-foreground: #9b9b9b;
200
+ --muted-foreground: #a5a5a5;
195
201
  --accent: rgba(255, 255, 255, 0.055);
196
202
  --accent-foreground: #d4d4d4;
197
203
  --accent-strong: rgba(255, 255, 255, 0.1);
198
- --destructive: #eb5757;
204
+ --destructive: #fd6866;
199
205
  --destructive-foreground: #ffffff;
200
206
  --border: #2f2f2f;
201
- --input: rgba(255, 255, 255, 0.075);
207
+ --input: rgba(255, 255, 255, 0.36);
202
208
  --field: rgba(255, 255, 255, 0.055);
203
- --control-off: rgba(202, 196, 183, 0.15);
204
- --ring: rgba(35, 131, 226, 0.57);
209
+ --control-off: rgba(202, 196, 183, 0.5);
210
+ --ring: rgba(64, 156, 253, 0.65);
205
211
  --sidebar: #202020;
206
212
  --sidebar-foreground: #9b9b9b;
207
- --sidebar-primary: #2383e2;
213
+ --sidebar-primary: #0171cf;
208
214
  --sidebar-primary-foreground: #ffffff;
209
215
  --sidebar-accent: rgba(255, 255, 255, 0.055);
210
216
  --sidebar-accent-foreground: #d4d4d4;
211
217
  --sidebar-border: #2a2a2a;
212
- --sidebar-ring: rgba(35, 131, 226, 0.57);
218
+ --sidebar-ring: rgba(64, 156, 253, 0.65);
213
219
  --tooltip: #373737;
214
220
  --tooltip-foreground: rgba(255, 255, 255, 0.9);
215
221
  --overlay: rgba(0, 0, 0, 0.6);
216
- --gray: #9b9b9b;
222
+ --gray: #a5a5a5;
217
223
  --gray-bg: #2f2f2f;
218
224
  --gray-tag: #5a5a5a;
219
225
  --gray-tag-foreground: rgba(255, 255, 255, 0.81);
@@ -227,7 +233,7 @@
227
233
  --orange-tag-foreground: rgba(255, 255, 255, 0.81);
228
234
  --yellow: #ca984d;
229
235
  --yellow-bg: #564328;
230
- --yellow-tag: #89632a;
236
+ --yellow-tag: #825c23;
231
237
  --yellow-tag-foreground: rgba(255, 255, 255, 0.81);
232
238
  --green: #529e72;
233
239
  --green-bg: #243d30;
@@ -237,15 +243,15 @@
237
243
  --blue-bg: #143a4e;
238
244
  --blue-tag: #28456c;
239
245
  --blue-tag-foreground: rgba(255, 255, 255, 0.81);
240
- --purple: #9d68d3;
246
+ --purple: #a974e0;
241
247
  --purple-bg: #3c2d49;
242
248
  --purple-tag: #492f64;
243
249
  --purple-tag-foreground: rgba(255, 255, 255, 0.81);
244
- --pink: #d15796;
250
+ --pink: #dc61a0;
245
251
  --pink-bg: #4e2c3c;
246
252
  --pink-tag: #69314c;
247
253
  --pink-tag-foreground: rgba(255, 255, 255, 0.81);
248
- --red: #df5452;
254
+ --red: #ea5e5b;
249
255
  --red-bg: #522e2a;
250
256
  --red-tag: #6e3630;
251
257
  --red-tag-foreground: rgba(255, 255, 255, 0.81);
@@ -267,8 +273,10 @@
267
273
  --color-primary: var(--primary);
268
274
  --color-primary-foreground: var(--primary-foreground);
269
275
  --color-primary-hover: var(--primary-hover);
276
+ --color-link: var(--link);
270
277
  --color-secondary: var(--secondary);
271
278
  --color-secondary-foreground: var(--secondary-foreground);
279
+ --color-code-foreground: var(--code-foreground);
272
280
  --color-muted: var(--muted);
273
281
  --color-muted-foreground: var(--muted-foreground);
274
282
  --color-accent: var(--accent);
@@ -384,5 +392,6 @@
384
392
  --spacing-content-width-wide: 1152px;
385
393
  --spacing-control-height: 28px;
386
394
  --spacing-row-height: 34px;
395
+ --spacing-touch-target: 44px;
387
396
  }
388
397