gooee 0.0.0-stage → 0.41.1

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 (247) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +99 -2
  3. package/package.json +36 -4
  4. package/scripts/add.js +533 -0
  5. package/scripts/pro-components.json +82 -0
  6. package/src/base.css +39 -0
  7. package/src/components/Accordion/Accordion.module.css +90 -0
  8. package/src/components/Accordion/Accordion.tsx +125 -0
  9. package/src/components/Accordion/index.ts +1 -0
  10. package/src/components/Alert/Alert.module.css +121 -0
  11. package/src/components/Alert/Alert.tsx +90 -0
  12. package/src/components/Alert/index.ts +1 -0
  13. package/src/components/AlertDialog/AlertDialog.module.css +2 -0
  14. package/src/components/AlertDialog/AlertDialog.tsx +108 -0
  15. package/src/components/AlertDialog/index.ts +1 -0
  16. package/src/components/AnimatedNumber/AnimatedNumber.module.css +48 -0
  17. package/src/components/AnimatedNumber/AnimatedNumber.tsx +52 -0
  18. package/src/components/AnimatedNumber/index.ts +1 -0
  19. package/src/components/AspectRatio/AspectRatio.module.css +15 -0
  20. package/src/components/AspectRatio/AspectRatio.tsx +12 -0
  21. package/src/components/AspectRatio/index.ts +1 -0
  22. package/src/components/Avatar/Avatar.module.css +62 -0
  23. package/src/components/Avatar/Avatar.tsx +55 -0
  24. package/src/components/Avatar/index.ts +3 -0
  25. package/src/components/AvatarGroup/AvatarGroup.module.css +53 -0
  26. package/src/components/AvatarGroup/AvatarGroup.tsx +43 -0
  27. package/src/components/AvatarGroup/index.ts +1 -0
  28. package/src/components/Badge/Badge.module.css +69 -0
  29. package/src/components/Badge/Badge.tsx +25 -0
  30. package/src/components/Badge/index.ts +1 -0
  31. package/src/components/Breadcrumb/Breadcrumb.module.css +104 -0
  32. package/src/components/Breadcrumb/Breadcrumb.tsx +76 -0
  33. package/src/components/Breadcrumb/index.ts +1 -0
  34. package/src/components/Button/Button.module.css +191 -0
  35. package/src/components/Button/Button.tsx +148 -0
  36. package/src/components/Button/index.ts +1 -0
  37. package/src/components/ButtonGroup/ButtonGroup.module.css +59 -0
  38. package/src/components/ButtonGroup/ButtonGroup.tsx +45 -0
  39. package/src/components/ButtonGroup/index.ts +1 -0
  40. package/src/components/Card/Card.module.css +82 -0
  41. package/src/components/Card/Card.tsx +34 -0
  42. package/src/components/Card/index.ts +1 -0
  43. package/src/components/Center/Center.module.css +15 -0
  44. package/src/components/Center/Center.tsx +28 -0
  45. package/src/components/Center/index.ts +1 -0
  46. package/src/components/Checkbox/Checkbox.module.css +120 -0
  47. package/src/components/Checkbox/Checkbox.tsx +133 -0
  48. package/src/components/Checkbox/index.ts +1 -0
  49. package/src/components/CheckboxGroup/CheckboxGroup.module.css +30 -0
  50. package/src/components/CheckboxGroup/CheckboxGroup.tsx +88 -0
  51. package/src/components/CheckboxGroup/index.ts +1 -0
  52. package/src/components/Cluster/Cluster.module.css +25 -0
  53. package/src/components/Cluster/Cluster.tsx +26 -0
  54. package/src/components/Cluster/index.ts +1 -0
  55. package/src/components/CodeBlock/CodeBlock.module.css +74 -0
  56. package/src/components/CodeBlock/CodeBlock.tsx +53 -0
  57. package/src/components/CodeBlock/highlight.ts +73 -0
  58. package/src/components/CodeBlock/index.ts +1 -0
  59. package/src/components/Collapsible/Collapsible.module.css +75 -0
  60. package/src/components/Collapsible/Collapsible.tsx +71 -0
  61. package/src/components/Collapsible/index.ts +1 -0
  62. package/src/components/Container/Container.module.css +14 -0
  63. package/src/components/Container/Container.tsx +19 -0
  64. package/src/components/Container/index.ts +1 -0
  65. package/src/components/CopyButton/CopyButton.module.css +125 -0
  66. package/src/components/CopyButton/CopyButton.tsx +160 -0
  67. package/src/components/CopyButton/index.ts +1 -0
  68. package/src/components/Dial/Dial.module.css +344 -0
  69. package/src/components/Dial/Dial.tsx +332 -0
  70. package/src/components/Dial/index.ts +1 -0
  71. package/src/components/Dialog/Dialog.module.css +190 -0
  72. package/src/components/Dialog/Dialog.tsx +100 -0
  73. package/src/components/Dialog/index.ts +1 -0
  74. package/src/components/Divider/Divider.module.css +39 -0
  75. package/src/components/Divider/Divider.tsx +34 -0
  76. package/src/components/Divider/index.ts +1 -0
  77. package/src/components/DropdownMenu/DropdownMenu.module.css +134 -0
  78. package/src/components/DropdownMenu/DropdownMenu.tsx +215 -0
  79. package/src/components/DropdownMenu/index.ts +1 -0
  80. package/src/components/EmptyState/EmptyState.module.css +66 -0
  81. package/src/components/EmptyState/EmptyState.tsx +38 -0
  82. package/src/components/EmptyState/index.ts +1 -0
  83. package/src/components/Fab/Fab.module.css +176 -0
  84. package/src/components/Fab/Fab.tsx +117 -0
  85. package/src/components/Fab/index.ts +1 -0
  86. package/src/components/Fieldset/Fieldset.module.css +34 -0
  87. package/src/components/Fieldset/Fieldset.tsx +41 -0
  88. package/src/components/Fieldset/index.ts +1 -0
  89. package/src/components/FormField/FormField.module.css +62 -0
  90. package/src/components/FormField/FormField.tsx +91 -0
  91. package/src/components/FormField/index.ts +2 -0
  92. package/src/components/Grid/Grid.module.css +39 -0
  93. package/src/components/Grid/Grid.tsx +35 -0
  94. package/src/components/Grid/index.ts +1 -0
  95. package/src/components/HoldToConfirm/HoldToConfirm.module.css +175 -0
  96. package/src/components/HoldToConfirm/HoldToConfirm.tsx +334 -0
  97. package/src/components/HoldToConfirm/index.ts +1 -0
  98. package/src/components/IconButton/IconButton.module.css +78 -0
  99. package/src/components/IconButton/IconButton.tsx +35 -0
  100. package/src/components/IconButton/index.ts +1 -0
  101. package/src/components/Input/Input.module.css +157 -0
  102. package/src/components/Input/Input.tsx +133 -0
  103. package/src/components/Input/index.ts +1 -0
  104. package/src/components/InputGroup/InputGroup.module.css +146 -0
  105. package/src/components/InputGroup/InputGroup.tsx +90 -0
  106. package/src/components/InputGroup/index.ts +1 -0
  107. package/src/components/Kbd/Kbd.module.css +28 -0
  108. package/src/components/Kbd/Kbd.tsx +38 -0
  109. package/src/components/Kbd/index.ts +1 -0
  110. package/src/components/Link/Link.module.css +65 -0
  111. package/src/components/Link/Link.tsx +41 -0
  112. package/src/components/Link/index.ts +1 -0
  113. package/src/components/LivePill/LivePill.module.css +207 -0
  114. package/src/components/LivePill/LivePill.tsx +182 -0
  115. package/src/components/LivePill/index.ts +1 -0
  116. package/src/components/Meter/Meter.module.css +91 -0
  117. package/src/components/Meter/Meter.tsx +109 -0
  118. package/src/components/Meter/index.ts +1 -0
  119. package/src/components/MorphButton/MorphButton.module.css +152 -0
  120. package/src/components/MorphButton/MorphButton.tsx +203 -0
  121. package/src/components/MorphButton/index.ts +1 -0
  122. package/src/components/NumberInput/NumberInput.module.css +104 -0
  123. package/src/components/NumberInput/NumberInput.tsx +252 -0
  124. package/src/components/NumberInput/index.ts +2 -0
  125. package/src/components/Pagination/Pagination.module.css +88 -0
  126. package/src/components/Pagination/Pagination.tsx +126 -0
  127. package/src/components/Pagination/index.ts +1 -0
  128. package/src/components/PasswordInput/PasswordInput.module.css +64 -0
  129. package/src/components/PasswordInput/PasswordInput.tsx +63 -0
  130. package/src/components/PasswordInput/index.ts +2 -0
  131. package/src/components/PickerWheel/PickerWheel.module.css +123 -0
  132. package/src/components/PickerWheel/PickerWheel.tsx +326 -0
  133. package/src/components/PickerWheel/index.ts +1 -0
  134. package/src/components/Popover/Popover.module.css +78 -0
  135. package/src/components/Popover/Popover.tsx +117 -0
  136. package/src/components/Popover/index.ts +1 -0
  137. package/src/components/ProgressBar/ProgressBar.module.css +61 -0
  138. package/src/components/ProgressBar/ProgressBar.tsx +48 -0
  139. package/src/components/ProgressBar/index.ts +1 -0
  140. package/src/components/Prose/Prose.module.css +115 -0
  141. package/src/components/Prose/Prose.tsx +14 -0
  142. package/src/components/Prose/index.ts +1 -0
  143. package/src/components/Radio/Radio.module.css +106 -0
  144. package/src/components/Radio/Radio.tsx +115 -0
  145. package/src/components/Radio/index.ts +1 -0
  146. package/src/components/Retime/Retime.tsx +116 -0
  147. package/src/components/Retime/index.ts +1 -0
  148. package/src/components/RulerScrubber/RulerScrubber.module.css +146 -0
  149. package/src/components/RulerScrubber/RulerScrubber.tsx +209 -0
  150. package/src/components/RulerScrubber/index.ts +1 -0
  151. package/src/components/ScrollArea/ScrollArea.module.css +72 -0
  152. package/src/components/ScrollArea/ScrollArea.tsx +172 -0
  153. package/src/components/ScrollArea/index.ts +1 -0
  154. package/src/components/SearchInput/SearchInput.module.css +53 -0
  155. package/src/components/SearchInput/SearchInput.tsx +104 -0
  156. package/src/components/SearchInput/index.ts +2 -0
  157. package/src/components/SegmentedControl/SegmentedControl.module.css +150 -0
  158. package/src/components/SegmentedControl/SegmentedControl.tsx +169 -0
  159. package/src/components/SegmentedControl/index.ts +1 -0
  160. package/src/components/Select/Select.module.css +204 -0
  161. package/src/components/Select/Select.tsx +254 -0
  162. package/src/components/Select/index.ts +1 -0
  163. package/src/components/Sheet/Sheet.module.css +228 -0
  164. package/src/components/Sheet/Sheet.tsx +449 -0
  165. package/src/components/Sheet/index.ts +1 -0
  166. package/src/components/Skeleton/Skeleton.module.css +56 -0
  167. package/src/components/Skeleton/Skeleton.tsx +37 -0
  168. package/src/components/Skeleton/index.ts +1 -0
  169. package/src/components/Slider/Slider.module.css +155 -0
  170. package/src/components/Slider/Slider.tsx +200 -0
  171. package/src/components/Slider/index.ts +1 -0
  172. package/src/components/Spinner/Spinner.module.css +50 -0
  173. package/src/components/Spinner/Spinner.tsx +29 -0
  174. package/src/components/Spinner/index.ts +1 -0
  175. package/src/components/Split/Split.module.css +29 -0
  176. package/src/components/Split/Split.tsx +33 -0
  177. package/src/components/Split/index.ts +1 -0
  178. package/src/components/SplitFlap/SplitFlap.module.css +107 -0
  179. package/src/components/SplitFlap/SplitFlap.tsx +225 -0
  180. package/src/components/SplitFlap/index.ts +1 -0
  181. package/src/components/Stack/Stack.module.css +17 -0
  182. package/src/components/Stack/Stack.tsx +19 -0
  183. package/src/components/Stack/index.ts +1 -0
  184. package/src/components/SwipeDeck/SwipeDeck.module.css +250 -0
  185. package/src/components/SwipeDeck/SwipeDeck.tsx +350 -0
  186. package/src/components/SwipeDeck/index.ts +1 -0
  187. package/src/components/Switch/Switch.module.css +97 -0
  188. package/src/components/Switch/Switch.tsx +147 -0
  189. package/src/components/Switch/index.ts +1 -0
  190. package/src/components/Table/Table.module.css +369 -0
  191. package/src/components/Table/Table.tsx +368 -0
  192. package/src/components/Table/index.ts +1 -0
  193. package/src/components/TableOfContents/TableOfContents.module.css +107 -0
  194. package/src/components/TableOfContents/TableOfContents.tsx +93 -0
  195. package/src/components/TableOfContents/index.ts +1 -0
  196. package/src/components/Tabs/Tabs.module.css +101 -0
  197. package/src/components/Tabs/Tabs.tsx +190 -0
  198. package/src/components/Tabs/index.ts +1 -0
  199. package/src/components/Tag/Tag.module.css +120 -0
  200. package/src/components/Tag/Tag.tsx +109 -0
  201. package/src/components/Tag/index.ts +1 -0
  202. package/src/components/Textarea/Textarea.module.css +79 -0
  203. package/src/components/Textarea/Textarea.tsx +130 -0
  204. package/src/components/Textarea/index.ts +1 -0
  205. package/src/components/ThemeToggle/ThemeToggle.module.css +21 -0
  206. package/src/components/ThemeToggle/ThemeToggle.tsx +69 -0
  207. package/src/components/ThemeToggle/index.ts +1 -0
  208. package/src/components/Toast/Toast.module.css +202 -0
  209. package/src/components/Toast/Toast.tsx +473 -0
  210. package/src/components/Toast/index.ts +1 -0
  211. package/src/components/Toggle/Toggle.module.css +94 -0
  212. package/src/components/Toggle/Toggle.tsx +50 -0
  213. package/src/components/Toggle/index.ts +1 -0
  214. package/src/components/Tooltip/Tooltip.module.css +34 -0
  215. package/src/components/Tooltip/Tooltip.tsx +154 -0
  216. package/src/components/Tooltip/index.ts +1 -0
  217. package/src/components/VisuallyHidden/VisuallyHidden.module.css +13 -0
  218. package/src/components/VisuallyHidden/VisuallyHidden.tsx +12 -0
  219. package/src/components/VisuallyHidden/index.ts +1 -0
  220. package/src/internal/FieldMessage.module.css +49 -0
  221. package/src/internal/FieldMessage.tsx +44 -0
  222. package/src/internal/Portal.tsx +7 -0
  223. package/src/internal/Roll.module.css +31 -0
  224. package/src/internal/Roll.tsx +20 -0
  225. package/src/internal/cx.ts +3 -0
  226. package/src/internal/feel.ts +355 -0
  227. package/src/internal/fling.ts +118 -0
  228. package/src/internal/focus.ts +94 -0
  229. package/src/internal/icons.module.css +62 -0
  230. package/src/internal/icons.tsx +511 -0
  231. package/src/internal/keyboard.ts +62 -0
  232. package/src/internal/layers.ts +85 -0
  233. package/src/internal/liquid.ts +248 -0
  234. package/src/internal/liquidMatter.ts +168 -0
  235. package/src/internal/liquidMore.ts +686 -0
  236. package/src/internal/liquidPath.ts +519 -0
  237. package/src/internal/mergeRefs.ts +10 -0
  238. package/src/internal/motion.ts +37 -0
  239. package/src/internal/relativeTime.ts +26 -0
  240. package/src/internal/scrollFrame.ts +157 -0
  241. package/src/internal/softPress.ts +299 -0
  242. package/src/internal/space.ts +6 -0
  243. package/src/internal/useControllable.ts +21 -0
  244. package/src/internal/useFloating.ts +85 -0
  245. package/src/internal/usePresence.ts +15 -0
  246. package/src/internal/useScrub.ts +160 -0
  247. package/src/tokens.css +727 -0
package/src/tokens.css ADDED
@@ -0,0 +1,727 @@
1
+ :root,
2
+ [data-theme="light"] {
3
+ /* Grey scale (raw, components use the semantic tokens) */
4
+ --gooee-gray-0: #ffffff;
5
+ --gooee-gray-50: #fafafa;
6
+ --gooee-gray-100: #f4f4f4;
7
+ --gooee-gray-150: #ededed;
8
+ --gooee-gray-200: #e4e4e4;
9
+ --gooee-gray-300: #d1d1d1;
10
+ --gooee-gray-400: #a6a6a6;
11
+ --gooee-gray-500: #808080;
12
+ --gooee-gray-600: #5e5e5e;
13
+ --gooee-gray-700: #404040;
14
+ --gooee-gray-800: #262626;
15
+ --gooee-gray-850: #1c1c1c;
16
+ --gooee-gray-900: #141414;
17
+ --gooee-gray-950: #0a0a0a;
18
+ --gooee-gray-1000: #000000;
19
+
20
+ /* Semantic colours, light theme */
21
+ --gooee-color-bg: var(--gooee-gray-50);
22
+ --gooee-color-surface: var(--gooee-gray-0);
23
+ --gooee-color-surface-sunken: var(--gooee-gray-100);
24
+ --gooee-color-surface-hover: var(--gooee-gray-150);
25
+ --gooee-color-surface-active: var(--gooee-gray-200);
26
+ /* Something that sits on a track, such as a sliding pill or a slider thumb. */
27
+ --gooee-color-surface-raised: var(--gooee-color-surface);
28
+ --gooee-color-overlay: rgb(10 10 10 / 0.32);
29
+ --gooee-color-fg: var(--gooee-gray-950);
30
+ --gooee-color-fg-muted: var(--gooee-gray-600);
31
+ --gooee-color-fg-subtle: #6b6b6b;
32
+ --gooee-color-fg-disabled: var(--gooee-gray-400);
33
+ --gooee-color-border: var(--gooee-gray-200);
34
+ --gooee-color-border-strong: #8a8a8a;
35
+ --gooee-color-inverse: var(--gooee-gray-950);
36
+ --gooee-color-inverse-fg: var(--gooee-gray-0);
37
+ --gooee-color-inverse-hover: var(--gooee-gray-700);
38
+ --gooee-color-shimmer: rgb(255 255 255 / 0.7);
39
+ /* Accent: marking blue, the layout dye a machinist wipes on a part to check its fit, for what is chosen
40
+ or on: primary buttons, checked and selected states, the current tab, progress. Blue because most
41
+ apps use it for the main action, so it reads at once. Everything else stays black, white and grey.
42
+ White on it is 6.8:1. */
43
+ --gooee-color-accent: #1f5aa6;
44
+ --gooee-color-accent-fg: #ffffff;
45
+ --gooee-color-accent-hover: #194a8a;
46
+
47
+ /* Status: always paired with an icon or word */
48
+ --gooee-color-success: #12733a;
49
+ --gooee-color-warning: #9a5a00;
50
+ --gooee-color-danger: #c62a1f;
51
+ --gooee-color-success-soft: color-mix(in srgb, var(--gooee-color-success) 10%, var(--gooee-color-surface));
52
+ --gooee-color-warning-soft: color-mix(in srgb, var(--gooee-color-warning) 10%, var(--gooee-color-surface));
53
+ --gooee-color-danger-soft: color-mix(in srgb, var(--gooee-color-danger) 10%, var(--gooee-color-surface));
54
+ /* Danger solid: white text at 4.6:1 or more in both themes */
55
+ --gooee-color-danger-solid: #c62a1f;
56
+ --gooee-color-danger-solid-hover: #a82218;
57
+ --gooee-color-on-danger: #ffffff;
58
+
59
+ /* Focus ring */
60
+ --gooee-focus-ring: 0 0 0 2px var(--gooee-color-bg), 0 0 0 4px var(--gooee-color-fg);
61
+
62
+ /* Type */
63
+ --gooee-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
64
+ --gooee-font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
65
+ --gooee-text-xs: 12px;
66
+ --gooee-text-sm: 13px;
67
+ --gooee-text-md: 15px;
68
+ /* Text typed into a field. On a touch screen it is at least 16px, or iPhone Safari zooms
69
+ the page in when the field is tapped. */
70
+ --gooee-text-input: var(--gooee-text-md);
71
+ --gooee-text-lg: 17px;
72
+ --gooee-text-xl: 20px;
73
+ --gooee-text-2xl: 26px;
74
+ --gooee-text-3xl: 34px;
75
+ --gooee-text-4xl: 44px;
76
+ --gooee-leading-tight: 1.2;
77
+ --gooee-leading-snug: 1.4;
78
+ --gooee-leading-normal: 1.6;
79
+ /* Prose: the longest line of reading text, about the most an eye follows back to the next line */
80
+ --gooee-prose-w: 68ch;
81
+ --gooee-weight-regular: 400;
82
+ --gooee-weight-medium: 500;
83
+ --gooee-weight-semibold: 600;
84
+ --gooee-tracking-tight: -0.02em;
85
+ --gooee-tracking-wide: 0.06em;
86
+
87
+ /* Space */
88
+ --gooee-space-0: 0px;
89
+ --gooee-space-px: 1px;
90
+ --gooee-space-1: 2px;
91
+ --gooee-space-2: 4px;
92
+ --gooee-space-3: 8px;
93
+ --gooee-space-4: 12px;
94
+ --gooee-space-5: 16px;
95
+ --gooee-space-6: 20px;
96
+ --gooee-space-7: 24px;
97
+ --gooee-space-8: 32px;
98
+ --gooee-space-9: 40px;
99
+ --gooee-space-10: 48px;
100
+ --gooee-space-11: 64px;
101
+ --gooee-space-12: 96px;
102
+
103
+ /* Sizes */
104
+ --gooee-line: 1px;
105
+ --gooee-line-thick: 1.5px;
106
+ --gooee-hit-min: 44px;
107
+ --gooee-control-h-sm: 32px;
108
+ --gooee-control-h-md: 40px;
109
+ --gooee-control-h-lg: 48px;
110
+ --gooee-icon-sm: 14px;
111
+ --gooee-icon-md: 16px;
112
+ --gooee-icon-lg: 20px;
113
+ --gooee-icon-xl: 28px;
114
+ --gooee-panel-w-sm: 380px;
115
+ --gooee-panel-w-md: 480px;
116
+ --gooee-panel-w-lg: 640px;
117
+ --gooee-menu-w: 220px;
118
+ --gooee-tooltip-w: 260px;
119
+ --gooee-toast-w: 360px;
120
+ --gooee-line-focus: 2px;
121
+ --gooee-halo: 3px;
122
+ --gooee-indicator: 2px;
123
+ --gooee-underline-offset: 3px;
124
+ --gooee-control-box: 20px;
125
+ --gooee-control-dot: 10px;
126
+ --gooee-track-h: 4px;
127
+ --gooee-progress-h: 6px;
128
+ --gooee-progress-h-sm: 3px;
129
+ --gooee-switch-w: 44px;
130
+ --gooee-switch-h: 26px;
131
+ --gooee-switch-pad: 3px;
132
+ --gooee-switch-stretch: 6px;
133
+ --gooee-field-h-floating: 56px;
134
+ --gooee-step-marker: 28px;
135
+ --gooee-avatar-sm: 28px;
136
+ --gooee-avatar-md: 36px;
137
+ --gooee-avatar-lg: 48px;
138
+ --gooee-avatar-xl: 72px;
139
+ --gooee-kbd-h: 24px;
140
+ --gooee-badge-h: 22px;
141
+ --gooee-dot: 6px;
142
+ --gooee-mini-button: 24px;
143
+ --gooee-handle-w: 40px;
144
+ --gooee-handle-w-active: 56px;
145
+ /* A sheet's grabber at its lowest height. Its width shows the height: short, then --gooee-handle-w, then -active */
146
+ --gooee-handle-w-short: 24px;
147
+ --gooee-handle-h: 5px;
148
+ --gooee-empty-icon: 64px;
149
+ --gooee-empty-w: 420px;
150
+ --gooee-listbox-max-h: 320px;
151
+ --gooee-skeleton-block: 120px;
152
+ --gooee-skeleton-avatar: 40px;
153
+
154
+ /* Radii */
155
+ --gooee-radius-xs: 4px;
156
+ --gooee-radius-sm: 8px;
157
+ --gooee-radius-md: 12px;
158
+ --gooee-radius-panel: 20px;
159
+ --gooee-radius-sheet: 28px;
160
+ --gooee-radius-control: 999px;
161
+ --gooee-radius-full: 999px;
162
+
163
+ /* Shadows */
164
+ --gooee-shadow-1: 0 1px 2px rgb(0 0 0 / 0.05);
165
+ --gooee-shadow-2: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 12px rgb(0 0 0 / 0.06);
166
+ --gooee-shadow-3: 0 2px 4px rgb(0 0 0 / 0.04), 0 12px 32px rgb(0 0 0 / 0.1);
167
+ --gooee-shadow-4: 0 4px 8px rgb(0 0 0 / 0.05), 0 24px 64px rgb(0 0 0 / 0.16);
168
+
169
+ /* Motion. Every duration is its base times --gooee-motion-scale, so one value retimes the whole
170
+ library (see Retime). 1 is normal, 1.5 is slower, 0 is no motion. Reduced motion still wins. */
171
+ --gooee-motion-scale: 1;
172
+ --gooee-motion-instant: calc(80ms * var(--gooee-motion-scale));
173
+ --gooee-motion-fast: calc(140ms * var(--gooee-motion-scale));
174
+ --gooee-motion-base: calc(220ms * var(--gooee-motion-scale));
175
+ --gooee-motion-slow: calc(360ms * var(--gooee-motion-scale));
176
+ --gooee-motion-slower: calc(600ms * var(--gooee-motion-scale));
177
+ /* Morph: every move between two states. A surface grows out of what opened it in 600ms and folds
178
+ back in 400ms, both on --gooee-ease-morph played forward, so a close starts moving at once */
179
+ --gooee-motion-morph: calc(600ms * var(--gooee-motion-scale));
180
+ --gooee-motion-morph-out: calc(400ms * var(--gooee-motion-scale));
181
+ /* Older names, kept so apps that use them still work. They are the morph now */
182
+ --gooee-motion-pour: var(--gooee-motion-morph);
183
+ --gooee-motion-liquid: var(--gooee-motion-morph);
184
+ --gooee-motion-fling: var(--gooee-motion-morph-out);
185
+ --gooee-motion-stagger: calc(30ms * var(--gooee-motion-scale));
186
+ --gooee-motion-delay-tooltip: 400ms;
187
+ /* Hold to confirm: how long a press must last. A timer, not motion, so reduced motion keeps it */
188
+ --gooee-hold-time: 1500ms;
189
+ --gooee-hold-stroke: 2px;
190
+ --gooee-motion-shimmer: 1400ms;
191
+ --gooee-motion-spin: 800ms;
192
+ --gooee-motion-indeterminate: 1500ms;
193
+ /* Morph: the one curve for every move. Fast away, long soft landing, no overshoot, like an iPhone
194
+ sheet. Opening and closing both play it forward */
195
+ --gooee-ease-morph: cubic-bezier(0.2, 0, 0, 1);
196
+ /* Older names, kept so apps that use them still work. They are the morph now */
197
+ --gooee-ease-out: var(--gooee-ease-morph);
198
+ --gooee-ease-in: var(--gooee-ease-morph);
199
+ --gooee-ease-spring: var(--gooee-ease-morph);
200
+ --gooee-ease-bounce: var(--gooee-ease-morph);
201
+ --gooee-ease-liquid: var(--gooee-ease-morph);
202
+ /* Only for loops that breathe back and forth (a shimmer, a spinner's pulse), never for a move */
203
+ --gooee-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
204
+ --gooee-ease-linear: linear;
205
+
206
+ /* Movement distances */
207
+ --gooee-shift-sm: 4px;
208
+ --gooee-shift-md: 8px;
209
+ --gooee-press-scale: 0.97;
210
+ /* Small controls (icon buttons, checkboxes, steppers) press deeper so the tap is felt. */
211
+ --gooee-press-scale-strong: 0.9;
212
+ /* A press dents a button's edge this deep, and a wet spot spreads under it: darker on a light fill,
213
+ lighter on a dark one. */
214
+ --gooee-press-depth: 2px;
215
+ --gooee-press-wet-dark: color-mix(in srgb, var(--gooee-gray-950) 18%, transparent);
216
+ --gooee-press-wet-light: color-mix(in srgb, var(--gooee-gray-0) 24%, transparent);
217
+ --gooee-pop-scale: 0.96;
218
+ /* A check mark or small icon grows in from this size, and a ticked box bumps up to the peak. */
219
+ --gooee-check-scale: 0.4;
220
+ --gooee-check-peak-scale: 1.12;
221
+
222
+ /* One look for every disabled control */
223
+ --gooee-disabled-opacity: 0.5;
224
+
225
+ /* Layers */
226
+ --gooee-z-sticky: 10;
227
+ --gooee-z-dialog: 100;
228
+ /* Above dialogs, so a list or picker opened inside a dialog shows on top */
229
+ --gooee-z-popover: 150;
230
+ --gooee-z-toast: 200;
231
+ --gooee-z-tooltip: 300;
232
+
233
+ color-scheme: light;
234
+ }
235
+
236
+ /* Dark theme (system) */
237
+ @media (pointer: coarse) {
238
+ :root,
239
+ [data-theme] {
240
+ --gooee-text-input: max(16px, var(--gooee-text-md));
241
+ }
242
+ }
243
+
244
+ @media (prefers-color-scheme: dark) {
245
+ :root:not([data-theme="light"]) {
246
+ --gooee-color-bg: #0a0a0a;
247
+ --gooee-color-surface: #111111;
248
+ --gooee-color-surface-sunken: #141414;
249
+ --gooee-color-surface-hover: #1a1a1a;
250
+ --gooee-color-surface-active: #222222;
251
+ --gooee-color-surface-raised: #1c1c1c;
252
+ --gooee-color-overlay: rgb(0 0 0 / 0.6);
253
+ --gooee-color-fg: #ececec;
254
+ --gooee-color-fg-muted: #ababab;
255
+ --gooee-color-fg-subtle: #949494;
256
+ --gooee-color-fg-disabled: #5a5a5a;
257
+ --gooee-color-border: #262626;
258
+ --gooee-color-border-strong: #707070;
259
+ --gooee-color-inverse: #ececec;
260
+ --gooee-color-inverse-fg: #0a0a0a;
261
+ --gooee-color-inverse-hover: var(--gooee-gray-300);
262
+ --gooee-color-accent: #7fa8e6;
263
+ --gooee-color-accent-fg: #0a0a0a;
264
+ --gooee-color-accent-hover: #9bbcec;
265
+ --gooee-color-shimmer: rgb(255 255 255 / 0.06);
266
+ --gooee-color-success: #4cc97a;
267
+ --gooee-color-warning: #f2b33d;
268
+ --gooee-color-danger: #ff7a6e;
269
+ --gooee-color-success-soft: color-mix(in srgb, var(--gooee-color-success) 14%, var(--gooee-color-surface));
270
+ --gooee-color-warning-soft: color-mix(in srgb, var(--gooee-color-warning) 14%, var(--gooee-color-surface));
271
+ --gooee-color-danger-soft: color-mix(in srgb, var(--gooee-color-danger) 14%, var(--gooee-color-surface));
272
+ --gooee-color-danger-solid: #d63a2e;
273
+ /* Darker on hover: a lighter red drops white text under 4.5:1 */
274
+ --gooee-color-danger-solid-hover: #b8302a;
275
+ /* Faint: in the dark, height shows as a lighter surface, not a deep shadow. */
276
+ --gooee-shadow-1: 0 1px 2px rgb(0 0 0 / 0.2);
277
+ --gooee-shadow-2: 0 1px 2px rgb(0 0 0 / 0.2), 0 4px 12px rgb(0 0 0 / 0.15);
278
+ --gooee-shadow-3: 0 2px 4px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.5);
279
+ --gooee-shadow-4: 0 4px 8px rgb(0 0 0 / 0.4), 0 24px 64px rgb(0 0 0 / 0.6);
280
+ color-scheme: dark;
281
+ }
282
+ }
283
+
284
+ /* Dark theme (forced). Near black, never pure black: raised surfaces a step lighter, and a soft white
285
+ for text, so it does not glare. */
286
+ [data-theme="dark"] {
287
+ --gooee-color-bg: #0a0a0a;
288
+ --gooee-color-surface: #111111;
289
+ --gooee-color-surface-sunken: #141414;
290
+ --gooee-color-surface-hover: #1a1a1a;
291
+ --gooee-color-surface-active: #222222;
292
+ --gooee-color-surface-raised: #1c1c1c;
293
+ --gooee-color-overlay: rgb(0 0 0 / 0.6);
294
+ --gooee-color-fg: #ececec;
295
+ --gooee-color-fg-muted: #ababab;
296
+ --gooee-color-fg-subtle: #949494;
297
+ --gooee-color-fg-disabled: #5a5a5a;
298
+ --gooee-color-border: #262626;
299
+ --gooee-color-border-strong: #707070;
300
+ --gooee-color-inverse: #ececec;
301
+ --gooee-color-inverse-fg: #0a0a0a;
302
+ --gooee-color-inverse-hover: var(--gooee-gray-300);
303
+ --gooee-color-accent: #7fa8e6;
304
+ --gooee-color-accent-fg: #0a0a0a;
305
+ --gooee-color-accent-hover: #9bbcec;
306
+ --gooee-color-shimmer: rgb(255 255 255 / 0.06);
307
+ --gooee-color-success: #4cc97a;
308
+ --gooee-color-warning: #f2b33d;
309
+ --gooee-color-danger: #ff7a6e;
310
+ --gooee-color-success-soft: color-mix(in srgb, var(--gooee-color-success) 14%, var(--gooee-color-surface));
311
+ --gooee-color-warning-soft: color-mix(in srgb, var(--gooee-color-warning) 14%, var(--gooee-color-surface));
312
+ --gooee-color-danger-soft: color-mix(in srgb, var(--gooee-color-danger) 14%, var(--gooee-color-surface));
313
+ --gooee-color-danger-solid: #d63a2e;
314
+ /* Darker on hover: a lighter red drops white text under 4.5:1 */
315
+ --gooee-color-danger-solid-hover: #b8302a;
316
+ /* Faint: in the dark, height shows as a lighter surface, not a deep shadow. */
317
+ --gooee-shadow-1: 0 1px 2px rgb(0 0 0 / 0.2);
318
+ --gooee-shadow-2: 0 1px 2px rgb(0 0 0 / 0.2), 0 4px 12px rgb(0 0 0 / 0.15);
319
+ --gooee-shadow-3: 0 2px 4px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.5);
320
+ --gooee-shadow-4: 0 4px 8px rgb(0 0 0 / 0.4), 0 24px 64px rgb(0 0 0 / 0.6);
321
+ color-scheme: dark;
322
+ }
323
+
324
+ /* Reduced motion: loops slow down instead of stopping, so a spinner still reads as busy */
325
+ @media (prefers-reduced-motion: reduce) {
326
+ :root,
327
+ [data-theme] {
328
+ --gooee-motion-instant: 0ms;
329
+ --gooee-motion-fast: 0ms;
330
+ --gooee-motion-base: 0ms;
331
+ --gooee-motion-slow: 0ms;
332
+ --gooee-motion-slower: 0ms;
333
+ --gooee-motion-morph: 0ms;
334
+ --gooee-motion-morph-out: 0ms;
335
+ --gooee-motion-stagger: 0ms;
336
+ --gooee-motion-shimmer: 0ms;
337
+ --gooee-motion-spin: 1600ms;
338
+ --gooee-motion-indeterminate: 3000ms;
339
+ --gooee-shift-sm: 0px;
340
+ --gooee-shift-md: 0px;
341
+ --gooee-press-scale: 1;
342
+ --gooee-press-scale-strong: 1;
343
+ --gooee-pop-scale: 1;
344
+ --gooee-check-scale: 1;
345
+ --gooee-check-peak-scale: 1;
346
+ }
347
+ }
348
+
349
+ :root,
350
+ [data-theme="light"] {
351
+ /* Dates and time */
352
+ --gooee-day-size: 40px;
353
+ --gooee-day-mark: 4px;
354
+ --gooee-calendar-gap: 32px;
355
+ --gooee-wheel-rows: 5;
356
+ /* How far each row tilts per row away from the middle, so a wheel reads as a drum. */
357
+ --gooee-wheel-tilt: 18deg;
358
+ --gooee-wheel-w: 64px;
359
+ /* CalendarHeatmap: one day's square, the gap, the weekday column, and four shades as a share of the text colour */
360
+ --gooee-heatmap-cell: 12px;
361
+ --gooee-heatmap-gap: 3px;
362
+ --gooee-heatmap-label: 32px;
363
+ --gooee-heatmap-1: 22%;
364
+ --gooee-heatmap-2: 45%;
365
+ --gooee-heatmap-3: 70%;
366
+ --gooee-heatmap-4: 100%;
367
+ /* WeekSchedule: one hour's height, the time column, and the width below which it shows one day at a time */
368
+ --gooee-schedule-hour: 56px;
369
+ --gooee-schedule-gutter: 56px;
370
+ --gooee-schedule-min-w: 520px;
371
+ /* Unused since 0.34.0, when overlapping events moved into lanes. Kept so overrides of it do not break. */
372
+ --gooee-schedule-indent: 16px;
373
+ /* One stripe and its gap on a hatched event, and how far an event lifts on hover */
374
+ --gooee-schedule-hatch: var(--gooee-dot);
375
+ --gooee-schedule-lift: var(--gooee-space-1);
376
+ /* The narrowest a lane gets on a day with overlaps. When the busy days cannot get this, fewer days show. */
377
+ --gooee-schedule-lane-min: 112px;
378
+ /* The narrowest a day with no overlaps gets, so a quiet week keeps all seven days from --gooee-schedule-min-w up */
379
+ --gooee-schedule-day-min: 64px;
380
+
381
+ /* Smarter inputs */
382
+ --gooee-pin-w: 44px;
383
+ --gooee-pin-h: 52px;
384
+ --gooee-star: 28px;
385
+ --gooee-dropzone-h: 168px;
386
+ --gooee-number-w: 168px;
387
+ --gooee-motion-repeat-delay: 400ms;
388
+ --gooee-motion-repeat: 70ms;
389
+ /* Colour picker. White and black are colour maths, so they stay pure in both themes. */
390
+ --gooee-picker-area-h: 168px;
391
+ --gooee-picker-hue-h: 12px;
392
+ --gooee-swatch: 28px;
393
+ --gooee-picker-white: #ffffff;
394
+ --gooee-picker-black: #000000;
395
+ /* Signature pad: its height, and the ink's base width (a pen's pressure makes it thinner or bolder) */
396
+ --gooee-signature-h: 180px;
397
+ --gooee-ink-w: 2.5px;
398
+
399
+ /* Media */
400
+ --gooee-blur: 16px;
401
+ /* A soft blur for small things settling in, such as an avatar loading. */
402
+ --gooee-blur-sm: 6px;
403
+ --gooee-thumb: 104px;
404
+ --gooee-hovercard-w: 320px;
405
+ --gooee-marquee-fade: 48px;
406
+ --gooee-marquee-speed: 48;
407
+ --gooee-motion-delay-hovercard: 500ms;
408
+ --gooee-motion-delay-hovercard-out: 200ms;
409
+ /* Image viewer: near-black in both themes, so photos keep true colours */
410
+ --gooee-color-scrim: rgb(8 8 8 / 0.92);
411
+ --gooee-color-on-scrim: var(--gooee-gray-0);
412
+ --gooee-color-on-scrim-muted: rgb(255 255 255 / 0.72);
413
+ --gooee-color-on-scrim-hover: rgb(255 255 255 / 0.14);
414
+ }
415
+
416
+ :root,
417
+ [data-theme="light"] {
418
+ /* Navigation and layout */
419
+ --gooee-palette-top: 12vh;
420
+ --gooee-palette-list-max-h: 360px;
421
+ --gooee-navbar-h: 64px;
422
+ /* Navbar float: how far the page scrolls while the bar lifts into a floating card */
423
+ --gooee-navbar-float-run: 160px;
424
+ /* Fab: the round button's size, and its gap from the bottom and side of the screen */
425
+ --gooee-fab-size: 56px;
426
+ --gooee-fab-gap: 16px;
427
+ --gooee-sidebar-w: 248px;
428
+ --gooee-sidebar-w-collapsed: 64px;
429
+ --gooee-tabbar-h: 56px;
430
+ --gooee-tabbar-pill-w: 56px;
431
+ --gooee-tabbar-pill-h: 30px;
432
+ /* With labels on the chosen tab only: its share of the row against the others' 1, and how long its label may run */
433
+ --gooee-tabbar-active-grow: 2.4;
434
+ --gooee-tabbar-label-max: 12ch;
435
+ --gooee-scrollbar-w: 6px;
436
+ --gooee-scrollbar-w-active: 10px;
437
+ --gooee-scrollbar-min: 24px;
438
+ --gooee-carousel-dot: 8px;
439
+ --gooee-carousel-dot-active: 24px;
440
+
441
+ /* Data */
442
+ --gooee-ring-sm: 32px;
443
+ --gooee-ring-md: 56px;
444
+ --gooee-ring-lg: 96px;
445
+ --gooee-sparkline-w: 120px;
446
+ --gooee-sparkline-h: 32px;
447
+ --gooee-tree-indent: 20px;
448
+ /* How long a closed folder waits under a dragged item before it opens. Intent, not motion, so reduced motion keeps it. */
449
+ --gooee-tree-open-delay: 800ms;
450
+ --gooee-timeline-marker: 12px;
451
+ --gooee-table-check: 18px;
452
+ /* A cell's widest, so long text wraps and a sideways-scrolling table stays readable. */
453
+ --gooee-table-cell-max: 320px;
454
+
455
+ /* Charts: series differ by colour, dash and marker, never colour alone. The colours are a survey map's
456
+ own code, in a fixed order: navy (the accent's family), contour brown, survey green, revision purple,
457
+ chart ochre. Checked for colour-blind separation (8.0 or more for adjacent pairs) and 3:1 against the surface, in both
458
+ themes. A sixth series folds into "Other" or a second chart; it never gets a made-up colour. */
459
+ --gooee-chart-h: 260px;
460
+ --gooee-chart-donut: 220px;
461
+ --gooee-chart-area-opacity: 0.14;
462
+ --gooee-chart-1: #2f64b4;
463
+ --gooee-chart-2: #b36324;
464
+ --gooee-chart-3: #2f9a6e;
465
+ --gooee-chart-4: #8a52c2;
466
+ --gooee-chart-5: #a8861a;
467
+ --gooee-chart-dash-1: none;
468
+ --gooee-chart-dash-2: 6 4;
469
+ --gooee-chart-dash-3: 1.5 3.5;
470
+ --gooee-chart-dash-4: 10 4 2 4;
471
+ --gooee-chart-dash-5: 14 6;
472
+ --gooee-motion-draw: calc(900ms * var(--gooee-motion-scale));
473
+
474
+ /* Boards and editor */
475
+ --gooee-kanban-col-w: 288px;
476
+ --gooee-lift-scale: 1.03;
477
+ --gooee-lift-tilt: 2deg;
478
+ --gooee-editor-min-h: 160px;
479
+ }
480
+
481
+ /* The same five colours, a step lighter for the dark surface, checked there on their own. */
482
+ @media (prefers-color-scheme: dark) {
483
+ :root:not([data-theme="light"]) {
484
+ --gooee-chart-1: #638fdb;
485
+ --gooee-chart-2: #c97638;
486
+ --gooee-chart-3: #3ea97a;
487
+ --gooee-chart-4: #a873d6;
488
+ --gooee-chart-5: #b0902a;
489
+ }
490
+ }
491
+
492
+ [data-theme="dark"] {
493
+ --gooee-chart-1: #638fdb;
494
+ --gooee-chart-2: #c97638;
495
+ --gooee-chart-3: #3ea97a;
496
+ --gooee-chart-4: #a873d6;
497
+ --gooee-chart-5: #b0902a;
498
+ }
499
+
500
+ @media (prefers-reduced-motion: reduce) {
501
+ :root,
502
+ [data-theme] {
503
+ --gooee-motion-draw: 0ms;
504
+ --gooee-lift-scale: 1;
505
+ --gooee-lift-tilt: 0deg;
506
+ }
507
+ }
508
+
509
+ :root,
510
+ [data-theme="light"] {
511
+ /* Container: max width, padding not included */
512
+ --gooee-container-sm: 640px;
513
+ --gooee-container-md: 768px;
514
+ --gooee-container-lg: 1024px;
515
+ --gooee-container-xl: 1280px;
516
+
517
+ /* Grid: min cell width before a column drops */
518
+ --gooee-grid-min-xs: 140px;
519
+ --gooee-grid-min-sm: 192px;
520
+ --gooee-grid-min-md: 240px;
521
+ --gooee-grid-min-lg: 320px;
522
+
523
+ /* Split: sidebar widths */
524
+ --gooee-split-side-sm: 200px;
525
+ --gooee-split-side-md: 260px;
526
+ --gooee-split-side-lg: 320px;
527
+
528
+ /* Center: min heights */
529
+ --gooee-center-h-sm: 240px;
530
+ --gooee-center-h-md: 400px;
531
+ --gooee-center-h-lg: 560px;
532
+ --gooee-center-h-screen: 100dvh;
533
+ }
534
+
535
+ :root,
536
+ [data-theme="light"] {
537
+ /* Chat and comments */
538
+ --gooee-bubble-w: 560px;
539
+ --gooee-bubble-radius-joined: 6px;
540
+ --gooee-composer-max-h: 160px;
541
+ --gooee-chat-jump-offset: 12px;
542
+ --gooee-comment-indent: 48px;
543
+ --gooee-inbox-max-h: 420px;
544
+ --gooee-unread-dot: 8px;
545
+
546
+ /* Players: controls hide after this long without input while playing */
547
+ --gooee-player-idle: 2500ms;
548
+ --gooee-player-seek-h: 4px;
549
+ --gooee-player-seek-h-active: 6px;
550
+ --gooee-player-volume-w: 88px;
551
+ --gooee-player-big-play: 64px;
552
+ --gooee-waveform-h: 40px;
553
+ --gooee-waveform-gap: 2px;
554
+ /* Same in both themes: the bar sits on video, not on the page */
555
+ --gooee-color-player-bar: rgb(8 8 8 / 0.64);
556
+
557
+ /* QR code: always dark on light in both themes, so every scanner reads it */
558
+ --gooee-qr-dark: #000000;
559
+ --gooee-qr-light: #ffffff;
560
+
561
+ /* Tour */
562
+ --gooee-tour-pad: 8px;
563
+ --gooee-tour-w: 340px;
564
+ }
565
+
566
+ :root,
567
+ [data-theme="light"] {
568
+ /* Resizable panels: handle box; the hit area reaches --gooee-hit-min */
569
+ --gooee-resize-handle: 12px;
570
+
571
+ /* Description list: label column widths */
572
+ --gooee-dl-term-sm: 120px;
573
+ --gooee-dl-term-md: 180px;
574
+ --gooee-dl-term-lg: 240px;
575
+
576
+ /* Countdown: min width of one number column */
577
+ --gooee-countdown-cell: 72px;
578
+ --gooee-countdown-cell-sm: 52px;
579
+
580
+ /* Data grid: scroll area height, a column's default, smallest and largest width, one keyboard
581
+ resize step, resize handle hit width (a touch screen widens it to --gooee-hit-min), the tallest
582
+ a filter's checkbox list grows, and the sort order badge */
583
+ --gooee-datagrid-h: 480px;
584
+ --gooee-datagrid-col-w: 160px;
585
+ --gooee-datagrid-col-min: 96px;
586
+ --gooee-datagrid-col-max: 640px;
587
+ --gooee-datagrid-resize-step: 16px;
588
+ --gooee-datagrid-resize-hit: 12px;
589
+ --gooee-datagrid-options-h: 320px;
590
+ --gooee-datagrid-order: 16px;
591
+
592
+ /* Touch lists: one swipe action's width, and how far a pull must go before it refreshes */
593
+ --gooee-swipe-action-w: 80px;
594
+ --gooee-pull-distance: 72px;
595
+
596
+ /* Dial: the knob, the ring round it, and the speed arc's radius and the length of one step on its rim */
597
+ --gooee-dial-size: 208px;
598
+ --gooee-dial-ring: 244px;
599
+ --gooee-dial-arc-radius: 620px;
600
+ --gooee-dial-arc-gap: 20px;
601
+ /* RulerScrubber: the space between two ticks, and its height (the speed arc's too) */
602
+ --gooee-ruler-tick-gap: 12px;
603
+ --gooee-ruler-h: 120px;
604
+ /* SwipeDeck: the card's width and least height, and the share of its width a drag must pass to throw it */
605
+ --gooee-deck-w: 332px;
606
+ --gooee-deck-card-h: 404px;
607
+ --gooee-deck-throw: 0.35;
608
+ /* SplitFlap: one cell's width and height, as a share of its letter size, and its two halves */
609
+ --gooee-flap-w: 0.92em;
610
+ --gooee-flap-h: 1.36em;
611
+ --gooee-flap-top: var(--gooee-color-surface-sunken);
612
+ --gooee-flap-bottom: var(--gooee-color-surface-hover);
613
+ }
614
+
615
+ /* In the dark the top half is the lighter one, as on a lit board. Both are set again here, so a dark
616
+ part inside a light page takes its own greys. */
617
+ @media (prefers-color-scheme: dark) {
618
+ :root:not([data-theme="light"]) {
619
+ --gooee-flap-top: var(--gooee-color-surface-active);
620
+ --gooee-flap-bottom: var(--gooee-color-surface-hover);
621
+ }
622
+ }
623
+
624
+ [data-theme="dark"] {
625
+ --gooee-flap-top: var(--gooee-color-surface-active);
626
+ --gooee-flap-bottom: var(--gooee-color-surface-hover);
627
+ }
628
+
629
+ :root,
630
+ [data-theme="light"] {
631
+ /* Scroll motion: the share of the distance left that an eased part covers each frame. Lower is
632
+ heavier; 1 follows the scroll at once. */
633
+ --gooee-scroll-ease: 0.1;
634
+ /* ScrollDraft and TextRise: where an element's top starts and ends its progress, as a share of the screen height */
635
+ --gooee-draft-start: 0.85;
636
+ --gooee-draft-end: 0.4;
637
+ /* TextRise: how many words of the progress each word takes to arrive, and room for descenders in its mask */
638
+ --gooee-rise-span: 3;
639
+ --gooee-rise-room: 0.14em;
640
+ /* TextRise ink: how many words of the progress each word takes to darken */
641
+ --gooee-ink-span: 8;
642
+ /* ScrollStory: the stage's share of the width and its height, the scroll length of one step (each with
643
+ a narrow-screen size, where the stage pins to the top), and the share of a step's length the change
644
+ between two steps takes (the rest holds still) */
645
+ --gooee-story-stage-w: 55%;
646
+ --gooee-story-stage-h: 72svh;
647
+ --gooee-story-stage-h-narrow: 46svh;
648
+ --gooee-story-step-h: 70svh;
649
+ --gooee-story-step-h-narrow: 45svh;
650
+ --gooee-story-turn: 0.4;
651
+ --gooee-story-turn-narrow: 0.8;
652
+ /* ScrollStory: room above the stage for a sticky header of your own */
653
+ --gooee-story-top: 0px;
654
+ /* StackScroll: where the first card sticks, how much of each card peeks out above the next, the
655
+ scroll between two cards, how much smaller and greyer each layer below gets, the most a moving
656
+ card tilts back with speed (degrees), and the depth of that tilt */
657
+ --gooee-stack-top: var(--gooee-space-10);
658
+ --gooee-stack-offset: var(--gooee-space-4);
659
+ --gooee-stack-gap: 25svh;
660
+ --gooee-stack-shrink: 0.04;
661
+ --gooee-stack-dim: 0.6;
662
+ --gooee-stack-lean: 6;
663
+ --gooee-stack-perspective: 1200px;
664
+ /* ScrollTrack: room above the pinned row for a sticky header, a panel's width (and on a narrow
665
+ screen, where it is a sideways swipe), the gap between panels, and the most the panels lean
666
+ with speed (degrees) */
667
+ --gooee-track-top: 0px;
668
+ --gooee-track-panel-w: 40%;
669
+ --gooee-track-panel-w-narrow: 85%;
670
+ --gooee-track-gap: var(--gooee-space-6);
671
+ --gooee-track-lean: 3;
672
+ /* PromptBar: the tallest the text box grows before it scrolls. AssistantThread: the width of the
673
+ conversation, and the line length of an answer */
674
+ --gooee-prompt-max-h: 168px;
675
+ --gooee-assistant-w: 720px;
676
+ --gooee-answer-measure: 66ch;
677
+ /* AssistantThread: the widest your own message gets, and inline code in an answer. WorkPill: the
678
+ step list's width. SourceMark: the card's width */
679
+ --gooee-assistant-mine-w: 80%;
680
+ --gooee-code-inline-size: 0.88em;
681
+ --gooee-work-steps-w: 280px;
682
+ --gooee-source-card-w: 320px;
683
+ /* Parallax: how far the nearest layer travels either side of its place (and on a narrow screen),
684
+ and the gap between items */
685
+ --gooee-parallax-range: 120px;
686
+ --gooee-parallax-range-narrow: 48px;
687
+ --gooee-parallax-gap: var(--gooee-space-5);
688
+ /* ScrollTone: the band around the middle of the screen, as a share of its height, in which the
689
+ paper and ink change from one section's tone to the next */
690
+ --gooee-tone-band: 0.3;
691
+ /* ScrollExpand: room above for a sticky header, the frame's height, the scroll it takes to open,
692
+ the strip it starts as (a share of the frame's height), how far in from each side it starts (a
693
+ share of the width), and the extra zoom it starts with */
694
+ --gooee-expand-top: 0px;
695
+ --gooee-expand-h: 80svh;
696
+ --gooee-expand-run: 80svh;
697
+ --gooee-expand-strip: 0.12;
698
+ --gooee-expand-side: 0.18;
699
+ --gooee-expand-zoom: 0.15;
700
+ /* ScrollExpand through: how far the camera pushes in once the picture fills the screen */
701
+ --gooee-expand-push: 0.25;
702
+ }
703
+
704
+ @media (prefers-reduced-motion: reduce) {
705
+ :root,
706
+ [data-theme] {
707
+ --gooee-scroll-ease: 1;
708
+ }
709
+ }
710
+
711
+ /* CodeBlock: syntax colours, monochrome like the rest. Set on every [data-theme], so they follow the
712
+ colours of the theme they sit in and need no dark copy. Set --gooee-code-string for a colour accent. */
713
+ :root,
714
+ [data-theme] {
715
+ /* TextRise ink: the grey a word starts from, part way from the page to the text. It meets 3:1, the
716
+ contrast for large text, so ink is for text 24px and up. */
717
+ --gooee-ink-from: color-mix(in oklab, var(--gooee-color-fg) 45%, var(--gooee-color-bg));
718
+ --gooee-code-bg: var(--gooee-color-surface-sunken);
719
+ --gooee-code-fg: var(--gooee-color-fg);
720
+ --gooee-code-keyword: var(--gooee-color-fg);
721
+ --gooee-code-tag: var(--gooee-color-fg);
722
+ --gooee-code-attr: var(--gooee-color-fg-subtle);
723
+ --gooee-code-string: var(--gooee-color-fg-muted);
724
+ --gooee-code-number: var(--gooee-color-fg-muted);
725
+ --gooee-code-comment: var(--gooee-color-fg-subtle);
726
+ --gooee-code-gutter: var(--gooee-color-fg-subtle);
727
+ }