@promptctl/rich-js 0.16.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/README.md +14 -27
  2. package/package.json +7 -3
  3. package/dist/core/box.d.ts +0 -144
  4. package/dist/core/box.js +0 -391
  5. package/dist/core/cells.d.ts +0 -148
  6. package/dist/core/cells.js +0 -266
  7. package/dist/core/color.d.ts +0 -229
  8. package/dist/core/color.js +0 -992
  9. package/dist/core/console.d.ts +0 -142
  10. package/dist/core/console.js +0 -477
  11. package/dist/core/emoji.d.ts +0 -24
  12. package/dist/core/emoji.js +0 -391
  13. package/dist/core/export-html.d.ts +0 -24
  14. package/dist/core/export-html.js +0 -106
  15. package/dist/core/export-lines.d.ts +0 -121
  16. package/dist/core/export-lines.js +0 -141
  17. package/dist/core/highlighter.d.ts +0 -33
  18. package/dist/core/highlighter.js +0 -124
  19. package/dist/core/json.d.ts +0 -27
  20. package/dist/core/json.js +0 -53
  21. package/dist/core/markup.d.ts +0 -97
  22. package/dist/core/markup.js +0 -619
  23. package/dist/core/measure.d.ts +0 -27
  24. package/dist/core/measure.js +0 -61
  25. package/dist/core/oklch.d.ts +0 -161
  26. package/dist/core/oklch.js +0 -312
  27. package/dist/core/osc8.d.ts +0 -68
  28. package/dist/core/osc8.js +0 -90
  29. package/dist/core/pretty.d.ts +0 -141
  30. package/dist/core/pretty.js +0 -472
  31. package/dist/core/protocol.d.ts +0 -137
  32. package/dist/core/protocol.js +0 -101
  33. package/dist/core/render.d.ts +0 -69
  34. package/dist/core/render.js +0 -140
  35. package/dist/core/segment.d.ts +0 -142
  36. package/dist/core/segment.js +0 -433
  37. package/dist/core/spinnerData.d.ts +0 -10
  38. package/dist/core/spinnerData.js +0 -115
  39. package/dist/core/strip.d.ts +0 -139
  40. package/dist/core/strip.js +0 -302
  41. package/dist/core/style.d.ts +0 -149
  42. package/dist/core/style.js +0 -741
  43. package/dist/core/subscription.d.ts +0 -12
  44. package/dist/core/subscription.js +0 -12
  45. package/dist/core/text.d.ts +0 -255
  46. package/dist/core/text.js +0 -990
  47. package/dist/core/wrap.d.ts +0 -41
  48. package/dist/core/wrap.js +0 -127
  49. package/dist/host/host-stream.d.ts +0 -30
  50. package/dist/host/host-stream.js +0 -35
  51. package/dist/host/index.d.ts +0 -3
  52. package/dist/host/index.js +0 -2
  53. package/dist/host/terminal-host.d.ts +0 -143
  54. package/dist/host/terminal-host.js +0 -132
  55. package/dist/index.d.ts +0 -87
  56. package/dist/index.js +0 -104
  57. package/dist/node/prompt.d.ts +0 -21
  58. package/dist/node/prompt.js +0 -30
  59. package/dist/node/save.d.ts +0 -17
  60. package/dist/node/save.js +0 -21
  61. package/dist/node/terminal-host.d.ts +0 -84
  62. package/dist/node/terminal-host.js +0 -160
  63. package/dist/node/traceback.d.ts +0 -27
  64. package/dist/node/traceback.js +0 -112
  65. package/dist/renderables/align.d.ts +0 -16
  66. package/dist/renderables/align.js +0 -46
  67. package/dist/renderables/columns.d.ts +0 -61
  68. package/dist/renderables/columns.js +0 -168
  69. package/dist/renderables/constrain.d.ts +0 -15
  70. package/dist/renderables/constrain.js +0 -37
  71. package/dist/renderables/flexStrip.d.ts +0 -41
  72. package/dist/renderables/flexStrip.js +0 -200
  73. package/dist/renderables/group.d.ts +0 -11
  74. package/dist/renderables/group.js +0 -15
  75. package/dist/renderables/layout.d.ts +0 -92
  76. package/dist/renderables/layout.js +0 -315
  77. package/dist/renderables/live.d.ts +0 -47
  78. package/dist/renderables/live.js +0 -131
  79. package/dist/renderables/markdown.d.ts +0 -24
  80. package/dist/renderables/markdown.js +0 -182
  81. package/dist/renderables/padding.d.ts +0 -38
  82. package/dist/renderables/padding.js +0 -140
  83. package/dist/renderables/panel.d.ts +0 -116
  84. package/dist/renderables/panel.js +0 -322
  85. package/dist/renderables/progress.d.ts +0 -90
  86. package/dist/renderables/progress.js +0 -241
  87. package/dist/renderables/progressBar.d.ts +0 -31
  88. package/dist/renderables/progressBar.js +0 -52
  89. package/dist/renderables/prompt.d.ts +0 -49
  90. package/dist/renderables/prompt.js +0 -125
  91. package/dist/renderables/rule.d.ts +0 -24
  92. package/dist/renderables/rule.js +0 -90
  93. package/dist/renderables/spinner.d.ts +0 -29
  94. package/dist/renderables/spinner.js +0 -64
  95. package/dist/renderables/status.d.ts +0 -23
  96. package/dist/renderables/status.js +0 -60
  97. package/dist/renderables/syntax.d.ts +0 -35
  98. package/dist/renderables/syntax.js +0 -114
  99. package/dist/renderables/table.d.ts +0 -182
  100. package/dist/renderables/table.js +0 -697
  101. package/dist/renderables/traceback.d.ts +0 -31
  102. package/dist/renderables/traceback.js +0 -109
  103. package/dist/renderables/tree.d.ts +0 -54
  104. package/dist/renderables/tree.js +0 -159
  105. package/dist/template-bindings/color-funcs.d.ts +0 -87
  106. package/dist/template-bindings/color-funcs.js +0 -219
  107. package/dist/template-bindings/helpers.d.ts +0 -24
  108. package/dist/template-bindings/helpers.js +0 -48
  109. package/dist/template-bindings/index.d.ts +0 -107
  110. package/dist/template-bindings/index.js +0 -144
  111. package/dist/template-bindings/palette-funcs.d.ts +0 -94
  112. package/dist/template-bindings/palette-funcs.js +0 -151
  113. package/dist/template-bindings/style-funcs.d.ts +0 -28
  114. package/dist/template-bindings/style-funcs.js +0 -151
  115. package/dist/themes/buildPalette.d.ts +0 -36
  116. package/dist/themes/buildPalette.js +0 -56
  117. package/dist/themes/colorMath.d.ts +0 -82
  118. package/dist/themes/colorMath.js +0 -254
  119. package/dist/themes/colorRef.d.ts +0 -51
  120. package/dist/themes/colorRef.js +0 -96
  121. package/dist/themes/data/atom-one-dark.d.ts +0 -3
  122. package/dist/themes/data/atom-one-dark.js +0 -158
  123. package/dist/themes/data/atom-one-light.d.ts +0 -3
  124. package/dist/themes/data/atom-one-light.js +0 -158
  125. package/dist/themes/data/catppuccin-frappe.d.ts +0 -3
  126. package/dist/themes/data/catppuccin-frappe.js +0 -158
  127. package/dist/themes/data/catppuccin-latte.d.ts +0 -3
  128. package/dist/themes/data/catppuccin-latte.js +0 -158
  129. package/dist/themes/data/catppuccin-macchiato.d.ts +0 -3
  130. package/dist/themes/data/catppuccin-macchiato.js +0 -158
  131. package/dist/themes/data/catppuccin-mocha.d.ts +0 -3
  132. package/dist/themes/data/catppuccin-mocha.js +0 -158
  133. package/dist/themes/data/cyberpunk.d.ts +0 -17
  134. package/dist/themes/data/cyberpunk.js +0 -191
  135. package/dist/themes/data/default.d.ts +0 -3
  136. package/dist/themes/data/default.js +0 -158
  137. package/dist/themes/data/dracula.d.ts +0 -3
  138. package/dist/themes/data/dracula.js +0 -158
  139. package/dist/themes/data/flexoki.d.ts +0 -3
  140. package/dist/themes/data/flexoki.js +0 -158
  141. package/dist/themes/data/gruvbox.d.ts +0 -3
  142. package/dist/themes/data/gruvbox.js +0 -158
  143. package/dist/themes/data/index.d.ts +0 -35
  144. package/dist/themes/data/index.js +0 -64
  145. package/dist/themes/data/monokai.d.ts +0 -3
  146. package/dist/themes/data/monokai.js +0 -158
  147. package/dist/themes/data/nord.d.ts +0 -3
  148. package/dist/themes/data/nord.js +0 -158
  149. package/dist/themes/data/rose-pine-dawn.d.ts +0 -3
  150. package/dist/themes/data/rose-pine-dawn.js +0 -158
  151. package/dist/themes/data/rose-pine-moon.d.ts +0 -3
  152. package/dist/themes/data/rose-pine-moon.js +0 -158
  153. package/dist/themes/data/rose-pine.d.ts +0 -3
  154. package/dist/themes/data/rose-pine.js +0 -158
  155. package/dist/themes/data/solarized-dark.d.ts +0 -3
  156. package/dist/themes/data/solarized-dark.js +0 -158
  157. package/dist/themes/data/solarized-light.d.ts +0 -3
  158. package/dist/themes/data/solarized-light.js +0 -158
  159. package/dist/themes/data/svg-export.d.ts +0 -3
  160. package/dist/themes/data/svg-export.js +0 -158
  161. package/dist/themes/data/textual-ansi.d.ts +0 -3
  162. package/dist/themes/data/textual-ansi.js +0 -158
  163. package/dist/themes/data/textual-dark.d.ts +0 -3
  164. package/dist/themes/data/textual-dark.js +0 -158
  165. package/dist/themes/data/textual-light.d.ts +0 -3
  166. package/dist/themes/data/textual-light.js +0 -158
  167. package/dist/themes/data/tokyo-night.d.ts +0 -3
  168. package/dist/themes/data/tokyo-night.js +0 -158
  169. package/dist/themes/data/types.d.ts +0 -15
  170. package/dist/themes/data/types.js +0 -1
  171. package/dist/themes/palette.d.ts +0 -21
  172. package/dist/themes/palette.js +0 -28
  173. package/dist/themes/ramp.d.ts +0 -83
  174. package/dist/themes/ramp.js +0 -122
  175. package/dist/themes/registry.d.ts +0 -43
  176. package/dist/themes/registry.js +0 -82
  177. package/dist/themes/terminalThemes.d.ts +0 -54
  178. package/dist/themes/terminalThemes.js +0 -68
  179. package/dist/themes/transpose.d.ts +0 -87
  180. package/dist/themes/transpose.js +0 -138
  181. package/dist/widgets/button.d.ts +0 -49
  182. package/dist/widgets/button.js +0 -206
  183. package/dist/widgets/checkbox.d.ts +0 -41
  184. package/dist/widgets/checkbox.js +0 -155
  185. package/dist/widgets/dropdown.d.ts +0 -67
  186. package/dist/widgets/dropdown.js +0 -453
  187. package/dist/widgets/event-router.d.ts +0 -78
  188. package/dist/widgets/event-router.js +0 -622
  189. package/dist/widgets/focus-manager.d.ts +0 -26
  190. package/dist/widgets/focus-manager.js +0 -193
  191. package/dist/widgets/index.d.ts +0 -22
  192. package/dist/widgets/index.js +0 -15
  193. package/dist/widgets/screen.d.ts +0 -98
  194. package/dist/widgets/screen.js +0 -542
  195. package/dist/widgets/slider.d.ts +0 -57
  196. package/dist/widgets/slider.js +0 -270
  197. package/dist/widgets/static-item.d.ts +0 -40
  198. package/dist/widgets/static-item.js +0 -60
  199. package/dist/widgets/text-input.d.ts +0 -274
  200. package/dist/widgets/text-input.js +0 -1162
  201. package/dist/widgets/toggle.d.ts +0 -44
  202. package/dist/widgets/toggle.js +0 -179
  203. package/dist/widgets/types.d.ts +0 -108
  204. package/dist/widgets/types.js +0 -31
  205. package/dist/widgets/widget-base.d.ts +0 -42
  206. package/dist/widgets/widget-base.js +0 -173
@@ -1,158 +0,0 @@
1
- const theme = {
2
- name: "textual-dark",
3
- dark: true,
4
- vars: {
5
- "accent": "#FEA62B",
6
- "accent-darken-1": "#E7920D",
7
- "accent-darken-2": "#CF7E00",
8
- "accent-darken-3": "#B86B00",
9
- "accent-lighten-1": "#FFBA41",
10
- "accent-lighten-2": "#FFCF56",
11
- "accent-lighten-3": "#FFE46B",
12
- "accent-muted": "#593E19",
13
- "background": "#121212",
14
- "background-darken-1": "#000000",
15
- "background-darken-2": "#000000",
16
- "background-darken-3": "#000000",
17
- "background-lighten-1": "#212121",
18
- "background-lighten-2": "#313131",
19
- "background-lighten-3": "#414141",
20
- "block-cursor-background": "#0178D4",
21
- "block-cursor-blurred-background": "#0178D44C",
22
- "block-cursor-blurred-foreground": "#E0E0E0",
23
- "block-cursor-foreground": "#FFFFFFDD",
24
- "block-hover-background": "#FFFFFF19",
25
- "boost": "#FFFFFF0A",
26
- "boost-darken-1": "#E9E9E90A",
27
- "boost-darken-2": "#D4D4D40A",
28
- "boost-darken-3": "#BFBFBF0A",
29
- "boost-lighten-1": "#FFFFFF0A",
30
- "boost-lighten-2": "#FFFFFF0A",
31
- "boost-lighten-3": "#FFFFFF0A",
32
- "border": "#0178D4",
33
- "border-blurred": "#191919",
34
- "button-color-foreground": "#FFFFFFDD",
35
- "button-foreground": "#E0E0E0",
36
- "error": "#B93C5B",
37
- "error-darken-1": "#A32549",
38
- "error-darken-2": "#8D0638",
39
- "error-darken-3": "#780028",
40
- "error-lighten-1": "#D0506D",
41
- "error-lighten-2": "#E76580",
42
- "error-lighten-3": "#FE7993",
43
- "error-muted": "#441E27",
44
- "footer-background": "#242F38",
45
- "footer-description-background": "#00000000",
46
- "footer-description-foreground": "#E0E0E0",
47
- "footer-foreground": "#E0E0E0",
48
- "footer-item-background": "#00000000",
49
- "footer-key-background": "#00000000",
50
- "footer-key-foreground": "#FFA62B",
51
- "foreground": "#E0E0E0",
52
- "foreground-darken-1": "#CACACA",
53
- "foreground-darken-2": "#B6B6B6",
54
- "foreground-darken-3": "#A2A2A2",
55
- "foreground-disabled": "#E0E0E060",
56
- "foreground-lighten-1": "#F5F5F5",
57
- "foreground-lighten-2": "#FFFFFF",
58
- "foreground-lighten-3": "#FFFFFF",
59
- "foreground-muted": "#E0E0E099",
60
- "input-cursor-background": "#E0E0E0",
61
- "input-cursor-foreground": "#121212",
62
- "input-selection-background": "#368AE966",
63
- "link-background": "#00000000",
64
- "link-background-hover": "#0178D4",
65
- "link-color": "#FFFFFFDD",
66
- "link-color-hover": "#FFFFFFDD",
67
- "markdown-h1-background": "#00000000",
68
- "markdown-h1-color": "#0178D4",
69
- "markdown-h2-background": "#00000000",
70
- "markdown-h2-color": "#0178D4",
71
- "markdown-h3-background": "#00000000",
72
- "markdown-h3-color": "#0178D4",
73
- "markdown-h4-background": "#00000000",
74
- "markdown-h4-color": "#E0E0E0",
75
- "markdown-h5-background": "#00000000",
76
- "markdown-h5-color": "#E0E0E0",
77
- "markdown-h6-background": "#00000000",
78
- "markdown-h6-color": "#E0E0E099",
79
- "panel": "#242F38",
80
- "panel-darken-1": "#141F27",
81
- "panel-darken-2": "#000F18",
82
- "panel-darken-3": "#000003",
83
- "panel-lighten-1": "#343F49",
84
- "panel-lighten-2": "#45505A",
85
- "panel-lighten-3": "#57626D",
86
- "primary": "#0178D4",
87
- "primary-background": "#33424E",
88
- "primary-background-darken-1": "#21313E",
89
- "primary-background-darken-2": "#0F212F",
90
- "primary-background-darken-3": "#0F212F",
91
- "primary-background-lighten-1": "#45525D",
92
- "primary-background-lighten-2": "#57636D",
93
- "primary-background-lighten-3": "#69747D",
94
- "primary-darken-1": "#0065BE",
95
- "primary-darken-2": "#0053AA",
96
- "primary-darken-3": "#004295",
97
- "primary-lighten-1": "#368AE9",
98
- "primary-lighten-2": "#539EFF",
99
- "primary-lighten-3": "#6DB2FF",
100
- "primary-muted": "#0C304C",
101
- "scrollbar": "#003054",
102
- "scrollbar-active": "#0178D4",
103
- "scrollbar-background": "#000000",
104
- "scrollbar-background-active": "#000000",
105
- "scrollbar-background-hover": "#000000",
106
- "scrollbar-corner-color": "#000000",
107
- "scrollbar-hover": "#003C6A",
108
- "secondary": "#004578",
109
- "secondary-background": "#333B42",
110
- "secondary-background-darken-1": "#212A31",
111
- "secondary-background-darken-2": "#0F1921",
112
- "secondary-background-darken-3": "#0F1921",
113
- "secondary-background-lighten-1": "#454C52",
114
- "secondary-background-lighten-2": "#575E63",
115
- "secondary-background-lighten-3": "#696F74",
116
- "secondary-darken-1": "#003465",
117
- "secondary-darken-2": "#002452",
118
- "secondary-darken-3": "#001541",
119
- "secondary-lighten-1": "#23568B",
120
- "secondary-lighten-2": "#3B689F",
121
- "secondary-lighten-3": "#507BB3",
122
- "secondary-muted": "#0C2130",
123
- "success": "#4EBF71",
124
- "success-darken-1": "#36AA5E",
125
- "success-darken-2": "#18954B",
126
- "success-darken-3": "#008139",
127
- "success-lighten-1": "#64D484",
128
- "success-lighten-2": "#7AE998",
129
- "success-lighten-3": "#8FFFAC",
130
- "success-muted": "#24452E",
131
- "surface": "#1E1E1E",
132
- "surface-active": "#2A2A2A",
133
- "surface-darken-1": "#0D0D0D",
134
- "surface-darken-2": "#000000",
135
- "surface-darken-3": "#000000",
136
- "surface-lighten-1": "#2D2D2D",
137
- "surface-lighten-2": "#3E3E3E",
138
- "surface-lighten-3": "#4F4F4F",
139
- "text": "#FFFFFFDD",
140
- "text-accent": "#FFC473",
141
- "text-disabled": "#FFFFFF60",
142
- "text-error": "#D17E92",
143
- "text-muted": "#FFFFFF99",
144
- "text-primary": "#57A5E2",
145
- "text-secondary": "#5684A5",
146
- "text-success": "#8AD4A1",
147
- "text-warning": "#FFC473",
148
- "warning": "#FEA62B",
149
- "warning-darken-1": "#E7920D",
150
- "warning-darken-2": "#CF7E00",
151
- "warning-darken-3": "#B86B00",
152
- "warning-lighten-1": "#FFBA41",
153
- "warning-lighten-2": "#FFCF56",
154
- "warning-lighten-3": "#FFE46B",
155
- "warning-muted": "#593E19",
156
- },
157
- };
158
- export default theme;
@@ -1,3 +0,0 @@
1
- import type { ThemePaletteData } from "./types.js";
2
- declare const theme: ThemePaletteData;
3
- export default theme;
@@ -1,158 +0,0 @@
1
- const theme = {
2
- name: "textual-light",
3
- dark: false,
4
- vars: {
5
- "accent": "#FEA62B",
6
- "accent-darken-1": "#E7920D",
7
- "accent-darken-2": "#CF7E00",
8
- "accent-darken-3": "#B86B00",
9
- "accent-lighten-1": "#FFBA41",
10
- "accent-lighten-2": "#FFCF56",
11
- "accent-lighten-3": "#FFE46B",
12
- "accent-muted": "#E9CEA9",
13
- "background": "#E0E0E0",
14
- "background-darken-1": "#CACACA",
15
- "background-darken-2": "#B6B6B6",
16
- "background-darken-3": "#A2A2A2",
17
- "background-lighten-1": "#F5F5F5",
18
- "background-lighten-2": "#FFFFFF",
19
- "background-lighten-3": "#FFFFFF",
20
- "block-cursor-background": "#004578",
21
- "block-cursor-blurred-background": "#0045784C",
22
- "block-cursor-blurred-foreground": "#1F1F1F",
23
- "block-cursor-foreground": "#000000DD",
24
- "block-hover-background": "#00000019",
25
- "boost": "#0000000A",
26
- "boost-darken-1": "#0000000A",
27
- "boost-darken-2": "#0000000A",
28
- "boost-darken-3": "#0000000A",
29
- "boost-lighten-1": "#1616160A",
30
- "boost-lighten-2": "#2525250A",
31
- "boost-lighten-3": "#3535350A",
32
- "border": "#004578",
33
- "border-blurred": "#D0D1D0",
34
- "button-color-foreground": "#000000DD",
35
- "button-foreground": "#1F1F1F",
36
- "error": "#B93C5B",
37
- "error-darken-1": "#A32549",
38
- "error-darken-2": "#8D0638",
39
- "error-darken-3": "#780028",
40
- "error-lighten-1": "#D0506D",
41
- "error-lighten-2": "#E76580",
42
- "error-lighten-3": "#FE7993",
43
- "error-muted": "#D4AEB8",
44
- "footer-background": "#D0D0D0",
45
- "footer-description-background": "#00000000",
46
- "footer-description-foreground": "#1F1F1F",
47
- "footer-foreground": "#1F1F1F",
48
- "footer-item-background": "#00000000",
49
- "footer-key-background": "#00000000",
50
- "footer-key-foreground": "#0178D4",
51
- "foreground": "#1F1F1F",
52
- "foreground-darken-1": "#0E0E0E",
53
- "foreground-darken-2": "#000000",
54
- "foreground-darken-3": "#000000",
55
- "foreground-disabled": "#1F1F1F60",
56
- "foreground-lighten-1": "#2E2E2E",
57
- "foreground-lighten-2": "#3F3F3F",
58
- "foreground-lighten-3": "#505050",
59
- "foreground-muted": "#1F1F1F99",
60
- "input-cursor-background": "#1F1F1F",
61
- "input-cursor-foreground": "#E0E0E0",
62
- "input-selection-background": "#23568B66",
63
- "link-background": "#00000000",
64
- "link-background-hover": "#004578",
65
- "link-color": "#000000DD",
66
- "link-color-hover": "#000000DD",
67
- "markdown-h1-background": "#00000000",
68
- "markdown-h1-color": "#004578",
69
- "markdown-h2-background": "#00000000",
70
- "markdown-h2-color": "#004578",
71
- "markdown-h3-background": "#00000000",
72
- "markdown-h3-color": "#004578",
73
- "markdown-h4-background": "#00000000",
74
- "markdown-h4-color": "#1F1F1F",
75
- "markdown-h5-background": "#00000000",
76
- "markdown-h5-color": "#1F1F1F",
77
- "markdown-h6-background": "#00000000",
78
- "markdown-h6-color": "#1F1F1F99",
79
- "panel": "#D0D0D0",
80
- "panel-darken-1": "#BBBBBB",
81
- "panel-darken-2": "#A6A6A6",
82
- "panel-darken-3": "#939393",
83
- "panel-lighten-1": "#E5E5E5",
84
- "panel-lighten-2": "#FAFAFA",
85
- "panel-lighten-3": "#FFFFFF",
86
- "primary": "#004578",
87
- "primary-background": "#004578",
88
- "primary-background-darken-1": "#003465",
89
- "primary-background-darken-2": "#002452",
90
- "primary-background-darken-3": "#001541",
91
- "primary-background-lighten-1": "#23568B",
92
- "primary-background-lighten-2": "#3B689F",
93
- "primary-background-lighten-3": "#507BB3",
94
- "primary-darken-1": "#003465",
95
- "primary-darken-2": "#002452",
96
- "primary-darken-3": "#001541",
97
- "primary-lighten-1": "#23568B",
98
- "primary-lighten-2": "#3B689F",
99
- "primary-lighten-3": "#507BB3",
100
- "primary-muted": "#9CB1C0",
101
- "scrollbar": "#7994A9",
102
- "scrollbar-active": "#004578",
103
- "scrollbar-background": "#CACACA",
104
- "scrollbar-background-active": "#CACACA",
105
- "scrollbar-background-hover": "#CACACA",
106
- "scrollbar-corner-color": "#CACACA",
107
- "scrollbar-hover": "#6587A1",
108
- "secondary": "#0178D4",
109
- "secondary-background": "#0178D4",
110
- "secondary-background-darken-1": "#0065BE",
111
- "secondary-background-darken-2": "#0053AA",
112
- "secondary-background-darken-3": "#004295",
113
- "secondary-background-lighten-1": "#368AE9",
114
- "secondary-background-lighten-2": "#539EFF",
115
- "secondary-background-lighten-3": "#6DB2FF",
116
- "secondary-darken-1": "#0065BE",
117
- "secondary-darken-2": "#0053AA",
118
- "secondary-darken-3": "#004295",
119
- "secondary-lighten-1": "#368AE9",
120
- "secondary-lighten-2": "#539EFF",
121
- "secondary-lighten-3": "#6DB2FF",
122
- "secondary-muted": "#9DC0DC",
123
- "success": "#4EBF71",
124
- "success-darken-1": "#36AA5E",
125
- "success-darken-2": "#18954B",
126
- "success-darken-3": "#008139",
127
- "success-lighten-1": "#64D484",
128
- "success-lighten-2": "#7AE998",
129
- "success-lighten-3": "#8FFFAC",
130
- "success-muted": "#B4D6BE",
131
- "surface": "#D8D8D8",
132
- "surface-active": "#E8E8E8",
133
- "surface-darken-1": "#C3C3C3",
134
- "surface-darken-2": "#AEAEAE",
135
- "surface-darken-3": "#9A9A9A",
136
- "surface-lighten-1": "#EDEDED",
137
- "surface-lighten-2": "#FFFFFF",
138
- "surface-lighten-3": "#FFFFFF",
139
- "text": "#000000DD",
140
- "text-accent": "#A86D1C",
141
- "text-disabled": "#00000060",
142
- "text-error": "#7A273C",
143
- "text-muted": "#00000099",
144
- "text-primary": "#002D4F",
145
- "text-secondary": "#004F8B",
146
- "text-success": "#337E4A",
147
- "text-warning": "#A86D1C",
148
- "warning": "#FEA62B",
149
- "warning-darken-1": "#E7920D",
150
- "warning-darken-2": "#CF7E00",
151
- "warning-darken-3": "#B86B00",
152
- "warning-lighten-1": "#FFBA41",
153
- "warning-lighten-2": "#FFCF56",
154
- "warning-lighten-3": "#FFE46B",
155
- "warning-muted": "#E9CEA9",
156
- },
157
- };
158
- export default theme;
@@ -1,3 +0,0 @@
1
- import type { ThemePaletteData } from "./types.js";
2
- declare const theme: ThemePaletteData;
3
- export default theme;
@@ -1,158 +0,0 @@
1
- const theme = {
2
- name: "tokyo-night",
3
- dark: true,
4
- vars: {
5
- "accent": "#FE9E64",
6
- "accent-darken-1": "#E78A51",
7
- "accent-darken-2": "#D0763E",
8
- "accent-darken-3": "#BA632C",
9
- "accent-lighten-1": "#FFB277",
10
- "accent-lighten-2": "#FFC78A",
11
- "accent-lighten-3": "#FFDC9E",
12
- "accent-muted": "#5E4238",
13
- "background": "#1A1B26",
14
- "background-darken-1": "#070817",
15
- "background-darken-2": "#000000",
16
- "background-darken-3": "#000000",
17
- "background-lighten-1": "#292A36",
18
- "background-lighten-2": "#3A3A47",
19
- "background-lighten-3": "#4B4B58",
20
- "block-cursor-background": "#BB9AF7",
21
- "block-cursor-blurred-background": "#BB9AF74C",
22
- "block-cursor-blurred-foreground": "#A9B1D6",
23
- "block-cursor-foreground": "#FFFFFFDD",
24
- "block-hover-background": "#FFFFFF19",
25
- "boost": "#FFFFFF0A",
26
- "boost-darken-1": "#E9E9E90A",
27
- "boost-darken-2": "#D4D4D40A",
28
- "boost-darken-3": "#BFBFBF0A",
29
- "boost-lighten-1": "#FFFFFF0A",
30
- "boost-lighten-2": "#FFFFFF0A",
31
- "boost-lighten-3": "#FFFFFF0A",
32
- "border": "#BB9AF7",
33
- "border-blurred": "#1E2235",
34
- "button-color-foreground": "#24283B",
35
- "button-foreground": "#A9B1D6",
36
- "error": "#F6768E",
37
- "error-darken-1": "#E0617A",
38
- "error-darken-2": "#C94D68",
39
- "error-darken-3": "#B33856",
40
- "error-lighten-1": "#FF8AA1",
41
- "error-lighten-2": "#FF9FB5",
42
- "error-lighten-3": "#FFB4CA",
43
- "error-muted": "#5C3645",
44
- "footer-background": "#414868",
45
- "footer-description-background": "#00000000",
46
- "footer-description-foreground": "#A9B1D6",
47
- "footer-foreground": "#A9B1D6",
48
- "footer-item-background": "#00000000",
49
- "footer-key-background": "#00000000",
50
- "footer-key-foreground": "#FF9E64",
51
- "foreground": "#A9B1D6",
52
- "foreground-darken-1": "#949CC1",
53
- "foreground-darken-2": "#8189AC",
54
- "foreground-darken-3": "#6D7698",
55
- "foreground-disabled": "#A9B1D660",
56
- "foreground-lighten-1": "#BDC5EB",
57
- "foreground-lighten-2": "#D2DAFF",
58
- "foreground-lighten-3": "#E7EFFF",
59
- "foreground-muted": "#A9B1D699",
60
- "input-cursor-background": "#A9B1D6",
61
- "input-cursor-foreground": "#1A1B26",
62
- "input-selection-background": "#D0AEFF66",
63
- "link-background": "#00000000",
64
- "link-background-hover": "#BB9AF7",
65
- "link-color": "#FFFFFFDD",
66
- "link-color-hover": "#FFFFFFDD",
67
- "markdown-h1-background": "#00000000",
68
- "markdown-h1-color": "#BB9AF7",
69
- "markdown-h2-background": "#00000000",
70
- "markdown-h2-color": "#BB9AF7",
71
- "markdown-h3-background": "#00000000",
72
- "markdown-h3-color": "#BB9AF7",
73
- "markdown-h4-background": "#00000000",
74
- "markdown-h4-color": "#A9B1D6",
75
- "markdown-h5-background": "#00000000",
76
- "markdown-h5-color": "#A9B1D6",
77
- "markdown-h6-background": "#00000000",
78
- "markdown-h6-color": "#A9B1D699",
79
- "panel": "#414868",
80
- "panel-darken-1": "#2F3755",
81
- "panel-darken-2": "#1E2744",
82
- "panel-darken-3": "#0C1733",
83
- "panel-lighten-1": "#53597A",
84
- "panel-lighten-2": "#656B8E",
85
- "panel-lighten-3": "#787EA1",
86
- "primary": "#BB9AF7",
87
- "primary-background": "#504D60",
88
- "primary-background-darken-1": "#413D52",
89
- "primary-background-darken-2": "#322E45",
90
- "primary-background-darken-3": "#322E45",
91
- "primary-background-lighten-1": "#605D6E",
92
- "primary-background-lighten-2": "#6F6C7C",
93
- "primary-background-lighten-3": "#7E7C8A",
94
- "primary-darken-1": "#A686E1",
95
- "primary-darken-2": "#9173CC",
96
- "primary-darken-3": "#7D60B7",
97
- "primary-lighten-1": "#D0AEFF",
98
- "primary-lighten-2": "#E5C2FF",
99
- "primary-lighten-3": "#FBD7FF",
100
- "primary-muted": "#4A4164",
101
- "scrollbar": "#4F4270",
102
- "scrollbar-active": "#BB9AF7",
103
- "scrollbar-background": "#070817",
104
- "scrollbar-background-active": "#070817",
105
- "scrollbar-background-hover": "#070817",
106
- "scrollbar-corner-color": "#070817",
107
- "scrollbar-hover": "#615187",
108
- "secondary": "#7AA2F7",
109
- "secondary-background": "#484E60",
110
- "secondary-background-darken-1": "#383E52",
111
- "secondary-background-darken-2": "#282F45",
112
- "secondary-background-darken-3": "#282F45",
113
- "secondary-background-lighten-1": "#585D6E",
114
- "secondary-background-lighten-2": "#686D7C",
115
- "secondary-background-lighten-3": "#787D8A",
116
- "secondary-darken-1": "#648EE1",
117
- "secondary-darken-2": "#4D7BCC",
118
- "secondary-darken-3": "#3468B7",
119
- "secondary-lighten-1": "#8FB6FF",
120
- "secondary-lighten-2": "#A5CAFF",
121
- "secondary-lighten-3": "#BBDFFF",
122
- "secondary-muted": "#364364",
123
- "success": "#9ECE6A",
124
- "success-darken-1": "#89B956",
125
- "success-darken-2": "#75A443",
126
- "success-darken-3": "#619030",
127
- "success-lighten-1": "#B2E37D",
128
- "success-lighten-2": "#C8F891",
129
- "success-lighten-3": "#DDFFA6",
130
- "success-muted": "#41503A",
131
- "surface": "#24283B",
132
- "surface-active": "#313448",
133
- "surface-darken-1": "#14182A",
134
- "surface-darken-2": "#00031B",
135
- "surface-darken-3": "#000009",
136
- "surface-lighten-1": "#34384C",
137
- "surface-lighten-2": "#45495E",
138
- "surface-lighten-3": "#575A70",
139
- "text": "#FFFFFFDD",
140
- "text-accent": "#FFBE98",
141
- "text-disabled": "#FFFFFF60",
142
- "text-error": "#F9A4B4",
143
- "text-muted": "#FFFFFF99",
144
- "text-primary": "#D2BCF9",
145
- "text-secondary": "#A7C1F9",
146
- "text-success": "#BEDE9C",
147
- "text-warning": "#EACA9B",
148
- "warning": "#DFAF68",
149
- "warning-darken-1": "#C99A55",
150
- "warning-darken-2": "#B48742",
151
- "warning-darken-3": "#9E7430",
152
- "warning-lighten-1": "#F6C37B",
153
- "warning-lighten-2": "#FFD88F",
154
- "warning-lighten-3": "#FFEDA3",
155
- "warning-muted": "#554739",
156
- },
157
- };
158
- export default theme;
@@ -1,15 +0,0 @@
1
- /**
2
- * Static shape of a theme palette as authored. Each `data/<name>.ts` file
3
- * exports one of these as its default export. The barrel (`./index.ts`)
4
- * collects them into a single typed map; the registry consumes that map.
5
- *
6
- * Distinct from `Palette` — this is the on-disk authoring format (hex
7
- * strings); `Palette` is the runtime form (parsed ColorRgba values). The
8
- * registry's `getThemePalette` is the single boundary that hydrates one
9
- * into the other.
10
- */
11
- export interface ThemePaletteData {
12
- readonly name: string;
13
- readonly dark: boolean;
14
- readonly vars: Readonly<Record<string, string>>;
15
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,21 +0,0 @@
1
- import type { ColorRgba } from "../core/color.js";
2
- /**
3
- * A semantic palette: a named map from variable name → ColorRgba.
4
- *
5
- * Distinct from `ColorTable` (the integer-indexed quantization LUT used by
6
- * the downgrade pipeline). Palettes carry aesthetic intent — `primary`,
7
- * `accent`, `error`, etc. — and are the foundation of the theming system.
8
- *
9
- * Storage is uniformly ColorRgba; consumers that load from hex JSON
10
- * parse to ColorRgba at load time. `get` is a bare lookup — turning an
11
- * author-written *reference* (a name, or a `#RRGGBB` literal) into a colour
12
- * is `resolveColorRef`'s job in `colorRef.ts`, so a Palette never has to
13
- * know about the syntax callers write.
14
- */
15
- export declare class Palette {
16
- readonly name: string;
17
- readonly dark: boolean;
18
- readonly vars: ReadonlyMap<string, ColorRgba>;
19
- constructor(name: string, dark: boolean, vars: ReadonlyMap<string, ColorRgba>);
20
- get(key: string): ColorRgba | undefined;
21
- }
@@ -1,28 +0,0 @@
1
- /**
2
- * A semantic palette: a named map from variable name → ColorRgba.
3
- *
4
- * Distinct from `ColorTable` (the integer-indexed quantization LUT used by
5
- * the downgrade pipeline). Palettes carry aesthetic intent — `primary`,
6
- * `accent`, `error`, etc. — and are the foundation of the theming system.
7
- *
8
- * Storage is uniformly ColorRgba; consumers that load from hex JSON
9
- * parse to ColorRgba at load time. `get` is a bare lookup — turning an
10
- * author-written *reference* (a name, or a `#RRGGBB` literal) into a colour
11
- * is `resolveColorRef`'s job in `colorRef.ts`, so a Palette never has to
12
- * know about the syntax callers write.
13
- */
14
- export class Palette {
15
- name;
16
- dark;
17
- vars;
18
- constructor(name, dark, vars) {
19
- this.name = name;
20
- this.dark = dark;
21
- // Defensive copy: ReadonlyMap is a compile-time aliasing constraint, not a
22
- // runtime one. Copying at the seam makes Palette genuinely immutable.
23
- this.vars = new Map(vars);
24
- }
25
- get(key) {
26
- return this.vars.get(key);
27
- }
28
- }
@@ -1,83 +0,0 @@
1
- /**
2
- * A color ramp: a number mapped onto a color through ordered stops.
3
- *
4
- * "What does 73 % spent look like" has no answer in a vocabulary of discrete
5
- * adjustments (`darken`, `mix`, `contrastOn`): each takes colors and returns a
6
- * color, and none takes a *measurement*. Without a ramp the answer gets
7
- * computed outside the theme system — a script emits a hex, a template
8
- * branches `if ge .pct 80 … else if ge .pct 50 …` — and that color decision
9
- * can no longer transpose with the palette it was meant to belong to. A ramp
10
- * is the one function whose input is a number, so the decision stays inside.
11
- *
12
- * A threshold cascade is a ramp too: the same stops with a `step` easing hold
13
- * each color until the next position, which is exactly `≥ threshold → hotter`
14
- * written as data. [LAW:one-type-per-behavior] One primitive; the easing is a
15
- * value, so a gradient and a cascade differ by one word, not by which function
16
- * was called.
17
- *
18
- * Interpolation is in OKLCH (`Oklch.mix`), so a `linear` ramp between two
19
- * theme colors passes through perceptually even steps rather than the muddy
20
- * midpoints of an sRGB blend.
21
- *
22
- * [LAW:one-way-deps] Imports `core/color` and `core/oklch` only; nothing here
23
- * knows what a palette is. Resolving stop *names* is the template binding's
24
- * job (`paletteFuncs`), which hands this module resolved colors.
25
- */
26
- import type { ColorRgba } from "../core/color.js";
27
- /** One stop: the color the ramp is exactly `color` at position `at`. */
28
- export interface ColorStop {
29
- readonly at: number;
30
- readonly color: ColorRgba;
31
- }
32
- /**
33
- * How a value between two stops maps to progress along them. Each easing is
34
- * a function on segment progress `t ∈ [0, 1)` — `linear` keeps it, `step`
35
- * holds the left stop for the whole segment.
36
- *
37
- * [LAW:dataflow-not-control-flow] The easing is looked up by name and applied
38
- * unconditionally; `at` runs the same code for a gradient and a cascade.
39
- */
40
- export declare const RAMP_EASINGS: {
41
- readonly linear: (t: number) => number;
42
- readonly step: () => number;
43
- };
44
- export type RampEasing = keyof typeof RAMP_EASINGS;
45
- export declare const RAMP_EASING_NAMES: readonly RampEasing[];
46
- /**
47
- * The gate a spelled easing crosses. [LAW:parse-dont-validate] — returns the
48
- * narrowed name, so `ColorRamp` never re-checks. Unknown names throw naming
49
- * every legal one. [LAW:no-silent-failure]
50
- */
51
- export declare function parseRampEasing(name: string): RampEasing;
52
- /**
53
- * An immutable ramp over stops sorted by position.
54
- *
55
- * [LAW:single-enforcer] The constructor is the one place a ramp's shape is
56
- * checked — at least one stop, every position finite, positions
57
- * non-decreasing — matching the `ColorRgba`/`Oklch` pattern. Positions are
58
- * required to arrive in order rather than being sorted here: a ramp whose
59
- * stops are read from configuration (`warning at 80, error at 50`) is an
60
- * authoring mistake, and sorting would quietly render a different ramp than
61
- * the one written. [LAW:no-silent-failure]
62
- *
63
- * Two stops may share a position: that is a hard edge, the later color
64
- * taking over at exactly that value (CSS gradients spell a hard stop the
65
- * same way).
66
- */
67
- export declare class ColorRamp {
68
- readonly easing: RampEasing;
69
- readonly stops: readonly ColorStop[];
70
- constructor(easing: RampEasing, stops: readonly ColorStop[]);
71
- /**
72
- * The color at `value`. Below the first stop it is the first color; at or
73
- * above the last stop it is the last; between two stops it is `easing`
74
- * of the way from the lower to the upper, so a value exactly on a stop is
75
- * that stop's color, byte for byte.
76
- *
77
- * The two endpoint returns are the exactness contract, not a shortcut:
78
- * the sRGB → OKLCH → sRGB round-trip can land a channel one unit off, and a
79
- * ramp that does not hit its own stops exactly would make a `step` ramp
80
- * paint a color the author never wrote.
81
- */
82
- at(value: number): ColorRgba;
83
- }