@cognitap/radiant 0.0.5 → 0.0.7

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 (234) hide show
  1. package/CHANGELOG.md +68 -368
  2. package/README.md +41 -1006
  3. package/RELEASE_POLICY.md +3 -3
  4. package/dist/library/Accordion.d.ts +3 -0
  5. package/dist/library/Accordion.d.ts.map +1 -1
  6. package/dist/library/Accordion.js +1 -1
  7. package/dist/library/Accordion.js.map +1 -1
  8. package/dist/library/Button.d.ts +8 -1
  9. package/dist/library/Button.d.ts.map +1 -1
  10. package/dist/library/Button.js +44 -2
  11. package/dist/library/Button.js.map +1 -1
  12. package/dist/library/Card.d.ts +2 -0
  13. package/dist/library/Card.d.ts.map +1 -1
  14. package/dist/library/Card.js +1 -1
  15. package/dist/library/Card.js.map +1 -1
  16. package/dist/library/Checkbox.d.ts +5 -0
  17. package/dist/library/Checkbox.d.ts.map +1 -1
  18. package/dist/library/Checkbox.js +3 -2
  19. package/dist/library/Checkbox.js.map +1 -1
  20. package/dist/library/Collapsible.d.ts +6 -1
  21. package/dist/library/Collapsible.d.ts.map +1 -1
  22. package/dist/library/Collapsible.js +24 -3
  23. package/dist/library/Collapsible.js.map +1 -1
  24. package/dist/library/Dialog.d.ts +5 -1
  25. package/dist/library/Dialog.d.ts.map +1 -1
  26. package/dist/library/Dialog.js +5 -2
  27. package/dist/library/Dialog.js.map +1 -1
  28. package/dist/library/Field.d.ts +8 -0
  29. package/dist/library/Field.d.ts.map +1 -1
  30. package/dist/library/Field.js +2 -0
  31. package/dist/library/Field.js.map +1 -1
  32. package/dist/library/Input.d.ts +3 -0
  33. package/dist/library/Input.d.ts.map +1 -1
  34. package/dist/library/Input.js +1 -0
  35. package/dist/library/Input.js.map +1 -1
  36. package/dist/library/Link.d.ts +5 -0
  37. package/dist/library/Link.d.ts.map +1 -1
  38. package/dist/library/Link.js.map +1 -1
  39. package/dist/library/RadioGroup.d.ts +8 -0
  40. package/dist/library/RadioGroup.d.ts.map +1 -1
  41. package/dist/library/RadioGroup.js +4 -2
  42. package/dist/library/RadioGroup.js.map +1 -1
  43. package/dist/library/ThemeScope.d.ts.map +1 -1
  44. package/dist/library/ThemeScope.js +10 -9
  45. package/dist/library/ThemeScope.js.map +1 -1
  46. package/dist/library/examples/expressive.d.ts +4 -0
  47. package/dist/library/examples/expressive.d.ts.map +1 -0
  48. package/dist/library/{themes → examples}/expressive.js +4 -3
  49. package/dist/library/examples/expressive.js.map +1 -0
  50. package/dist/library/examples/glass.d.ts +4 -0
  51. package/dist/library/examples/glass.d.ts.map +1 -0
  52. package/dist/library/{themes → examples}/glass.js +4 -3
  53. package/dist/library/examples/glass.js.map +1 -0
  54. package/dist/library/examples/index.d.ts +13 -0
  55. package/dist/library/examples/index.d.ts.map +1 -0
  56. package/dist/library/examples/index.js +32 -0
  57. package/dist/library/examples/index.js.map +1 -0
  58. package/dist/library/examples/jelly.d.ts +4 -0
  59. package/dist/library/examples/jelly.d.ts.map +1 -0
  60. package/dist/library/{themes → examples}/jelly.js +4 -3
  61. package/dist/library/examples/jelly.js.map +1 -0
  62. package/dist/library/examples/preset-values.d.ts.map +1 -0
  63. package/dist/library/examples/preset-values.js.map +1 -0
  64. package/dist/library/examples/radiant.d.ts +4 -0
  65. package/dist/library/examples/radiant.d.ts.map +1 -0
  66. package/dist/library/{themes → examples}/radiant.js +4 -3
  67. package/dist/library/examples/radiant.js.map +1 -0
  68. package/dist/library/examples/sharp-3d.d.ts +4 -0
  69. package/dist/library/examples/sharp-3d.d.ts.map +1 -0
  70. package/dist/library/{themes → examples}/sharp-3d.js +4 -3
  71. package/dist/library/examples/sharp-3d.js.map +1 -0
  72. package/dist/library/examples/soft-squircle.d.ts +4 -0
  73. package/dist/library/examples/soft-squircle.d.ts.map +1 -0
  74. package/dist/library/{themes → examples}/soft-squircle.js +4 -3
  75. package/dist/library/examples/soft-squircle.js.map +1 -0
  76. package/dist/library/examples/ticket.d.ts +4 -0
  77. package/dist/library/examples/ticket.d.ts.map +1 -0
  78. package/dist/library/{themes → examples}/ticket.js +4 -3
  79. package/dist/library/examples/ticket.js.map +1 -0
  80. package/dist/library/index.d.ts +4 -2
  81. package/dist/library/index.d.ts.map +1 -1
  82. package/dist/library/index.js +2 -1
  83. package/dist/library/index.js.map +1 -1
  84. package/dist/library/motion/MotionLink.d.ts +8 -0
  85. package/dist/library/motion/MotionLink.d.ts.map +1 -0
  86. package/dist/library/motion/MotionLink.js +44 -0
  87. package/dist/library/motion/MotionLink.js.map +1 -0
  88. package/dist/library/motion/browser.d.ts +5 -0
  89. package/dist/library/motion/browser.d.ts.map +1 -0
  90. package/dist/library/motion/browser.js +35 -0
  91. package/dist/library/motion/browser.js.map +1 -0
  92. package/dist/library/motion/config.d.ts +26 -0
  93. package/dist/library/motion/config.d.ts.map +1 -0
  94. package/dist/library/motion/config.js +58 -0
  95. package/dist/library/motion/config.js.map +1 -0
  96. package/dist/library/motion/context.d.ts +2 -0
  97. package/dist/library/motion/context.d.ts.map +1 -0
  98. package/dist/library/motion/context.js +5 -0
  99. package/dist/library/motion/context.js.map +1 -0
  100. package/dist/library/motion/drag.d.ts +20 -0
  101. package/dist/library/motion/drag.d.ts.map +1 -0
  102. package/dist/library/motion/drag.js +138 -0
  103. package/dist/library/motion/drag.js.map +1 -0
  104. package/dist/library/motion/dragBrowser.d.ts +4 -0
  105. package/dist/library/motion/dragBrowser.d.ts.map +1 -0
  106. package/dist/library/motion/dragBrowser.js +156 -0
  107. package/dist/library/motion/dragBrowser.js.map +1 -0
  108. package/dist/library/motion/follow.d.ts +9 -0
  109. package/dist/library/motion/follow.d.ts.map +1 -0
  110. package/dist/library/motion/follow.js +26 -0
  111. package/dist/library/motion/follow.js.map +1 -0
  112. package/dist/library/motion/host.d.ts +30 -0
  113. package/dist/library/motion/host.d.ts.map +1 -0
  114. package/dist/library/motion/host.js +70 -0
  115. package/dist/library/motion/host.js.map +1 -0
  116. package/dist/library/motion/index.d.ts +16 -0
  117. package/dist/library/motion/index.d.ts.map +1 -0
  118. package/dist/library/motion/index.js +9 -0
  119. package/dist/library/motion/index.js.map +1 -0
  120. package/dist/library/motion/layout.d.ts +20 -0
  121. package/dist/library/motion/layout.d.ts.map +1 -0
  122. package/dist/library/motion/layout.js +67 -0
  123. package/dist/library/motion/layout.js.map +1 -0
  124. package/dist/library/motion/layoutDom.d.ts +17 -0
  125. package/dist/library/motion/layoutDom.d.ts.map +1 -0
  126. package/dist/library/motion/layoutDom.js +272 -0
  127. package/dist/library/motion/layoutDom.js.map +1 -0
  128. package/dist/library/motion/press.d.ts +5 -0
  129. package/dist/library/motion/press.d.ts.map +1 -0
  130. package/dist/library/motion/press.js +99 -0
  131. package/dist/library/motion/press.js.map +1 -0
  132. package/dist/library/motion/pressPolicy.d.ts +5 -0
  133. package/dist/library/motion/pressPolicy.d.ts.map +1 -0
  134. package/dist/library/motion/pressPolicy.js +8 -0
  135. package/dist/library/motion/pressPolicy.js.map +1 -0
  136. package/dist/library/motion/react.d.ts +35 -0
  137. package/dist/library/motion/react.d.ts.map +1 -0
  138. package/dist/library/motion/react.js +224 -0
  139. package/dist/library/motion/react.js.map +1 -0
  140. package/dist/library/motion/runtime.d.ts +22 -0
  141. package/dist/library/motion/runtime.d.ts.map +1 -0
  142. package/dist/library/motion/runtime.js +117 -0
  143. package/dist/library/motion/runtime.js.map +1 -0
  144. package/dist/library/motion/transitions.d.ts +5 -0
  145. package/dist/library/motion/transitions.d.ts.map +1 -0
  146. package/dist/library/motion/transitions.js +244 -0
  147. package/dist/library/motion/transitions.js.map +1 -0
  148. package/dist/library/styles.css +1 -1
  149. package/dist/library/themes/defineTheme.d.ts +3 -0
  150. package/dist/library/themes/defineTheme.d.ts.map +1 -1
  151. package/dist/library/themes/defineTheme.js +4 -2
  152. package/dist/library/themes/defineTheme.js.map +1 -1
  153. package/dist/library/themes/index.d.ts +2 -12
  154. package/dist/library/themes/index.d.ts.map +1 -1
  155. package/dist/library/themes/index.js +1 -19
  156. package/dist/library/themes/index.js.map +1 -1
  157. package/dist/library/themes/themeDocument.d.ts.map +1 -1
  158. package/dist/library/themes/themeDocument.js +11 -5
  159. package/dist/library/themes/themeDocument.js.map +1 -1
  160. package/dist/library/themes/themeDocumentTypes.d.ts +5 -1
  161. package/dist/library/themes/themeDocumentTypes.d.ts.map +1 -1
  162. package/dist/library/themes/themeDocumentTypes.js.map +1 -1
  163. package/docs/accessibility.md +76 -142
  164. package/docs/architecture.md +197 -0
  165. package/docs/motion.md +153 -0
  166. package/docs/theming.md +275 -882
  167. package/package.json +22 -7
  168. package/src/Accordion.tsx +4 -1
  169. package/src/Button.tsx +55 -1
  170. package/src/Card.tsx +3 -1
  171. package/src/Checkbox.tsx +7 -2
  172. package/src/Collapsible.tsx +38 -2
  173. package/src/Dialog.tsx +13 -1
  174. package/src/Field.tsx +8 -0
  175. package/src/Input.tsx +3 -0
  176. package/src/Link.tsx +5 -0
  177. package/src/RadioGroup.tsx +10 -2
  178. package/src/ThemeScope.tsx +21 -17
  179. package/src/{themes → examples}/expressive.ts +5 -3
  180. package/src/{themes → examples}/glass.ts +5 -3
  181. package/src/examples/index.ts +35 -0
  182. package/src/{themes → examples}/jelly.ts +5 -3
  183. package/src/{themes → examples}/radiant.ts +5 -3
  184. package/src/{themes → examples}/sharp-3d.ts +5 -3
  185. package/src/{themes → examples}/soft-squircle.ts +5 -3
  186. package/src/{themes → examples}/ticket.ts +5 -3
  187. package/src/index.ts +10 -13
  188. package/src/motion/MotionLink.tsx +69 -0
  189. package/src/motion/browser.ts +45 -0
  190. package/src/motion/config.ts +79 -0
  191. package/src/motion/context.ts +4 -0
  192. package/src/motion/drag.ts +151 -0
  193. package/src/motion/dragBrowser.ts +159 -0
  194. package/src/motion/follow.ts +28 -0
  195. package/src/motion/host.ts +96 -0
  196. package/src/motion/index.ts +28 -0
  197. package/src/motion/layout.ts +78 -0
  198. package/src/motion/layoutDom.ts +293 -0
  199. package/src/motion/press.ts +97 -0
  200. package/src/motion/pressPolicy.ts +14 -0
  201. package/src/motion/react.ts +272 -0
  202. package/src/motion/runtime.ts +122 -0
  203. package/src/motion/transitions.ts +237 -0
  204. package/src/themes/defineTheme.ts +10 -2
  205. package/src/themes/index.ts +2 -22
  206. package/src/themes/themeDocument.ts +14 -6
  207. package/src/themes/themeDocumentTypes.ts +12 -5
  208. package/dist/library/themes/expressive.d.ts +0 -2
  209. package/dist/library/themes/expressive.d.ts.map +0 -1
  210. package/dist/library/themes/expressive.js.map +0 -1
  211. package/dist/library/themes/glass.d.ts +0 -2
  212. package/dist/library/themes/glass.d.ts.map +0 -1
  213. package/dist/library/themes/glass.js.map +0 -1
  214. package/dist/library/themes/jelly.d.ts +0 -2
  215. package/dist/library/themes/jelly.d.ts.map +0 -1
  216. package/dist/library/themes/jelly.js.map +0 -1
  217. package/dist/library/themes/preset-values.d.ts.map +0 -1
  218. package/dist/library/themes/preset-values.js.map +0 -1
  219. package/dist/library/themes/radiant.d.ts +0 -2
  220. package/dist/library/themes/radiant.d.ts.map +0 -1
  221. package/dist/library/themes/radiant.js.map +0 -1
  222. package/dist/library/themes/sharp-3d.d.ts +0 -2
  223. package/dist/library/themes/sharp-3d.d.ts.map +0 -1
  224. package/dist/library/themes/sharp-3d.js.map +0 -1
  225. package/dist/library/themes/soft-squircle.d.ts +0 -2
  226. package/dist/library/themes/soft-squircle.d.ts.map +0 -1
  227. package/dist/library/themes/soft-squircle.js.map +0 -1
  228. package/dist/library/themes/ticket.d.ts +0 -2
  229. package/dist/library/themes/ticket.d.ts.map +0 -1
  230. package/dist/library/themes/ticket.js.map +0 -1
  231. package/docs/system.md +0 -238
  232. /package/dist/library/{themes → examples}/preset-values.d.ts +0 -0
  233. /package/dist/library/{themes → examples}/preset-values.js +0 -0
  234. /package/src/{themes → examples}/preset-values.ts +0 -0
@@ -1,13 +1,3 @@
1
- import { radiant } from './radiant.js'
2
- import { defaultTheme } from './default.js'
3
- import { soft } from './soft-squircle.js'
4
- import { expressive } from './expressive.js'
5
- import { glass } from './glass.js'
6
- import { sharp } from './sharp-3d.js'
7
- import { jelly } from './jelly.js'
8
- import { ticket } from './ticket.js'
9
- import type { Theme } from './types.js'
10
-
11
1
  export type {
12
2
  SharedTokens,
13
3
  Theme,
@@ -21,18 +11,7 @@ export type {
21
11
  export { defineTheme } from './defineTheme.js'
22
12
  export { updateThemeAppearance } from './updateThemeAppearance.js'
23
13
  export type { ThemeAppearanceSettings, ThemeGeometrySettings } from './updateThemeAppearance.js'
24
- export { radiant, defaultTheme, soft, expressive, glass, sharp, jelly, ticket }
25
-
26
- export const themes: readonly Theme[] = Object.freeze([
27
- radiant,
28
- defaultTheme,
29
- soft,
30
- expressive,
31
- glass,
32
- sharp,
33
- jelly,
34
- ticket
35
- ])
14
+ export { defaultTheme } from './default.js'
36
15
 
37
16
  export {
38
17
  defineThemeDocument,
@@ -52,6 +31,7 @@ export type {
52
31
  ThemeColorStop,
53
32
  ThemeBrandSource,
54
33
  ThemePalette,
34
+ ThemeMotionSection,
55
35
  ThemeTypographySection,
56
36
  ThemeFontAxis,
57
37
  ThemeFontMetadata
@@ -205,11 +205,16 @@ function validateFonts(value: unknown, path: string) {
205
205
  }
206
206
 
207
207
  function toDefinition(sections: ThemeSections, id: string, name: string): ThemeDefinition {
208
- const common: { tokens: RecordValue; components?: ThemeLayer['components'] } = { tokens: {} }
208
+ const common: {
209
+ tokens: RecordValue
210
+ components?: ThemeLayer['components']
211
+ motion?: ThemeDefinition['motion']
212
+ } = { tokens: {} }
209
213
  const modes = { light: { tokens: {} } as typeof common, dark: { tokens: {} } as typeof common }
210
214
  for (const sectionName of sectionNames) {
211
215
  const section = sections[sectionName]
212
216
  if (!section) continue
217
+ if (sectionName === 'motion') common.motion = sections.motion?.profile
213
218
  if (sectionName === 'typography' && sections.typography?.typesetting !== undefined) {
214
219
  common.tokens.typography = generateTypography(sections.typography.typesetting).tokens
215
220
  }
@@ -249,11 +254,13 @@ export function parseThemeDocument(input: unknown): ThemeDocument | ThemeSection
249
254
  [
250
255
  'values',
251
256
  'modes',
252
- ...(name === 'color'
253
- ? ['brand', 'fidelity', 'palettes', 'anchor']
254
- : name === 'typography'
255
- ? ['fonts', 'typesetting']
256
- : [])
257
+ ...(name === 'motion'
258
+ ? ['profile']
259
+ : name === 'color'
260
+ ? ['brand', 'fidelity', 'palettes', 'anchor']
261
+ : name === 'typography'
262
+ ? ['fonts', 'typesetting']
263
+ : [])
257
264
  ],
258
265
  path
259
266
  )
@@ -351,6 +358,7 @@ export function themeDocumentFromDefinition(definition: ThemeDefinition): ThemeD
351
358
  const section: RecordValue = {}
352
359
  const values = name === 'components' ? copy.components : copy.tokens?.[name]
353
360
  if (values !== undefined) section.values = values
361
+ if (name === 'motion' && copy.motion !== undefined) section.profile = copy.motion
354
362
  const modes: RecordValue = {}
355
363
  for (const mode of ['light', 'dark'] as const) {
356
364
  const values =
@@ -1,3 +1,4 @@
1
+ import type { MotionProfileInput } from '../motion/config.js'
1
2
  import type { ThemeComponentOverrides } from './components.js'
2
3
  import type { ThemeTokens } from './tokens.js'
3
4
  import type { TypographyInput } from '../typography/types.js'
@@ -60,13 +61,19 @@ export interface ThemeTypographySection extends ThemeSection<ThemeTokens['typogr
60
61
  readonly typesetting?: TypographyInput
61
62
  }
62
63
 
64
+ export interface ThemeMotionSection extends ThemeSection<ThemeTokens['motion']> {
65
+ readonly profile?: MotionProfileInput
66
+ }
67
+
63
68
  /** Token groups are the extension seams for richer typesetting and spring authoring. */
64
69
  export type ThemeSections = {
65
- readonly [K in keyof ThemeTokens]?: K extends 'color'
66
- ? ThemeColorSection
67
- : K extends 'typography'
68
- ? ThemeTypographySection
69
- : ThemeSection<ThemeTokens[K]>
70
+ readonly [K in keyof ThemeTokens]?: K extends 'motion'
71
+ ? ThemeMotionSection
72
+ : K extends 'color'
73
+ ? ThemeColorSection
74
+ : K extends 'typography'
75
+ ? ThemeTypographySection
76
+ : ThemeSection<ThemeTokens[K]>
70
77
  } & {
71
78
  readonly components?: ThemeSection<ThemeComponentOverrides>
72
79
  }
@@ -1,2 +0,0 @@
1
- export declare const expressive: import("./defineTheme.js").Theme;
2
- //# sourceMappingURL=expressive.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"expressive.d.ts","sourceRoot":"","sources":["../../../src/themes/expressive.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,kCAgIrB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"expressive.js","sourceRoot":"","sources":["../../../src/themes/expressive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAE3C,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CAAC;IACpC,EAAE,EAAE,YAAY;IAChB,IAAI,EAAE,YAAY;IAClB,MAAM,EAAE;QACN,KAAK,EAAE;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,SAAS;YACrB,eAAe,EAAE,SAAS;YAC1B,MAAM,EAAE,SAAS;YACjB,MAAM,EAAE,SAAS;YACjB,gBAAgB,EAAE,SAAS;YAC3B,OAAO,EAAE,SAAS;YAClB,iBAAiB,EAAE,SAAS;YAC5B,OAAO,EAAE,SAAS;YAClB,iBAAiB,EAAE,SAAS;YAC5B,MAAM,EAAE,SAAS;YACjB,gBAAgB,EAAE,SAAS;YAC3B,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,SAAS;YACtB,kBAAkB,EAAE,SAAS;YAC7B,cAAc,EAAE,SAAS;YACzB,OAAO,EAAE,SAAS;SACnB;QACD,UAAU,EAAE;YACV,MAAM,EAAE,kCAAkC;YAC1C,QAAQ,EAAE,MAAM;YAChB,SAAS,EAAE,UAAU;YACrB,WAAW,EAAE,SAAS;YACtB,UAAU,EAAE,GAAG;YACf,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,GAAG;YAClB,aAAa,EAAE,GAAG;SACnB;QACD,OAAO,EAAE;YACP,KA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ACnB,aAAa,EAAE,WAAW;YAC1B,SAAS,EAAE,CAAC;YACZ,UAAU,EAAE,IAAI;SACjB;KACF;IACD,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,KAAK,EAAE;oBACL,OAAO,EAAE,SAAS;oBAClB,UAAU,EAAE,SAAS;oBACrB,eAAe,EAAE,SAAS;oBAC1B,MAAM,EAAE,SAAS;oBACjB,MAAM,EAAE,SAAS;oBACjB,gBAAgB,EAAE,SAAS;oBAC3B,OAAO,EAAE,SAAS;oBAClB,iBAAiB,EAAE,SAAS;oBAC5B,OAAO,EAAE,SAAS;oBAClB,iBAAiB,EAAE,SAAS;oBAC5B,MAAM,EAAE,SAAS;oBACjB,gBAAgB,EAAE,SAAS;oBAC3B,KAAK,EAAE,SAAS;oBAChB,WAAW,EAAE,SAAS;oBACtB,kBAAkB,EAAE,SAAS;oBAC7B,cAAc,EAAE,SAAS;oBACzB,OAAO,EAAE,SAAS;iBACnB;gBACD,OAAO,EAAE;oBACP,MAAM,EAAE,SAAS;oBACjB,MAAM,EAAE,4BAA4B;oBACpC,aAAa,EAAE,+BAA+B;oBAC9C,QAAQ,EAAE,mBAAmB;iBAC9B;aACF;SACF;KACF;CACF,CAAC,CAAA","sourcesContent":["import { defineTheme } from './defineTheme.js'\nimport { spring } from './preset-values.js'\n\nexport const expressive = defineTheme({\n id: 'expressive',\n name: 'Expressive',\n tokens: {\n color: {\n surface: '#ffffff',\n foreground: '#402266',\n mutedForeground: '#746084',\n border: '#cbb6e0',\n accent: '#6732b4',\n accentForeground: '#ffffff',\n neutral: '#eee4fa',\n neutralForeground: '#452267',\n warning: '#efc355',\n warningForeground: '#44300c',\n danger: '#b52c34',\n dangerForeground: '#ffffff',\n focus: '#6732b4',\n placeholder: '#746084',\n disabledBackground: '#eee4fa',\n disabledBorder: '#cbb6e0',\n invalid: '#b52c34'\n },\n typography: {\n family: \"'Poppins', system-ui, sans-serif\",\n bodySize: '1rem',\n smallSize: '0.875rem',\n headingSize: '1.25rem',\n bodyWeight: 400,\n labelWeight: 600,\n headingWeight: 700,\n letterSpacing: '0'\n },\n control: {\n small: {\n height: '2rem',\n paddingInline: '0.75rem',\n fontSize: '0.8125rem',\n indicatorSize: '1rem'\n },\n medium: {\n height: '3rem',\n paddingInline: '1.5rem',\n fontSize: '0.875rem',\n indicatorSize: '1.125rem'\n },\n large: {\n height: '3.25rem',\n paddingInline: '1.5rem',\n fontSize: '0.9375rem',\n indicatorSize: '1.25rem'\n },\n radius: '1.5rem',\n cornerShape: 'round',\n borderWidth: '1px',\n borderStyle: 'solid'\n },\n surface: {\n canvas: '#f7f0ff',\n radius: '1.5rem',\n cornerShape: 'round',\n borderWidth: '1px',\n borderStyle: 'solid',\n padding: '1.5rem',\n gap: '1rem',\n shadow: '0 1px 3px rgb(0 0 0 / 0.08)',\n overlayShadow: '0 20px 60px rgb(0 0 0 / 0.22)',\n backdrop: 'rgb(15 12 25 / 0.45)'\n },\n focus: {\n width: '6px',\n offset: '2px',\n style: 'double'\n },\n motion: {\n pressDuration: '450ms',\n pressEase: spring,\n releaseDuration: '450ms',\n releaseEase: spring,\n colorDuration: '150ms',\n disclosureDuration: '180ms'\n },\n state: { disabledOpacity: 0.5 }\n },\n components: {\n button: {\n radiusPressed: '0.75rem',\n sheen: 0,\n glow: '0%',\n hoverLift: '0px',\n fontWeight: 600,\n shadow: '0 0 #0000',\n shadowPressed: '0 0 #0000',\n highlight: 0,\n pressScale: 0.98\n }\n },\n modes: {\n dark: {\n tokens: {\n color: {\n surface: '#271c36',\n foreground: '#f5eaff',\n mutedForeground: '#c8b2dc',\n border: '#806297',\n accent: '#c4a0ff',\n accentForeground: '#301253',\n neutral: '#423055',\n neutralForeground: '#f2e3ff',\n warning: '#efc355',\n warningForeground: '#352507',\n danger: '#ff9298',\n dangerForeground: '#3c111a',\n focus: '#d1b4ff',\n placeholder: '#c8b2dc',\n disabledBackground: '#423055',\n disabledBorder: '#806297',\n invalid: '#ff9298'\n },\n surface: {\n canvas: '#191122',\n shadow: '0 1px 4px rgb(0 0 0 / 0.4)',\n overlayShadow: '0 20px 60px rgb(0 0 0 / 0.65)',\n backdrop: 'rgb(0 0 0 / 0.65)'\n }\n }\n }\n }\n})\n"]}
@@ -1,2 +0,0 @@
1
- export declare const glass: import("./defineTheme.js").Theme;
2
- //# sourceMappingURL=glass.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"glass.d.ts","sourceRoot":"","sources":["../../../src/themes/glass.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,kCAmIhB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"glass.js","sourceRoot":"","sources":["../../../src/themes/glass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAC;IAC/B,EAAE,EAAE,OAAO;IACX,IAAI,EAAE,OAAO;IACb,MAAM,EAAE;QACN,KAAK,EAAE;YACL,OAAO,EAAE,yBAAyB;YAClC,UAAU,EAAE,SAAS;YACrB,eAAe,EAAE,SAAS;YAC1B,MAAM,EAAE,SAAS;YACjB,MAAM,EAAE,SAAS;YACjB,gBAAgB,EAAE,SAAS;YAC3B,OAAO,EAAE,wBAAwB;YACjC,iBAAiB,EAAE,SAAS;YAC5B,OAAO,EAAE,SAAS;YAClB,iBAAiB,EAAE,SAAS;YAC5B,MAAM,EAAE,SAAS;YACjB,gBAAgB,EAAE,SAAS;YAC3B,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,SAAS;YACtB,kBAAkB,EAAE,wBAAwB;YAC5C,cAAc,EAAE,SAAS;YACzB,OAAO,EAAE,SAAS;SACnB;QACD,UAAU,EAAE;YACV,MAAM,EAAE,kCAAkC;YAC1C,QAAQ,EAAE,MAAM;YAChB,SAAS,EAAE,UAAU;YACrB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E,EAAE,cAAc,EAAE,2BAA2B,EAAE;QACvD,MAAM,EAAE;YACN,UAAU,EAAE,GAAG;YACf,MAAM,EAAE,iFAAiF;YACzF,aAAa,EACX,+EAA+E;YACjF,KAAK,EAAE,IAAI;YACX,SAAS,EAAE,GAAG;YACd,QAAQ,EAAE,2BAA2B;YACrC,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,IAAI;SACjB;KACF;IACD,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,KAAK,EAAE;oBACL,OAAO,EAAE,qBAAqB;oBAC9B,UAAU,EAAE,SAAS;oBACrB,eAAe,EAAE,SAAS;oBAC1B,MAAM,EAAE,SAAS;oBACjB,MAAM,EAAE,SAAS;oBACjB,gBAAgB,EAAE,SAAS;oBAC3B,OAAO,EAAE,sBAAsB;oBAC/B,iBAAiB,EAAE,SAAS;oBAC5B,OAAO,EAAE,SAAS;oBAClB,iBAAiB,EAAE,SAAS;oBAC5B,MAAM,EAAE,SAAS;oBACjB,gBAAgB,EAAE,SAAS;oBAC3B,KAAK,EAAE,SAAS;oBAChB,WAAW,EAAE,SAAS;oBACtB,kBAAkB,EAAE,sBAAsB;oBAC1C,cAAc,EAAE,SAAS;oBACzB,OAAO,EAAE,SAAS;iBACnB;gBACD,OAAO,EAAE;oBACP,MAAM,EACJ,sMAAsM;oBACxM,MAAM,EAAE,4BAA4B;oBACpC,aAAa,EAAE,+BAA+B;oBAC9C,QAAQ,EAAE,mBAAmB;iBAC9B;aACF;SACF;KACF;CACF,CAAC,CAAA","sourcesContent":["import { defineTheme } from './defineTheme.js'\nimport { snap, spring } from './preset-values.js'\n\nexport const glass = defineTheme({\n id: 'glass',\n name: 'Glass',\n tokens: {\n color: {\n surface: 'rgb(255 255 255 / 0.78)',\n foreground: '#23223b',\n mutedForeground: '#514d69',\n border: '#827c9c',\n accent: '#4f40a8',\n accentForeground: '#ffffff',\n neutral: 'rgb(255 255 255 / 0.8)',\n neutralForeground: '#302a51',\n warning: '#edc86d',\n warningForeground: '#44300c',\n danger: '#b52c44',\n dangerForeground: '#ffffff',\n focus: '#483790',\n placeholder: '#514d69',\n disabledBackground: 'rgb(255 255 255 / 0.8)',\n disabledBorder: '#827c9c',\n invalid: '#b52c44'\n },\n typography: {\n family: \"'Manrope', system-ui, sans-serif\",\n bodySize: '1rem',\n smallSize: '0.875rem',\n headingSize: '1.25rem',\n bodyWeight: 400,\n labelWeight: 600,\n headingWeight: 700,\n letterSpacing: '0'\n },\n control: {\n small: {\n height: '2rem',\n paddingInline: '0.75rem',\n fontSize: '0.8125rem',\n indicatorSize: '1rem'\n },\n medium: {\n height: '2.75rem',\n paddingInline: '1.25rem',\n fontSize: '0.875rem',\n indicatorSize: '1.125rem'\n },\n large: {\n height: '3.25rem',\n paddingInline: '1.5rem',\n fontSize: '0.9375rem',\n indicatorSize: '1.25rem'\n },\n radius: '1.375rem',\n cornerShape: 'squircle',\n borderWidth: '1px',\n borderStyle: 'solid'\n },\n surface: {\n canvas:\n 'radial-gradient(40% 80% at 15% 30%, #8ad3ee, transparent 70%), radial-gradient(45% 90% at 55% 80%, #e8abe0, transparent 70%), radial-gradient(40% 80% at 90% 20%, #fae8a0, transparent 70%), #e6e2f3',\n radius: '1.375rem',\n cornerShape: 'squircle',\n borderWidth: '1px',\n borderStyle: 'solid',\n padding: '1.5rem',\n gap: '1rem',\n shadow: '0 1px 3px rgb(0 0 0 / 0.08)',\n overlayShadow: '0 20px 60px rgb(0 0 0 / 0.22)',\n backdrop: 'rgb(15 12 25 / 0.45)'\n },\n focus: {\n width: '2px',\n offset: '3px',\n style: 'dashed'\n },\n motion: {\n pressDuration: '120ms',\n pressEase: snap,\n releaseDuration: '600ms',\n releaseEase: spring,\n colorDuration: '150ms',\n disclosureDuration: '180ms'\n },\n state: { disabledOpacity: 0.5 }\n },\n components: {\n dialog: { backdropFilter: 'blur(18px) saturate(190%)' },\n button: {\n fontWeight: 700,\n shadow: 'inset 0 0 0 1px rgb(255 255 255 / 0.35), 0 10px 30px -10px rgb(30 20 60 / 0.35)',\n shadowPressed:\n 'inset 0 0 0 1px rgb(255 255 255 / 0.35), 0 4px 14px -6px rgb(30 20 60 / 0.35)',\n sheen: 0.25,\n highlight: 0.9,\n backdrop: 'blur(18px) saturate(190%)',\n glow: '0%',\n pressScale: 0.94\n }\n },\n modes: {\n dark: {\n tokens: {\n color: {\n surface: 'rgb(27 25 48 / 0.9)',\n foreground: '#f1edff',\n mutedForeground: '#bfb6d9',\n border: '#83759e',\n accent: '#c3b3ff',\n accentForeground: '#291c52',\n neutral: 'rgb(61 50 88 / 0.92)',\n neutralForeground: '#f1eaff',\n warning: '#efc355',\n warningForeground: '#352507',\n danger: '#ff9db0',\n dangerForeground: '#3f1021',\n focus: '#d4c7ff',\n placeholder: '#bfb6d9',\n disabledBackground: 'rgb(61 50 88 / 0.92)',\n disabledBorder: '#83759e',\n invalid: '#ff9db0'\n },\n surface: {\n canvas:\n 'radial-gradient(40% 80% at 15% 30%, #164664, transparent 70%), radial-gradient(45% 90% at 55% 80%, #532852, transparent 70%), radial-gradient(40% 80% at 90% 20%, #524019, transparent 70%), #151225',\n shadow: '0 1px 4px rgb(0 0 0 / 0.4)',\n overlayShadow: '0 20px 60px rgb(0 0 0 / 0.65)',\n backdrop: 'rgb(0 0 0 / 0.65)'\n }\n }\n }\n }\n})\n"]}
@@ -1,2 +0,0 @@
1
- export declare const jelly: import("./defineTheme.js").Theme;
2
- //# sourceMappingURL=jelly.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jelly.d.ts","sourceRoot":"","sources":["../../../src/themes/jelly.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,kCA8HhB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"jelly.js","sourceRoot":"","sources":["../../../src/themes/jelly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,E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gBAAgB,EAAE,SAAS;oBAC3B,KAAK,EAAE,SAAS;oBAChB,WAAW,EAAE,SAAS;oBACtB,kBAAkB,EAAE,SAAS;oBAC7B,cAAc,EAAE,SAAS;oBACzB,OAAO,EAAE,SAAS;iBACnB;gBACD,OAAO,EAAE;oBACP,MAAM,EAAE,SAAS;oBACjB,MAAM,EAAE,4BAA4B;oBACpC,aAAa,EAAE,+BAA+B;oBAC9C,QAAQ,EAAE,mBAAmB;iBAC9B;aACF;SACF;KACF;CACF,CAAC,CAAA","sourcesContent":["import { defineTheme } from './defineTheme.js'\nimport { snap, spring } from './preset-values.js'\n\nexport const jelly = defineTheme({\n id: 'jelly',\n name: 'Jelly',\n tokens: {\n color: {\n surface: '#ffffff',\n foreground: '#653458',\n mutedForeground: '#805d7b',\n border: '#d4bedb',\n accent: '#b63251',\n accentForeground: '#ffffff',\n neutral: '#f4e6f7',\n neutralForeground: '#6f2865',\n warning: '#efc355',\n warningForeground: '#44300c',\n danger: '#b52c34',\n dangerForeground: '#ffffff',\n focus: '#932a81',\n placeholder: '#805d7b',\n disabledBackground: '#f4e6f7',\n disabledBorder: '#d4bedb',\n invalid: '#b52c34'\n },\n typography: {\n family: \"'Baloo 2', system-ui, sans-serif\",\n bodySize: '1rem',\n smallSize: '0.875rem',\n headingSize: '1.25rem',\n bodyWeight: 400,\n labelWeight: 600,\n headingWeight: 700,\n letterSpacing: '0'\n },\n control: {\n small: {\n height: '2rem',\n paddingInline: '0.75rem',\n fontSize: '0.8125rem',\n indicatorSize: '1rem'\n },\n medium: {\n height: '3rem',\n paddingInline: '1.5rem',\n fontSize: '0.875rem',\n indicatorSize: '1.125rem'\n },\n large: {\n height: '3.25rem',\n paddingInline: '1.5rem',\n fontSize: '0.9375rem',\n indicatorSize: '1.25rem'\n },\n radius: '1.5rem',\n cornerShape: 'squircle',\n borderWidth: '1px',\n borderStyle: 'solid'\n },\n surface: {\n canvas: '#f5f0ff',\n radius: '1.5rem',\n cornerShape: 'squircle',\n borderWidth: '1px',\n borderStyle: 'solid',\n padding: '1.5rem',\n gap: '1rem',\n shadow: '0 1px 3px rgb(0 0 0 / 0.08)',\n overlayShadow: '0 20px 60px rgb(0 0 0 / 0.22)',\n backdrop: 'rgb(15 12 25 / 0.45)'\n },\n focus: {\n width: '4px',\n offset: '3px',\n style: 'solid'\n },\n motion: {\n pressDuration: '110ms',\n pressEase: snap,\n releaseDuration: '700ms',\n releaseEase: spring,\n colorDuration: '150ms',\n disclosureDuration: '180ms'\n },\n state: { disabledOpacity: 0.5 }\n },\n components: {\n button: {\n radiusPressed: '1.25rem',\n fontWeight: 700,\n shadow: 'inset 0 -4px 0 0 rgb(0 0 0 / 0.14), 0 12px 24px -10px rgb(0 0 0 / 0.3)',\n shadowPressed: 'inset 0 -2px 0 0 rgb(0 0 0 / 0.14), 0 6px 12px -6px rgb(0 0 0 / 0.3)',\n sheen: 0.12,\n highlight: 0.35,\n pressScale: 0.9\n }\n },\n modes: {\n dark: {\n tokens: {\n color: {\n surface: '#2a1c30',\n foreground: '#ffebfb',\n mutedForeground: '#d0b0ce',\n border: '#8c658e',\n accent: '#ffa0b4',\n accentForeground: '#4b1127',\n neutral: '#4a2d50',\n neutralForeground: '#ffe6fc',\n warning: '#efc355',\n warningForeground: '#352507',\n danger: '#ff9298',\n dangerForeground: '#3c111a',\n focus: '#f2a6e6',\n placeholder: '#d0b0ce',\n disabledBackground: '#4a2d50',\n disabledBorder: '#8c658e',\n invalid: '#ff9298'\n },\n surface: {\n canvas: '#1a111e',\n shadow: '0 1px 4px rgb(0 0 0 / 0.4)',\n overlayShadow: '0 20px 60px rgb(0 0 0 / 0.65)',\n backdrop: 'rgb(0 0 0 / 0.65)'\n }\n }\n }\n }\n})\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"preset-values.d.ts","sourceRoot":"","sources":["../../../src/themes/preset-values.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,+BAA+B,CAAA;AAChD,eAAO,MAAM,MAAM,mCAAmC,CAAA;AACtD,eAAO,MAAM,MAAM,kQAC8O,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"preset-values.js","sourceRoot":"","sources":["../../../src/themes/preset-values.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,MAAM,CAAC,MAAM,IAAI,GAAG,4BAA4B,CAAA;AAChD,MAAM,CAAC,MAAM,MAAM,GAAG,gCAAgC,CAAA;AACtD,MAAM,CAAC,MAAM,MAAM,GACjB,+PAA+P,CAAA","sourcesContent":["// Curves are values rather than dependencies on ambient theme variables.\nexport const snap = 'cubic-bezier(0.3, 0, 0, 1)'\nexport const settle = 'cubic-bezier(0.2, 0.8, 0.2, 1)'\nexport const spring =\n 'linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1)'\n"]}
@@ -1,2 +0,0 @@
1
- export declare const radiant: import("./defineTheme.js").Theme;
2
- //# sourceMappingURL=radiant.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radiant.d.ts","sourceRoot":"","sources":["../../../src/themes/radiant.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,kCA6HlB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"radiant.js","sourceRoot":"","sources":["../../../src/themes/radiant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC;IACjC,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,MAAM,EAAE;QACN,KAAK,EAAE;YACL,OA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M,EAAE,SAAS;oBACjB,MAAM,EAAE,4BAA4B;oBACpC,aAAa,EAAE,+BAA+B;oBAC9C,QAAQ,EAAE,mBAAmB;iBAC9B;aACF;SACF;KACF;CACF,CAAC,CAAA","sourcesContent":["import { defineTheme } from './defineTheme.js'\nimport { snap, settle } from './preset-values.js'\n\nexport const radiant = defineTheme({\n id: 'radiant',\n name: 'Radiant',\n tokens: {\n color: {\n surface: '#ffffff',\n foreground: '#292a31',\n mutedForeground: '#60636e',\n border: '#d6d8df',\n accent: '#176e5e',\n accentForeground: '#ffffff',\n neutral: '#f0f3f2',\n neutralForeground: '#293b36',\n warning: '#efc355',\n warningForeground: '#44300c',\n danger: '#b52c34',\n dangerForeground: '#ffffff',\n focus: '#247b69',\n placeholder: '#60636e',\n disabledBackground: '#f0f3f2',\n disabledBorder: '#d6d8df',\n invalid: '#b52c34'\n },\n typography: {\n family: \"'Inter', system-ui, sans-serif\",\n bodySize: '1rem',\n smallSize: '0.875rem',\n headingSize: '1.25rem',\n bodyWeight: 400,\n labelWeight: 600,\n headingWeight: 700,\n letterSpacing: '-0.011em'\n },\n control: {\n small: {\n height: '2rem',\n paddingInline: '0.75rem',\n fontSize: '0.8125rem',\n indicatorSize: '1rem'\n },\n medium: {\n height: '2.5rem',\n paddingInline: '1rem',\n fontSize: '0.875rem',\n indicatorSize: '1.125rem'\n },\n large: {\n height: '3rem',\n paddingInline: '1.375rem',\n fontSize: '0.9375rem',\n indicatorSize: '1.25rem'\n },\n radius: '0.5rem',\n cornerShape: 'round',\n borderWidth: '1px',\n borderStyle: 'solid'\n },\n surface: {\n canvas: '#f7faf9',\n radius: '0.5rem',\n cornerShape: 'round',\n borderWidth: '1px',\n borderStyle: 'solid',\n padding: '1.5rem',\n gap: '1rem',\n shadow: '0 1px 3px rgb(0 0 0 / 0.08)',\n overlayShadow: '0 20px 60px rgb(0 0 0 / 0.22)',\n backdrop: 'rgb(15 12 25 / 0.45)'\n },\n focus: {\n width: '2px',\n offset: '2px',\n style: 'solid'\n },\n motion: {\n pressDuration: '80ms',\n pressEase: snap,\n releaseDuration: '160ms',\n releaseEase: settle,\n colorDuration: '150ms',\n disclosureDuration: '180ms'\n },\n state: { disabledOpacity: 0.5 }\n },\n components: {\n button: {\n fontWeight: 550,\n shadow: '0 1px 2px 0 rgb(0 0 0 / 0.06)',\n shadowPressed: '0 1px 2px 0 rgb(0 0 0 / 0.06)',\n sheen: 0,\n highlight: 0,\n pressScale: 0.97\n }\n },\n modes: {\n dark: {\n tokens: {\n color: {\n surface: '#1a2322',\n foreground: '#edf5f2',\n mutedForeground: '#b0c1ba',\n border: '#536760',\n accent: '#78d8be',\n accentForeground: '#102d25',\n neutral: '#2a3e37',\n neutralForeground: '#e1f3eb',\n warning: '#efc355',\n warningForeground: '#352507',\n danger: '#ff9298',\n dangerForeground: '#3c111a',\n focus: '#85e0c6',\n placeholder: '#b0c1ba',\n disabledBackground: '#2a3e37',\n disabledBorder: '#536760',\n invalid: '#ff9298'\n },\n surface: {\n canvas: '#101917',\n shadow: '0 1px 4px rgb(0 0 0 / 0.4)',\n overlayShadow: '0 20px 60px rgb(0 0 0 / 0.65)',\n backdrop: 'rgb(0 0 0 / 0.65)'\n }\n }\n }\n }\n})\n"]}
@@ -1,2 +0,0 @@
1
- export declare const sharp: import("./defineTheme.js").Theme;
2
- //# sourceMappingURL=sharp-3d.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sharp-3d.d.ts","sourceRoot":"","sources":["../../../src/themes/sharp-3d.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,kCA0IhB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sharp-3d.js","sourceRoot":"","sources":["../../../src/themes/sharp-3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,KAAK,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ClB,UAAU,EAAE,SAAS;oBACrB,eAAe,EAAE,SAAS;oBAC1B,MAAM,EAAE,SAAS;oBACjB,MAAM,EAAE,SAAS;oBACjB,gBAAgB,EAAE,SAAS;oBAC3B,OAAO,EAAE,SAAS;oBAClB,iBAAiB,EAAE,SAAS;oBAC5B,OAAO,EAAE,SAAS;oBAClB,iBAAiB,EAAE,SAAS;oBAC5B,MAAM,EAAE,SAAS;oBACjB,gBAAgB,EAAE,SAAS;oBAC3B,KAAK,EAAE,SAAS;oBAChB,WAAW,EAAE,SAAS;oBACtB,kBAAkB,EAAE,SAAS;oBAC7B,cAAc,EAAE,SAAS;oBACzB,OAAO,EAAE,SAAS;iBACnB;gBACD,OAAO,EAAE;oBACP,MAAM,EAAE,SAAS;oBACjB,MAAM,EAAE,mCAAmC;oBAC3C,aAAa,EAAE,+BAA+B;oBAC9C,QAAQ,EAAE,mBAAmB;iBAC9B;aACF;SACF;KACF;CACF,CAAC,CAAA","sourcesContent":["import { defineTheme } from './defineTheme.js'\nimport { snap, settle } from './preset-values.js'\n\nexport const sharp = defineTheme({\n id: 'sharp-3d',\n name: 'Sharp 3D',\n tokens: {\n color: {\n surface: '#ffffff',\n foreground: '#111111',\n mutedForeground: '#53504a',\n border: '#111111',\n accent: '#ff90e8',\n accentForeground: '#111111',\n neutral: '#ffffff',\n neutralForeground: '#111111',\n warning: '#ffc900',\n warningForeground: '#111111',\n danger: '#ff5d5d',\n dangerForeground: '#111111',\n focus: '#111111',\n placeholder: '#53504a',\n disabledBackground: '#ffffff',\n disabledBorder: '#111111',\n invalid: '#b52929'\n },\n typography: {\n family: 'system-ui, sans-serif',\n bodySize: '1rem',\n smallSize: '0.875rem',\n headingSize: '1.25rem',\n bodyWeight: 400,\n labelWeight: 600,\n headingWeight: 700,\n letterSpacing: '0'\n },\n control: {\n small: {\n height: '2rem',\n paddingInline: '0.75rem',\n fontSize: '0.8125rem',\n indicatorSize: '1rem'\n },\n medium: {\n height: '2.75rem',\n paddingInline: '1.25rem',\n fontSize: '0.875rem',\n indicatorSize: '1.125rem'\n },\n large: {\n height: '3.25rem',\n paddingInline: '1.5rem',\n fontSize: '0.9375rem',\n indicatorSize: '1.25rem'\n },\n radius: '0px',\n cornerShape: 'round',\n borderWidth: '2px',\n borderStyle: 'solid'\n },\n surface: {\n canvas: '#f4f1ea',\n radius: '0px',\n cornerShape: 'round',\n borderWidth: '2px',\n borderStyle: 'solid',\n padding: '1.5rem',\n gap: '1rem',\n shadow: '4px 4px 0 var(--rad-color-border)',\n overlayShadow: '0 20px 60px rgb(0 0 0 / 0.22)',\n backdrop: 'rgb(15 12 25 / 0.45)'\n },\n focus: {\n width: '2px',\n offset: '0px',\n style: 'solid'\n },\n motion: {\n pressDuration: '60ms',\n pressEase: snap,\n releaseDuration: '120ms',\n releaseEase: settle,\n colorDuration: '150ms',\n disclosureDuration: '180ms'\n },\n state: { disabledOpacity: 0.5 }\n },\n components: {\n button: {\n borderColor: 'var(--rad-color-border)',\n radiusPressed: '0px',\n textTransform: 'uppercase',\n fontWeight: 400,\n letterSpacing: '0.02em',\n shadow: '4px 4px 0 0 var(--rad-color-border)',\n shadowPressed: '1px 1px 0 0 var(--rad-color-border)',\n ghostShadow: '4px 4px 0 0 var(--rad-color-border)',\n ghostShadowPressed: '1px 1px 0 0 var(--rad-color-border)',\n sheen: 0,\n highlight: 0,\n glow: '0%',\n pressScale: 1,\n pressShift: '3px',\n pressShiftX: '3px',\n fontFamily: \"'Archivo Black', system-ui, sans-serif\"\n }\n },\n modes: {\n light: {\n components: { link: { hoverColor: 'var(--rad-color-foreground)' } }\n },\n dark: {\n tokens: {\n color: {\n surface: '#27242a',\n foreground: '#fff8ef',\n mutedForeground: '#c5bcb3',\n border: '#fff8ef',\n accent: '#ff90e8',\n accentForeground: '#111111',\n neutral: '#3b3540',\n neutralForeground: '#fff8ef',\n warning: '#ffc900',\n warningForeground: '#111111',\n danger: '#ff8585',\n dangerForeground: '#111111',\n focus: '#fff8ef',\n placeholder: '#c5bcb3',\n disabledBackground: '#3b3540',\n disabledBorder: '#fff8ef',\n invalid: '#ff8585'\n },\n surface: {\n canvas: '#171419',\n shadow: '4px 4px 0 var(--rad-color-border)',\n overlayShadow: '0 20px 60px rgb(0 0 0 / 0.65)',\n backdrop: 'rgb(0 0 0 / 0.65)'\n }\n }\n }\n }\n})\n"]}
@@ -1,2 +0,0 @@
1
- export declare const soft: import("./defineTheme.js").Theme;
2
- //# sourceMappingURL=soft-squircle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"soft-squircle.d.ts","sourceRoot":"","sources":["../../../src/themes/soft-squircle.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,kCA+Hf,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"soft-squircle.js","sourceRoot":"","sources":["../../../src/themes/soft-squircle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAC;IAC9B,EAAE,EAAE,eAAe;IACnB,IAAI,EAAE,eAAe;IACrB,MAAM,EAAE;QACN,KAAK,EAAE;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,SAAS;YACrB,eAAe,EAAE,SAAS;YAC1B,MAAM,EAAE,SAAS;YACjB,MAAM,EAAE,SAAS;YACjB,gBAAgB,EAAE,SAAS;YAC3B,OAAO,EAAE,SAAS;YAClB,iBAAiB,EAAE,SAAS;YAC5B,OAAO,EAAE,SAAS;YAClB,iBAAiB,EAAE,SAAS;YAC5B,MAAM,EAAE,SAAS;YACjB,gBAAgB,EAAE,SAAS;YAC3B,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,SAAS;YACtB,kBAAkB,EAAE,SAAS;YAC7B,cAAc,EAAE,SAAS;YACzB,OAAO,EAAE,SAAS;SACnB;QACD,UAAU,EAAE;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AAE,EAAE,eAAe,EAAE,GAAG,EAAE;KAChC;IACD,UAAU,EAAE;QACV,MAAM,EAAE;YACN,aAAa,EAAE,UAAU;YACzB,UAAU,EAAE,GAAG;YACf,MAAM,EAAE,6BAA6B;YACrC,aAAa,EAAE,6BAA6B;YAC5C,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,KAAK;YACX,SAAS,EAAE,IAAI;YACf,UAAU,EAAE,IAAI;SACjB;KACF;IACD,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,KAAK,EAAE;oBACL,OAAO,EAAE,SAAS;oBAClB,UAAU,EAAE,SAAS;oBACrB,eAAe,EAAE,SAAS;oBAC1B,MAAM,EAAE,SAAS;oBACjB,MAAM,EAAE,SAAS;oBACjB,gBAAgB,EAAE,SAAS;oBAC3B,OAAO,EAAE,SAAS;oBAClB,iBAAiB,EAAE,SAAS;oBAC5B,OAAO,EAAE,SAAS;oBAClB,iBAAiB,EAAE,SAAS;oBAC5B,MAAM,EAAE,SAAS;oBACjB,gBAAgB,EAAE,SAAS;oBAC3B,KAAK,EAAE,SAAS;oBAChB,WAAW,EAAE,SAAS;oBACtB,kBAAkB,EAAE,SAAS;oBAC7B,cAAc,EAAE,SAAS;oBACzB,OAAO,EAAE,SAAS;iBACnB;gBACD,OAAO,EAAE;oBACP,MAAM,EAAE,SAAS;oBACjB,MAAM,EAAE,4BAA4B;oBACpC,aAAa,EAAE,+BAA+B;oBAC9C,QAAQ,EAAE,mBAAmB;iBAC9B;aACF;SACF;KACF;CACF,CAAC,CAAA","sourcesContent":["import { defineTheme } from './defineTheme.js'\nimport { snap, spring } from './preset-values.js'\n\nexport const soft = defineTheme({\n id: 'soft-squircle',\n name: 'Soft squircle',\n tokens: {\n color: {\n surface: '#ffffff',\n foreground: '#24314d',\n mutedForeground: '#5c6880',\n border: '#c5cfe6',\n accent: '#2858c9',\n accentForeground: '#ffffff',\n neutral: '#eaf0ff',\n neutralForeground: '#234581',\n warning: '#efc355',\n warningForeground: '#44300c',\n danger: '#b52c34',\n dangerForeground: '#ffffff',\n focus: '#2858c9',\n placeholder: '#5c6880',\n disabledBackground: '#eaf0ff',\n disabledBorder: '#c5cfe6',\n invalid: '#b52c34'\n },\n typography: {\n family: \"'Nunito', system-ui, sans-serif\",\n bodySize: '1rem',\n smallSize: '0.875rem',\n headingSize: '1.25rem',\n bodyWeight: 400,\n labelWeight: 600,\n headingWeight: 700,\n letterSpacing: '0'\n },\n control: {\n small: {\n height: '2rem',\n paddingInline: '0.75rem',\n fontSize: '0.8125rem',\n indicatorSize: '1rem'\n },\n medium: {\n height: '2.75rem',\n paddingInline: '1.125rem',\n fontSize: '0.875rem',\n indicatorSize: '1.125rem'\n },\n large: {\n height: '3.25rem',\n paddingInline: '1.5rem',\n fontSize: '0.9375rem',\n indicatorSize: '1.25rem'\n },\n radius: '1rem',\n cornerShape: 'squircle',\n borderWidth: '1px',\n borderStyle: 'solid'\n },\n surface: {\n canvas: '#f3f6ff',\n radius: '1rem',\n cornerShape: 'squircle',\n borderWidth: '1px',\n borderStyle: 'solid',\n padding: '1.5rem',\n gap: '1rem',\n shadow: '0 1px 3px rgb(0 0 0 / 0.08)',\n overlayShadow: '0 20px 60px rgb(0 0 0 / 0.22)',\n backdrop: 'rgb(15 12 25 / 0.45)'\n },\n focus: {\n width: '2px',\n offset: '4px',\n style: 'solid'\n },\n motion: {\n pressDuration: '90ms',\n pressEase: snap,\n releaseDuration: '520ms',\n releaseEase: spring,\n colorDuration: '150ms',\n disclosureDuration: '180ms'\n },\n state: { disabledOpacity: 0.5 }\n },\n components: {\n button: {\n radiusPressed: '0.375rem',\n fontWeight: 800,\n shadow: '0 1px 1px rgb(0 0 0 / 0.12)',\n shadowPressed: '0 1px 1px rgb(0 0 0 / 0.12)',\n sheen: 0.08,\n glow: '55%',\n highlight: 0.22,\n pressScale: 0.96\n }\n },\n modes: {\n dark: {\n tokens: {\n color: {\n surface: '#1a2237',\n foreground: '#edf2ff',\n mutedForeground: '#b2c2e5',\n border: '#596d9b',\n accent: '#9cbaff',\n accentForeground: '#142e68',\n neutral: '#2c3b5f',\n neutralForeground: '#e3ebff',\n warning: '#efc355',\n warningForeground: '#352507',\n danger: '#ff9298',\n dangerForeground: '#3c111a',\n focus: '#a9c4ff',\n placeholder: '#b2c2e5',\n disabledBackground: '#2c3b5f',\n disabledBorder: '#596d9b',\n invalid: '#ff9298'\n },\n surface: {\n canvas: '#10182a',\n shadow: '0 1px 4px rgb(0 0 0 / 0.4)',\n overlayShadow: '0 20px 60px rgb(0 0 0 / 0.65)',\n backdrop: 'rgb(0 0 0 / 0.65)'\n }\n }\n }\n }\n})\n"]}
@@ -1,2 +0,0 @@
1
- export declare const ticket: import("./defineTheme.js").Theme;
2
- //# sourceMappingURL=ticket.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ticket.d.ts","sourceRoot":"","sources":["../../../src/themes/ticket.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,kCAyIjB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ticket.js","sourceRoot":"","sources":["../../../src/themes/ticket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,MAAM,GAAG,WAAW,CAAC;IAChC,EAAE,EAAE,QAAQ;IACZ,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE;QACN,KAAK,EAAE;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,SAAS;YACrB,eAAe,EAAE,SAAS;YAC1B,MAAM,EAAE,SAAS;YACjB,MAAM,EAAE,SAAS;YACjB,gBAAgB,EAAE,SAAS;YAC3B,OAAO,EAAE,SAAS;YAClB,iBAAiB,EAAE,SAAS;YAC5B,OAAO,EAAE,SAAS;YAClB,iBAAiB,EAAE,SAAS;YAC5B,MAAM,EAAE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M,EAAE,SAAS;oBACjB,MAAM,EAAE,uEAAuE;oBAC/E,aAAa,EAAE,+BAA+B;oBAC9C,QAAQ,EAAE,mBAAmB;iBAC9B;aACF;SACF;KACF;CACF,CAAC,CAAA","sourcesContent":["import { defineTheme } from './defineTheme.js'\nimport { snap, settle } from './preset-values.js'\n\nexport const ticket = defineTheme({\n id: 'ticket',\n name: 'Ticket',\n tokens: {\n color: {\n surface: '#fff2dc',\n foreground: '#583a27',\n mutedForeground: '#795f46',\n border: '#765036',\n accent: '#a43e19',\n accentForeground: '#fff8eb',\n neutral: '#f4e2c4',\n neutralForeground: '#583a27',\n warning: '#e6b74c',\n warningForeground: '#44300c',\n danger: '#a52b2f',\n dangerForeground: '#ffffff',\n focus: '#a43e19',\n placeholder: '#795f46',\n disabledBackground: '#f4e2c4',\n disabledBorder: '#765036',\n invalid: '#a52b2f'\n },\n typography: {\n family: \"'Barlow Condensed', system-ui, sans-serif\",\n bodySize: '1rem',\n smallSize: '0.875rem',\n headingSize: '1.25rem',\n bodyWeight: 400,\n labelWeight: 600,\n headingWeight: 700,\n letterSpacing: '0'\n },\n control: {\n small: {\n height: '2rem',\n paddingInline: '0.75rem',\n fontSize: '0.8125rem',\n indicatorSize: '1rem'\n },\n medium: {\n height: '2.75rem',\n paddingInline: '1.5rem',\n fontSize: '0.875rem',\n indicatorSize: '1.125rem'\n },\n large: {\n height: '3.25rem',\n paddingInline: '1.5rem',\n fontSize: '0.9375rem',\n indicatorSize: '1.25rem'\n },\n radius: '0.875rem',\n cornerShape: 'scoop',\n borderWidth: '1.5px',\n borderStyle: 'dashed'\n },\n surface: {\n canvas: '#f7ead9',\n radius: '0.875rem',\n cornerShape: 'scoop',\n borderWidth: '1.5px',\n borderStyle: 'dashed',\n padding: '1.5rem',\n gap: '1rem',\n shadow: '0 2px 0 color-mix(in oklab, var(--rad-color-border) 40%, transparent)',\n overlayShadow: '0 20px 60px rgb(0 0 0 / 0.22)',\n backdrop: 'rgb(15 12 25 / 0.45)'\n },\n focus: {\n width: '2px',\n offset: '4px',\n style: 'solid'\n },\n motion: {\n pressDuration: '100ms',\n pressEase: snap,\n releaseDuration: '200ms',\n releaseEase: settle,\n colorDuration: '150ms',\n disclosureDuration: '180ms'\n },\n state: { disabledOpacity: 0.5 }\n },\n components: {\n // Small indicators need a legible box rather than the full-size ticket cutout.\n checkbox: {\n radius: '0.125rem',\n cornerShape: 'round',\n borderWidth: '2px',\n borderStyle: 'solid'\n },\n button: {\n radiusPressed: '0.5rem',\n textTransform: 'uppercase',\n cornerShapePressed: 'round',\n fontWeight: 600,\n letterSpacing: '0.08em',\n shadow: '0 2px 0 0 color-mix(in oklab, var(--rad-color-border) 40%, transparent)',\n shadowPressed: '0 0 #0000',\n sheen: 0,\n highlight: 0,\n pressScale: 1,\n pressShift: '2px'\n }\n },\n modes: {\n dark: {\n tokens: {\n color: {\n surface: '#30261e',\n foreground: '#fff0d5',\n mutedForeground: '#d0b697',\n border: '#b4946c',\n accent: '#ffb18c',\n accentForeground: '#49200f',\n neutral: '#493726',\n neutralForeground: '#ffedce',\n warning: '#efc355',\n warningForeground: '#352507',\n danger: '#ff9298',\n dangerForeground: '#3c111a',\n focus: '#ffc09f',\n placeholder: '#d0b697',\n disabledBackground: '#493726',\n disabledBorder: '#b4946c',\n invalid: '#ff9298'\n },\n surface: {\n canvas: '#1d1712',\n shadow: '0 2px 0 color-mix(in oklab, var(--rad-color-border) 40%, transparent)',\n overlayShadow: '0 20px 60px rgb(0 0 0 / 0.65)',\n backdrop: 'rgb(0 0 0 / 0.65)'\n }\n }\n }\n }\n})\n"]}
package/docs/system.md DELETED
@@ -1,238 +0,0 @@
1
- # Radiant system guide
2
-
3
- Use this guide to theme, compose and customise the ten families in the current
4
- source: Button, Link, Field, Input, Checkbox, RadioGroup (including Radio),
5
- Dialog, Collapsible, Accordion and Card. Their public props and types are in the
6
- [README](../README.md) and package declarations. Changes under
7
- [Unreleased](../CHANGELOG.md#unreleased) require a release before npm consumers
8
- can use them; keep JavaScript and CSS on the same version. Radiant remains
9
- experimental during 0.x.
10
-
11
- ## Compose by responsibility
12
-
13
- Use Button for actions and Link for navigation, including when a Link looks
14
- like a button. Use Field for label/help/error relationships, and native controls
15
- for values and selection. Card groups content; Dialog owns open state and its
16
- native modal lifecycle; Collapsible owns a disclosure; Accordion composes
17
- Collapsible for a selection of sections.
18
-
19
- DialogTrigger and DialogClose compose Button in both default and replacement
20
- paths. They accept Button's presentation and `render` interface. RadioGroup
21
- composes Field. Action-shaped Link shares Button's presentation while retaining
22
- an anchor. Reuse these families when assembling an interface so their theme,
23
- keyboard behavior and relationships travel together.
24
-
25
- Action presentation uses three independent choices:
26
-
27
- | Prop | Values | Default |
28
- | ------------- | ------------------------------------------------------------------------- | ----------------------------- |
29
- | `variant` | `solid`, `soft`, `outline`, `ghost`; Link also accepts `inline`, `subtle` | Button `solid`; Link `inline` |
30
- | `tone` | `accent`, `neutral`, `warning`, `danger` | `accent` |
31
- | `controlSize` | `small`, `medium`, `large` | `medium` |
32
-
33
- Input, Checkbox, Radio and RadioGroup share `controlSize`. Input's numeric native
34
- `size` still measures character width. A variant selects treatment; a tone
35
- selects its semantic palette.
36
-
37
- ## Set up styles and themes
38
-
39
- Choose one CSS route: import `@cognitap/radiant/styles.css` once for compiled
40
- styles, or import `@cognitap/radiant/tailwind.css` alongside your application's
41
- Tailwind entry. The reset is a separate opt-in import. Compiled CSS supplies a
42
- neutral light/dark baseline without a provider. Follow the
43
- [setup examples](../README.md#usage) and [Tailwind route](../README.md#with-tailwind).
44
-
45
- Author a theme with `defineTheme({ id, name, tokens, components, modes })`.
46
- It validates typed partial definitions and resolves immutable light/dark maps.
47
- Choose a built-in preset from the readonly `themes` registry by stable `id`, or
48
- use its named export, such as `radiant`, `glass` or `defaultTheme`. Load preset
49
- fonts in your application; choosing a theme never downloads a font. The
50
- [theming reference](theming.md#define-and-apply-a-theme) owns the authoring
51
- example, token defaults, preset IDs, font families/weights and migration steps.
52
-
53
- For public workshop editing, use the versioned `ThemeDocument` authoring API.
54
- Its token sections compile through `defineTheme` into the same `ThemeScope`
55
- contract. Section imports preserve unrelated settings and deliberate component
56
- exceptions. See [portable documents and import semantics](theming.md#portable-workshop-documents). The pure
57
- `generateTypography` interface and `typography.typesetting` recipe supply opt-in
58
- font assignments, 16 text styles and independent prose/UI rhythms through the
59
- same compiler. Use the semantic HTML hooks and local container documented under
60
- [responsive typography](theming.md#responsive-typography); production component text consumes the shared UI roles. Control sizes retain
61
- their font-size/geometry metrics, and inline links inherit their surrounding text.
62
- The baseline UI roles bridge the legacy typography leaves; recipes and explicit
63
- role values take ownership when supplied. The pure
64
- `generateColorWall` interface supplies calibrated sRGB palette metadata through
65
- `@cognitap/radiant/color`; see [color-wall inputs and output](theming.md#generate-a-color-wall). Use
66
- `colorCalibrationPresets` for independent wall/ramp treatments (Classic, Balanced,
67
- Expressive; Balanced by default), and `recommendColorPalette` to select a limited working set, map light/dark color and
68
- canvas layers, and inspect named contrast pairs before compiling a theme.
69
- Apply these together with bounded geometry using `updateThemeAppearance`; it
70
- updates existing spacing, control and surface roles without removing authored
71
- component exceptions. See [appearance settings](theming.md#apply-palette-spacing-and-surfaces-together).
72
-
73
- | Token group | Shared responsibility |
74
- | ------------ | ---------------------------------------------------------------------------------- |
75
- | `color` | Surface, foreground, borders, focus, invalid/disabled colors and action tone pairs |
76
- | `typography` | Body, label and heading font decisions |
77
- | `control` | Small/medium/large metrics, control shape and borders |
78
- | `surface` | Canvas background, panel shape, spacing, elevation and backdrop |
79
- | `focus` | Outline width, offset and style |
80
- | `motion` | Press/release, color and disclosure timing |
81
- | `spacing` | Label, field, group, header and footer gaps |
82
- | `state` | Disabled opacity |
83
-
84
- Apply a theme with `ThemeScope`, a normal `div` whose props/ref target that
85
- host. `mode` is independently `light`, `dark` or `system`; system follows the
86
- browser preference through CSS. Omitted theme/mode inherit. An explicit named
87
- theme starts afresh from library defaults, then common values, then its mode
88
- layer. Nested `defaultTheme` resets inherited effects as well as colors.
89
-
90
- Within a scope, precedence is **component override → shared role → neutral
91
- baseline**. Promote a decision to `tokens` when it should affect several
92
- families; put a deliberate exception in `components.<family>`. Button-only
93
- fonts/effects stay action-local. `components.radioGroup.gap` spaces options;
94
- `components.radio.labelGap` spaces an option's label. Passive surfaces use
95
- surface roles, and Radio stays round by default.
96
-
97
- Use `ThemeComponentOverrides` for reusable component configuration and
98
- `ThemeStyle` for local `style` values. Public CSS variables follow their typed
99
- paths: `tokens.control.radius` becomes `--rad-control-radius`, and
100
- `components.input.radius` becomes `--rad-input-radius`. Local styles override
101
- generated values on the same host; caller classes merge after defaults. Use the
102
- Tailwind route to generate new utility classes supplied by your application.
103
-
104
- A mode-only scope re-materialises its selected theme. Put token exceptions that
105
- must survive it on a ThemeScope's inline `style` or in the theme definition;
106
- intervening ordinary DOM/stylesheet overrides are not recovered automatically.
107
- A new named theme clears inherited exceptions. See the precise
108
- [scope and override rules](theming.md#scopes-mode-and-overrides).
109
-
110
- ## Find the actual styling and ref target
111
-
112
- Root `className`, `style`, native attributes and `ref` reach the documented
113
- host. A convenience label does not move input props to its wrapper.
114
-
115
- | Public family / parts | Host and target |
116
- | --------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
117
- | Button / Link | `button` / `a`, including through a compatible `render` adapter |
118
- | Field | `div` in control layout; `fieldset` in group layout |
119
- | Input / Checkbox / Radio | Native `input`; Checkbox/Radio wrapper, label and indicator use `parts` |
120
- | RadioGroup | Field's `fieldset`; `parts.options` styles its internal option grid |
121
- | Dialog | Logical state owner with no DOM/style/ref target |
122
- | DialogTrigger / DialogClose | Button's `button` host |
123
- | DialogContent / DialogTitle / DialogDescription | `dialog` / `h2` / `p` |
124
- | Collapsible / CollapsibleTrigger / CollapsibleContent | `details` / `summary` / `div` |
125
- | Accordion / AccordionItem / AccordionTrigger / AccordionContent | `div` / Collapsible `details` / `summary` / `div`; trigger `level` adds a heading without moving the ref |
126
- | Card / CardHeader / CardContent / CardFooter | Passive `div` hosts |
127
- | CardTitle / CardDescription | Heading selected by `level` / `p` |
128
-
129
- Field exposes `parts.label`, `description`, `error` and `required`;
130
- Checkbox/Radio expose `parts.wrapper`, `label` and `indicator`. RadioGroup adds
131
- `parts.options` to Field's hooks. Each hook accepts only `className` and `style`.
132
- Use the explicit compound parts for layout where a family provides them.
133
-
134
- `data-slot` is a set of identity tokens. Select with membership, for example
135
- `[data-slot~="dialog-trigger"]`. Composed identities retain their base:
136
- `button dialog-trigger`, `button dialog-close`, `field radio-group`,
137
- `collapsible accordion-item`, `collapsible-trigger accordion-trigger`, and
138
- `collapsible-content accordion-content`. Caller identities are additive only
139
- where the family's props support them; owned identities remain protected.
140
-
141
- Style actual state: native `:disabled`, `:checked`, `:indeterminate` and `open`;
142
- Button pending uses `aria-busy`; Field/RadioGroup expose presence-based
143
- `data-invalid`, `data-disabled` and `data-required`. DialogContent and the
144
- disclosure parts expose `data-state="open" | "closed"`. Actions expose
145
- `data-variant`, `data-tone` and `data-control-size`; controls expose
146
- `data-control-size` independently of native Input `size`. There is no universal
147
- synthetic state attribute to substitute for native or ARIA state.
148
-
149
- ## State and forms
150
-
151
- Keep one owner per state axis for a mount. Use `value`/`checked`/`open` for
152
- controlled state and their `default*` counterparts for initial uncontrolled
153
- state. Accordion uses `value`/`defaultValue` and a fixed single/multiple type.
154
- Remount to change ownership or selection type. Controlled callbacks request a
155
- change; the consumer decides whether to accept it. No-op requests and prop
156
- synchronisation do not create another semantic change callback.
157
-
158
- Text changes and blur retain native event meanings. RadioGroup owns its options'
159
- name/selection; `value={null}` clears a controlled group and `""` remains a real
160
- option value. Choose one state-writing callback, `onValueChange` or `onChange`.
161
- Checkbox's `checked` is boolean state; its `value` is submitted data.
162
-
163
- Field owns IDs, label/help/error relationships and inherited metadata. Give an
164
- explicit control ID through Field's `controlId`. Radiant controls consume those
165
- relationships; a native adapter uses `children(controlProps)` and forwards them
166
- to its control. Owned error/disabled/required state cannot be erased by a child.
167
- A plain Field group preserves native fieldset/first-legend behavior and does
168
- not make every checkbox required. RadioGroup applies its requirement to the
169
- mutually exclusive native choice.
170
-
171
- The consumer owns validation rules/timing, touched/dirty state, error text,
172
- submission and persistence. Native reset restores uncontrolled controls; a
173
- controlled adapter resets its values and validation metadata together. Form
174
- reset does not reset Dialog or disclosure state. Dialog retains its DOM form
175
- association; compose one form without nesting forms. TanStack is an optional
176
- reference adapter, outside the runtime dependency and public export surface.
177
-
178
- For cancellable activation, guards run first, the consumer handler runs next,
179
- and the library requests a change only when `defaultPrevented` is false.
180
- Native change/toggle/blur are observations, not vetoable requests. Preserve one
181
- handler chain and the real host ref, including callback-ref cleanup. Public
182
- `useField`, `useDialog`, `useCollapsible` and `useAccordion` return null outside
183
- their owner; required parts fail clearly when misplaced. The
184
- [React binding reference](https://github.com/cognitap/radiant/blob/main/docs/react-bindings.md)
185
- details lifecycle, reconciliation, SSR and hydration behavior.
186
-
187
- ## Preserve behavior when customising
188
-
189
- Button, Link and Dialog actions support `render(resolvedNativeProps)`. Forward
190
- all resolved props, ref and children to one compatible button or anchor;
191
- presentation is already resolved. A router adapter keeps native modified-click,
192
- target and download behavior. Preserve Button's resolved pending children and
193
- guarded handler; passing them through another Button would wrap/style them
194
- again. Field's control-prop callback adapts relationships rather than replacing
195
- Field's host.
196
-
197
- Keep native controls and labels operable, accessible names/description IDs
198
- connected, and focus/invalid/disabled/pending cues visible. Closed Dialog/details
199
- content stays mounted and hidden by the native/functional styles. Preserve
200
- Dialog bounds, scrolling, top-layer modal focus behavior, and a direct-child
201
- summary for details. Keep decorative indicators hidden from assistive technology.
202
- Preserve reduced-motion alternatives and forced-colors readability when changing
203
- paint, motion or hosts. A type-correct adapter alone does not prove these behaviors.
204
-
205
- ## Reuse the canonical examples
206
-
207
- Use the global Storybook **Theme** and **Mode** controls in Canvas and Docs.
208
- Ordinary stories inherit them; **System → Theming → Comparison** is the named
209
- preset comparison. Follow the [Storybook inspection guide](https://github.com/cognitap/radiant/blob/main/docs/storybook.md).
210
-
211
- | Need | Canonical live source |
212
- | --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
213
- | One labelled control and local override | [Input Default / Customisation](https://github.com/cognitap/radiant/blob/main/src/Input.stories.tsx) |
214
- | Native form, optional TanStack owner, the same form in Card or Dialog | [ProfileExample](https://github.com/cognitap/radiant/blob/main/.storybook/examples/ProfileForm.tsx), exposed by [Recipes → Forms](https://github.com/cognitap/radiant/blob/main/src/Form.stories.tsx); choose its `placement` control |
215
- | Assembled interface across all ten families | [WorkspaceSettings](https://github.com/cognitap/radiant/blob/main/.storybook/examples/WorkspaceSettings.tsx), exposed by [Recipes → Workspace → Settings](https://github.com/cognitap/radiant/blob/main/src/Workspace.stories.tsx) |
216
-
217
- These are development examples using public Radiant names, not package exports.
218
- Adapt the existing form's state owner and placement rather than copying a second
219
- form or replacing its actions with bespoke styled hosts. Application imports
220
- come from `@cognitap/radiant`; implementation deep imports are unsupported.
221
-
222
- The installed composition checkpoint reuses these exact recipes with public
223
- package imports. When copying TypeScript recipe sources into an application,
224
- follow its local module-resolution rules: Cognitap's current Next/Turbopack
225
- setup needs extensionless local TSX imports, whereas the NodeNext installed
226
- fixture uses `.js` specifiers. This adaptation does not change Radiant's compiled
227
- JavaScript imports. See the [checkpoint commands](https://github.com/cognitap/radiant/blob/main/docs/testing.md#evidence-and-readiness).
228
- An older registry package cannot verify newer exported components; use a matching
229
- build/archive checkpoint and keep the registry limitation explicit until release.
230
-
231
- For a change to this contract, update its guide/reference and canonical example
232
- together, then run the [verification gate](https://github.com/cognitap/radiant/blob/main/docs/testing.md).
233
- Use the [browser/AT matrix](accessibility.md) for target combinations, manual
234
- scenarios, exact-version evidence and unverified gaps.
235
- Check relevant keyboard/form/ref behavior and actual appearance in both modes;
236
- automated accessibility results do not establish complete visual or assistive
237
- technology readiness. Historical design decisions and acceptance sketches remain
238
- in the [harmonisation record](https://github.com/cognitap/radiant/blob/main/docs/contracts/README.md).
File without changes