@oyolincc/create 0.3.0 → 0.5.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 (392) hide show
  1. package/package.json +2 -2
  2. package/templates/hono-fullstack/.codegraph/.gitignore +5 -0
  3. package/templates/hono-fullstack/README.md +22 -1
  4. package/templates/hono-fullstack/_gitignore +1 -0
  5. package/templates/hono-fullstack/apps/server/package.json +7 -2
  6. package/templates/hono-fullstack/apps/server/src/adapters/cloudflare/entry.ts +4 -30
  7. package/templates/hono-fullstack/apps/server/src/adapters/nodejs/bootstrap.ts +20 -12
  8. package/templates/hono-fullstack/apps/server/src/adapters/nodejs/entry.ts +7 -57
  9. package/templates/hono-fullstack/apps/server/src/app.ts +37 -21
  10. package/templates/hono-fullstack/apps/server/src/config.ts +1 -1
  11. package/templates/hono-fullstack/apps/server/src/di-container.ts +51 -0
  12. package/templates/hono-fullstack/apps/server/src/infra/logger/getter.ts +1 -1
  13. package/templates/hono-fullstack/apps/server/src/infra/logger/pino.ts +21 -34
  14. package/templates/hono-fullstack/apps/server/src/infra/work-runner/errors.ts +22 -0
  15. package/templates/hono-fullstack/apps/server/src/infra/work-runner/pass-through/runner.ts +28 -22
  16. package/templates/hono-fullstack/apps/server/src/infra/work-runner/piscina/runner.ts +11 -34
  17. package/templates/hono-fullstack/apps/server/src/infra/work-runner/{example → piscina}/worker-entry.ts +6 -2
  18. package/templates/hono-fullstack/apps/server/src/infra/work-runner/types.ts +2 -16
  19. package/templates/hono-fullstack/apps/server/src/infra/work-runner/utils/business-error.ts +10 -5
  20. package/templates/hono-fullstack/apps/server/src/infra/work-runner/utils/message.ts +5 -17
  21. package/templates/hono-fullstack/apps/server/src/middlewares/cors.ts +16 -22
  22. package/templates/hono-fullstack/apps/server/src/middlewares/logger.ts +34 -0
  23. package/templates/hono-fullstack/apps/server/src/modules/example/module.ts +8 -0
  24. package/templates/hono-fullstack/apps/server/src/modules/example/queries.ts +8 -0
  25. package/templates/hono-fullstack/apps/server/src/modules/example/routes.ts +74 -68
  26. package/templates/hono-fullstack/apps/server/src/modules/example/service.test.ts +53 -0
  27. package/templates/hono-fullstack/apps/server/src/modules/example/service.ts +54 -0
  28. package/templates/hono-fullstack/apps/server/src/modules/example/types.ts +12 -0
  29. package/templates/hono-fullstack/apps/server/src/modules/example/work-task/tasks.test.ts +9 -35
  30. package/templates/hono-fullstack/apps/server/src/modules/example/work-task/tasks.ts +15 -46
  31. package/templates/hono-fullstack/apps/server/src/shared/errors/defs/index.ts +6 -1
  32. package/templates/hono-fullstack/apps/server/src/shared/errors/handler.ts +1 -1
  33. package/templates/hono-fullstack/apps/server/src/shared/network/openapi/index.ts +1 -1
  34. package/templates/hono-fullstack/apps/server/src/shared/types/app.ts +51 -0
  35. package/templates/hono-fullstack/apps/server/src/shared/types/db.ts +126 -0
  36. package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/check.ts +19 -0
  37. package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/model.ts +47 -0
  38. package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/params.ts +105 -0
  39. package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/query.test.ts +139 -0
  40. package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/query.ts +236 -0
  41. package/templates/hono-fullstack/apps/server/vite.config.ts +2 -2
  42. package/templates/hono-fullstack/apps/server/wrangler.jsonc +1 -1
  43. package/templates/hono-fullstack/apps/stack/frontend/assets/styles.css +6 -0
  44. package/templates/hono-fullstack/apps/stack/frontend/components/general/ErrorMessage.tsx +3 -1
  45. package/templates/hono-fullstack/apps/stack/frontend/components/layouts/AppLayout.tsx +2 -1
  46. package/templates/hono-fullstack/apps/stack/frontend/components/layouts/Header.tsx +14 -2
  47. package/templates/hono-fullstack/apps/stack/frontend/components/layouts/Page.tsx +2 -1
  48. package/templates/hono-fullstack/apps/stack/frontend/components/layouts/PageContainer.tsx +4 -1
  49. package/templates/hono-fullstack/apps/stack/frontend/modules/example/api.ts +16 -9
  50. package/templates/hono-fullstack/apps/stack/frontend/modules/example/components/ExampleForm.tsx +25 -12
  51. package/templates/hono-fullstack/apps/stack/frontend/modules/example/components/ExampleList.tsx +13 -4
  52. package/templates/hono-fullstack/apps/stack/frontend/modules/example/hooks/api-hooks.ts +21 -8
  53. package/templates/hono-fullstack/apps/stack/frontend/routes/__root.tsx +1 -1
  54. package/templates/hono-fullstack/apps/stack/frontend/routes/index.tsx +35 -12
  55. package/templates/hono-fullstack/apps/stack/frontend/shared/network/query-hooks.ts +33 -0
  56. package/templates/hono-fullstack/apps/stack/package.json +9 -4
  57. package/templates/hono-fullstack/apps/stack/panda.config.ts +31 -0
  58. package/templates/hono-fullstack/apps/stack/tsconfig.json +1 -0
  59. package/templates/hono-fullstack/apps/stack/turbo.json +20 -0
  60. package/templates/hono-fullstack/apps/stack/vite.config.ts +48 -12
  61. package/templates/hono-fullstack/apps/stack/wrangler.jsonc +1 -1
  62. package/templates/hono-fullstack/envs/.env.example.sqlite-d1 +1 -0
  63. package/templates/hono-fullstack/libs/db/drizzle-kit/sqlite-d1.config.ts +29 -10
  64. package/templates/hono-fullstack/libs/db/package.json +1 -0
  65. package/templates/hono-fullstack/libs/db/src/dialects/sqlite/schema/columns.ts +1 -1
  66. package/templates/hono-fullstack/libs/db/src/dialects/sqlite/schema/modules/examples/examples.ts +6 -3
  67. package/templates/hono-fullstack/libs/db/src/dialects/sqlite/schema/vo.ts +7 -1
  68. package/templates/hono-fullstack/libs/definition/README.md +81 -0
  69. package/templates/hono-fullstack/libs/definition/package.json +3 -1
  70. package/templates/hono-fullstack/libs/definition/src/constants/index.ts +1 -0
  71. package/templates/hono-fullstack/libs/definition/src/constants/pagination.ts +3 -0
  72. package/templates/hono-fullstack/libs/definition/src/modules/common-contracts.ts +24 -0
  73. package/templates/hono-fullstack/libs/definition/src/modules/example/contracts.ts +34 -0
  74. package/templates/hono-fullstack/libs/definition/src/modules/example/index.ts +1 -16
  75. package/templates/hono-fullstack/libs/definition/src/modules/index.ts +2 -0
  76. package/templates/hono-fullstack/libs/definition/src/modules/vo-generated-types.ts +12 -0
  77. package/templates/hono-fullstack/libs/ui/.storybook/main.ts +32 -0
  78. package/templates/hono-fullstack/libs/ui/.storybook/panda.config.ts +22 -0
  79. package/templates/hono-fullstack/libs/ui/.storybook/preview.tsx +79 -0
  80. package/templates/hono-fullstack/libs/ui/.storybook/styles.css +1 -0
  81. package/templates/hono-fullstack/libs/ui/.storybook/vite.config.ts +37 -0
  82. package/templates/hono-fullstack/libs/ui/components.json +15 -0
  83. package/templates/hono-fullstack/libs/ui/package.json +114 -0
  84. package/templates/hono-fullstack/libs/ui/panda.config.ts +41 -0
  85. package/templates/hono-fullstack/libs/ui/src/Tooltip.tsx +47 -0
  86. package/templates/hono-fullstack/libs/ui/src/components/atoms/buttons/Button.tsx +80 -0
  87. package/templates/hono-fullstack/libs/ui/src/components/atoms/buttons/CloseButton.tsx +15 -0
  88. package/templates/hono-fullstack/libs/ui/src/components/atoms/buttons/IconButton.tsx +10 -0
  89. package/templates/hono-fullstack/libs/ui/src/components/atoms/collections/Combobox.tsx +91 -0
  90. package/templates/hono-fullstack/libs/ui/src/components/atoms/collections/Select.tsx +88 -0
  91. package/templates/hono-fullstack/libs/ui/src/components/atoms/collections/TreeView.tsx +142 -0
  92. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Avatar.tsx +64 -0
  93. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Badge.tsx +7 -0
  94. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Card.tsx +23 -0
  95. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Clipboard.tsx +77 -0
  96. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Icon.tsx +9 -0
  97. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Table.tsx +51 -0
  98. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Tag.tsx +23 -0
  99. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Timeline.tsx +33 -0
  100. package/templates/hono-fullstack/libs/ui/src/components/atoms/date-and-time/DatePicker.tsx +255 -0
  101. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Accordion.tsx +48 -0
  102. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Breadcrumb.tsx +50 -0
  103. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Collapsible.tsx +34 -0
  104. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Pagination.tsx +74 -0
  105. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Steps.tsx +91 -0
  106. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Tabs.tsx +37 -0
  107. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Alert.tsx +52 -0
  108. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Progress.tsx +41 -0
  109. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/ProgressCircle.tsx +40 -0
  110. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Skeleton.tsx +37 -0
  111. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Spinner.tsx +7 -0
  112. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Toast.tsx +99 -0
  113. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Checkbox.tsx +95 -0
  114. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/ColorPicker.tsx +148 -0
  115. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Editable.tsx +44 -0
  116. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Field.tsx +36 -0
  117. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Fieldset.tsx +34 -0
  118. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/FileUpload.tsx +143 -0
  119. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Input.tsx +7 -0
  120. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/InputAddon.tsx +7 -0
  121. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/InputGroup.tsx +61 -0
  122. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/NativeSelect.tsx +81 -0
  123. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/NumberInput.tsx +63 -0
  124. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/PasswordInput.tsx +76 -0
  125. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/PinInput.tsx +36 -0
  126. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/RadioCard.tsx +96 -0
  127. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/RadioGroup.tsx +61 -0
  128. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/RatingGroup.tsx +106 -0
  129. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/SegmentGroup.tsx +68 -0
  130. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Slider.tsx +87 -0
  131. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Switch.tsx +74 -0
  132. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/TagsInput.tsx +77 -0
  133. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Textarea.tsx +7 -0
  134. package/templates/hono-fullstack/libs/ui/src/components/atoms/index.ts +98 -0
  135. package/templates/hono-fullstack/libs/ui/src/components/atoms/internal/AbsoluteCenter.tsx +7 -0
  136. package/templates/hono-fullstack/libs/ui/src/components/atoms/internal/Loader.tsx +69 -0
  137. package/templates/hono-fullstack/libs/ui/src/components/atoms/internal/Span.tsx +5 -0
  138. package/templates/hono-fullstack/libs/ui/src/components/atoms/internal/create-layout.ts +18 -0
  139. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Float.tsx +7 -0
  140. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Grid.tsx +17 -0
  141. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Group.tsx +7 -0
  142. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/ScrollArea.tsx +46 -0
  143. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Separator.tsx +26 -0
  144. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Stack.tsx +54 -0
  145. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Dialog.tsx +69 -0
  146. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Drawer.tsx +49 -0
  147. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/HoverCard.tsx +37 -0
  148. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Menu.tsx +74 -0
  149. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/OverlayManager.test.ts +124 -0
  150. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/OverlayManager.tsx +189 -0
  151. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Popover.tsx +57 -0
  152. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Tooltip.tsx +37 -0
  153. package/templates/hono-fullstack/libs/ui/src/components/atoms/typography/Heading.tsx +6 -0
  154. package/templates/hono-fullstack/libs/ui/src/components/atoms/typography/Link.tsx +7 -0
  155. package/templates/hono-fullstack/libs/ui/src/components/atoms/typography/LinkOverlay.tsx +21 -0
  156. package/templates/hono-fullstack/libs/ui/src/components/atoms/typography/Text.tsx +6 -0
  157. package/templates/hono-fullstack/libs/ui/src/components/atoms/utilities/VisuallyHidden.tsx +13 -0
  158. package/templates/hono-fullstack/libs/ui/src/hooks.ts +242 -0
  159. package/templates/hono-fullstack/libs/ui/src/index.ts +19 -0
  160. package/templates/hono-fullstack/libs/ui/src/theme/animation-styles.ts +50 -0
  161. package/templates/hono-fullstack/libs/ui/src/theme/breakpoints.ts +7 -0
  162. package/templates/hono-fullstack/libs/ui/src/theme/conditions.ts +12 -0
  163. package/templates/hono-fullstack/libs/ui/src/theme/containers.ts +16 -0
  164. package/templates/hono-fullstack/libs/ui/src/theme/global-css.ts +12 -0
  165. package/templates/hono-fullstack/libs/ui/src/theme/keyframes.ts +157 -0
  166. package/templates/hono-fullstack/libs/ui/src/theme/layer-styles.ts +11 -0
  167. package/templates/hono-fullstack/libs/ui/src/theme/patterns/grid.ts +51 -0
  168. package/templates/hono-fullstack/libs/ui/src/theme/patterns/index.ts +60 -0
  169. package/templates/hono-fullstack/libs/ui/src/theme/patterns/stack.ts +46 -0
  170. package/templates/hono-fullstack/libs/ui/src/theme/recipes/absolute-center.ts +38 -0
  171. package/templates/hono-fullstack/libs/ui/src/theme/recipes/accordion.ts +68 -0
  172. package/templates/hono-fullstack/libs/ui/src/theme/recipes/alert.ts +83 -0
  173. package/templates/hono-fullstack/libs/ui/src/theme/recipes/avatar.ts +155 -0
  174. package/templates/hono-fullstack/libs/ui/src/theme/recipes/badge.ts +67 -0
  175. package/templates/hono-fullstack/libs/ui/src/theme/recipes/breadcrumb.ts +69 -0
  176. package/templates/hono-fullstack/libs/ui/src/theme/recipes/button.ts +149 -0
  177. package/templates/hono-fullstack/libs/ui/src/theme/recipes/card.ts +36 -0
  178. package/templates/hono-fullstack/libs/ui/src/theme/recipes/checkbox.ts +120 -0
  179. package/templates/hono-fullstack/libs/ui/src/theme/recipes/clipboard.ts +22 -0
  180. package/templates/hono-fullstack/libs/ui/src/theme/recipes/collapsible.ts +26 -0
  181. package/templates/hono-fullstack/libs/ui/src/theme/recipes/color-picker.ts +299 -0
  182. package/templates/hono-fullstack/libs/ui/src/theme/recipes/combobox.ts +141 -0
  183. package/templates/hono-fullstack/libs/ui/src/theme/recipes/date-picker.ts +302 -0
  184. package/templates/hono-fullstack/libs/ui/src/theme/recipes/dialog.ts +191 -0
  185. package/templates/hono-fullstack/libs/ui/src/theme/recipes/drawer.ts +170 -0
  186. package/templates/hono-fullstack/libs/ui/src/theme/recipes/editable.ts +64 -0
  187. package/templates/hono-fullstack/libs/ui/src/theme/recipes/field.ts +41 -0
  188. package/templates/hono-fullstack/libs/ui/src/theme/recipes/fieldset.ts +47 -0
  189. package/templates/hono-fullstack/libs/ui/src/theme/recipes/file-upload.ts +86 -0
  190. package/templates/hono-fullstack/libs/ui/src/theme/recipes/group.ts +78 -0
  191. package/templates/hono-fullstack/libs/ui/src/theme/recipes/heading.ts +24 -0
  192. package/templates/hono-fullstack/libs/ui/src/theme/recipes/hover-card.ts +47 -0
  193. package/templates/hono-fullstack/libs/ui/src/theme/recipes/icon.ts +25 -0
  194. package/templates/hono-fullstack/libs/ui/src/theme/recipes/index.ts +120 -0
  195. package/templates/hono-fullstack/libs/ui/src/theme/recipes/input-addon.ts +51 -0
  196. package/templates/hono-fullstack/libs/ui/src/theme/recipes/input-group.ts +77 -0
  197. package/templates/hono-fullstack/libs/ui/src/theme/recipes/input.ts +99 -0
  198. package/templates/hono-fullstack/libs/ui/src/theme/recipes/link.ts +36 -0
  199. package/templates/hono-fullstack/libs/ui/src/theme/recipes/menu.ts +114 -0
  200. package/templates/hono-fullstack/libs/ui/src/theme/recipes/native-select.ts +92 -0
  201. package/templates/hono-fullstack/libs/ui/src/theme/recipes/number-input.ts +91 -0
  202. package/templates/hono-fullstack/libs/ui/src/theme/recipes/pagination.ts +9 -0
  203. package/templates/hono-fullstack/libs/ui/src/theme/recipes/pin-input.ts +33 -0
  204. package/templates/hono-fullstack/libs/ui/src/theme/recipes/popover.ts +78 -0
  205. package/templates/hono-fullstack/libs/ui/src/theme/recipes/progress-circle.ts +50 -0
  206. package/templates/hono-fullstack/libs/ui/src/theme/recipes/progress.ts +112 -0
  207. package/templates/hono-fullstack/libs/ui/src/theme/recipes/radio-card.ts +223 -0
  208. package/templates/hono-fullstack/libs/ui/src/theme/recipes/radio-group.ts +78 -0
  209. package/templates/hono-fullstack/libs/ui/src/theme/recipes/rating-group.ts +98 -0
  210. package/templates/hono-fullstack/libs/ui/src/theme/recipes/scroll-area.ts +119 -0
  211. package/templates/hono-fullstack/libs/ui/src/theme/recipes/segment-group.ts +162 -0
  212. package/templates/hono-fullstack/libs/ui/src/theme/recipes/select.ts +157 -0
  213. package/templates/hono-fullstack/libs/ui/src/theme/recipes/separator.ts +25 -0
  214. package/templates/hono-fullstack/libs/ui/src/theme/recipes/skeleton.ts +65 -0
  215. package/templates/hono-fullstack/libs/ui/src/theme/recipes/slider.ts +164 -0
  216. package/templates/hono-fullstack/libs/ui/src/theme/recipes/spinner.ts +34 -0
  217. package/templates/hono-fullstack/libs/ui/src/theme/recipes/steps.ts +162 -0
  218. package/templates/hono-fullstack/libs/ui/src/theme/recipes/switch.ts +150 -0
  219. package/templates/hono-fullstack/libs/ui/src/theme/recipes/table.ts +150 -0
  220. package/templates/hono-fullstack/libs/ui/src/theme/recipes/tabs.ts +128 -0
  221. package/templates/hono-fullstack/libs/ui/src/theme/recipes/tag.ts +114 -0
  222. package/templates/hono-fullstack/libs/ui/src/theme/recipes/tags-input.ts +201 -0
  223. package/templates/hono-fullstack/libs/ui/src/theme/recipes/text.ts +7 -0
  224. package/templates/hono-fullstack/libs/ui/src/theme/recipes/textarea.ts +90 -0
  225. package/templates/hono-fullstack/libs/ui/src/theme/recipes/timeline.ts +137 -0
  226. package/templates/hono-fullstack/libs/ui/src/theme/recipes/toast.ts +52 -0
  227. package/templates/hono-fullstack/libs/ui/src/theme/recipes/tooltip.ts +44 -0
  228. package/templates/hono-fullstack/libs/ui/src/theme/recipes/tree-view.ts +200 -0
  229. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/amber.ts +91 -0
  230. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/gray.ts +103 -0
  231. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/green.ts +88 -0
  232. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/index.ts +14 -0
  233. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/lime.ts +91 -0
  234. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/red.ts +88 -0
  235. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/index.ts +8 -0
  236. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/shadows.ts +46 -0
  237. package/templates/hono-fullstack/libs/ui/src/theme/text-styles.ts +82 -0
  238. package/templates/hono-fullstack/libs/ui/src/theme/tokens/animations.ts +8 -0
  239. package/templates/hono-fullstack/libs/ui/src/theme/tokens/aspect-ratio.ts +6 -0
  240. package/templates/hono-fullstack/libs/ui/src/theme/tokens/borders.ts +5 -0
  241. package/templates/hono-fullstack/libs/ui/src/theme/tokens/colors.ts +35 -0
  242. package/templates/hono-fullstack/libs/ui/src/theme/tokens/durations.ts +11 -0
  243. package/templates/hono-fullstack/libs/ui/src/theme/tokens/easings.ts +9 -0
  244. package/templates/hono-fullstack/libs/ui/src/theme/tokens/index.ts +42 -0
  245. package/templates/hono-fullstack/libs/ui/src/theme/tokens/radii.ts +13 -0
  246. package/templates/hono-fullstack/libs/ui/src/theme/tokens/sizes.ts +27 -0
  247. package/templates/hono-fullstack/libs/ui/src/theme/tokens/spacing.ts +41 -0
  248. package/templates/hono-fullstack/libs/ui/src/theme/tokens/typography.ts +86 -0
  249. package/templates/hono-fullstack/libs/ui/src/theme/tokens/z-index.ts +43 -0
  250. package/templates/hono-fullstack/libs/ui/stories/README.md +107 -0
  251. package/templates/hono-fullstack/libs/ui/stories/actions/Button.stories.tsx +260 -0
  252. package/templates/hono-fullstack/libs/ui/stories/actions/Clipboard.stories.tsx +87 -0
  253. package/templates/hono-fullstack/libs/ui/stories/actions/IconButton.stories.tsx +33 -0
  254. package/templates/hono-fullstack/libs/ui/stories/collections/Combobox.stories.tsx +334 -0
  255. package/templates/hono-fullstack/libs/ui/stories/collections/Select.stories.tsx +342 -0
  256. package/templates/hono-fullstack/libs/ui/stories/collections/TreeView.stories.tsx +252 -0
  257. package/templates/hono-fullstack/libs/ui/stories/color/ColorPicker.stories.tsx +217 -0
  258. package/templates/hono-fullstack/libs/ui/stories/date/DatePicker.stories.tsx +302 -0
  259. package/templates/hono-fullstack/libs/ui/stories/disclosure/Accordion.stories.tsx +105 -0
  260. package/templates/hono-fullstack/libs/ui/stories/disclosure/Collapsible.stories.tsx +55 -0
  261. package/templates/hono-fullstack/libs/ui/stories/disclosure/Steps.stories.tsx +208 -0
  262. package/templates/hono-fullstack/libs/ui/stories/disclosure/Tabs.stories.tsx +176 -0
  263. package/templates/hono-fullstack/libs/ui/stories/display/Avatar.stories.tsx +108 -0
  264. package/templates/hono-fullstack/libs/ui/stories/display/Badge.stories.tsx +90 -0
  265. package/templates/hono-fullstack/libs/ui/stories/display/Card.stories.tsx +121 -0
  266. package/templates/hono-fullstack/libs/ui/stories/display/Heading.stories.tsx +62 -0
  267. package/templates/hono-fullstack/libs/ui/stories/display/Icon.stories.tsx +51 -0
  268. package/templates/hono-fullstack/libs/ui/stories/display/Table.stories.tsx +222 -0
  269. package/templates/hono-fullstack/libs/ui/stories/display/Tag.stories.tsx +168 -0
  270. package/templates/hono-fullstack/libs/ui/stories/display/Text.stories.tsx +32 -0
  271. package/templates/hono-fullstack/libs/ui/stories/display/Timeline.stories.tsx +241 -0
  272. package/templates/hono-fullstack/libs/ui/stories/feedback/Alert.stories.tsx +122 -0
  273. package/templates/hono-fullstack/libs/ui/stories/feedback/Progress.stories.tsx +163 -0
  274. package/templates/hono-fullstack/libs/ui/stories/feedback/ProgressCircle.stories.tsx +176 -0
  275. package/templates/hono-fullstack/libs/ui/stories/feedback/Skeleton.stories.tsx +75 -0
  276. package/templates/hono-fullstack/libs/ui/stories/feedback/Spinner.stories.tsx +49 -0
  277. package/templates/hono-fullstack/libs/ui/stories/feedback/Toast.stories.tsx +145 -0
  278. package/templates/hono-fullstack/libs/ui/stories/forms/Checkbox.stories.tsx +281 -0
  279. package/templates/hono-fullstack/libs/ui/stories/forms/Editable.stories.tsx +94 -0
  280. package/templates/hono-fullstack/libs/ui/stories/forms/Field.stories.tsx +72 -0
  281. package/templates/hono-fullstack/libs/ui/stories/forms/Fieldset.stories.tsx +109 -0
  282. package/templates/hono-fullstack/libs/ui/stories/forms/FileUpload.stories.tsx +115 -0
  283. package/templates/hono-fullstack/libs/ui/stories/forms/Form.stories.tsx +120 -0
  284. package/templates/hono-fullstack/libs/ui/stories/forms/Input.stories.tsx +155 -0
  285. package/templates/hono-fullstack/libs/ui/stories/forms/InputGroup.stories.tsx +79 -0
  286. package/templates/hono-fullstack/libs/ui/stories/forms/NativeSelect.stories.tsx +160 -0
  287. package/templates/hono-fullstack/libs/ui/stories/forms/NumberInput.stories.tsx +149 -0
  288. package/templates/hono-fullstack/libs/ui/stories/forms/PasswordInput.stories.tsx +141 -0
  289. package/templates/hono-fullstack/libs/ui/stories/forms/PinInput.stories.tsx +155 -0
  290. package/templates/hono-fullstack/libs/ui/stories/forms/RadioCard.stories.tsx +265 -0
  291. package/templates/hono-fullstack/libs/ui/stories/forms/RadioGroup.stories.tsx +109 -0
  292. package/templates/hono-fullstack/libs/ui/stories/forms/RatingGroup.stories.tsx +123 -0
  293. package/templates/hono-fullstack/libs/ui/stories/forms/SegmentGroup.stories.tsx +130 -0
  294. package/templates/hono-fullstack/libs/ui/stories/forms/Slider.stories.tsx +190 -0
  295. package/templates/hono-fullstack/libs/ui/stories/forms/Switch.stories.tsx +124 -0
  296. package/templates/hono-fullstack/libs/ui/stories/forms/TagsInput.stories.tsx +154 -0
  297. package/templates/hono-fullstack/libs/ui/stories/forms/Textarea.stories.tsx +148 -0
  298. package/templates/hono-fullstack/libs/ui/stories/layout/Grid.stories.tsx +60 -0
  299. package/templates/hono-fullstack/libs/ui/stories/layout/Positioning.stories.tsx +90 -0
  300. package/templates/hono-fullstack/libs/ui/stories/layout/ScrollArea.stories.tsx +68 -0
  301. package/templates/hono-fullstack/libs/ui/stories/layout/Stack.stories.tsx +87 -0
  302. package/templates/hono-fullstack/libs/ui/stories/navigation/Breadcrumb.stories.tsx +104 -0
  303. package/templates/hono-fullstack/libs/ui/stories/navigation/Link.stories.tsx +62 -0
  304. package/templates/hono-fullstack/libs/ui/stories/navigation/LinkBox.stories.tsx +45 -0
  305. package/templates/hono-fullstack/libs/ui/stories/navigation/Pagination.stories.tsx +74 -0
  306. package/templates/hono-fullstack/libs/ui/stories/overlays/Dialog.stories.tsx +255 -0
  307. package/templates/hono-fullstack/libs/ui/stories/overlays/Drawer.stories.tsx +114 -0
  308. package/templates/hono-fullstack/libs/ui/stories/overlays/HoverCard.stories.tsx +47 -0
  309. package/templates/hono-fullstack/libs/ui/stories/overlays/Menu.stories.tsx +133 -0
  310. package/templates/hono-fullstack/libs/ui/stories/overlays/OverlayManager.stories.tsx +206 -0
  311. package/templates/hono-fullstack/libs/ui/stories/overlays/Popover.stories.tsx +73 -0
  312. package/templates/hono-fullstack/libs/ui/stories/overlays/Tooltip.stories.tsx +114 -0
  313. package/templates/hono-fullstack/libs/ui/stories/tsconfig.json +14 -0
  314. package/templates/hono-fullstack/libs/ui/tsconfig.build.json +5 -0
  315. package/templates/hono-fullstack/libs/ui/tsconfig.json +13 -0
  316. package/templates/hono-fullstack/libs/ui/turbo.json +28 -0
  317. package/templates/hono-fullstack/libs/ui/vite.config.ts +33 -0
  318. package/templates/hono-fullstack/oyo.config.json +31 -1
  319. package/templates/hono-fullstack/package.json +1 -0
  320. package/templates/hono-fullstack/pnpm-workspace.yaml +20 -10
  321. package/templates/hono-fullstack/turbo.json +10 -0
  322. package/templates/hono-server/.codegraph/.gitignore +5 -0
  323. package/templates/hono-server/README.md +9 -1
  324. package/templates/hono-server/_gitignore +1 -0
  325. package/templates/hono-server/apps/server/package.json +7 -2
  326. package/templates/hono-server/apps/server/src/adapters/cloudflare/entry.ts +4 -30
  327. package/templates/hono-server/apps/server/src/adapters/nodejs/bootstrap.ts +20 -12
  328. package/templates/hono-server/apps/server/src/adapters/nodejs/entry.ts +7 -57
  329. package/templates/hono-server/apps/server/src/app.ts +37 -21
  330. package/templates/hono-server/apps/server/src/config.ts +1 -1
  331. package/templates/hono-server/apps/server/src/di-container.ts +51 -0
  332. package/templates/hono-server/apps/server/src/infra/logger/getter.ts +1 -1
  333. package/templates/hono-server/apps/server/src/infra/logger/pino.ts +21 -34
  334. package/templates/hono-server/apps/server/src/infra/work-runner/errors.ts +22 -0
  335. package/templates/hono-server/apps/server/src/infra/work-runner/pass-through/runner.ts +28 -22
  336. package/templates/hono-server/apps/server/src/infra/work-runner/piscina/runner.ts +11 -34
  337. package/templates/hono-server/apps/server/src/infra/work-runner/{example → piscina}/worker-entry.ts +6 -2
  338. package/templates/hono-server/apps/server/src/infra/work-runner/types.ts +2 -16
  339. package/templates/hono-server/apps/server/src/infra/work-runner/utils/business-error.ts +10 -5
  340. package/templates/hono-server/apps/server/src/infra/work-runner/utils/message.ts +5 -17
  341. package/templates/hono-server/apps/server/src/middlewares/cors.ts +16 -22
  342. package/templates/hono-server/apps/server/src/middlewares/logger.ts +34 -0
  343. package/templates/hono-server/apps/server/src/modules/example/module.ts +8 -0
  344. package/templates/hono-server/apps/server/src/modules/example/queries.ts +8 -0
  345. package/templates/hono-server/apps/server/src/modules/example/routes.ts +74 -68
  346. package/templates/hono-server/apps/server/src/modules/example/service.test.ts +53 -0
  347. package/templates/hono-server/apps/server/src/modules/example/service.ts +54 -0
  348. package/templates/hono-server/apps/server/src/modules/example/types.ts +12 -0
  349. package/templates/hono-server/apps/server/src/modules/example/work-task/tasks.test.ts +9 -35
  350. package/templates/hono-server/apps/server/src/modules/example/work-task/tasks.ts +15 -46
  351. package/templates/hono-server/apps/server/src/shared/errors/defs/index.ts +6 -1
  352. package/templates/hono-server/apps/server/src/shared/errors/handler.ts +1 -1
  353. package/templates/hono-server/apps/server/src/shared/network/openapi/index.ts +1 -1
  354. package/templates/hono-server/apps/server/src/shared/types/app.ts +51 -0
  355. package/templates/hono-server/apps/server/src/shared/types/db.ts +126 -0
  356. package/templates/hono-server/apps/server/src/shared/utils/data-access/check.ts +19 -0
  357. package/templates/hono-server/apps/server/src/shared/utils/data-access/model.ts +47 -0
  358. package/templates/hono-server/apps/server/src/shared/utils/data-access/params.ts +105 -0
  359. package/templates/hono-server/apps/server/src/shared/utils/data-access/query.test.ts +139 -0
  360. package/templates/hono-server/apps/server/src/shared/utils/data-access/query.ts +236 -0
  361. package/templates/hono-server/apps/server/vite.config.ts +2 -2
  362. package/templates/hono-server/apps/server/wrangler.jsonc +1 -1
  363. package/templates/hono-server/docker/README.md +1 -1
  364. package/templates/hono-server/envs/.env.example.sqlite-d1 +1 -0
  365. package/templates/hono-server/libs/db/drizzle-kit/sqlite-d1.config.ts +29 -10
  366. package/templates/hono-server/libs/db/package.json +1 -0
  367. package/templates/hono-server/libs/db/src/dialects/sqlite/schema/columns.ts +1 -1
  368. package/templates/hono-server/libs/db/src/dialects/sqlite/schema/modules/examples/examples.ts +6 -3
  369. package/templates/hono-server/libs/db/src/dialects/sqlite/schema/vo.ts +7 -1
  370. package/templates/hono-server/libs/definition/README.md +81 -0
  371. package/templates/hono-server/libs/definition/package.json +3 -1
  372. package/templates/hono-server/libs/definition/src/constants/index.ts +1 -0
  373. package/templates/hono-server/libs/definition/src/constants/pagination.ts +3 -0
  374. package/templates/hono-server/libs/definition/src/modules/common-contracts.ts +24 -0
  375. package/templates/hono-server/libs/definition/src/modules/example/contracts.ts +34 -0
  376. package/templates/hono-server/libs/definition/src/modules/example/index.ts +1 -16
  377. package/templates/hono-server/libs/definition/src/modules/index.ts +2 -0
  378. package/templates/hono-server/libs/definition/src/modules/vo-generated-types.ts +12 -0
  379. package/templates/hono-server/oyo.config.json +31 -1
  380. package/templates/hono-server/package.json +1 -0
  381. package/templates/hono-server/pnpm-workspace.yaml +9 -7
  382. package/templates/hono-server/turbo.json +10 -0
  383. package/templates/monorepo/.codegraph/.gitignore +5 -0
  384. package/templates/monorepo/_gitignore +1 -0
  385. package/templates/monorepo/oyo.config.json +7 -1
  386. package/templates/monorepo/pnpm-workspace.yaml +4 -4
  387. package/templates/monorepo/turbo.json +10 -0
  388. package/templates/hono-fullstack/apps/server/src/modules/example/contracts.ts +0 -9
  389. package/templates/hono-fullstack/apps/server/src/shared/app/types.ts +0 -44
  390. package/templates/hono-fullstack/apps/stack/frontend/styles.css +0 -23
  391. package/templates/hono-server/apps/server/src/modules/example/contracts.ts +0 -9
  392. package/templates/hono-server/apps/server/src/shared/app/types.ts +0 -44
@@ -0,0 +1,200 @@
1
+ import { treeViewAnatomy } from '@ark-ui/react/anatomy'
2
+ import { defineSlotRecipe, defineStyles } from '@pandacss/dev'
3
+
4
+ const itemStyle = defineStyles({
5
+ display: 'flex',
6
+ alignItems: 'center',
7
+ userSelect: 'none',
8
+ position: 'relative',
9
+ '--tree-depth': 'calc(var(--depth) - 1)',
10
+ })
11
+ const subtle = defineStyles({
12
+ _selected: { bg: 'colorPalette.bg.subtle', color: 'colorPalette.fg.default' },
13
+ })
14
+ const solid = defineStyles({
15
+ _selected: { bg: 'colorPalette.bg.default', color: 'colorPalette.fg.onSolid' },
16
+ })
17
+
18
+ const sizeStyles = {
19
+ branchControl: {
20
+ gap: 'var(--tree-item-gap)',
21
+ '--tree-indentation-offset': 'calc(var(--tree-indentation) * var(--tree-depth))',
22
+ '--tree-offset': 'calc(var(--tree-padding-inline) + var(--tree-indentation-offset))',
23
+ ps: 'var(--tree-offset)',
24
+ pe: 'var(--tree-padding-inline)',
25
+ py: 'var(--tree-padding-block)',
26
+ },
27
+ item: {
28
+ gap: 'var(--tree-item-gap)',
29
+ '--tree-indentation-offset': 'calc(var(--tree-indentation) * var(--tree-depth))',
30
+ '--tree-offset': 'calc(var(--tree-padding-inline) + var(--tree-indentation-offset))',
31
+ ps: 'var(--tree-offset)',
32
+ pe: 'var(--tree-padding-inline)',
33
+ py: 'var(--tree-padding-block)',
34
+ },
35
+ root: { gap: '2' },
36
+ tree: {
37
+ '--tree-item-gap': '{spacing.2}',
38
+ '--tree-indentation': 'calc(var(--tree-indent-size) + var(--tree-icon-size) * 0.5)',
39
+ _icon: { boxSize: 'var(--tree-icon-size)', flexShrink: '0' },
40
+ },
41
+ label: { textStyle: 'sm' },
42
+ branchIndentGuide: {
43
+ '--tree-offset':
44
+ 'calc(var(--tree-padding-inline) + var(--tree-indentation) * var(--tree-depth))',
45
+ insetInlineStart: 'calc(var(--tree-offset) + var(--tree-icon-size) * 0.5)',
46
+ },
47
+ nodeCheckbox: { boxSize: 'var(--tree-icon-size)' },
48
+ } as const
49
+
50
+ const appearance = {
51
+ branchControl: {
52
+ borderRadius: 'sm',
53
+ outline: '0',
54
+ cursor: 'pointer',
55
+ focusVisibleRing: 'inside',
56
+ focusRingColor: 'colorPalette.ring',
57
+ _hover: { bg: 'gray.bg.subtle' },
58
+ _disabled: { layerStyle: 'disabled', cursor: 'not-allowed' },
59
+ },
60
+ item: {
61
+ borderRadius: 'sm',
62
+ outline: '0',
63
+ cursor: 'pointer',
64
+ focusVisibleRing: 'inside',
65
+ focusRingColor: 'colorPalette.ring',
66
+ _hover: { bg: 'gray.bg.subtle' },
67
+ _disabled: { layerStyle: 'disabled', cursor: 'not-allowed' },
68
+ },
69
+ root: { color: 'gray.fg.default' },
70
+ label: { fontWeight: 'medium' },
71
+ branchIndentGuide: { bg: 'gray.border.strong' },
72
+ branchTrigger: { outline: '0', focusVisibleRing: 'inside' },
73
+ nodeCheckbox: {
74
+ borderWidth: '1px',
75
+ borderColor: 'gray.border.strong',
76
+ borderRadius: 'xs',
77
+ color: 'gray.fg.default',
78
+ bg: 'gray.bg.page',
79
+ cursor: 'pointer',
80
+ _disabled: { layerStyle: 'disabled', cursor: 'not-allowed' },
81
+ '&[data-state=checked], &[data-state=indeterminate]': {
82
+ bg: 'colorPalette.bg.default',
83
+ color: 'colorPalette.fg.onSolid',
84
+ borderColor: 'colorPalette.bg.default',
85
+ },
86
+ },
87
+ nodeRenameInput: {
88
+ bg: 'gray.bg.page',
89
+ color: 'gray.fg.default',
90
+ borderWidth: '1px',
91
+ borderColor: 'colorPalette.bg.default',
92
+ outline: '0',
93
+ focusVisibleRing: 'inside',
94
+ },
95
+ } as const
96
+
97
+ export const treeView = defineSlotRecipe({
98
+ className: 'app-tree-view',
99
+ jsx: ['TreeView.Root', 'TreeView.RootProvider'],
100
+ slots: treeViewAnatomy.keys(),
101
+ base: {
102
+ root: { width: 'full', display: 'flex', flexDirection: 'column' },
103
+ tree: { display: 'flex', flexDirection: 'column', outline: '0' },
104
+ branch: { position: 'relative' },
105
+ branchContent: { position: 'relative' },
106
+ branchIndentGuide: {
107
+ height: 'full',
108
+ width: '1px',
109
+ position: 'absolute',
110
+ pointerEvents: 'none',
111
+ '--tree-depth': 'calc(var(--depth) - 1)',
112
+ },
113
+ branchIndicator: {
114
+ color: 'inherit',
115
+ display: 'inline-flex',
116
+ transformOrigin: 'center',
117
+ transition: 'transform 0.2s',
118
+ _open: { transform: 'rotate(90deg)' },
119
+ '&[dir=rtl]': { transform: 'rotate(180deg)', _open: { transform: 'rotate(90deg)' } },
120
+ },
121
+ branchTrigger: { display: 'inline-flex', alignItems: 'center', justifyContent: 'center' },
122
+ branchControl: itemStyle,
123
+ item: itemStyle,
124
+ itemText: { flex: '1', minWidth: '0' },
125
+ branchText: { flex: '1', minWidth: '0' },
126
+ itemIndicator: { display: 'inline-flex', '&[hidden]': { display: 'none' } },
127
+ nodeCheckbox: {
128
+ display: 'inline-flex',
129
+ alignItems: 'center',
130
+ justifyContent: 'center',
131
+ flexShrink: '0',
132
+ },
133
+ nodeRenameInput: { minWidth: '0' },
134
+ },
135
+ variants: {
136
+ size: {
137
+ md: {
138
+ ...sizeStyles,
139
+ tree: {
140
+ ...sizeStyles.tree,
141
+ textStyle: 'sm',
142
+ '--tree-indent-size': '{spacing.4}',
143
+ '--tree-icon-size': '{spacing.4}',
144
+ '--tree-padding-inline': '{spacing.3}',
145
+ '--tree-padding-block': '{spacing.1.5}',
146
+ },
147
+ },
148
+ sm: {
149
+ ...sizeStyles,
150
+ tree: {
151
+ ...sizeStyles.tree,
152
+ textStyle: 'sm',
153
+ '--tree-indent-size': '{spacing.4}',
154
+ '--tree-icon-size': '{spacing.3}',
155
+ '--tree-padding-inline': '{spacing.3}',
156
+ '--tree-padding-block': '{spacing.1}',
157
+ },
158
+ },
159
+ xs: {
160
+ ...sizeStyles,
161
+ tree: {
162
+ ...sizeStyles.tree,
163
+ textStyle: 'xs',
164
+ '--tree-indent-size': '{spacing.4}',
165
+ '--tree-icon-size': '{spacing.3}',
166
+ '--tree-padding-inline': '{spacing.2}',
167
+ '--tree-padding-block': '{spacing.1}',
168
+ },
169
+ },
170
+ unstyled: {},
171
+ },
172
+ variant: {
173
+ subtle: {
174
+ ...appearance,
175
+ branchControl: { ...appearance.branchControl, ...subtle },
176
+ item: { ...appearance.item, ...subtle },
177
+ },
178
+ solid: {
179
+ ...appearance,
180
+ branchControl: { ...appearance.branchControl, ...solid },
181
+ item: { ...appearance.item, ...solid },
182
+ nodeCheckbox: {
183
+ ...appearance.nodeCheckbox,
184
+ '[data-selected] &': { borderColor: 'colorPalette.fg.onSolid' },
185
+ },
186
+ },
187
+ unstyled: {},
188
+ },
189
+ animateContent: {
190
+ true: {
191
+ branchContent: {
192
+ overflow: 'hidden',
193
+ _open: { animationName: 'expand-height, fade-in', animationDuration: 'normal' },
194
+ _closed: { animationName: 'collapse-height, fade-out', animationDuration: 'normal' },
195
+ },
196
+ },
197
+ },
198
+ },
199
+ defaultVariants: { size: 'md', variant: 'subtle' },
200
+ })
@@ -0,0 +1,91 @@
1
+ import { defineSemanticTokens } from '@pandacss/dev'
2
+
3
+ export const amber = defineSemanticTokens.colors({
4
+ '1': { value: { _light: '#fefdfb', _dark: '#16120c' } },
5
+ '2': { value: { _light: '#fefbe9', _dark: '#1d180f' } },
6
+ '3': { value: { _light: '#fff7c2', _dark: '#302008' } },
7
+ '4': { value: { _light: '#ffee9c', _dark: '#3f2700' } },
8
+ '5': { value: { _light: '#fbe577', _dark: '#4d3000' } },
9
+ '6': { value: { _light: '#f3d673', _dark: '#5c3d05' } },
10
+ '7': { value: { _light: '#e9c162', _dark: '#714f19' } },
11
+ '8': { value: { _light: '#e2a336', _dark: '#8f6424' } },
12
+ '9': { value: { _light: '#ffc53d', _dark: '#ffc53d' } },
13
+ '10': { value: { _light: '#ffba18', _dark: '#ffd60a' } },
14
+ '11': { value: { _light: '#ab6400', _dark: '#ffca16' } },
15
+ '12': { value: { _light: '#4f3422', _dark: '#ffe7b3' } },
16
+ a1: { value: { _light: '#c0800004', _dark: '#e63c0006' } },
17
+ a2: { value: { _light: '#f4d10016', _dark: '#fd9b000d' } },
18
+ a3: { value: { _light: '#ffde003d', _dark: '#fa820022' } },
19
+ a4: { value: { _light: '#ffd40063', _dark: '#fc820032' } },
20
+ a5: { value: { _light: '#f8cf0088', _dark: '#fd8b0041' } },
21
+ a6: { value: { _light: '#eab5008c', _dark: '#fd9b0051' } },
22
+ a7: { value: { _light: '#dc9b009d', _dark: '#ffab2567' } },
23
+ a8: { value: { _light: '#da8a00c9', _dark: '#ffae3587' } },
24
+ a9: { value: { _light: '#ffb300c2', _dark: '#ffc53d' } },
25
+ a10: { value: { _light: '#ffb300e7', _dark: '#ffd60a' } },
26
+ a11: { value: { _light: '#ab6400', _dark: '#ffca16' } },
27
+ a12: { value: { _light: '#341500dd', _dark: '#ffe7b3' } },
28
+ bg: {
29
+ default: {
30
+ DEFAULT: {
31
+ value: '{colors.amber.9}',
32
+ },
33
+ hover: {
34
+ value: '{colors.amber.10}',
35
+ },
36
+ },
37
+ subtle: {
38
+ DEFAULT: {
39
+ value: '{colors.amber.a3}',
40
+ },
41
+ hover: {
42
+ value: '{colors.amber.a4}',
43
+ },
44
+ active: {
45
+ value: '{colors.amber.a5}',
46
+ },
47
+ },
48
+ surface: {
49
+ DEFAULT: {
50
+ value: '{colors.amber.a2}',
51
+ },
52
+ active: {
53
+ value: '{colors.amber.a3}',
54
+ },
55
+ },
56
+ },
57
+ fg: {
58
+ default: {
59
+ value: '{colors.amber.a11}',
60
+ },
61
+ muted: {
62
+ value: '{colors.amber.11}',
63
+ },
64
+ subtle: {
65
+ value: '{colors.amber.10}',
66
+ },
67
+ onSolid: {
68
+ value: {
69
+ _light: '{colors.gray.12}',
70
+ _dark: '{colors.gray.1}',
71
+ },
72
+ },
73
+ },
74
+ border: {
75
+ subtle: {
76
+ value: '{colors.amber.a4}',
77
+ },
78
+ default: {
79
+ DEFAULT: {
80
+ value: '{colors.amber.a6}',
81
+ },
82
+ hover: {
83
+ value: '{colors.amber.a7}',
84
+ },
85
+ },
86
+ strong: {
87
+ value: '{colors.amber.a7}',
88
+ },
89
+ },
90
+ ring: { value: '{colors.amber.bg.default}' },
91
+ })
@@ -0,0 +1,103 @@
1
+ import { defineSemanticTokens } from '@pandacss/dev'
2
+
3
+ export const neutral = defineSemanticTokens.colors({
4
+ '1': { value: { _light: '#fcfcfc', _dark: '#111111' } },
5
+ '2': { value: { _light: '#f9f9f9', _dark: '#191919' } },
6
+ '3': { value: { _light: '#f0f0f0', _dark: '#222222' } },
7
+ '4': { value: { _light: '#e8e8e8', _dark: '#2a2a2a' } },
8
+ '5': { value: { _light: '#e0e0e0', _dark: '#313131' } },
9
+ '6': { value: { _light: '#d9d9d9', _dark: '#3a3a3a' } },
10
+ '7': { value: { _light: '#cecece', _dark: '#484848' } },
11
+ '8': { value: { _light: '#bbbbbb', _dark: '#606060' } },
12
+ '9': { value: { _light: '#8d8d8d', _dark: '#6e6e6e' } },
13
+ '10': { value: { _light: '#838383', _dark: '#7b7b7b' } },
14
+ '11': { value: { _light: '#646464', _dark: '#b4b4b4' } },
15
+ '12': { value: { _light: '#202020', _dark: '#eeeeee' } },
16
+ a1: { value: { _light: '#00000003', _dark: '#00000000' } },
17
+ a2: { value: { _light: '#00000006', _dark: '#ffffff09' } },
18
+ a3: { value: { _light: '#0000000f', _dark: '#ffffff12' } },
19
+ a4: { value: { _light: '#00000017', _dark: '#ffffff1b' } },
20
+ a5: { value: { _light: '#0000001f', _dark: '#ffffff22' } },
21
+ a6: { value: { _light: '#00000026', _dark: '#ffffff2c' } },
22
+ a7: { value: { _light: '#00000031', _dark: '#ffffff3b' } },
23
+ a8: { value: { _light: '#00000044', _dark: '#ffffff55' } },
24
+ a9: { value: { _light: '#00000072', _dark: '#ffffff64' } },
25
+ a10: { value: { _light: '#0000007c', _dark: '#ffffff72' } },
26
+ a11: { value: { _light: '#0000009b', _dark: '#ffffffaf' } },
27
+ a12: { value: { _light: '#000000df', _dark: '#ffffffed' } },
28
+ bg: {
29
+ default: {
30
+ DEFAULT: {
31
+ value: {
32
+ _light: '{colors.black}',
33
+ _dark: '{colors.white}',
34
+ },
35
+ },
36
+ hover: {
37
+ value: '{colors.gray.12}',
38
+ },
39
+ },
40
+ subtle: {
41
+ DEFAULT: {
42
+ value: '{colors.gray.a3}',
43
+ },
44
+ hover: {
45
+ value: '{colors.gray.a4}',
46
+ },
47
+ active: {
48
+ value: '{colors.gray.a5}',
49
+ },
50
+ },
51
+ surface: {
52
+ DEFAULT: {
53
+ value: {
54
+ _light: '{colors.white}',
55
+ _dark: '{colors.gray.1}',
56
+ },
57
+ },
58
+ hover: {
59
+ value: '{colors.gray.2}',
60
+ },
61
+ active: {
62
+ value: '{colors.gray.3}',
63
+ },
64
+ },
65
+ page: {
66
+ value: '{colors.gray.1}',
67
+ },
68
+ },
69
+ fg: {
70
+ default: {
71
+ value: '{colors.gray.12}',
72
+ },
73
+ muted: {
74
+ value: '{colors.gray.11}',
75
+ },
76
+ subtle: {
77
+ value: '{colors.gray.10}',
78
+ },
79
+ onSolid: {
80
+ value: {
81
+ _light: '{colors.white}',
82
+ _dark: '{colors.black}',
83
+ },
84
+ },
85
+ },
86
+ border: {
87
+ subtle: {
88
+ value: '{colors.gray.4}',
89
+ },
90
+ default: {
91
+ DEFAULT: {
92
+ value: '{colors.gray.6}',
93
+ },
94
+ hover: {
95
+ value: '{colors.gray.7}',
96
+ },
97
+ },
98
+ strong: {
99
+ value: '{colors.gray.6}',
100
+ },
101
+ },
102
+ ring: { value: '{colors.gray.bg.default}' },
103
+ })
@@ -0,0 +1,88 @@
1
+ import { defineSemanticTokens } from '@pandacss/dev'
2
+
3
+ export const green = defineSemanticTokens.colors({
4
+ '1': { value: { _light: '#fbfefc', _dark: '#0e1512' } },
5
+ '2': { value: { _light: '#f4fbf6', _dark: '#121b17' } },
6
+ '3': { value: { _light: '#e6f6eb', _dark: '#132d21' } },
7
+ '4': { value: { _light: '#d6f1df', _dark: '#113b29' } },
8
+ '5': { value: { _light: '#c4e8d1', _dark: '#174933' } },
9
+ '6': { value: { _light: '#adddc0', _dark: '#20573e' } },
10
+ '7': { value: { _light: '#8eceaa', _dark: '#28684a' } },
11
+ '8': { value: { _light: '#5bb98b', _dark: '#2f7c57' } },
12
+ '9': { value: { _light: '#30a46c', _dark: '#30a46c' } },
13
+ '10': { value: { _light: '#2b9a66', _dark: '#33b074' } },
14
+ '11': { value: { _light: '#218358', _dark: '#3dd68c' } },
15
+ '12': { value: { _light: '#193b2d', _dark: '#b1f1cb' } },
16
+ a1: { value: { _light: '#00c04004', _dark: '#00de4505' } },
17
+ a2: { value: { _light: '#00a32f0b', _dark: '#29f99d0b' } },
18
+ a3: { value: { _light: '#00a43319', _dark: '#22ff991e' } },
19
+ a4: { value: { _light: '#00a83829', _dark: '#11ff992d' } },
20
+ a5: { value: { _light: '#019c393b', _dark: '#2bffa23c' } },
21
+ a6: { value: { _light: '#00963c52', _dark: '#44ffaa4b' } },
22
+ a7: { value: { _light: '#00914071', _dark: '#50fdac5e' } },
23
+ a8: { value: { _light: '#00924ba4', _dark: '#54ffad73' } },
24
+ a9: { value: { _light: '#008f4acf', _dark: '#44ffa49e' } },
25
+ a10: { value: { _light: '#008647d4', _dark: '#43fea4ab' } },
26
+ a11: { value: { _light: '#00713fde', _dark: '#46fea5d4' } },
27
+ a12: { value: { _light: '#002616e6', _dark: '#bbffd7f0' } },
28
+ bg: {
29
+ default: {
30
+ DEFAULT: {
31
+ value: '{colors.green.9}',
32
+ },
33
+ hover: {
34
+ value: '{colors.green.10}',
35
+ },
36
+ },
37
+ subtle: {
38
+ DEFAULT: {
39
+ value: '{colors.green.a3}',
40
+ },
41
+ hover: {
42
+ value: '{colors.green.a4}',
43
+ },
44
+ active: {
45
+ value: '{colors.green.a5}',
46
+ },
47
+ },
48
+ surface: {
49
+ DEFAULT: {
50
+ value: '{colors.green.a2}',
51
+ },
52
+ active: {
53
+ value: '{colors.green.a3}',
54
+ },
55
+ },
56
+ },
57
+ fg: {
58
+ default: {
59
+ value: '{colors.green.a11}',
60
+ },
61
+ muted: {
62
+ value: '{colors.green.11}',
63
+ },
64
+ subtle: {
65
+ value: '{colors.green.10}',
66
+ },
67
+ onSolid: {
68
+ value: 'white',
69
+ },
70
+ },
71
+ border: {
72
+ subtle: {
73
+ value: '{colors.green.a4}',
74
+ },
75
+ default: {
76
+ DEFAULT: {
77
+ value: '{colors.green.a6}',
78
+ },
79
+ hover: {
80
+ value: '{colors.green.a7}',
81
+ },
82
+ },
83
+ strong: {
84
+ value: '{colors.green.a7}',
85
+ },
86
+ },
87
+ ring: { value: '{colors.green.bg.default}' },
88
+ })
@@ -0,0 +1,14 @@
1
+ import { defineSemanticTokens } from '@pandacss/dev'
2
+ import { green } from './green'
3
+ import { lime } from './lime'
4
+ import { red } from './red'
5
+ import { neutral } from './gray'
6
+ import { amber } from './amber'
7
+
8
+ export const colors = defineSemanticTokens.colors({
9
+ green,
10
+ lime,
11
+ red,
12
+ amber,
13
+ gray: neutral,
14
+ })
@@ -0,0 +1,91 @@
1
+ import { defineSemanticTokens } from '@pandacss/dev'
2
+
3
+ export const lime = defineSemanticTokens.colors({
4
+ '1': { value: { _light: '#fcfdfa', _dark: '#11130c' } },
5
+ '2': { value: { _light: '#f8faf3', _dark: '#151a10' } },
6
+ '3': { value: { _light: '#eef6d6', _dark: '#1f2917' } },
7
+ '4': { value: { _light: '#e2f0bd', _dark: '#29371d' } },
8
+ '5': { value: { _light: '#d3e7a6', _dark: '#334423' } },
9
+ '6': { value: { _light: '#c2da91', _dark: '#3d522a' } },
10
+ '7': { value: { _light: '#abc978', _dark: '#496231' } },
11
+ '8': { value: { _light: '#8db654', _dark: '#577538' } },
12
+ '9': { value: { _light: '#bdee63', _dark: '#bdee63' } },
13
+ '10': { value: { _light: '#b0e64c', _dark: '#d4ff70' } },
14
+ '11': { value: { _light: '#5c7c2f', _dark: '#bde56c' } },
15
+ '12': { value: { _light: '#37401c', _dark: '#e3f7ba' } },
16
+ a1: { value: { _light: '#66990005', _dark: '#11bb0003' } },
17
+ a2: { value: { _light: '#6b95000c', _dark: '#78f7000a' } },
18
+ a3: { value: { _light: '#96c80029', _dark: '#9bfd4c1a' } },
19
+ a4: { value: { _light: '#8fc60042', _dark: '#a7fe5c29' } },
20
+ a5: { value: { _light: '#81bb0059', _dark: '#affe6537' } },
21
+ a6: { value: { _light: '#72aa006e', _dark: '#b2fe6d46' } },
22
+ a7: { value: { _light: '#61990087', _dark: '#b6ff6f57' } },
23
+ a8: { value: { _light: '#559200ab', _dark: '#b6fd6d6c' } },
24
+ a9: { value: { _light: '#93e4009c', _dark: '#caff69ed' } },
25
+ a10: { value: { _light: '#8fdc00b3', _dark: '#d4ff70' } },
26
+ a11: { value: { _light: '#375f00d0', _dark: '#d1fe77e4' } },
27
+ a12: { value: { _light: '#1e2900e3', _dark: '#e9febff7' } },
28
+ bg: {
29
+ default: {
30
+ DEFAULT: {
31
+ value: '{colors.lime.9}',
32
+ },
33
+ hover: {
34
+ value: '{colors.lime.10}',
35
+ },
36
+ },
37
+ subtle: {
38
+ DEFAULT: {
39
+ value: '{colors.lime.a3}',
40
+ },
41
+ hover: {
42
+ value: '{colors.lime.a4}',
43
+ },
44
+ active: {
45
+ value: '{colors.lime.a5}',
46
+ },
47
+ },
48
+ surface: {
49
+ DEFAULT: {
50
+ value: '{colors.lime.a2}',
51
+ },
52
+ active: {
53
+ value: '{colors.lime.a3}',
54
+ },
55
+ },
56
+ },
57
+ fg: {
58
+ default: {
59
+ value: '{colors.lime.a11}',
60
+ },
61
+ muted: {
62
+ value: '{colors.lime.11}',
63
+ },
64
+ subtle: {
65
+ value: '{colors.lime.10}',
66
+ },
67
+ onSolid: {
68
+ value: {
69
+ _light: '{colors.gray.12}',
70
+ _dark: '{colors.gray.1}',
71
+ },
72
+ },
73
+ },
74
+ border: {
75
+ subtle: {
76
+ value: '{colors.lime.a4}',
77
+ },
78
+ default: {
79
+ DEFAULT: {
80
+ value: '{colors.lime.a6}',
81
+ },
82
+ hover: {
83
+ value: '{colors.lime.a7}',
84
+ },
85
+ },
86
+ strong: {
87
+ value: '{colors.lime.a7}',
88
+ },
89
+ },
90
+ ring: { value: '{colors.lime.bg.default}' },
91
+ })
@@ -0,0 +1,88 @@
1
+ import { defineSemanticTokens } from '@pandacss/dev'
2
+
3
+ export const red = defineSemanticTokens.colors({
4
+ '1': { value: { _light: '#fffcfc', _dark: '#191111' } },
5
+ '2': { value: { _light: '#fff7f7', _dark: '#201314' } },
6
+ '3': { value: { _light: '#feebec', _dark: '#3b1219' } },
7
+ '4': { value: { _light: '#ffdbdc', _dark: '#500f1c' } },
8
+ '5': { value: { _light: '#ffcdce', _dark: '#611623' } },
9
+ '6': { value: { _light: '#fdbdbe', _dark: '#72232d' } },
10
+ '7': { value: { _light: '#f4a9aa', _dark: '#8c333a' } },
11
+ '8': { value: { _light: '#eb8e90', _dark: '#b54548' } },
12
+ '9': { value: { _light: '#e5484d', _dark: '#e5484d' } },
13
+ '10': { value: { _light: '#dc3e42', _dark: '#ec5d5e' } },
14
+ '11': { value: { _light: '#ce2c31', _dark: '#ff9592' } },
15
+ '12': { value: { _light: '#641723', _dark: '#ffd1d9' } },
16
+ a1: { value: { _light: '#ff000003', _dark: '#f4121209' } },
17
+ a2: { value: { _light: '#ff000008', _dark: '#f22f3e11' } },
18
+ a3: { value: { _light: '#f3000d14', _dark: '#ff173f2d' } },
19
+ a4: { value: { _light: '#ff000824', _dark: '#fe0a3b44' } },
20
+ a5: { value: { _light: '#ff000632', _dark: '#ff204756' } },
21
+ a6: { value: { _light: '#f8000442', _dark: '#ff3e5668' } },
22
+ a7: { value: { _light: '#df000356', _dark: '#ff536184' } },
23
+ a8: { value: { _light: '#d2000571', _dark: '#ff5d61b0' } },
24
+ a9: { value: { _light: '#db0007b7', _dark: '#fe4e54e4' } },
25
+ a10: { value: { _light: '#d10005c1', _dark: '#ff6465eb' } },
26
+ a11: { value: { _light: '#c40006d3', _dark: '#ff9592' } },
27
+ a12: { value: { _light: '#55000de8', _dark: '#ffd1d9' } },
28
+ bg: {
29
+ default: {
30
+ DEFAULT: {
31
+ value: '{colors.red.9}',
32
+ },
33
+ hover: {
34
+ value: '{colors.red.10}',
35
+ },
36
+ },
37
+ subtle: {
38
+ DEFAULT: {
39
+ value: '{colors.red.a3}',
40
+ },
41
+ hover: {
42
+ value: '{colors.red.a4}',
43
+ },
44
+ active: {
45
+ value: '{colors.red.a5}',
46
+ },
47
+ },
48
+ surface: {
49
+ DEFAULT: {
50
+ value: '{colors.red.a2}',
51
+ },
52
+ active: {
53
+ value: '{colors.red.a3}',
54
+ },
55
+ },
56
+ },
57
+ fg: {
58
+ default: {
59
+ value: '{colors.red.a11}',
60
+ },
61
+ muted: {
62
+ value: '{colors.red.11}',
63
+ },
64
+ subtle: {
65
+ value: '{colors.red.10}',
66
+ },
67
+ onSolid: {
68
+ value: 'white',
69
+ },
70
+ },
71
+ border: {
72
+ subtle: {
73
+ value: '{colors.red.a4}',
74
+ },
75
+ default: {
76
+ DEFAULT: {
77
+ value: '{colors.red.a6}',
78
+ },
79
+ hover: {
80
+ value: '{colors.red.a7}',
81
+ },
82
+ },
83
+ strong: {
84
+ value: '{colors.red.a7}',
85
+ },
86
+ },
87
+ ring: { value: '{colors.red.bg.default}' },
88
+ })
@@ -0,0 +1,8 @@
1
+ import { defineSemanticTokens } from '@pandacss/dev'
2
+ import { colors } from './colors'
3
+ import { shadows } from './shadows'
4
+
5
+ export const semanticTokens = defineSemanticTokens({
6
+ colors,
7
+ shadows,
8
+ })