@asanchez-sa/abby 0.0.0-stage → 0.1.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.
- package/README.md +217 -2
- package/dist/_virtual/_rolldown/runtime.js +26 -0
- package/dist/agents/approvals.d.ts +46 -0
- package/dist/agents/approvals.js +58 -0
- package/dist/agents/changes.d.ts +21 -0
- package/dist/agents/changes.js +21 -0
- package/dist/agents/hooks.d.ts +20 -0
- package/dist/agents/hooks.js +58 -0
- package/dist/agents/index.d.ts +11 -0
- package/dist/agents/index.js +9 -0
- package/dist/agents/run-tool.d.ts +44 -0
- package/dist/agents/run-tool.js +79 -0
- package/dist/agents/ui-sdk.d.ts +5 -0
- package/dist/agents/ui-sdk.js +3 -0
- package/dist/behaviors/canvas/index.d.ts +2 -0
- package/dist/behaviors/canvas/index.js +1 -0
- package/dist/behaviors/canvas/ui-sdk.d.ts +2 -0
- package/dist/behaviors/canvas/ui-sdk.js +1 -0
- package/dist/behaviors/drag-and-drop/index.d.ts +2 -0
- package/dist/behaviors/drag-and-drop/index.js +1 -0
- package/dist/behaviors/drag-and-drop/ui-sdk.d.ts +2 -0
- package/dist/behaviors/drag-and-drop/ui-sdk.js +1 -0
- package/dist/behaviors/dragging/index.d.ts +2 -0
- package/dist/behaviors/dragging/index.js +1 -0
- package/dist/behaviors/dragging/ui-sdk.d.ts +2 -0
- package/dist/behaviors/dragging/ui-sdk.js +1 -0
- package/dist/behaviors/focus/index.d.ts +2 -0
- package/dist/behaviors/focus/index.js +1 -0
- package/dist/behaviors/focus/ui-sdk.d.ts +2 -0
- package/dist/behaviors/focus/ui-sdk.js +1 -0
- package/dist/behaviors/lists/index.d.ts +3 -0
- package/dist/behaviors/lists/index.js +3 -0
- package/dist/behaviors/lists/ui-sdk.d.ts +3 -0
- package/dist/behaviors/lists/ui-sdk.js +3 -0
- package/dist/behaviors/popups/index.d.ts +3 -0
- package/dist/behaviors/popups/index.js +3 -0
- package/dist/behaviors/popups/ui-sdk.d.ts +3 -0
- package/dist/behaviors/popups/ui-sdk.js +3 -0
- package/dist/behaviors/preferences/index.d.ts +3 -0
- package/dist/behaviors/preferences/index.js +3 -0
- package/dist/behaviors/preferences/ui-sdk.d.ts +3 -0
- package/dist/behaviors/preferences/ui-sdk.js +3 -0
- package/dist/behaviors/selection/index.d.ts +3 -0
- package/dist/behaviors/selection/index.js +3 -0
- package/dist/behaviors/selection/indicator.d.ts +13 -0
- package/dist/behaviors/selection/indicator.js +20 -0
- package/dist/behaviors/selection/ui-sdk.d.ts +2 -0
- package/dist/behaviors/selection/ui-sdk.js +1 -0
- package/dist/behaviors/transitions/index.d.ts +3 -0
- package/dist/behaviors/transitions/index.js +3 -0
- package/dist/behaviors/transitions/ui-sdk.d.ts +3 -0
- package/dist/behaviors/transitions/ui-sdk.js +3 -0
- package/dist/behaviors/trees/index.d.ts +2 -0
- package/dist/behaviors/trees/index.js +1 -0
- package/dist/behaviors/trees/ui-sdk.d.ts +2 -0
- package/dist/behaviors/trees/ui-sdk.js +1 -0
- package/dist/components/accordion/accordion.d.ts +13 -0
- package/dist/components/accordion/accordion.js +165 -0
- package/dist/components/alert/alert.d.ts +13 -0
- package/dist/components/alert/alert.js +131 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts +15 -0
- package/dist/components/alert-dialog/alert-dialog.js +257 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +7 -0
- package/dist/components/aspect-ratio/aspect-ratio.js +57 -0
- package/dist/components/attachment/attachment.d.ts +48 -0
- package/dist/components/attachment/attachment.js +372 -0
- package/dist/components/autocomplete/autocomplete.d.ts +32 -0
- package/dist/components/autocomplete/autocomplete.js +466 -0
- package/dist/components/avatar/avatar.d.ts +6 -0
- package/dist/components/avatar/avatar.js +100 -0
- package/dist/components/avatar-group/avatar-group.d.ts +9 -0
- package/dist/components/avatar-group/avatar-group.js +75 -0
- package/dist/components/badge/badge.d.ts +15 -0
- package/dist/components/badge/badge.js +31 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +24 -0
- package/dist/components/breadcrumb/breadcrumb.js +279 -0
- package/dist/components/bubble/bubble.d.ts +26 -0
- package/dist/components/bubble/bubble.js +173 -0
- package/dist/components/button/button.d.ts +18 -0
- package/dist/components/button/button.js +91 -0
- package/dist/components/button-group/button-group.d.ts +15 -0
- package/dist/components/button-group/button-group.js +71 -0
- package/dist/components/calendar/calendar.d.ts +29 -0
- package/dist/components/calendar/calendar.js +453 -0
- package/dist/components/card/card.d.ts +14 -0
- package/dist/components/card/card.js +213 -0
- package/dist/components/carousel/carousel.d.ts +16 -0
- package/dist/components/carousel/carousel.js +364 -0
- package/dist/components/chain-of-thought/chain-of-thought.d.ts +72 -0
- package/dist/components/chain-of-thought/chain-of-thought.js +491 -0
- package/dist/components/chat/chat.d.ts +48 -0
- package/dist/components/chat/chat.js +207 -0
- package/dist/components/checkbox/checkbox.d.ts +10 -0
- package/dist/components/checkbox/checkbox.js +118 -0
- package/dist/components/checkpoint/checkpoint.d.ts +24 -0
- package/dist/components/checkpoint/checkpoint.js +178 -0
- package/dist/components/choice-cards/choice-cards.d.ts +38 -0
- package/dist/components/choice-cards/choice-cards.js +255 -0
- package/dist/components/code-block/code-block.d.ts +58 -0
- package/dist/components/code-block/code-block.js +506 -0
- package/dist/components/code-block/highlighter.js +96 -0
- package/dist/components/code-block/use-highlighted-code.d.ts +11 -0
- package/dist/components/code-block/use-highlighted-code.js +54 -0
- package/dist/components/collapsible/collapsible.d.ts +10 -0
- package/dist/components/collapsible/collapsible.js +92 -0
- package/dist/components/color-picker/color-picker.d.ts +17 -0
- package/dist/components/color-picker/color-picker.js +395 -0
- package/dist/components/combobox/combobox.d.ts +54 -0
- package/dist/components/combobox/combobox.js +683 -0
- package/dist/components/command/command.d.ts +23 -0
- package/dist/components/command/command.js +373 -0
- package/dist/components/command-dock/command-dock.d.ts +118 -0
- package/dist/components/command-dock/command-dock.js +944 -0
- package/dist/components/confirmation/confirmation.d.ts +58 -0
- package/dist/components/confirmation/confirmation.js +181 -0
- package/dist/components/context/context.d.ts +82 -0
- package/dist/components/context/context.js +490 -0
- package/dist/components/date-input/date-input.d.ts +16 -0
- package/dist/components/date-input/date-input.js +89 -0
- package/dist/components/date-picker/date-picker.d.ts +28 -0
- package/dist/components/date-picker/date-picker.js +361 -0
- package/dist/components/dialog/dialog.d.ts +14 -0
- package/dist/components/dialog/dialog.js +261 -0
- package/dist/components/drawer/drawer.d.ts +16 -0
- package/dist/components/drawer/drawer.js +309 -0
- package/dist/components/empty/empty.d.ts +18 -0
- package/dist/components/empty/empty.js +192 -0
- package/dist/components/field/field.d.ts +15 -0
- package/dist/components/field/field.js +261 -0
- package/dist/components/file-input/file-input.d.ts +12 -0
- package/dist/components/file-input/file-input.js +216 -0
- package/dist/components/file-tree/file-tree.d.ts +45 -0
- package/dist/components/file-tree/file-tree.js +283 -0
- package/dist/components/hover-card/hover-card.d.ts +10 -0
- package/dist/components/hover-card/hover-card.js +118 -0
- package/dist/components/icon/icon.d.ts +14 -0
- package/dist/components/icon/icon.js +60 -0
- package/dist/components/image-cropper/image-cropper.d.ts +15 -0
- package/dist/components/image-cropper/image-cropper.js +334 -0
- package/dist/components/inline-citation/inline-citation.d.ts +46 -0
- package/dist/components/inline-citation/inline-citation.js +269 -0
- package/dist/components/input/input.d.ts +9 -0
- package/dist/components/input/input.js +43 -0
- package/dist/components/input-group/input-group.d.ts +42 -0
- package/dist/components/input-group/input-group.js +192 -0
- package/dist/components/item/item.d.ts +32 -0
- package/dist/components/item/item.js +394 -0
- package/dist/components/kbd/kbd.d.ts +9 -0
- package/dist/components/kbd/kbd.js +75 -0
- package/dist/components/label/label.d.ts +6 -0
- package/dist/components/label/label.js +40 -0
- package/dist/components/link/link.d.ts +21 -0
- package/dist/components/link/link.js +126 -0
- package/dist/components/listbox/listbox.d.ts +20 -0
- package/dist/components/listbox/listbox.js +199 -0
- package/dist/components/marker/marker.d.ts +11 -0
- package/dist/components/marker/marker.js +88 -0
- package/dist/components/menu/menu.d.ts +38 -0
- package/dist/components/menu/menu.js +553 -0
- package/dist/components/menubar/menubar.d.ts +9 -0
- package/dist/components/menubar/menubar.js +47 -0
- package/dist/components/message/message.d.ts +44 -0
- package/dist/components/message/message.js +328 -0
- package/dist/components/message-scroller/message-scroller.d.ts +111 -0
- package/dist/components/message-scroller/message-scroller.js +957 -0
- package/dist/components/meter/meter.d.ts +8 -0
- package/dist/components/meter/meter.js +162 -0
- package/dist/components/model-selector/model-selector.d.ts +155 -0
- package/dist/components/model-selector/model-selector.js +905 -0
- package/dist/components/native-select/native-select.d.ts +27 -0
- package/dist/components/native-select/native-select.js +226 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +29 -0
- package/dist/components/navigation-menu/navigation-menu.js +318 -0
- package/dist/components/not-label.js +9 -0
- package/dist/components/note-editor/blocks.d.ts +22 -0
- package/dist/components/note-editor/blocks.js +245 -0
- package/dist/components/note-editor/diff.d.ts +19 -0
- package/dist/components/note-editor/diff.js +64 -0
- package/dist/components/note-editor/editor.js +249 -0
- package/dist/components/note-editor/note-editor.d.ts +109 -0
- package/dist/components/note-editor/note-editor.js +954 -0
- package/dist/components/note-editor/parts/comments.d.ts +24 -0
- package/dist/components/note-editor/parts/comments.js +336 -0
- package/dist/components/note-editor/parts/header.d.ts +25 -0
- package/dist/components/note-editor/parts/header.js +263 -0
- package/dist/components/note-editor/parts/history.d.ts +56 -0
- package/dist/components/note-editor/parts/history.js +409 -0
- package/dist/components/note-editor/parts/presence.d.ts +31 -0
- package/dist/components/note-editor/parts/presence.js +140 -0
- package/dist/components/note-editor/parts/suggestions.d.ts +45 -0
- package/dist/components/note-editor/parts/suggestions.js +316 -0
- package/dist/components/note-editor/parts/toolbar.d.ts +38 -0
- package/dist/components/note-editor/parts/toolbar.js +683 -0
- package/dist/components/note-editor/people.d.ts +84 -0
- package/dist/components/note-editor/people.js +276 -0
- package/dist/components/note-editor/person.d.ts +11 -0
- package/dist/components/note-editor/person.js +15 -0
- package/dist/components/note-place/note-place.d.ts +42 -0
- package/dist/components/note-place/note-place.js +256 -0
- package/dist/components/note-status/note-status.d.ts +59 -0
- package/dist/components/note-status/note-status.js +380 -0
- package/dist/components/number-input/number-input.d.ts +12 -0
- package/dist/components/number-input/number-input.js +252 -0
- package/dist/components/otp-input/otp-input.d.ts +12 -0
- package/dist/components/otp-input/otp-input.js +136 -0
- package/dist/components/pagination/pagination.d.ts +23 -0
- package/dist/components/pagination/pagination.js +218 -0
- package/dist/components/password-input/password-input.d.ts +11 -0
- package/dist/components/password-input/password-input.js +117 -0
- package/dist/components/plan/plan.d.ts +51 -0
- package/dist/components/plan/plan.js +320 -0
- package/dist/components/popover/popover.d.ts +16 -0
- package/dist/components/popover/popover.js +268 -0
- package/dist/components/preferences/preferences.d.ts +5 -0
- package/dist/components/preferences/preferences.js +18 -0
- package/dist/components/progress/progress.d.ts +8 -0
- package/dist/components/progress/progress.js +162 -0
- package/dist/components/prompt-input/prompt-input.d.ts +247 -0
- package/dist/components/prompt-input/prompt-input.js +1367 -0
- package/dist/components/questionnaire/questionnaire.d.ts +174 -0
- package/dist/components/questionnaire/questionnaire.js +1628 -0
- package/dist/components/queue/queue.d.ts +82 -0
- package/dist/components/queue/queue.js +471 -0
- package/dist/components/radio/radio.d.ts +7 -0
- package/dist/components/radio/radio.js +101 -0
- package/dist/components/rating/rating.d.ts +10 -0
- package/dist/components/rating/rating.js +95 -0
- package/dist/components/reasoning/reasoning.d.ts +50 -0
- package/dist/components/reasoning/reasoning.js +233 -0
- package/dist/components/resizable/resizable.d.ts +6 -0
- package/dist/components/resizable/resizable.js +100 -0
- package/dist/components/scroll-area/scroll-area.d.ts +17 -0
- package/dist/components/scroll-area/scroll-area.js +211 -0
- package/dist/components/segmented-control/segmented-control.d.ts +16 -0
- package/dist/components/segmented-control/segmented-control.js +142 -0
- package/dist/components/select/select.d.ts +43 -0
- package/dist/components/select/select.js +577 -0
- package/dist/components/separator/separator.d.ts +4 -0
- package/dist/components/separator/separator.js +38 -0
- package/dist/components/sheet/sheet.d.ts +24 -0
- package/dist/components/sheet/sheet.js +330 -0
- package/dist/components/sidebar/sidebar.d.ts +138 -0
- package/dist/components/sidebar/sidebar.js +1374 -0
- package/dist/components/skeleton/skeleton.d.ts +4 -0
- package/dist/components/skeleton/skeleton.js +40 -0
- package/dist/components/slider/slider.d.ts +9 -0
- package/dist/components/slider/slider.js +193 -0
- package/dist/components/sources/sources.d.ts +35 -0
- package/dist/components/sources/sources.js +209 -0
- package/dist/components/spinner/spinner.d.ts +11 -0
- package/dist/components/spinner/spinner.js +59 -0
- package/dist/components/stack-trace/parse-stack-trace.d.ts +21 -0
- package/dist/components/stack-trace/parse-stack-trace.js +61 -0
- package/dist/components/stack-trace/stack-trace.d.ts +79 -0
- package/dist/components/stack-trace/stack-trace.js +434 -0
- package/dist/components/subagent/subagent.d.ts +71 -0
- package/dist/components/subagent/subagent.js +450 -0
- package/dist/components/suggestion/suggestion.d.ts +21 -0
- package/dist/components/suggestion/suggestion.js +130 -0
- package/dist/components/switch/switch.d.ts +6 -0
- package/dist/components/switch/switch.js +70 -0
- package/dist/components/table/table.d.ts +19 -0
- package/dist/components/table/table.js +284 -0
- package/dist/components/table-of-contents/spy.js +84 -0
- package/dist/components/table-of-contents/table-of-contents.d.ts +92 -0
- package/dist/components/table-of-contents/table-of-contents.js +787 -0
- package/dist/components/tabs/tabs.d.ts +25 -0
- package/dist/components/tabs/tabs.js +273 -0
- package/dist/components/task/task.d.ts +40 -0
- package/dist/components/task/task.js +262 -0
- package/dist/components/terminal/terminal.d.ts +82 -0
- package/dist/components/terminal/terminal.js +457 -0
- package/dist/components/test-results/test-results.d.ts +127 -0
- package/dist/components/test-results/test-results.js +687 -0
- package/dist/components/textarea/textarea.d.ts +8 -0
- package/dist/components/textarea/textarea.js +43 -0
- package/dist/components/time-input/time-input.d.ts +7 -0
- package/dist/components/time-input/time-input.js +82 -0
- package/dist/components/timeline/timeline.d.ts +19 -0
- package/dist/components/timeline/timeline.js +247 -0
- package/dist/components/toast/toast.d.ts +12 -0
- package/dist/components/toast/toast.js +285 -0
- package/dist/components/toggle/toggle.d.ts +15 -0
- package/dist/components/toggle/toggle.js +137 -0
- package/dist/components/token-input/token-input.d.ts +7 -0
- package/dist/components/token-input/token-input.js +117 -0
- package/dist/components/tool/tool.d.ts +66 -0
- package/dist/components/tool/tool.js +413 -0
- package/dist/components/toolbar/toolbar.d.ts +91 -0
- package/dist/components/toolbar/toolbar.js +655 -0
- package/dist/components/tooltip/tooltip.d.ts +8 -0
- package/dist/components/tooltip/tooltip.js +97 -0
- package/dist/components/trace/trace.d.ts +31 -0
- package/dist/components/trace/trace.js +309 -0
- package/dist/components/tree/tree.d.ts +13 -0
- package/dist/components/tree/tree.js +258 -0
- package/dist/components/trigger-menu/trigger-menu.d.ts +30 -0
- package/dist/components/trigger-menu/trigger-menu.js +352 -0
- package/dist/components/usage/usage.d.ts +132 -0
- package/dist/components/usage/usage.js +1368 -0
- package/dist/components/waterfall/waterfall.d.ts +20 -0
- package/dist/components/waterfall/waterfall.js +360 -0
- package/dist/components/week-strip/week-strip.d.ts +177 -0
- package/dist/components/week-strip/week-strip.js +1081 -0
- package/dist/core/index.d.ts +7 -0
- package/dist/core/index.js +27 -0
- package/dist/core/ui-sdk.d.ts +3 -0
- package/dist/core/ui-sdk.js +3 -0
- package/dist/core/use-primitive-state.d.ts +14 -0
- package/dist/core/use-primitive-state.js +25 -0
- package/dist/styles/LICENSE-shadcn.md +21 -0
- package/dist/styles/color-scheme.css +32 -0
- package/dist/styles/components.css +303 -0
- package/dist/styles/index.css +41 -0
- package/dist/styles/tokens.css +474 -0
- package/dist/styles/typeset/shadcn.css +506 -0
- package/dist/styles/typeset.css +70 -0
- package/dist/styles/utilities.css +555 -0
- package/dist/tools/observe/index.d.ts +2 -0
- package/dist/tools/observe/index.js +3 -0
- package/dist/tools/observe/ui-sdk.d.ts +1 -0
- package/dist/tools/observe/ui-sdk.js +2 -0
- package/dist/tools/testing/check-agent.d.ts +28 -0
- package/dist/tools/testing/check-agent.js +42 -0
- package/dist/tools/testing/index.d.ts +4 -0
- package/dist/tools/testing/index.js +4 -0
- package/dist/tools/testing/ui-sdk.d.ts +1 -0
- package/dist/tools/testing/ui-sdk.js +2 -0
- package/dist/utilities/cn/index.d.ts +12 -0
- package/dist/utilities/cn/index.js +47 -0
- package/dist/utilities/color/index.d.ts +2 -0
- package/dist/utilities/color/index.js +3 -0
- package/dist/utilities/color/ui-sdk.d.ts +1 -0
- package/dist/utilities/color/ui-sdk.js +2 -0
- package/dist/utilities/date/index.d.ts +2 -0
- package/dist/utilities/date/index.js +6 -0
- package/dist/utilities/date/ui-sdk.d.ts +1 -0
- package/dist/utilities/date/ui-sdk.js +2 -0
- package/dist/utilities/image/index.d.ts +2 -0
- package/dist/utilities/image/index.js +3 -0
- package/dist/utilities/image/ui-sdk.d.ts +1 -0
- package/dist/utilities/image/ui-sdk.js +2 -0
- package/dist/utilities/mobile/index.d.ts +2 -0
- package/dist/utilities/mobile/index.js +1 -0
- package/dist/utilities/mobile/ui-sdk.d.ts +2 -0
- package/dist/utilities/mobile/ui-sdk.js +1 -0
- package/dist/utilities/number/index.d.ts +2 -0
- package/dist/utilities/number/index.js +3 -0
- package/dist/utilities/number/ui-sdk.d.ts +1 -0
- package/dist/utilities/number/ui-sdk.js +2 -0
- package/dist/utilities/platform/index.d.ts +3 -0
- package/dist/utilities/platform/index.js +14 -0
- package/dist/utilities/platform/ui-sdk.d.ts +3 -0
- package/dist/utilities/platform/ui-sdk.js +3 -0
- package/dist/utilities/storage/index.d.ts +2 -0
- package/dist/utilities/storage/index.js +1 -0
- package/dist/utilities/storage/ui-sdk.d.ts +2 -0
- package/dist/utilities/storage/ui-sdk.js +1 -0
- package/dist/utilities/text/index.d.ts +3 -0
- package/dist/utilities/text/index.js +3 -0
- package/dist/utilities/text/ui-sdk.d.ts +3 -0
- package/dist/utilities/text/ui-sdk.js +3 -0
- package/package.json +192 -4
- package/skills/agent-ready-ui/SKILL.md +229 -0
- package/skills/blocks/SKILL.md +262 -0
- package/skills/compose-screens/SKILL.md +354 -0
- package/skills/note-editor/SKILL.md +493 -0
- package/skills/note-status/SKILL.md +295 -0
- package/skills/setup/SKILL.md +136 -0
- package/skills/theming/SKILL.md +216 -0
- package/src/blocks/notes/adapters.ts +77 -0
- package/src/blocks/notes/data.ts +508 -0
- package/src/blocks/notes/notes-block.tsx +244 -0
- package/src/blocks/notes/parts/home.tsx +219 -0
- package/src/blocks/notes/parts/no-access.tsx +84 -0
- package/src/blocks/notes/parts/note-screen.tsx +412 -0
- package/src/blocks/notes/parts/notes-sidebar.tsx +277 -0
- package/src/blocks/notes/parts/panels.tsx +393 -0
- package/src/blocks/notes/parts/place.ts +15 -0
- package/src/blocks/notes/parts/review-dialog.tsx +159 -0
- package/src/blocks/notes/parts/share.tsx +172 -0
- package/src/blocks/notes/texts.ts +135 -0
- package/src/blocks/shell/adapters.ts +69 -0
- package/src/blocks/shell/data.ts +281 -0
- package/src/blocks/shell/parts/compose.tsx +292 -0
- package/src/blocks/shell/parts/home.tsx +203 -0
- package/src/blocks/shell/parts/marks.tsx +144 -0
- package/src/blocks/shell/parts/rail.tsx +166 -0
- package/src/blocks/shell/parts/rooms-column.tsx +326 -0
- package/src/blocks/shell/shell-block.tsx +210 -0
- package/src/blocks/shell/texts.ts +80 -0
|
@@ -0,0 +1,506 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* shadcn/typeset
|
|
3
|
+
* https://ui.shadcn.com/docs/typeset.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@layer components {
|
|
7
|
+
.typeset {
|
|
8
|
+
--typeset-font-body: inherit;
|
|
9
|
+
--typeset-font-heading: var(--font-heading);
|
|
10
|
+
--typeset-font-mono: var(--font-mono);
|
|
11
|
+
--typeset-size: 1em;
|
|
12
|
+
--typeset-leading: 1.75;
|
|
13
|
+
--typeset-flow: 1.25em;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@layer components {
|
|
18
|
+
.typeset {
|
|
19
|
+
font-family: var(--typeset-font-body);
|
|
20
|
+
font-size: calc(var(--typeset-size) * 1.125);
|
|
21
|
+
line-height: var(--typeset-leading);
|
|
22
|
+
color: var(--color-foreground, currentColor);
|
|
23
|
+
overflow-wrap: break-word;
|
|
24
|
+
margin-trim: block-start;
|
|
25
|
+
|
|
26
|
+
@media (min-width: 48rem), print {
|
|
27
|
+
font-size: var(--typeset-size);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
--typeset-muted: var(
|
|
31
|
+
--color-muted-foreground,
|
|
32
|
+
color-mix(in oklab, currentColor 60%, transparent)
|
|
33
|
+
);
|
|
34
|
+
--typeset-rule: var(
|
|
35
|
+
--color-border,
|
|
36
|
+
color-mix(in oklab, currentColor 20%, transparent)
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.typeset
|
|
41
|
+
*:not(
|
|
42
|
+
:where(
|
|
43
|
+
.not-typeset,
|
|
44
|
+
[data-not-typeset],
|
|
45
|
+
.not-typeset *,
|
|
46
|
+
[data-not-typeset] *,
|
|
47
|
+
.typeset [data-slot],
|
|
48
|
+
.typeset [data-slot] *
|
|
49
|
+
)
|
|
50
|
+
) {
|
|
51
|
+
/* Paragraphs. */
|
|
52
|
+
&:where(p) {
|
|
53
|
+
margin-block-start: var(--typeset-flow);
|
|
54
|
+
margin-block-end: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Headings. */
|
|
58
|
+
&:where(h1, h2, h3, h4, h5, h6) {
|
|
59
|
+
color: var(--color-foreground, currentColor);
|
|
60
|
+
font-family: var(--typeset-font-heading);
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
margin-block-end: 0;
|
|
63
|
+
}
|
|
64
|
+
&:where(h1) {
|
|
65
|
+
font-size: 1.75em;
|
|
66
|
+
line-height: 1.3;
|
|
67
|
+
margin-block-start: var(--typeset-flow);
|
|
68
|
+
}
|
|
69
|
+
&:where(h2) {
|
|
70
|
+
font-size: 1.25em;
|
|
71
|
+
line-height: 1.4;
|
|
72
|
+
margin-block-start: calc(var(--typeset-flow) * 1.4);
|
|
73
|
+
}
|
|
74
|
+
&:where(h3) {
|
|
75
|
+
font-size: 1.125em;
|
|
76
|
+
line-height: 1.45;
|
|
77
|
+
margin-block-start: var(--typeset-flow);
|
|
78
|
+
}
|
|
79
|
+
&:where(h4) {
|
|
80
|
+
font-size: 1em;
|
|
81
|
+
line-height: 1.5;
|
|
82
|
+
margin-block-start: var(--typeset-flow);
|
|
83
|
+
}
|
|
84
|
+
&:where(h5) {
|
|
85
|
+
font-size: 0.875em;
|
|
86
|
+
line-height: 1.5;
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
color: var(--typeset-muted);
|
|
89
|
+
margin-block-start: calc(var(--typeset-flow) / 0.875);
|
|
90
|
+
}
|
|
91
|
+
&:where(h6) {
|
|
92
|
+
font-size: 0.8125em;
|
|
93
|
+
line-height: 1.5;
|
|
94
|
+
font-weight: 500;
|
|
95
|
+
letter-spacing: 0.08em;
|
|
96
|
+
text-transform: uppercase;
|
|
97
|
+
color: var(--typeset-muted);
|
|
98
|
+
margin-block-start: calc(var(--typeset-flow) / 0.8125);
|
|
99
|
+
}
|
|
100
|
+
/* Anchors. */
|
|
101
|
+
&:where([id]) {
|
|
102
|
+
scroll-margin-block-start: var(--typeset-flow);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Headings own the space below them. */
|
|
106
|
+
&:where(h1 + *, h2 + *, h3 + *, h4 + *, h5 + *, h6 + *) {
|
|
107
|
+
margin-block-start: 1em;
|
|
108
|
+
}
|
|
109
|
+
&:where(:is(h1, h2, h3, h4) :is(code)) {
|
|
110
|
+
font-size: 0.9em;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* Links. */
|
|
114
|
+
&:where(a) {
|
|
115
|
+
color: inherit;
|
|
116
|
+
font-weight: 500;
|
|
117
|
+
text-decoration-line: underline;
|
|
118
|
+
text-decoration-color: color-mix(in oklab, currentColor 30%, transparent);
|
|
119
|
+
}
|
|
120
|
+
&:where(a:hover) {
|
|
121
|
+
text-decoration-color: currentColor;
|
|
122
|
+
}
|
|
123
|
+
&:where(a:focus-visible) {
|
|
124
|
+
outline: 2px solid var(--color-ring, currentColor);
|
|
125
|
+
outline-offset: 2px;
|
|
126
|
+
border-radius: 0.125em;
|
|
127
|
+
}
|
|
128
|
+
&:where(:is(h1, h2, h3, h4, h5, h6) :is(a)) {
|
|
129
|
+
font-weight: inherit;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Inline semantics. */
|
|
133
|
+
&:where(strong, b) {
|
|
134
|
+
font-weight: 600;
|
|
135
|
+
}
|
|
136
|
+
&:where(:is(h1, h2, h3, h4) :is(strong, b)) {
|
|
137
|
+
font-weight: 600;
|
|
138
|
+
}
|
|
139
|
+
&:where(mark) {
|
|
140
|
+
background-color: color-mix(
|
|
141
|
+
in oklab,
|
|
142
|
+
oklch(0.86 0.17 95) 40%,
|
|
143
|
+
transparent
|
|
144
|
+
);
|
|
145
|
+
color: inherit;
|
|
146
|
+
padding: 0.05em 0.15em;
|
|
147
|
+
border-radius: 0.2em;
|
|
148
|
+
}
|
|
149
|
+
&:where(abbr[title]) {
|
|
150
|
+
text-decoration-line: underline;
|
|
151
|
+
text-decoration-style: dotted;
|
|
152
|
+
text-underline-offset: 0.2em;
|
|
153
|
+
cursor: help;
|
|
154
|
+
}
|
|
155
|
+
&:where(del, s) {
|
|
156
|
+
color: var(--typeset-muted);
|
|
157
|
+
text-decoration-line: line-through;
|
|
158
|
+
}
|
|
159
|
+
&:where(sup, sub) {
|
|
160
|
+
font-size: 0.75em;
|
|
161
|
+
line-height: 0;
|
|
162
|
+
position: relative;
|
|
163
|
+
vertical-align: baseline;
|
|
164
|
+
}
|
|
165
|
+
&:where(sup) {
|
|
166
|
+
top: -0.5em;
|
|
167
|
+
}
|
|
168
|
+
&:where(sub) {
|
|
169
|
+
bottom: -0.25em;
|
|
170
|
+
}
|
|
171
|
+
&:where(sup a) {
|
|
172
|
+
text-decoration-line: none;
|
|
173
|
+
font-weight: 500;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* Lists. */
|
|
177
|
+
&:where(ul) {
|
|
178
|
+
list-style-type: disc;
|
|
179
|
+
}
|
|
180
|
+
&:where(ol) {
|
|
181
|
+
list-style-type: decimal;
|
|
182
|
+
}
|
|
183
|
+
&:where(ul ul) {
|
|
184
|
+
list-style-type: circle;
|
|
185
|
+
}
|
|
186
|
+
&:where(ul ul ul) {
|
|
187
|
+
list-style-type: square;
|
|
188
|
+
}
|
|
189
|
+
&:where(ol[type="a" i]) {
|
|
190
|
+
list-style-type: lower-alpha;
|
|
191
|
+
}
|
|
192
|
+
&:where(ol[type="i" i]) {
|
|
193
|
+
list-style-type: lower-roman;
|
|
194
|
+
}
|
|
195
|
+
&:where(ol[type="A" s]) {
|
|
196
|
+
list-style-type: upper-alpha;
|
|
197
|
+
}
|
|
198
|
+
&:where(ol[type="I" s]) {
|
|
199
|
+
list-style-type: upper-roman;
|
|
200
|
+
}
|
|
201
|
+
&:where(ul, ol) {
|
|
202
|
+
margin-block-start: var(--typeset-flow);
|
|
203
|
+
margin-block-end: 0;
|
|
204
|
+
padding-inline-start: 1.5em;
|
|
205
|
+
}
|
|
206
|
+
&:where(li) {
|
|
207
|
+
margin-block-start: 0.5em;
|
|
208
|
+
padding-inline-start: 0.4em;
|
|
209
|
+
}
|
|
210
|
+
&:where(li > p, li > ul, li > ol) {
|
|
211
|
+
margin-block-start: 0.5em;
|
|
212
|
+
}
|
|
213
|
+
&:where(ul > li)::marker {
|
|
214
|
+
color: var(--typeset-muted);
|
|
215
|
+
}
|
|
216
|
+
&:where(ol > li)::marker {
|
|
217
|
+
color: var(--typeset-muted);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/* GFM task lists. */
|
|
221
|
+
&:where(ul.contains-task-list) {
|
|
222
|
+
list-style-type: none;
|
|
223
|
+
padding-inline-start: 0.25em;
|
|
224
|
+
}
|
|
225
|
+
&:where(li.task-list-item > input[type="checkbox"]) {
|
|
226
|
+
margin-inline-end: 0.5em;
|
|
227
|
+
vertical-align: -0.1em;
|
|
228
|
+
accent-color: var(--color-primary, currentColor);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* Disclosures. */
|
|
232
|
+
&:where(details) {
|
|
233
|
+
margin-block-start: var(--typeset-flow);
|
|
234
|
+
margin-block-end: 0;
|
|
235
|
+
}
|
|
236
|
+
&:where(summary) {
|
|
237
|
+
cursor: pointer;
|
|
238
|
+
font-weight: 500;
|
|
239
|
+
}
|
|
240
|
+
&:where(summary)::marker {
|
|
241
|
+
color: var(--typeset-muted);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/* Keyboard keys. */
|
|
245
|
+
&:where(kbd) {
|
|
246
|
+
font-family: inherit;
|
|
247
|
+
font-size: 0.85em;
|
|
248
|
+
font-weight: 500;
|
|
249
|
+
border: 1px solid var(--typeset-rule);
|
|
250
|
+
border-block-end-width: 2px;
|
|
251
|
+
border-radius: min(calc(var(--radius, 0.5em) * 0.6), 0.35em);
|
|
252
|
+
padding: 0.0625em 0.35em;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/* Definition lists. */
|
|
256
|
+
&:where(dl) {
|
|
257
|
+
margin-block-start: var(--typeset-flow);
|
|
258
|
+
margin-block-end: 0;
|
|
259
|
+
}
|
|
260
|
+
&:where(dt) {
|
|
261
|
+
font-weight: 500;
|
|
262
|
+
margin-block-start: 1em;
|
|
263
|
+
}
|
|
264
|
+
&:where(dt + dt) {
|
|
265
|
+
margin-block-start: 0.25em;
|
|
266
|
+
}
|
|
267
|
+
&:where(dd) {
|
|
268
|
+
margin-block-start: 0.25em;
|
|
269
|
+
margin-inline-start: 0;
|
|
270
|
+
padding-inline-start: 1em;
|
|
271
|
+
color: var(--typeset-muted);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/* Inline code. */
|
|
275
|
+
&:where(:not(pre) > code) {
|
|
276
|
+
background-color: var(
|
|
277
|
+
--color-muted,
|
|
278
|
+
color-mix(in oklab, currentColor 8%, transparent)
|
|
279
|
+
);
|
|
280
|
+
font-family: var(--typeset-font-mono);
|
|
281
|
+
font-size: 0.85em;
|
|
282
|
+
border-radius: min(calc(var(--radius, 0.5em) * 0.6), 0.35em);
|
|
283
|
+
padding: 0.125em 0.3em;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/* Code blocks. */
|
|
287
|
+
&:where(pre) {
|
|
288
|
+
background-color: var(
|
|
289
|
+
--color-muted,
|
|
290
|
+
color-mix(in oklab, currentColor 8%, transparent)
|
|
291
|
+
);
|
|
292
|
+
font-family: var(--typeset-font-mono);
|
|
293
|
+
font-size: 0.875em;
|
|
294
|
+
line-height: 1.5;
|
|
295
|
+
tab-size: 2;
|
|
296
|
+
direction: ltr;
|
|
297
|
+
border-radius: var(--radius, 0.5em);
|
|
298
|
+
padding: 0.75em 1em;
|
|
299
|
+
overflow-x: auto;
|
|
300
|
+
margin-block-start: calc(var(--typeset-flow) / 0.875);
|
|
301
|
+
margin-block-end: 0;
|
|
302
|
+
}
|
|
303
|
+
&:where(pre code) {
|
|
304
|
+
background-color: transparent;
|
|
305
|
+
font-family: inherit;
|
|
306
|
+
font-size: inherit;
|
|
307
|
+
padding: 0;
|
|
308
|
+
border-radius: 0;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/* Blockquote. */
|
|
312
|
+
&:where(blockquote) {
|
|
313
|
+
border-inline-start: 2px solid var(--typeset-rule);
|
|
314
|
+
padding-inline-start: 1em;
|
|
315
|
+
margin-block-start: var(--typeset-flow);
|
|
316
|
+
margin-block-end: 0;
|
|
317
|
+
margin-inline: 0;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/* Dividers. */
|
|
321
|
+
&:where(hr) {
|
|
322
|
+
border: 0;
|
|
323
|
+
border-block-start: 1px solid var(--typeset-rule);
|
|
324
|
+
margin-block-start: calc(var(--typeset-flow) * 2.4);
|
|
325
|
+
margin-block-end: 0;
|
|
326
|
+
}
|
|
327
|
+
&:where(hr + h1, hr + h2, hr + h3, hr + h4) {
|
|
328
|
+
margin-block-start: var(--typeset-flow);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* GFM footnotes. */
|
|
332
|
+
&:where(.footnotes, [data-footnotes]) {
|
|
333
|
+
margin-block-start: calc(var(--typeset-flow) * 2);
|
|
334
|
+
border-block-start: 1px solid var(--typeset-rule);
|
|
335
|
+
padding-block-start: var(--typeset-flow);
|
|
336
|
+
font-size: 0.875em;
|
|
337
|
+
color: var(--typeset-muted);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/* Math. */
|
|
341
|
+
&:where(math[display="block"]) {
|
|
342
|
+
margin-block-start: var(--typeset-flow);
|
|
343
|
+
margin-block-end: 0;
|
|
344
|
+
overflow-x: auto;
|
|
345
|
+
overflow-y: hidden;
|
|
346
|
+
padding-block: 0.25em;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/* Media. */
|
|
350
|
+
&:where(img, video) {
|
|
351
|
+
border-radius: var(--radius, 0.5em);
|
|
352
|
+
max-width: 100%;
|
|
353
|
+
height: auto;
|
|
354
|
+
margin-block-start: var(--typeset-flow);
|
|
355
|
+
margin-block-end: 0;
|
|
356
|
+
}
|
|
357
|
+
&:where(p img) {
|
|
358
|
+
margin-block-start: 0;
|
|
359
|
+
}
|
|
360
|
+
&:where(figure) {
|
|
361
|
+
margin-block-start: var(--typeset-flow);
|
|
362
|
+
margin-block-end: 0;
|
|
363
|
+
margin-inline: 0;
|
|
364
|
+
}
|
|
365
|
+
&:where(figcaption, caption) {
|
|
366
|
+
color: var(--typeset-muted);
|
|
367
|
+
font-size: 0.875em;
|
|
368
|
+
text-align: center;
|
|
369
|
+
margin-block-start: calc(0.75em / 0.875);
|
|
370
|
+
}
|
|
371
|
+
&:where(caption) {
|
|
372
|
+
caption-side: bottom;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/* Tables. Separators sit on cells, not tr:last-child: append-safe.
|
|
376
|
+
Bare tables stay real tables (keep their semantics) and wrap to fit. */
|
|
377
|
+
&:where(table) {
|
|
378
|
+
max-width: 100%;
|
|
379
|
+
font-size: 1em;
|
|
380
|
+
line-height: 1.5;
|
|
381
|
+
font-variant-numeric: tabular-nums;
|
|
382
|
+
border-collapse: separate;
|
|
383
|
+
border-spacing: 0;
|
|
384
|
+
border-block-end: 1px solid var(--typeset-rule);
|
|
385
|
+
margin-block-start: var(--typeset-flow);
|
|
386
|
+
margin-block-end: 0;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/* Horizontal scroll for any wide block. Wrap it and the wrapper owns the
|
|
390
|
+
flow margin. Tables shrink to fit, so widen the table to make it scroll
|
|
391
|
+
instead of compress. */
|
|
392
|
+
&:where(.typeset-scroll) {
|
|
393
|
+
overflow-x: auto;
|
|
394
|
+
margin-block-start: var(--typeset-flow);
|
|
395
|
+
}
|
|
396
|
+
&:where(.typeset-scroll > *) {
|
|
397
|
+
margin-block-start: 0;
|
|
398
|
+
}
|
|
399
|
+
&:where(.typeset-scroll table) {
|
|
400
|
+
width: max-content;
|
|
401
|
+
max-width: none;
|
|
402
|
+
}
|
|
403
|
+
&:where(thead th) {
|
|
404
|
+
font-weight: 500;
|
|
405
|
+
text-align: start;
|
|
406
|
+
white-space: nowrap;
|
|
407
|
+
padding: 0.65em 1em;
|
|
408
|
+
}
|
|
409
|
+
&:where(:is(tbody, tfoot) :is(td, th)) {
|
|
410
|
+
padding: 0.75em 1em;
|
|
411
|
+
text-align: start;
|
|
412
|
+
vertical-align: top;
|
|
413
|
+
border-block-start: 1px solid var(--typeset-rule);
|
|
414
|
+
}
|
|
415
|
+
&:where(tbody th, tfoot th) {
|
|
416
|
+
font-weight: 500;
|
|
417
|
+
}
|
|
418
|
+
&:where(th:first-child, td:first-child) {
|
|
419
|
+
padding-inline-start: 0;
|
|
420
|
+
}
|
|
421
|
+
&:where(th[align="center"], td[align="center"]) {
|
|
422
|
+
text-align: center;
|
|
423
|
+
}
|
|
424
|
+
&:where(th[align="right"], td[align="right"]) {
|
|
425
|
+
text-align: end;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/* Blocks inside list items keep the list's tighter rhythm. */
|
|
429
|
+
&:where(li > blockquote, li > table, li > figure) {
|
|
430
|
+
margin-block-start: 0.5em;
|
|
431
|
+
}
|
|
432
|
+
&:where(li > pre) {
|
|
433
|
+
margin-block-start: calc(0.5em / 0.875);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
@media print {
|
|
437
|
+
&:where(pre, table, blockquote, figure) {
|
|
438
|
+
break-inside: avoid;
|
|
439
|
+
}
|
|
440
|
+
&:where(h1, h2, h3, h4) {
|
|
441
|
+
break-after: avoid;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/* Forced colors strips the code background, so give it a border. */
|
|
446
|
+
@media (forced-colors: active) {
|
|
447
|
+
&:where(:not(pre) > code) {
|
|
448
|
+
border: 1px solid;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/* Components (anything with data-slot) keep their own styles. A component
|
|
454
|
+
placed directly in the flow gets the same space above as a paragraph. */
|
|
455
|
+
.typeset
|
|
456
|
+
> :where([data-slot]):not(
|
|
457
|
+
:where(
|
|
458
|
+
.not-typeset,
|
|
459
|
+
[data-not-typeset],
|
|
460
|
+
.not-typeset *,
|
|
461
|
+
[data-not-typeset] *
|
|
462
|
+
)
|
|
463
|
+
) {
|
|
464
|
+
margin-block-start: var(--typeset-flow);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/* First child adds no space above. Last so it wins ties. */
|
|
468
|
+
.typeset
|
|
469
|
+
> :where(:first-child):not(
|
|
470
|
+
:where(
|
|
471
|
+
.not-typeset,
|
|
472
|
+
[data-not-typeset],
|
|
473
|
+
.not-typeset *,
|
|
474
|
+
[data-not-typeset] *
|
|
475
|
+
)
|
|
476
|
+
),
|
|
477
|
+
.typeset
|
|
478
|
+
> :where(:first-child)
|
|
479
|
+
> :where(:first-child):not(
|
|
480
|
+
:where(
|
|
481
|
+
.not-typeset,
|
|
482
|
+
[data-not-typeset],
|
|
483
|
+
.not-typeset *,
|
|
484
|
+
[data-not-typeset] *
|
|
485
|
+
)
|
|
486
|
+
),
|
|
487
|
+
.typeset
|
|
488
|
+
:where(
|
|
489
|
+
li > :first-child,
|
|
490
|
+
blockquote > :first-child,
|
|
491
|
+
td > :first-child,
|
|
492
|
+
th > :first-child,
|
|
493
|
+
dd > :first-child,
|
|
494
|
+
figure > :first-child,
|
|
495
|
+
figure > picture > img
|
|
496
|
+
):not(
|
|
497
|
+
:where(
|
|
498
|
+
.not-typeset,
|
|
499
|
+
[data-not-typeset],
|
|
500
|
+
.not-typeset *,
|
|
501
|
+
[data-not-typeset] *
|
|
502
|
+
)
|
|
503
|
+
) {
|
|
504
|
+
margin-block-start: 0;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Typeset styles rendered markdown and plain HTML inside a `typeset`
|
|
3
|
+
* container: headings, lists, tables, code, blockquotes. Everything outside
|
|
4
|
+
* the container is untouched, and so is any component inside it (anything
|
|
5
|
+
* with a `data-slot`).
|
|
6
|
+
*
|
|
7
|
+
* @import "abby/styles.css";
|
|
8
|
+
* @import "abby/typeset.css";
|
|
9
|
+
*
|
|
10
|
+
* <div class="typeset typeset-docs max-w-[37em]">…</div>
|
|
11
|
+
*
|
|
12
|
+
* The rules are shadcn's typeset (https://ui.shadcn.com/docs/typeset), kept
|
|
13
|
+
* as downloaded in `typeset/shadcn.css`. This file names the fonts, and
|
|
14
|
+
* adds the theme's colors and abby's presets.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/* The fonts come with `abby/styles.css`, which this file goes after. */
|
|
18
|
+
@import "./typeset/shadcn.css";
|
|
19
|
+
|
|
20
|
+
:root {
|
|
21
|
+
--font-geist: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
|
|
22
|
+
--font-geist-mono: "Geist Mono Variable", ui-monospace, monospace;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@layer components {
|
|
26
|
+
/*
|
|
27
|
+
* shadcn's rules read Tailwind's `--color-*` variables, and fall back to a
|
|
28
|
+
* mix of the text color when one is missing. Tailwind only emits the ones
|
|
29
|
+
* it sees used, so the container sets them from the theme's tokens itself.
|
|
30
|
+
*/
|
|
31
|
+
.typeset {
|
|
32
|
+
--color-foreground: var(--foreground);
|
|
33
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
34
|
+
--color-muted: var(--muted);
|
|
35
|
+
--color-border: var(--border);
|
|
36
|
+
--color-primary: var(--primary);
|
|
37
|
+
--color-ring: var(--ring);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Long-form pages: docs, articles, changelogs. */
|
|
41
|
+
.typeset-docs {
|
|
42
|
+
--typeset-font-body: var(--font-geist);
|
|
43
|
+
--typeset-font-heading: var(--font-geist);
|
|
44
|
+
--typeset-font-mono: var(--font-geist-mono);
|
|
45
|
+
--typeset-size: 15px;
|
|
46
|
+
--typeset-leading: 1.75;
|
|
47
|
+
--typeset-flow: 1.25em;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* A chat bubble or a streamed answer: follows the type around it. */
|
|
51
|
+
.typeset-chat {
|
|
52
|
+
--typeset-leading: 1.6;
|
|
53
|
+
--typeset-flow: 1em;
|
|
54
|
+
|
|
55
|
+
/*
|
|
56
|
+
* shadcn's typeset reads 1.125x larger under 48rem. A reply sits next to
|
|
57
|
+
* the person's bubble, so it keeps the conversation's size there too.
|
|
58
|
+
*/
|
|
59
|
+
@media not all and (min-width: 48rem) {
|
|
60
|
+
--typeset-size: calc(1em / 1.125);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Dense panels and side content. */
|
|
65
|
+
.typeset-compact {
|
|
66
|
+
--typeset-size: 0.875rem;
|
|
67
|
+
--typeset-leading: 1.6;
|
|
68
|
+
--typeset-flow: 1em;
|
|
69
|
+
}
|
|
70
|
+
}
|