@conscience-technology/ovenn 0.0.0-stage → 0.7.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 +189 -2
- package/assets/components/AIMessage/AIMessage.module.css +150 -0
- package/assets/components/AIMessage/AIMessage.tsx +106 -0
- package/assets/components/AIMessage/index.ts +2 -0
- package/assets/components/Accordion/Accordion.module.css +265 -0
- package/assets/components/Accordion/Accordion.tsx +209 -0
- package/assets/components/Accordion/index.ts +7 -0
- package/assets/components/AppFrame/AppFrame.module.css +200 -0
- package/assets/components/AppFrame/AppFrame.tsx +93 -0
- package/assets/components/AppFrame/index.ts +6 -0
- package/assets/components/AttachmentItem/AttachmentItem.module.css +124 -0
- package/assets/components/AttachmentItem/AttachmentItem.tsx +185 -0
- package/assets/components/AttachmentItem/index.ts +6 -0
- package/assets/components/AttachmentThumb/AttachmentThumb.module.css +141 -0
- package/assets/components/AttachmentThumb/AttachmentThumb.tsx +102 -0
- package/assets/components/AttachmentThumb/index.ts +2 -0
- package/assets/components/Avatar/Avatar.module.css +216 -0
- package/assets/components/Avatar/Avatar.tsx +283 -0
- package/assets/components/Avatar/index.ts +9 -0
- package/assets/components/AvatarUpload/AvatarUpload.module.css +83 -0
- package/assets/components/AvatarUpload/AvatarUpload.tsx +155 -0
- package/assets/components/AvatarUpload/index.ts +2 -0
- package/assets/components/Badge/Badge.module.css +178 -0
- package/assets/components/Badge/Badge.tsx +117 -0
- package/assets/components/Badge/index.ts +2 -0
- package/assets/components/BrandSet/BrandSetController.tsx +56 -0
- package/assets/components/BrandSet/index.ts +14 -0
- package/assets/components/BrandSet/resolve.ts +10 -0
- package/assets/components/BrandSet/types.ts +43 -0
- package/assets/components/Breadcrumb/Breadcrumb.module.css +281 -0
- package/assets/components/Breadcrumb/Breadcrumb.tsx +352 -0
- package/assets/components/Breadcrumb/index.ts +8 -0
- package/assets/components/Bubble/Bubble.module.css +71 -0
- package/assets/components/Bubble/Bubble.tsx +63 -0
- package/assets/components/Bubble/index.ts +2 -0
- package/assets/components/Button/Button.module.css +342 -0
- package/assets/components/Button/Button.tsx +217 -0
- package/assets/components/Button/index.ts +2 -0
- package/assets/components/ButtonGroup/ButtonGroup.tsx +22 -0
- package/assets/components/ButtonGroup/index.ts +5 -0
- package/assets/components/Calendar/Calendar.module.css +244 -0
- package/assets/components/Calendar/Calendar.tsx +419 -0
- package/assets/components/Calendar/index.ts +2 -0
- package/assets/components/Callout/Callout.module.css +147 -0
- package/assets/components/Callout/Callout.tsx +207 -0
- package/assets/components/Callout/index.ts +2 -0
- package/assets/components/Canvas/Canvas.module.css +75 -0
- package/assets/components/Canvas/Canvas.tsx +699 -0
- package/assets/components/Canvas/alignment.ts +34 -0
- package/assets/components/Canvas/clipboard.ts +30 -0
- package/assets/components/Canvas/collision.ts +67 -0
- package/assets/components/Canvas/edgeOptions.ts +11 -0
- package/assets/components/Canvas/graph.ts +11 -0
- package/assets/components/Canvas/history.ts +41 -0
- package/assets/components/Canvas/index.ts +4 -0
- package/assets/components/Canvas/selection.ts +56 -0
- package/assets/components/Canvas/tokens.css +61 -0
- package/assets/components/Canvas/types.ts +27 -0
- package/assets/components/Canvas/useCanvasSettlement.ts +79 -0
- package/assets/components/CanvasEdge/CanvasEdge.module.css +62 -0
- package/assets/components/CanvasEdge/CanvasEdge.tsx +121 -0
- package/assets/components/CanvasEdge/geometry.ts +350 -0
- package/assets/components/CanvasEdge/index.ts +4 -0
- package/assets/components/CanvasEdge/interactions.ts +14 -0
- package/assets/components/CanvasEdge/tokens.css +29 -0
- package/assets/components/CanvasNode/CanvasNode.module.css +314 -0
- package/assets/components/CanvasNode/CanvasNode.tsx +144 -0
- package/assets/components/CanvasNode/index.ts +2 -0
- package/assets/components/CanvasNode/runningOutline.ts +59 -0
- package/assets/components/CanvasNode/tokens.css +89 -0
- package/assets/components/Card/Card.module.css +127 -0
- package/assets/components/Card/Card.tsx +88 -0
- package/assets/components/Card/index.ts +2 -0
- package/assets/components/Chart/Chart.module.css +278 -0
- package/assets/components/Chart/Chart.tsx +385 -0
- package/assets/components/Chart/entrance.tsx +57 -0
- package/assets/components/Chart/index.ts +14 -0
- package/assets/components/ChatInput/ChatInput.module.css +378 -0
- package/assets/components/ChatInput/ChatInput.tsx +362 -0
- package/assets/components/ChatInput/ModelSelector.tsx +48 -0
- package/assets/components/ChatInput/SendButton.tsx +72 -0
- package/assets/components/ChatInput/index.ts +12 -0
- package/assets/components/Checkbox/Checkbox.module.css +186 -0
- package/assets/components/Checkbox/Checkbox.tsx +129 -0
- package/assets/components/Checkbox/index.ts +2 -0
- package/assets/components/CheckboxCard/CheckboxCard.module.css +1 -0
- package/assets/components/CheckboxCard/CheckboxCard.tsx +17 -0
- package/assets/components/CheckboxCard/index.ts +2 -0
- package/assets/components/Chip/Chip.module.css +209 -0
- package/assets/components/Chip/Chip.tsx +219 -0
- package/assets/components/Chip/index.ts +2 -0
- package/assets/components/Code/Code.module.css +26 -0
- package/assets/components/Code/Code.tsx +26 -0
- package/assets/components/Code/index.ts +2 -0
- package/assets/components/CodeBlock/CodeBlock.module.css +259 -0
- package/assets/components/CodeBlock/CodeBlock.tsx +283 -0
- package/assets/components/CodeBlock/copy-code.ts +15 -0
- package/assets/components/CodeBlock/index.ts +2 -0
- package/assets/components/ColorArea/ColorArea.module.css +148 -0
- package/assets/components/ColorArea/ColorArea.tsx +156 -0
- package/assets/components/ColorArea/index.ts +2 -0
- package/assets/components/ColorField/ColorField.module.css +201 -0
- package/assets/components/ColorField/ColorField.tsx +374 -0
- package/assets/components/ColorField/index.ts +2 -0
- package/assets/components/ColorPicker/ColorPicker.module.css +310 -0
- package/assets/components/ColorPicker/ColorPicker.tsx +387 -0
- package/assets/components/ColorPicker/index.ts +16 -0
- package/assets/components/ColorSlider/ColorSlider.module.css +170 -0
- package/assets/components/ColorSlider/ColorSlider.tsx +165 -0
- package/assets/components/ColorSlider/index.ts +15 -0
- package/assets/components/ColorSwatch/ColorSwatch.module.css +35 -0
- package/assets/components/ColorSwatch/ColorSwatch.tsx +69 -0
- package/assets/components/ColorSwatch/index.ts +2 -0
- package/assets/components/ColorSwatchPicker/ColorSwatchPicker.module.css +115 -0
- package/assets/components/ColorSwatchPicker/ColorSwatchPicker.tsx +183 -0
- package/assets/components/ColorSwatchPicker/index.ts +15 -0
- package/assets/components/Combobox/Combobox.module.css +13 -0
- package/assets/components/Combobox/Combobox.tsx +107 -0
- package/assets/components/Combobox/index.ts +2 -0
- package/assets/components/CommandPalette/CommandPalette.module.css +264 -0
- package/assets/components/CommandPalette/CommandPalette.tsx +425 -0
- package/assets/components/CommandPalette/index.ts +9 -0
- package/assets/components/CommandPalette/useCommandPaletteHotkey.ts +49 -0
- package/assets/components/Comment/Comment.module.css +25 -0
- package/assets/components/Comment/Comment.tsx +44 -0
- package/assets/components/Comment/CommentComposer.module.css +26 -0
- package/assets/components/Comment/CommentComposer.tsx +56 -0
- package/assets/components/Comment/CommentEditor.module.css +8 -0
- package/assets/components/Comment/CommentEditor.tsx +43 -0
- package/assets/components/Comment/CommentMentionInput.module.css +9 -0
- package/assets/components/Comment/CommentMentionInput.tsx +150 -0
- package/assets/components/Comment/index.ts +9 -0
- package/assets/components/Comment/types.ts +1 -0
- package/assets/components/ContextMenu/ContextMenu.module.css +121 -0
- package/assets/components/ContextMenu/ContextMenu.tsx +420 -0
- package/assets/components/ContextMenu/index.ts +9 -0
- package/assets/components/ControlGroup/ControlGroup.module.css +319 -0
- package/assets/components/ControlGroup/ControlGroup.tsx +69 -0
- package/assets/components/ControlGroup/context.tsx +12 -0
- package/assets/components/ControlGroup/index.ts +3 -0
- package/assets/components/ControlGroup/size.ts +9 -0
- package/assets/components/DataTable/DataTable.module.css +57 -0
- package/assets/components/DataTable/DataTable.tsx +137 -0
- package/assets/components/DataTable/index.ts +4 -0
- package/assets/components/DataTable/state.ts +34 -0
- package/assets/components/DatePicker/Calendar.tsx +485 -0
- package/assets/components/DatePicker/DESIGN_NOTES.md +106 -0
- package/assets/components/DatePicker/DESIGN_NOTES_TIME.md +125 -0
- package/assets/components/DatePicker/DateField.tsx +303 -0
- package/assets/components/DatePicker/DatePicker.module.css +623 -0
- package/assets/components/DatePicker/DatePicker.tsx +530 -0
- package/assets/components/DatePicker/TimeSelector.tsx +77 -0
- package/assets/components/DatePicker/index.ts +11 -0
- package/assets/components/DatePicker/presets.ts +84 -0
- package/assets/components/DatePicker/utils.ts +214 -0
- package/assets/components/Disclosure/Disclosure.module.css +74 -0
- package/assets/components/Disclosure/Disclosure.tsx +129 -0
- package/assets/components/Disclosure/index.ts +6 -0
- package/assets/components/Drawer/Drawer.module.css +197 -0
- package/assets/components/Drawer/Drawer.tsx +230 -0
- package/assets/components/Drawer/index.ts +15 -0
- package/assets/components/DropdownMenu/DropdownMenu.module.css +26 -0
- package/assets/components/DropdownMenu/DropdownMenu.tsx +400 -0
- package/assets/components/DropdownMenu/index.ts +9 -0
- package/assets/components/EmptyState/EmptyState.module.css +102 -0
- package/assets/components/EmptyState/EmptyState.tsx +80 -0
- package/assets/components/EmptyState/index.ts +2 -0
- package/assets/components/EventChip/EventChip.module.css +143 -0
- package/assets/components/EventChip/EventChip.tsx +95 -0
- package/assets/components/EventChip/index.ts +2 -0
- package/assets/components/EventListItem/EventListItem.module.css +223 -0
- package/assets/components/EventListItem/EventListItem.tsx +233 -0
- package/assets/components/EventListItem/index.ts +8 -0
- package/assets/components/FileIcon/FileIcon.module.css +78 -0
- package/assets/components/FileIcon/FileIcon.tsx +142 -0
- package/assets/components/FileIcon/fileExtMap.ts +166 -0
- package/assets/components/FileIcon/index.ts +9 -0
- package/assets/components/FileUpload/FileUpload.module.css +19 -0
- package/assets/components/FileUpload/FileUpload.tsx +96 -0
- package/assets/components/FileUpload/FileUploadItem.tsx +34 -0
- package/assets/components/FileUpload/index.ts +2 -0
- package/assets/components/FileUpload/utils.ts +8 -0
- package/assets/components/GalleryItem/GalleryItem.module.css +217 -0
- package/assets/components/GalleryItem/GalleryItem.tsx +163 -0
- package/assets/components/GalleryItem/index.ts +7 -0
- package/assets/components/GeneratedImage/GeneratedImage.module.css +93 -0
- package/assets/components/GeneratedImage/GeneratedImage.tsx +84 -0
- package/assets/components/GeneratedImage/index.ts +5 -0
- package/assets/components/Hint/Hint.module.css +75 -0
- package/assets/components/Hint/Hint.tsx +89 -0
- package/assets/components/Hint/index.ts +2 -0
- package/assets/components/Icon/Icon.tsx +654 -0
- package/assets/components/Icon/LucideFamilyIcon.tsx +434 -0
- package/assets/components/Icon/MissingIcon.tsx +25 -0
- package/assets/components/Icon/SolarFamilyIcon.tsx +439 -0
- package/assets/components/Icon/catalogNames.ts +8 -0
- package/assets/components/Icon/context.tsx +39 -0
- package/assets/components/Icon/index.ts +6 -0
- package/assets/components/Icon/lucideCatalog.ts +11358 -0
- package/assets/components/Icon/phosphorCatalog.ts +3052 -0
- package/assets/components/Icon/solarCatalog.ts +16064 -0
- package/assets/components/IconButton/IconButton.module.css +117 -0
- package/assets/components/IconButton/IconButton.tsx +113 -0
- package/assets/components/IconButton/index.ts +2 -0
- package/assets/components/Input/Input.module.css +375 -0
- package/assets/components/Input/Input.tsx +424 -0
- package/assets/components/Input/index.ts +2 -0
- package/assets/components/Kanban/Kanban.module.css +353 -0
- package/assets/components/Kanban/Kanban.tsx +371 -0
- package/assets/components/Kanban/index.ts +10 -0
- package/assets/components/ListItem/ListItem.module.css +235 -0
- package/assets/components/ListItem/ListItem.tsx +262 -0
- package/assets/components/ListItem/index.ts +9 -0
- package/assets/components/MenuItem/MenuItem.module.css +603 -0
- package/assets/components/MenuItem/MenuItem.tsx +704 -0
- package/assets/components/MenuItem/index.ts +8 -0
- package/assets/components/MessageActions/MessageActions.module.css +79 -0
- package/assets/components/MessageActions/MessageActions.tsx +139 -0
- package/assets/components/MessageActions/index.ts +6 -0
- package/assets/components/MessageQuote/MessageQuote.module.css +30 -0
- package/assets/components/MessageQuote/MessageQuote.tsx +33 -0
- package/assets/components/MessageQuote/index.ts +2 -0
- package/assets/components/MessageSources/MessageSources.module.css +60 -0
- package/assets/components/MessageSources/MessageSources.tsx +60 -0
- package/assets/components/MessageSources/index.ts +2 -0
- package/assets/components/MessageState/MessageState.module.css +118 -0
- package/assets/components/MessageState/MessageState.tsx +150 -0
- package/assets/components/MessageState/index.ts +2 -0
- package/assets/components/MessageTable/MessageTable.module.css +59 -0
- package/assets/components/MessageTable/MessageTable.tsx +21 -0
- package/assets/components/MessageTable/index.ts +2 -0
- package/assets/components/MetricCard/MetricCard.module.css +141 -0
- package/assets/components/MetricCard/MetricCard.tsx +162 -0
- package/assets/components/MetricCard/index.ts +2 -0
- package/assets/components/MetricCard/tokens.css +10 -0
- package/assets/components/MiniCalendar/MiniCalendar.module.css +130 -0
- package/assets/components/MiniCalendar/MiniCalendar.tsx +161 -0
- package/assets/components/MiniCalendar/index.ts +2 -0
- package/assets/components/Modal/Modal.module.css +294 -0
- package/assets/components/Modal/Modal.tsx +402 -0
- package/assets/components/Modal/index.ts +22 -0
- package/assets/components/MultiSelect/MultiSelect.tsx +7 -0
- package/assets/components/MultiSelect/index.ts +2 -0
- package/assets/components/Onboarding/DocsIndex.tsx +102 -0
- package/assets/components/Onboarding/LayoutBuilder.tsx +166 -0
- package/assets/components/Onboarding/Onboarding.module.css +1494 -0
- package/assets/components/Onboarding/OnboardingAxisPanel.tsx +472 -0
- package/assets/components/Onboarding/OnboardingPage.tsx +1258 -0
- package/assets/components/Onboarding/PresetsGallery.tsx +56 -0
- package/assets/components/Onboarding/actions.ts +529 -0
- package/assets/components/Onboarding/index.ts +8 -0
- package/assets/components/Onboarding/palette.css +48 -0
- package/assets/components/Onboarding/wizardData.ts +529 -0
- package/assets/components/PageHeader/PageHeader.module.css +119 -0
- package/assets/components/PageHeader/PageHeader.tsx +126 -0
- package/assets/components/PageHeader/index.ts +2 -0
- package/assets/components/Pagination/Pagination.module.css +132 -0
- package/assets/components/Pagination/Pagination.tsx +294 -0
- package/assets/components/Pagination/index.ts +6 -0
- package/assets/components/ProgressBar/ProgressBar.module.css +127 -0
- package/assets/components/ProgressBar/ProgressBar.tsx +85 -0
- package/assets/components/ProgressBar/index.ts +6 -0
- package/assets/components/QuotationBar/QuotationBar.module.css +63 -0
- package/assets/components/QuotationBar/QuotationBar.tsx +60 -0
- package/assets/components/QuotationBar/index.ts +2 -0
- package/assets/components/Radio/Radio.module.css +125 -0
- package/assets/components/Radio/Radio.tsx +39 -0
- package/assets/components/Radio/index.ts +2 -0
- package/assets/components/RadioCard/RadioCard.module.css +283 -0
- package/assets/components/RadioCard/RadioCard.tsx +186 -0
- package/assets/components/RadioCard/index.ts +2 -0
- package/assets/components/SegmentedChart/SegmentedChart.module.css +237 -0
- package/assets/components/SegmentedChart/SegmentedChart.tsx +121 -0
- package/assets/components/SegmentedChart/index.ts +2 -0
- package/assets/components/Select/Select.module.css +161 -0
- package/assets/components/Select/Select.tsx +453 -0
- package/assets/components/Select/index.ts +10 -0
- package/assets/components/Shortcut/Shortcut.module.css +79 -0
- package/assets/components/Shortcut/Shortcut.tsx +206 -0
- package/assets/components/Shortcut/index.ts +2 -0
- package/assets/components/Sidebar/Sidebar.module.css +407 -0
- package/assets/components/Sidebar/Sidebar.tsx +585 -0
- package/assets/components/Sidebar/index.ts +7 -0
- package/assets/components/Skeleton/Skeleton.module.css +33 -0
- package/assets/components/Skeleton/Skeleton.tsx +20 -0
- package/assets/components/Skeleton/index.ts +2 -0
- package/assets/components/Skeleton/tokens.css +11 -0
- package/assets/components/Slider/Slider.module.css +137 -0
- package/assets/components/Slider/Slider.tsx +104 -0
- package/assets/components/Slider/index.ts +2 -0
- package/assets/components/Spinner/LottiePlayer.tsx +179 -0
- package/assets/components/Spinner/Spinner.module.css +208 -0
- package/assets/components/Spinner/Spinner.tsx +133 -0
- package/assets/components/Spinner/index.ts +10 -0
- package/assets/components/Spinner/lottieColor.ts +166 -0
- package/assets/components/Spinner/lottieManifest.ts +103 -0
- package/assets/components/Stepper/Stepper.module.css +378 -0
- package/assets/components/Stepper/Stepper.tsx +253 -0
- package/assets/components/Stepper/index.ts +2 -0
- package/assets/components/Switch/Switch.module.css +176 -0
- package/assets/components/Switch/Switch.tsx +77 -0
- package/assets/components/Switch/index.ts +2 -0
- package/assets/components/TabStrip/TabStrip.module.css +362 -0
- package/assets/components/TabStrip/TabStrip.tsx +404 -0
- package/assets/components/TabStrip/index.ts +7 -0
- package/assets/components/TableCell/TableCell.module.css +137 -0
- package/assets/components/TableCell/TableCellAvatar.tsx +66 -0
- package/assets/components/TableCell/TableCellBadge.tsx +30 -0
- package/assets/components/TableCell/TableCellImage.tsx +49 -0
- package/assets/components/TableCell/TableCellMeter.tsx +55 -0
- package/assets/components/TableCell/TableCellNumber.tsx +43 -0
- package/assets/components/TableCell/TableCellTag.tsx +23 -0
- package/assets/components/TableCell/TableCellText.tsx +33 -0
- package/assets/components/TableCell/index.ts +22 -0
- package/assets/components/TableHeader/TableHeader.module.css +355 -0
- package/assets/components/TableHeader/TableHeader.tsx +658 -0
- package/assets/components/TableHeader/index.ts +9 -0
- package/assets/components/TableRow/TableRow.module.css +355 -0
- package/assets/components/TableRow/TableRow.tsx +292 -0
- package/assets/components/TableRow/index.ts +8 -0
- package/assets/components/TableRowEdit/TableRowEdit.module.css +164 -0
- package/assets/components/TableRowEdit/TableRowEdit.tsx +279 -0
- package/assets/components/TableRowEdit/index.ts +2 -0
- package/assets/components/TableRowSelect/TableRowSelect.module.css +23 -0
- package/assets/components/TableRowSelect/TableRowSelect.tsx +173 -0
- package/assets/components/TableRowSelect/index.ts +2 -0
- package/assets/components/TableToolbar/TableToolbar.module.css +38 -0
- package/assets/components/TableToolbar/TableToolbar.tsx +105 -0
- package/assets/components/TableToolbar/index.ts +5 -0
- package/assets/components/Tabs/Tabs.module.css +387 -0
- package/assets/components/Tabs/Tabs.tsx +518 -0
- package/assets/components/Tabs/index.ts +9 -0
- package/assets/components/Tag/Tag.module.css +101 -0
- package/assets/components/Tag/Tag.tsx +55 -0
- package/assets/components/Tag/index.ts +2 -0
- package/assets/components/TemplateBoundary/TemplateBoundary.module.css +4 -0
- package/assets/components/TemplateBoundary/TemplateBoundary.tsx +54 -0
- package/assets/components/TemplateBoundary/index.ts +3 -0
- package/assets/components/TemplateBoundary/types.ts +25 -0
- package/assets/components/Textarea/Textarea.module.css +350 -0
- package/assets/components/Textarea/Textarea.tsx +438 -0
- package/assets/components/Textarea/index.ts +7 -0
- package/assets/components/ThemeController.tsx +396 -0
- package/assets/components/TimePicker/TimePicker.module.css +113 -0
- package/assets/components/TimePicker/TimePicker.tsx +424 -0
- package/assets/components/TimePicker/index.ts +8 -0
- package/assets/components/TimePicker/utils.ts +116 -0
- package/assets/components/TimelineView/TimelineEventBar.tsx +109 -0
- package/assets/components/TimelineView/TimelineView.module.css +203 -0
- package/assets/components/TimelineView/TimelineView.tsx +137 -0
- package/assets/components/TimelineView/axis.ts +62 -0
- package/assets/components/TimelineView/index.ts +3 -0
- package/assets/components/TimelineView/layout.ts +56 -0
- package/assets/components/TimelineView/move.ts +51 -0
- package/assets/components/TimelineView/useTimelineDrag.ts +215 -0
- package/assets/components/TimelineView/useTimelineZoom.ts +92 -0
- package/assets/components/Toast/Toast.module.css +334 -0
- package/assets/components/Toast/Toast.tsx +310 -0
- package/assets/components/Toast/index.ts +16 -0
- package/assets/components/Toolbar/Toolbar.module.css +135 -0
- package/assets/components/Toolbar/Toolbar.tsx +187 -0
- package/assets/components/Toolbar/index.ts +7 -0
- package/assets/components/Tooltip/Tooltip.module.css +52 -0
- package/assets/components/Tooltip/Tooltip.tsx +341 -0
- package/assets/components/Tooltip/index.ts +2 -0
- package/assets/components/TopLoader/TopLoader.module.css +65 -0
- package/assets/components/TopLoader/TopLoader.tsx +58 -0
- package/assets/components/TopLoader/index.ts +2 -0
- package/assets/components/Topbar/Topbar.module.css +54 -0
- package/assets/components/Topbar/Topbar.tsx +102 -0
- package/assets/components/Topbar/index.ts +2 -0
- package/assets/components/TreeNav/TreeNav.module.css +33 -0
- package/assets/components/TreeNav/TreeNav.tsx +130 -0
- package/assets/components/TreeNav/index.ts +2 -0
- package/assets/components/UserMessage/UserMessage.module.css +47 -0
- package/assets/components/UserMessage/UserMessage.tsx +66 -0
- package/assets/components/UserMessage/index.ts +2 -0
- package/assets/components/_cn.ts +3 -0
- package/assets/components/_color.ts +75 -0
- package/assets/components/_data.ts +608 -0
- package/assets/components/_rowInteraction.ts +16 -0
- package/assets/components/_utils.css +135 -0
- package/assets/components/app-shell.css +17 -0
- package/assets/components/axisOptions.ts +17 -0
- package/assets/components/component-registry.json +1063 -0
- package/assets/components/index.ts +118 -0
- package/assets/components/materialScope.tsx +11 -0
- package/assets/components/reset.css +78 -0
- package/assets/components/themeBootScript.ts +125 -0
- package/assets/components/tokens.css +1275 -0
- package/assets/components/useChartEntrance.ts +119 -0
- package/assets/prompts/ASSEMBLY.md +72 -0
- package/assets/prompts/CASCADE.md +49 -0
- package/assets/prompts/CATALOG.md +141 -0
- package/assets/prompts/FEEDBACK_PROCESS.md +19 -0
- package/assets/prompts/GUIDE.md +307 -0
- package/assets/prompts/MEMORY.md +202 -0
- package/assets/prompts/OVERRIDE.md +30 -0
- package/assets/prompts/PRINCIPLES.md +128 -0
- package/assets/prompts/SLOTS.md +194 -0
- package/assets/prompts/WORKFLOW_DESIGN.md +132 -0
- package/assets/prompts/axes/density.md +42 -0
- package/assets/prompts/axes/font.md +35 -0
- package/assets/prompts/axes/icon.md +59 -0
- package/assets/prompts/axes/material.md +40 -0
- package/assets/prompts/axes/mode.md +52 -0
- package/assets/prompts/axes/motion.md +77 -0
- package/assets/prompts/axes/palette.md +51 -0
- package/assets/prompts/axes/shape.md +41 -0
- package/assets/prompts/axes/voice.md +57 -0
- package/assets/prompts/brand-sets/_SCHEMA.md +27 -0
- package/assets/prompts/components/README.md +84 -0
- package/assets/prompts/components/_variants.md +86 -0
- package/assets/prompts/components/accordion.md +151 -0
- package/assets/prompts/components/ai-message.md +53 -0
- package/assets/prompts/components/app-frame.md +141 -0
- package/assets/prompts/components/attachment-item.md +89 -0
- package/assets/prompts/components/attachment-thumb.md +54 -0
- package/assets/prompts/components/avatar-upload.md +62 -0
- package/assets/prompts/components/avatar.md +106 -0
- package/assets/prompts/components/badge.md +58 -0
- package/assets/prompts/components/breadcrumb.md +124 -0
- package/assets/prompts/components/bubble.md +61 -0
- package/assets/prompts/components/button-group.md +35 -0
- package/assets/prompts/components/button.md +133 -0
- package/assets/prompts/components/calendar.md +151 -0
- package/assets/prompts/components/callout.md +98 -0
- package/assets/prompts/components/canvas-edge.md +67 -0
- package/assets/prompts/components/canvas-node.md +80 -0
- package/assets/prompts/components/canvas.md +82 -0
- package/assets/prompts/components/card.md +167 -0
- package/assets/prompts/components/chart-bar.md +77 -0
- package/assets/prompts/components/chart-pie.md +63 -0
- package/assets/prompts/components/chart-radar.md +56 -0
- package/assets/prompts/components/chart-radial.md +56 -0
- package/assets/prompts/components/chart.md +129 -0
- package/assets/prompts/components/chat-input.md +103 -0
- package/assets/prompts/components/checkbox-card.md +53 -0
- package/assets/prompts/components/checkbox.md +121 -0
- package/assets/prompts/components/chip.md +163 -0
- package/assets/prompts/components/code-block.md +95 -0
- package/assets/prompts/components/code.md +62 -0
- package/assets/prompts/components/color-area.md +95 -0
- package/assets/prompts/components/color-field.md +108 -0
- package/assets/prompts/components/color-picker.md +173 -0
- package/assets/prompts/components/color-slider.md +108 -0
- package/assets/prompts/components/color-swatch-picker.md +96 -0
- package/assets/prompts/components/color-swatch.md +85 -0
- package/assets/prompts/components/combobox.md +35 -0
- package/assets/prompts/components/command-palette.md +194 -0
- package/assets/prompts/components/comment.md +72 -0
- package/assets/prompts/components/context-menu.md +153 -0
- package/assets/prompts/components/control-group.md +67 -0
- package/assets/prompts/components/data-table.md +90 -0
- package/assets/prompts/components/date-picker.md +156 -0
- package/assets/prompts/components/disclosure.md +55 -0
- package/assets/prompts/components/drawer.md +151 -0
- package/assets/prompts/components/dropdown-menu.md +167 -0
- package/assets/prompts/components/empty-state.md +74 -0
- package/assets/prompts/components/event-chip.md +123 -0
- package/assets/prompts/components/event-list-item.md +112 -0
- package/assets/prompts/components/file-icon.md +83 -0
- package/assets/prompts/components/file-upload.md +35 -0
- package/assets/prompts/components/gallery-item.md +164 -0
- package/assets/prompts/components/generated-image.md +85 -0
- package/assets/prompts/components/hint.md +94 -0
- package/assets/prompts/components/icon-button.md +99 -0
- package/assets/prompts/components/icon.md +101 -0
- package/assets/prompts/components/input.md +134 -0
- package/assets/prompts/components/kanban.md +172 -0
- package/assets/prompts/components/list-item.md +334 -0
- package/assets/prompts/components/menu-item.md +252 -0
- package/assets/prompts/components/message-actions.md +63 -0
- package/assets/prompts/components/message-quote.md +34 -0
- package/assets/prompts/components/message-sources.md +46 -0
- package/assets/prompts/components/message-state.md +61 -0
- package/assets/prompts/components/message-table.md +42 -0
- package/assets/prompts/components/metric-card.md +85 -0
- package/assets/prompts/components/mini-calendar.md +72 -0
- package/assets/prompts/components/modal.md +236 -0
- package/assets/prompts/components/multi-select.md +31 -0
- package/assets/prompts/components/onboarding.md +55 -0
- package/assets/prompts/components/page-header.md +170 -0
- package/assets/prompts/components/pagination.md +99 -0
- package/assets/prompts/components/progress-bar.md +85 -0
- package/assets/prompts/components/quotation-bar.md +44 -0
- package/assets/prompts/components/radio-card.md +62 -0
- package/assets/prompts/components/radio.md +56 -0
- package/assets/prompts/components/segmented-chart.md +79 -0
- package/assets/prompts/components/select.md +146 -0
- package/assets/prompts/components/shortcut.md +81 -0
- package/assets/prompts/components/sidebar.md +537 -0
- package/assets/prompts/components/skeleton.md +44 -0
- package/assets/prompts/components/slider.md +111 -0
- package/assets/prompts/components/spinner.md +124 -0
- package/assets/prompts/components/stepper.md +122 -0
- package/assets/prompts/components/switch.md +108 -0
- package/assets/prompts/components/tab-strip.md +163 -0
- package/assets/prompts/components/table-cell.md +67 -0
- package/assets/prompts/components/table-header.md +181 -0
- package/assets/prompts/components/table-row-edit.md +144 -0
- package/assets/prompts/components/table-row-select.md +90 -0
- package/assets/prompts/components/table-row.md +184 -0
- package/assets/prompts/components/table-toolbar.md +103 -0
- package/assets/prompts/components/tabs.md +136 -0
- package/assets/prompts/components/tag.md +54 -0
- package/assets/prompts/components/textarea.md +114 -0
- package/assets/prompts/components/time-picker.md +87 -0
- package/assets/prompts/components/timeline-view.md +129 -0
- package/assets/prompts/components/toast.md +155 -0
- package/assets/prompts/components/toolbar.md +99 -0
- package/assets/prompts/components/tooltip.md +94 -0
- package/assets/prompts/components/top-loader.md +64 -0
- package/assets/prompts/components/topbar.md +186 -0
- package/assets/prompts/components/tree-nav.md +77 -0
- package/assets/prompts/components/user-message.md +50 -0
- package/assets/prompts/design-examples/README.md +57 -0
- package/assets/prompts/design-examples/catalog.json +1 -0
- package/assets/prompts/primitives/emerge.md +43 -0
- package/assets/prompts/primitives/fade.md +31 -0
- package/assets/prompts/primitives/mobile.md +53 -0
- package/assets/prompts/primitives/scale.md +32 -0
- package/assets/prompts/primitives/scroll.md +170 -0
- package/assets/prompts/primitives/slide.md +31 -0
- package/assets/prompts/recipes/README.md +104 -0
- package/assets/prompts/recipes/card-row.md +39 -0
- package/assets/prompts/recipes/form-footer.md +76 -0
- package/assets/prompts/recipes/meta-line.md +61 -0
- package/assets/prompts/recipes/page-banner.md +121 -0
- package/assets/prompts/recipes/page-header.md +107 -0
- package/assets/prompts/recipes/section-header.md +90 -0
- package/assets/prompts/templates/README.md +9 -0
- package/assets/prompts/templates/ains.md +631 -0
- package/assets/prompts/templates/aurora.md +440 -0
- package/assets/prompts/templates/glass-button.md +337 -0
- package/assets/prompts/templates/minimal.md +209 -0
- package/assets/prompts/templates/workspace.md +346 -0
- package/assets/prompts/themes/_SCHEMA.md +135 -0
- package/assets/prompts/themes/_TEMPLATE.md +73 -0
- package/assets/prompts/themes/expressive.md +118 -0
- package/assets/prompts/themes/pure.md +87 -0
- package/assets/prompts/themes/spare.md +73 -0
- package/assets/prompts/tokens/breakpoint.md +29 -0
- package/assets/prompts/tokens/color.md +105 -0
- package/assets/prompts/tokens/material.md +51 -0
- package/assets/prompts/tokens/radius.md +45 -0
- package/assets/prompts/tokens/shadow.md +35 -0
- package/assets/prompts/tokens/spacing.md +96 -0
- package/assets/prompts/tokens/typography.md +89 -0
- package/assets/prompts/tokens/z-index.md +35 -0
- package/assets/prompts/use-cases/chart-chart-area.md +1334 -0
- package/assets/prompts/use-cases/chart-chart-bar.md +1886 -0
- package/assets/prompts/use-cases/chart-chart-pie.md +1031 -0
- package/assets/prompts/use-cases/chart-chart-radar.md +785 -0
- package/assets/prompts/use-cases/chart-chart-radial.md +988 -0
- package/assets/prompts/use-cases/chart-segmented-chart.md +262 -0
- package/assets/prompts/use-cases/data-comment.md +360 -0
- package/assets/prompts/use-cases/data-data-table.md +249 -0
- package/assets/prompts/use-cases/data-list-item.md +1056 -0
- package/assets/prompts/use-cases/data-metric-card.md +673 -0
- package/assets/prompts/use-cases/data-table-row.md +966 -0
- package/assets/prompts/use-cases/data-table-toolbar.md +481 -0
- package/assets/prompts/use-cases/feedback-drawer.md +1163 -0
- package/assets/prompts/use-cases/feedback-progress-bar.md +427 -0
- package/assets/prompts/use-cases/general-toolbar.md +854 -0
- package/assets/prompts/use-cases/general-tooltip.md +652 -0
- package/assets/prompts/use-cases/input-checkbox.md +443 -0
- package/assets/prompts/use-cases/structure-card.md +603 -0
- package/assets/prompts/use-cases/structure-page-header.md +755 -0
- package/assets/prompts/use-cases/structure-sidebar.md +1132 -0
- package/assets/prompts/use-cases/structure-topbar.md +1200 -0
- package/assets/public/expressive.png +0 -0
- package/assets/public/ovenn-wordmark.svg +19 -0
- package/assets/public/pure.png +0 -0
- package/assets/public/spare.png +0 -0
- package/assets/skills/ovenn/SKILL.md +12 -0
- package/assets/skills/ovenn-component/SKILL.md +12 -0
- package/assets/skills/ovenn-page/SKILL.md +12 -0
- package/assets/skills/ovenn-theme/SKILL.md +12 -0
- package/assets/skills/ovenn-validate/SKILL.md +14 -0
- package/assets/skills/ovenn-validate/fixtures/clean/Clean.module.css +12 -0
- package/assets/skills/ovenn-validate/fixtures/clean/Clean.tsx +9 -0
- package/assets/skills/ovenn-validate/scripts/lib/component-usage.js +112 -0
- package/assets/skills/ovenn-validate/scripts/lib/source-graph.js +15 -0
- package/assets/skills/ovenn-validate/scripts/lib/source-utils.mjs +25 -0
- package/assets/skills/ovenn-validate/scripts/lib/source-utils.test.mjs +52 -0
- package/assets/skills/ovenn-validate/scripts/rules/doc-sync.mjs +151 -0
- package/assets/skills/ovenn-validate/scripts/rules/doc-sync.test.mjs +91 -0
- package/assets/skills/ovenn-validate/scripts/rules/ghost-tokens.mjs +69 -0
- package/assets/skills/ovenn-validate/scripts/rules/ghost-tokens.test.mjs +52 -0
- package/assets/skills/ovenn-validate/scripts/rules/hardcoded.mjs +145 -0
- package/assets/skills/ovenn-validate/scripts/rules/hardcoded.test.mjs +83 -0
- package/assets/skills/ovenn-validate/scripts/rules/memory-rules.mjs +252 -0
- package/assets/skills/ovenn-validate/scripts/rules/memory-rules.test.mjs +131 -0
- package/assets/skills/ovenn-validate/scripts/validate.mjs +169 -0
- package/assets/skills/ovenn-wireframe/SKILL.md +12 -0
- package/bin/ovenn.js +85 -0
- package/package.json +143 -4
- package/src/commands/info.js +217 -0
- package/src/commands/init.js +386 -0
- package/src/commands/update.js +65 -0
- package/src/utils/agents.js +83 -0
- package/src/utils/assets.js +51 -0
- package/src/utils/client-bridges.js +32 -0
- package/src/utils/component-usage.js +112 -0
- package/src/utils/deps.js +59 -0
- package/src/utils/design-examples.js +101 -0
- package/src/utils/design-workflow.js +155 -0
- package/src/utils/detect.js +59 -0
- package/src/utils/diff.js +52 -0
- package/src/utils/doctor.js +47 -0
- package/src/utils/hash.js +16 -0
- package/src/utils/launch.js +94 -0
- package/src/utils/log.js +41 -0
- package/src/utils/managed-assets.js +50 -0
- package/src/utils/mcp-client.js +47 -0
- package/src/utils/meta.js +73 -0
- package/src/utils/patch.js +334 -0
- package/src/utils/prompt.js +28 -0
- package/src/utils/source-graph.js +15 -0
- package/src/utils/update-transaction.js +79 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Pure
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
Stripe·Framer·Linear 랜딩이 공유하는 "경계 장치 없이 매끄럽게 흐르는" Theme. border·divider·card·drop shadow 같은 **요소를 가두는 장치**를 걷어내고, 대신 톤 차이·여백·타이포·hairline으로 흐름을 만든다. 요소 수를 줄이는 게 아니라, **요소를 가두지 않는다**. 세련됨은 덜어내서가 아니라 **공들여 매끄럽게 마감**해서 생긴다 — "장치 대신 비례"가 이 Theme의 공식.
|
|
5
|
+
|
|
6
|
+
### Do
|
|
7
|
+
- 콘텐츠는 필요한 만큼 담되, 요소를 **박스·선·그림자로 가두지 않는다**. 사이드바도 테이블도 폼도 "가두는 장치 없이" 구성한다.
|
|
8
|
+
- 분리가 필요한 자리는 **톤 차이·여백·hairline** 셋 중 하나로 해결한다. 셋 다 제어가 섬세해야 pure의 세련됨이 나온다.
|
|
9
|
+
- 모든 요소를 **공들여 마감**한다 — 간격·정렬·타이포 리듬·톤 대비 전부 과하게 다듬어야 "덜 가두는데도 완성도 있어 보인다".
|
|
10
|
+
- 사진 같은 평면성을 노린다. 입체감(그림자·광택·중첩 깊이)이 아니라 **표면의 균질함**으로 세련됨을 만든다.
|
|
11
|
+
|
|
12
|
+
### Don't
|
|
13
|
+
- "허전해 보여서" border·divider·card·drop shadow를 추가하지 않는다. 가두는 장치를 다시 들이는 순간 pure의 좌표가 깨진다.
|
|
14
|
+
- card·container를 중첩하지 않는다. frame이 frame을 품는 구조는 pure의 반대 — 정보 그룹은 여백·톤으로 묶는다.
|
|
15
|
+
- "덜 가둠"을 "덜 담음"으로 오해하지 않는다. 필요한 콘텐츠·보조 설명·메타 정보는 다 담되, 담는 방식만 바꾼다.
|
|
16
|
+
- 거친 마감으로 넘어가지 않는다. 가두는 장치가 없을수록 **정렬·간격·타이포 리듬이 과하게 정교해야** 완성도가 보인다.
|
|
17
|
+
|
|
18
|
+
### Fallback
|
|
19
|
+
축 preset은 아래 표 값으로 고정. override는 자유지만 Negative에 걸린 조합이면 한 번 확인한다.
|
|
20
|
+
|
|
21
|
+
### 관련
|
|
22
|
+
- [[themes/_SCHEMA]] — Theme 스키마
|
|
23
|
+
- [[themes/spare]] — 비슷해 보이지만 다른 좌표. spare는 "격자가 뼈대로 드러남", pure는 "격자조차 가두는 장치로 안 씀".
|
|
24
|
+
- [[themes/expressive]] — 반대축. expressive는 "콘텐츠가 chrome을 밀어냄", pure는 "chrome 자체가 녹아 사라짐".
|
|
25
|
+
- [[axes/palette]] · [[axes/voice]] — Theme 바깥.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
### Signature
|
|
30
|
+
이 Theme IS **경계 장치 없이 매끄럽게 흐르는** Theme. 미니멀리즘의 "덜 꾸밈"이 아니라, Stripe·Framer·Linear 랜딩이 공유하는 **"장치 대신 비례"** — border·divider·card·drop shadow 같은 **요소를 가두는 장치**를 쓰지 않고, 톤 차이·여백·hairline·타이포 리듬만으로 흐름을 만든다. 세련됨은 **덜어내서**가 아니라 **공들여 매끄럽게 마감해서** 생긴다. 사진 같은 평면성과 과하게 정교한 비례가 지문. 모든 자리(랜딩·앱·테이블·설정)에 쓸 수 있다 — 어느 자리든 "가두지 말고 흐르게 짜라, 그리고 과하게 공들여 마감하라"는 지시로 작동한다.
|
|
31
|
+
|
|
32
|
+
### Preset
|
|
33
|
+
|
|
34
|
+
| Axis | Value | Why |
|
|
35
|
+
|---|---|---|
|
|
36
|
+
| [[axes/mode]] | `light` | Stripe·Framer 랜딩의 "white canvas" 패턴. canvas 자체가 조용해야 가두는 장치 없이도 요소가 떠오름. dark override는 가능하지만 톤 차이로 분리하는 설계가 더 까다로워짐. |
|
|
37
|
+
| [[axes/shape]] | `soft` | radius가 있어야 "박스로 가둔 느낌" 없이 요소가 부드럽게 자리잡음. crisp은 모서리 자체가 격자 신호가 되어 pure의 "장치 없음"과 어긋남. |
|
|
38
|
+
| [[axes/density]] | `comfortable` | 가두는 장치가 없으므로 각 요소의 호흡 공간이 분리 장치 역할. default는 간격이 좁아 요소끼리 뭉쳐 보이고, 톤·여백만으로 분리가 어려워짐. |
|
|
39
|
+
| [[axes/font]] | `lang=ko` | 한국어 기본. 폰트 스택은 Font 축에 양보. |
|
|
40
|
+
| [[axes/icon]] | `phosphor` · `regular` | regular weight가 타이포와 톤이 맞음. bold·fill은 아이콘이 따로 떠올라 매끄러운 흐름을 깸. |
|
|
41
|
+
| [[axes/motion]] | `calm` | 100ms linear. 조용히 녹아들 듯 등장하는 톤. bouncy는 요소가 튀어나와 pure의 평면성과 충돌. |
|
|
42
|
+
|
|
43
|
+
### Layout
|
|
44
|
+
균질한 호흡으로 흐르는 레이아웃. 1열·그리드·사이드바 전부 쓸 수 있지만, 각 요소를 card·border로 가두지 않는다. 사이드바는 배경 톤 교대 또는 hairline으로, 그리드 셀은 여백으로, 섹션은 상하 호흡으로 분리한다. 간격·정렬이 과하게 정교해야 "가두지 않았는데도 구조가 보인다".
|
|
45
|
+
|
|
46
|
+
**조립 규범 — 자리별 default 컴포넌트:**
|
|
47
|
+
- 리스트 자리(피드·활동·알림·오늘 할 일·일정·팀 상태 등) → **[[components/list-item]]** 로 통일. 사람·시간·대상·메타의 anatomy가 공유되고, pure 좌표에선 hairline 분리로 리스트를 만든다. 수제 `<div>` 리스트 금지 — anatomy가 리스트마다 어긋나 pure의 "과하게 공들여 마감"이 깨진다.
|
|
48
|
+
- 숫자 정렬·금액·대기일 등 **셀 폭·정렬·tabular-nums가 중요한 자리** → **[[components/table-header]] + [[components/table-row]]** 조합. variant는 `line`(pure default) — hairline 하나로 분리. plate(라운드 chrome)는 pure 좌표 바깥.
|
|
49
|
+
- 지표 strip(KPI 4개 등) → **[[components/metric-card]]** `variant="bare"` + 부모 strip이 상단 hairline + 수직 hairline으로 분리.
|
|
50
|
+
- 어느 자리든 "수제 조립 vs 컴포넌트 조립"이 애매하면 **컴포넌트 조립** 쪽. 그래야 자리마다 간격·정렬·톤이 어긋나지 않는다.
|
|
51
|
+
|
|
52
|
+
**리스트 조립 — hairline + wrapper 공식:**
|
|
53
|
+
hairline 리스트에서 콘텐츠가 선에 **딱 붙는 건 pure 좌표에서 치명적**이다 (Negative 참고). 부모 li가 세로 padding을 반드시 책임지고, self-space 공식을 가진 컴포넌트(ListItem 등)는 자식 선택자로 중화한다. 공식 상세는 [[components/list-item]] "조립 — 부모 wrapper 공식".
|
|
54
|
+
|
|
55
|
+
### Imagery
|
|
56
|
+
이미지는 캔버스에 **매끄럽게 녹아들도록** 배치한다. 거친 crop·강한 그림자·테두리로 가두지 않고, 자연스러운 여백 안에 놓거나 배경 톤에 섞는다. 사진·일러스트·gradient 전부 쓸 수 있지만 "가두는 frame" 없이 — Framer의 포스터 패턴, Stripe의 mesh gradient 패턴처럼 **경계가 흐려지는** 방식.
|
|
57
|
+
|
|
58
|
+
### Decoration
|
|
59
|
+
border·divider·card·drop shadow는 거의 쓰지 않는다 — 이것들이 "가두는 장치". 대신 **톤 차이·여백·hairline·gradient·배경 색면**은 자유롭게, 그러나 과하게 공들여 쓴다. hairline 한 줄도 색·굵기·위치가 섬세해야 pure의 세련됨이 나온다. 입체감(강한 shadow·광택·중첩 깊이) 대신 **표면의 균질함**과 **섬세한 톤 레이어링**으로 완성도를 만든다.
|
|
60
|
+
|
|
61
|
+
### Negative
|
|
62
|
+
- no card nesting·border nesting (앱 UI의 default — frame이 frame을 품지 않음)
|
|
63
|
+
- no drop shadow for elevation (SaaS card의 default — 그림자로 띄우지 않고 톤·여백으로 분리)
|
|
64
|
+
- no divider line between list items (설정·메뉴의 default — 리스트는 여백·톤으로 분리)
|
|
65
|
+
- no bordered input·bordered button as default (폼의 default — 입력·버튼은 톤 차이·배경 색면으로 성립)
|
|
66
|
+
- no gradient background **반복** (AI·fintech 랜딩의 default — gradient는 자유지만 섹션마다 깔지 않음, 과잉은 매끄러움을 깸)
|
|
67
|
+
- no sloppy spacing·misaligned baseline (pure의 치명적 default — 가두는 장치가 없으므로 거친 마감은 바로 "대충 비워둔 느낌"으로 보임)
|
|
68
|
+
- no content touching hairline·border·cell edge (pure의 치명적 default — 텍스트·Avatar·Icon이 선/테두리에 padding 없이 붙으면 "덜 가둠"이 아니라 "대충 비움"으로 추락. 모든 리스트 아이템·카드 셀·테이블 셀에서 완성 후 눈으로 체크)
|
|
69
|
+
- no mono in body (technical voice는 pure 자리가 아님)
|
|
70
|
+
|
|
71
|
+
### Override
|
|
72
|
+
전부 자유. 사용자가 "이 Theme에서 mode만 dark로"(Framer 패턴) 또는 "shape만 crisp로"(Stripe 편집 톤)처럼 지시하면 그대로 적용. 책임은 사용자.
|
|
73
|
+
Theme 선언을 벗어난 조합의 완성도는 보증하지 않는다 ([[PRINCIPLES]] §7).
|
|
74
|
+
|
|
75
|
+
### Known Gaps
|
|
76
|
+
- Voice는 Theme 바깥 축이라 이 Theme이 추천하지 않는다. editorial 톤이든 포스터 톤이든 어떤 Voice와도 결합 가능 ([[axes/voice]] 참고).
|
|
77
|
+
- 타이포 리듬의 수치(weight·tracking·size·line-height)는 Font 축이 담는다. 이 Theme은 "타이포 리듬이 과하게 정교해야 한다"는 태도만 담음.
|
|
78
|
+
- 톤 차이·hairline·gradient의 색·채도는 Palette가 담는다. 이 Theme은 "가두는 장치 대신 톤을 쓴다"는 원칙만.
|
|
79
|
+
- 호흡·여백의 수치는 Density 축이 담는다. 이 Theme은 "균질한 호흡"이라는 선호만.
|
|
80
|
+
|
|
81
|
+
### Iteration Guide
|
|
82
|
+
1. 축 preset을 바꿀 때 반드시 "왜" 1문장을 새로 쓴다. 기존 Why를 그대로 둔 채 Value만 바꾸지 않는다.
|
|
83
|
+
2. Negative에서 "no X"를 추가·삭제할 때는 "X가 어떤 카테고리의 default인지"를 괄호로 명시한다. 좌표 없는 금지는 금지가 아니다.
|
|
84
|
+
3. Layout·Imagery·Decoration 어느 섹션에도 수치를 넣지 않는다. "균질한 호흡" OK, "160px 간격" 금지.
|
|
85
|
+
4. Signature를 수정할 때 "IS ___" 공식과 비교 수사(not X, but Y)를 유지한다.
|
|
86
|
+
5. 이 Theme에 Palette를 선언하지 않는다. 색은 조합 시점에만 결정.
|
|
87
|
+
6. "덜 가둠 ≠ 덜 담음"을 Do·Don't·Decoration·Negative 네 섹션에서 반복적으로 강화한다. 한 곳이라도 "요소를 줄여라" 톤이 섞이면 pure가 다시 "대충 비운 느낌"으로 흐른다.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Spare
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
Vercel / Supabase / Raycast / Linear가 공유하는 "엔지니어드된 자제"를 뼈대로 삼는 Theme. "꾸미지 않음"이 디폴트가 아니라 **"규칙 격자를 먼저 정하고 그 안에서만 움직임"**이 디폴트다. 앱·대시보드·설정·문서·커맨드 UI 등 "매일 쓰는 도구" 전반의 기준이 된다.
|
|
5
|
+
|
|
6
|
+
### Do
|
|
7
|
+
- UI chrome은 전부 축 값 그대로 상속한다. 특정 섹션만 다른 Shape/Motion으로 튀게 하지 않는다.
|
|
8
|
+
- Palette만 바꾸면 브랜드별 변주가 자연스럽게 성립해야 한다 — 뼈대는 색에 의존하지 않는다.
|
|
9
|
+
- accent는 한 페이지에 한 지점에서만 터뜨린다 (primary CTA 또는 상태 이벤트 하나).
|
|
10
|
+
|
|
11
|
+
### Don't
|
|
12
|
+
- 전환형 랜딩·게임·엔터테인먼트의 자리에 억지로 쓰지 않는다. 자극·대비·그라디언트가 없어 전환이 안 터진다.
|
|
13
|
+
- 성격을 색·장식으로 보강하려 들지 않는다. 성격이 더 필요하면 Theme 자체를 바꾼다.
|
|
14
|
+
- "비어 보여서" 요소를 추가하지 않는다. 비어 보이는 게 이 Theme의 피드백이다.
|
|
15
|
+
|
|
16
|
+
### Fallback
|
|
17
|
+
축 preset은 아래 표 값으로 고정. override는 자유지만 Negative에 걸린 조합이면 한 번 확인한다.
|
|
18
|
+
|
|
19
|
+
### 관련
|
|
20
|
+
- [[themes/_SCHEMA]] — Theme 스키마
|
|
21
|
+
- [[axes/palette]] — Theme 바깥. 어떤 색이든 이 뼈대 위에 올라감.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
### Signature
|
|
26
|
+
이 Theme IS "격자부터 정한 뒤 그 격자 안에서만 움직이는" UI. 미니멀리즘의 수동적 비움이 아니라, Vercel·Supabase·Raycast·Linear가 공유하는 **엔지니어드된 자제** — 왜냐하면 매일 쓰는 도구는 "무엇을 넣느냐"가 아니라 "무엇을 들이지 않느냐"로 신뢰를 번다.
|
|
27
|
+
|
|
28
|
+
### Preset
|
|
29
|
+
|
|
30
|
+
| Axis | Value | Why |
|
|
31
|
+
|---|---|---|
|
|
32
|
+
| [[axes/mode]] | `light` | 제품 UI 기본. dark override는 열려 있고, 이 Theme의 뼈대는 두 mode 모두에서 동일하게 성립. |
|
|
33
|
+
| [[axes/shape]] | `standard` | 콘솔 톤을 유지하되 crisp처럼 날카롭지 않은 중립 모서리. soft는 캐주얼, crisp는 과하게 engineered. |
|
|
34
|
+
| [[axes/density]] | `default` | compact은 데이터 테이블·관리자 전용, comfortable은 터치·콘텐츠. 매일 쓰는 도구의 중앙값. |
|
|
35
|
+
| [[axes/font]] | `lang=ko` | 한국어 기본. 실제 폰트 스택은 Font 축이 담당. |
|
|
36
|
+
| [[axes/icon]] | `phosphor` · `regular` | 얇은 outline이 UI 호흡을 끊지 않음. 활성 상태만 `fill`로 전환. |
|
|
37
|
+
| [[axes/motion]] | `calm` | 100ms linear. 반복 사용 시 bouncy는 피곤. 피드백은 있되 과장 없음. |
|
|
38
|
+
|
|
39
|
+
### Layout
|
|
40
|
+
특별한 선호 없음. 1열·2열·그리드 전부 성립. 사이드바·상단 네비·멀티 컬럼 모두 이 Theme에 맞음 — Theme이 레이아웃을 강요하지 않는 게 디폴트의 성격. 섹션 간 호흡은 Density에 양보.
|
|
41
|
+
|
|
42
|
+
### Imagery
|
|
43
|
+
UI 안에 사진·3D·일러스트가 **반드시 들어와야 할 자리에만** 쓴다. 장식용 이미지는 쓰지 않는다. 이 Theme의 자연스러운 "이미지"는 제품 스크린샷·다이어그램·코드블록 — Raycast·Supabase의 공통 패턴.
|
|
44
|
+
|
|
45
|
+
### Decoration
|
|
46
|
+
없음. mesh gradient·노이즈·장식 라인·배경 패턴 전부 쓰지 않는다. elevation은 **표면 색의 사다리**(canvas → surface → surface-elevated)와 hairline border로만 만든다 — 그림자로 띄우지 않는다.
|
|
47
|
+
|
|
48
|
+
### Negative
|
|
49
|
+
- no heavy display weight (브랜드 랜딩의 default — display weight는 500~600에서 멈춘다)
|
|
50
|
+
- no uppercase + wide tracking (브랜드 랜딩의 default — sentence case 강제)
|
|
51
|
+
- no mono in body (technical voice는 caption·code 자리에만, body에 섞지 않는다)
|
|
52
|
+
- no gradient background (AI·fintech 랜딩의 default)
|
|
53
|
+
- no hero illustration·3D object (SaaS 홈의 default)
|
|
54
|
+
- no decorative shadow·glow (게임·엔터 UI의 default — elevation은 표면 사다리만)
|
|
55
|
+
- no multi-accent — 한 페이지에 accent voltage는 한 지점에서만
|
|
56
|
+
|
|
57
|
+
### Override
|
|
58
|
+
전부 자유. 사용자가 "이 Theme에서 Shape만 soft로" 또는 "mode만 dark로"처럼 지시하면 그대로 적용. 책임은 사용자.
|
|
59
|
+
Theme 선언을 벗어난 조합의 완성도는 보증하지 않는다 ([[PRINCIPLES]] §7).
|
|
60
|
+
|
|
61
|
+
### Known Gaps
|
|
62
|
+
- Voice는 Theme 바깥 축이라 이 Theme이 추천하지 않는다. engineered 톤이든 캐주얼 톤이든 어떤 Voice와도 결합 가능 ([[axes/voice]] 참고).
|
|
63
|
+
- 신택스 하이라이트·차트·데이터 비주얼의 팔레트는 Palette 축이 담는다.
|
|
64
|
+
- "weight 상한 500~600" 같은 타이포 규칙은 Negative 선언으로만 남고, 수치 레벨 강제는 Font 축에 양보한다.
|
|
65
|
+
- 표면 색 사다리의 단계 수·명도 간격은 Palette 축이 담는다. 이 Theme은 "사다리로 depth를 만든다"는 규칙만 담음.
|
|
66
|
+
|
|
67
|
+
### Iteration Guide
|
|
68
|
+
1. 축 preset을 바꿀 때 반드시 "왜" 1문장을 새로 쓴다. 기존 Why를 그대로 둔 채 Value만 바꾸지 않는다.
|
|
69
|
+
2. Negative에서 "no X"를 추가·삭제할 때는 "X가 어떤 카테고리의 default인지"를 괄호로 명시한다. 좌표 없는 금지는 금지가 아니다.
|
|
70
|
+
3. Layout·Imagery·Decoration 어느 섹션에도 수치를 넣지 않는다. "넉넉한 호흡" OK, "80px 간격" 금지.
|
|
71
|
+
4. Signature를 수정할 때 "IS ___" 공식과 비교 수사(not X, but Y)를 유지한다.
|
|
72
|
+
5. 이 Theme에 Palette를 선언하지 않는다. 색은 조합 시점에만 결정.
|
|
73
|
+
6. 성격 어휘(editorial / playful / radical)를 더 바르지 않는다. 이 Theme의 성격은 "격자부터 정한 뒤 그 안에서만 움직임" — 그 외는 다른 Theme의 자리.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Breakpoint
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
모바일 우선(min-width). Tailwind 표준 5단계.
|
|
5
|
+
|
|
6
|
+
### Do
|
|
7
|
+
- 기본 스타일은 모바일(sm 미만) 기준으로 짜고, 위 breakpoint에서 오버라이드.
|
|
8
|
+
- 페이지 좌우 여백은 sm에서 `space-6`, lg 이상에서 `space-8~12`.
|
|
9
|
+
- 사이드바 레이아웃은 lg 이상에서 노출, 이하는 Drawer로 대체.
|
|
10
|
+
|
|
11
|
+
### Don't
|
|
12
|
+
- max-width 기반 미디어쿼리 사용 금지 (min-width만).
|
|
13
|
+
- 임의 픽셀 값 미디어쿼리 금지 — 이름 있는 브레이크포인트만.
|
|
14
|
+
- 컴포넌트 내부에 fixed width 금지 — 컨테이너 크기에 반응.
|
|
15
|
+
|
|
16
|
+
### Fallback
|
|
17
|
+
반응형 설계가 애매하면 `md`를 데스크톱/모바일 갈림점으로 쓴다.
|
|
18
|
+
|
|
19
|
+
### 관련
|
|
20
|
+
N/A
|
|
21
|
+
|
|
22
|
+
### 토큰 표
|
|
23
|
+
| Token | 용도 |
|
|
24
|
+
|---|---|
|
|
25
|
+
| `sm` | 큰 모바일 · 작은 태블릿 |
|
|
26
|
+
| `md` | 태블릿 · 데스크톱 갈림점 |
|
|
27
|
+
| `lg` | 작은 데스크톱 · 사이드바 노출 |
|
|
28
|
+
| `xl` | 표준 데스크톱 |
|
|
29
|
+
| `2xl` | 큰 데스크톱 · 와이드 |
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Color
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
Semantic 이름으로 참조. 실제 색은 Palette(brand hex + paletteSet + mono) × Mode 두 축의 조합이 결정.
|
|
5
|
+
컴포넌트가 "파란색" 같은 색상 자체를 지시하지 않고 "브랜드 강조" 같은 역할로 참조.
|
|
6
|
+
|
|
7
|
+
### Do
|
|
8
|
+
- **브랜드 색은 하나 — `--primary`**. 주 액션(CTA·submit·confirm)·링크·활성 상태·강조 전부 primary로. 브랜드 톤이 둘로 쪼개지지 않게.
|
|
9
|
+
- 텍스트 위계: 본문 `--fg`, 보조 `--fg-muted`, 메타·플레이스홀더 `--fg-subtle`.
|
|
10
|
+
- 표면 위계: 페이지 `--bg`, 카드/영역 `--bg-subtle`, 코드/hover `--bg-muted`.
|
|
11
|
+
- 앱 탑바와 본문 페이지 바탕은 언제나 같은 색을 쓴다. AppFrame은 공통 `--app-frame-bg`(기본 `--bg`)로 Topbar·Tabs·Content를 연결한다. 프로젝트에서 바탕을 바꾸면 이 매핑과 페이지 바탕을 함께 바꾼다. 사이드바와 카드의 표면 구분은 [[components/app-frame]]의 배경 계약을 따른다.
|
|
12
|
+
- 다크의 일반 `--border`는 밝은 전경18% 알파, `--border-strong`은26% 알파로 구분한다. 전용 테이블 경계는 별도 토큰을 따른다.
|
|
13
|
+
- 상태 표시는 status 토큰: 성공 `--success`, 경고 `--warning`, 삭제·오류 `--destructive`, 정보 `--info`. 성공은 hue160/chroma0.12의 에메랄드, 오류는 hue25/chroma0.16의 차분한 빨강을 사용한다. 각 채도·색상은 --success-chroma/hue·--destructive-chroma/hue로 조절하며 Mode별 상태 명도는 유지한다.
|
|
14
|
+
- Focus 표시는 `--ring`.
|
|
15
|
+
|
|
16
|
+
### Don't
|
|
17
|
+
- hex/rgb/oklch 리터럴 금지. 모든 색은 CSS 변수 경유.
|
|
18
|
+
- Status hue를 재정의하지 않는다 (성공은 항상 초록, 경고는 항상 주황).
|
|
19
|
+
- 밝은 배경에 흰 텍스트, 어두운 배경에 검은 텍스트 금지 — 항상 semantic pair 사용.
|
|
20
|
+
- **`--accent`를 쓰지 않는다** — Ovenn은 Palette 축이 "한 프로젝트 = 한 brand hex"로 설계돼 primary 외의 별도 브랜드 색이 존재하지 않는다. 과거 `--accent` 참조는 `--primary`로 교체.
|
|
21
|
+
|
|
22
|
+
### Fallback
|
|
23
|
+
텍스트 `--fg`, 배경 `--bg`, 강조 `--primary`.
|
|
24
|
+
|
|
25
|
+
배경과 테두리 토큰을 함께 쓸 때는 [[PRINCIPLES]] §5b의 미세한 표시 색 차이 기준을 따른다. 알파·불투명 색 모두 실제 합성 결과로 판단하며 `--border` 참조만으로 허용되지 않는다.
|
|
26
|
+
|
|
27
|
+
### 관련
|
|
28
|
+
- [[tokens/material]] — 커맨드 팔레트에서 채택한 공용 Glass 표면 조합
|
|
29
|
+
- [[axes/palette]] · [[axes/mode]] — 실제 색상값 결정 (Palette 축이 brand hex + paletteSet + mono 세 입력을 흡수)
|
|
30
|
+
- [[tokens/shadow]] — Shape 축이 color·shadow·border를 함께 결정하므로 짝으로 자주 참조
|
|
31
|
+
|
|
32
|
+
### 토큰 표
|
|
33
|
+
|
|
34
|
+
**표면**
|
|
35
|
+
| Token | 용도 |
|
|
36
|
+
|---|---|
|
|
37
|
+
| `--bg` | 페이지 배경 |
|
|
38
|
+
| `--bg-subtle` | 카드·영역 배경 |
|
|
39
|
+
| `--bg-muted` | 코드 인라인·hover 배경 |
|
|
40
|
+
|
|
41
|
+
**텍스트**
|
|
42
|
+
| Token | 용도 |
|
|
43
|
+
|---|---|
|
|
44
|
+
| `--fg` | 본문 |
|
|
45
|
+
| `--fg-muted` | 보조 텍스트 |
|
|
46
|
+
| `--fg-subtle` | 메타·플레이스홀더 |
|
|
47
|
+
|
|
48
|
+
**경계**
|
|
49
|
+
| Token | 용도 |
|
|
50
|
+
|---|---|
|
|
51
|
+
| `--border` | 기본 경계 |
|
|
52
|
+
| `--border-strong` | 강조 경계 (crisp shape에서 두드러짐) |
|
|
53
|
+
|
|
54
|
+
**브랜드**
|
|
55
|
+
| Token | 용도 |
|
|
56
|
+
|---|---|
|
|
57
|
+
| `--primary` | mono=false면 브랜드 색, mono=true면 light near-black / dark near-white |
|
|
58
|
+
| `--primary-fg` | primary 위 텍스트·아이콘. mono에서는 primary와 반대 흑백, color에서는 대비가 큰 쪽 자동 선택 |
|
|
59
|
+
| `--primary-hover` | primary solid 배경의 hover 상태 (어두워진 버전) |
|
|
60
|
+
| `--primary-subtle` | primary 연한 배경 (8% 알파) — Badge/Callout 등 soft 변형 |
|
|
61
|
+
| `--primary-subtle-hover` | subtle variant의 hover 상태 (14% 알파). "soft 유지 + 반응" |
|
|
62
|
+
| `--primary-border-color` | subtle 표면과 짝 이루는 경계 (32% 알파) |
|
|
63
|
+
| `--selected-fg` | Checkbox·Radio 선택 표시. 기본 primary, mono에서는 fg |
|
|
64
|
+
| `--icon-color` | 아이콘 기본 색. mono 토글이 결정 (mono=fg-muted, 그 외=primary) |
|
|
65
|
+
| `--ring` | Focus 표시 |
|
|
66
|
+
|
|
67
|
+
> primary 위 텍스트·아이콘은 반드시 `--primary-fg`를 사용한다.
|
|
68
|
+
|
|
69
|
+
**보조 (Secondary variant 전용 — mono=false일 때만 유의미)**
|
|
70
|
+
| Token | 용도 |
|
|
71
|
+
|---|---|
|
|
72
|
+
| `--secondary-bg` · `--secondary-bg-hover` · `--secondary-fg` | Button `variant="secondary"` 등이 참조 |
|
|
73
|
+
|
|
74
|
+
**차트**
|
|
75
|
+
| Token | 용도 |
|
|
76
|
+
|---|---|
|
|
77
|
+
| `--chart-1` | color에서는 brand 원색, mono에서는 가장 강한 주조 회색 |
|
|
78
|
+
| `--chart-2` | color에서는 밝고 저채도인 companion, mono에서도 밝은 companion |
|
|
79
|
+
| `--chart-3` | color에서는 채도가 유지된 보조 series, mono에서는 두 번째로 강한 회색 |
|
|
80
|
+
| `--chart-4` | color에서는 밝고 낮은 채도의 후순위 series, mono에서도 가장 밝은 보조 회색 |
|
|
81
|
+
| `--chart-5` | color에서는 중간 밝기·저채도의 후순위 series, mono에서도 중간 회색 |
|
|
82
|
+
|
|
83
|
+
`--chart-1~5`는 Palette의 hue 조합만 회전시키지 않고 각기 다른 L·C tonal hierarchy를 함께 적용한다. 보조 series의 chroma는 시리즈별 상한(2: 0.12, 3: 0.14, 4: 0.08, 5: 0.10)을 적용한다. 브랜드 원색인 chart-1은 제한하지 않는다. 기본 2색 조합은 `--chart-1 + --chart-2`다.
|
|
84
|
+
mono에서는 모든 chart token의 chroma가 0이다. 단순 등간격 그레이가 아니라 color 팔레트의 비선형 tonal hierarchy를 보존하고, dark에서는 흰색 기준으로 같은 강약 리듬을 반전한다.
|
|
85
|
+
|
|
86
|
+
**상태** — 각 상태색은 solid·hover·subtle 3층 + fg·hover 짝으로 완성.
|
|
87
|
+
| Token | 용도 |
|
|
88
|
+
|---|---|
|
|
89
|
+
| `--success` / `--warning` / `--destructive` / `--info` | solid 배경 (각 색상, 축 영향 없음) |
|
|
90
|
+
| `--success-fg` / `--warning-fg` / `--destructive-fg` / `--info-fg` | solid 배경 위 글자 (고대비 흑/백 고정) |
|
|
91
|
+
| `--success-hover` / `--warning-hover` / `--destructive-hover` / `--info-hover` | solid hover 상태 (어두워진) |
|
|
92
|
+
| `--success-subtle` / `--warning-subtle` / `--destructive-subtle` / `--info-subtle` | 연한 배경 (8% 알파) — Badge/Callout/EventChip 등 |
|
|
93
|
+
| `--success-subtle-hover` / `--warning-subtle-hover` / `--destructive-subtle-hover` / `--info-subtle-hover` | subtle variant의 hover (14% 알파) — "soft 유지 + 반응" |
|
|
94
|
+
| `--success-border-color` / `--warning-border-color` / `--destructive-border-color` / `--info-border-color` | subtle 표면과 짝 (32% 알파) |
|
|
95
|
+
|
|
96
|
+
> **variant 선택 가이드:**
|
|
97
|
+
> - **solid** (주의 끄는 자리): `background: var(--destructive)` · `color: var(--destructive-fg)` · hover는 `var(--destructive-hover)`
|
|
98
|
+
> - **subtle** (라벨·배지·힌트): `background: var(--destructive-subtle)` · `color: var(--destructive)` · hover 유지면 `var(--destructive-subtle-hover)`, 반전면 solid로 전환
|
|
99
|
+
|
|
100
|
+
**오버레이 · 인터랙션**
|
|
101
|
+
| Token | 용도 |
|
|
102
|
+
|---|---|
|
|
103
|
+
| `--hover` | 반복 리스트·메뉴·탭·테이블 hover 공통. 라이트 검정 3%, 다크 흰색 3% 알파 오버레이 |
|
|
104
|
+
| `--tooltip-bg` | Tooltip 배경 (Mode 반전: light면 다크, dark면 라이트) |
|
|
105
|
+
| `--tooltip-fg` | Tooltip 텍스트 (Mode 반전) |
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Material
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
재질은 색·경계·투명도·블러를 다루는 표면 토큰 조합이다. 그림자는 Material과 독립적으로 각 컴포넌트의 elevation·Shape 토큰을 따른다. 기본 색과 형태 축을 따르며, 실제 합성된 화면에서 가독성과 경계를 확인한다.
|
|
5
|
+
|
|
6
|
+
### Glass
|
|
7
|
+
커맨드 팔레트에서 사용자가 채택한 은은한 글래스 재질. 배경의 형태를 흐리게 남기면서 앞의 텍스트와 선택 상태를 읽을 수 있도록 한다. 값의 원본은 `web/components/tokens.css`의 `--surface-glass-*`다.
|
|
8
|
+
|
|
9
|
+
| Token | 현재 조합 |
|
|
10
|
+
|---|---|
|
|
11
|
+
| `--surface-glass-bg` | Mode별 tint와 불투명도로 합성한 딤드 표면 |
|
|
12
|
+
| `--surface-glass-border` | `--fg` 라이트5%/다크10% + `--bg`, `--hairline` 두께 |
|
|
13
|
+
| `--surface-glass-blur` | 8px backdrop blur |
|
|
14
|
+
| `--surface-glass-radius` | `--radius-lg` |
|
|
15
|
+
| `--surface-glass-selected-bg` | `--fg` 8% + `--bg` 92% |
|
|
16
|
+
| `--surface-glass-scrim` | 기존 `--scrim` 65% + 투명 35%; 화면 차단이 필요한 경우만 |
|
|
17
|
+
|
|
18
|
+
### 딤드에 따른 구분
|
|
19
|
+
| 배경 | 라이트 불투명도 | 다크 불투명도 | 블러 | 적용 |
|
|
20
|
+
|---|---|---|---|---|
|
|
21
|
+
| 딤드 있음 | 72% | 40% | 8px | dim/blur Modal·Drawer |
|
|
22
|
+
| CommandPalette | 70% | 70% | 8px | 전역 명령 창 |
|
|
23
|
+
| 일반 딤드 없음 | 80% | 58% | 16px | DatePicker, transparent Modal·none Drawer |
|
|
24
|
+
| ColorPicker | 42% | 42% | 10px | 색상판/입력은 읽을 수 있게 유지, 외곽은 5% 중성 경계 |
|
|
25
|
+
| 메뉴 | 92% | 92% | 16px | ContextMenu·DropdownMenu·Select의 공통 표면 |
|
|
26
|
+
|
|
27
|
+
다크는 `--surface-glass-tint`로 전경4%를 배경에 섞고, `--surface-glass-border-contrast`를10%로 높여 검은 바탕과 표면의 경계를 구분한다. 라이트는 각각0%·5%다. 불투명도는 `--surface-glass-opacity`·`--surface-glass-floating-opacity`에 저장하며, 로컬 Mode/Material scope도 이 값을 따른다.
|
|
28
|
+
|
|
29
|
+
딤드가 없는 화면은 배경의 색·텍스트가 직접 간섭하므로 불투명도와 블러를 높인다. `--surface-glass-floating-bg`·`--surface-glass-floating-blur`에 값을 저장하고 `--material-floating-bg/filter`로 활성화한다. 색상판·수치 입력은 불투명하게 유지한다.
|
|
30
|
+
|
|
31
|
+
### 사용
|
|
32
|
+
- 전역 재질 전환은 [[axes/material]]의 `solid | glass`를 사용한다. `--surface-glass-*`는 재질 원본이며, 활성 표면은 `--material-*` 별칭을 참조한다.
|
|
33
|
+
- 작은 떠 있는 표면에 우선 사용한다: DropdownMenu·ContextMenu, 선택/날짜 팝업, 플로팅 툴바. 컨트롤 본체·메뉴 행의 크기와 행동은 기존 컴포넌트를 유지한다.
|
|
34
|
+
- Glass 표면의 외곽선과 내부 구분선은 `--material-border`를 공유하고 `--hairline` 한 겹으로 그린다. 바깥선과 맞닿는 inset shadow로 이중선을 만들지 않는다. 포커스·선택 상태의 의미 있는 경계는 별도 상태 토큰을 유지한다.
|
|
35
|
+
- 배경·테두리·blur는 함께 적용한다. 테두리는 표면에 녹아드는 미세한 대비를 유지한다([[PRINCIPLES]] §5b).
|
|
36
|
+
- Solid/Glass 전환은 box-shadow를 변경하지 않는다. 각 컴포넌트는 자신의 기존 shadow 토큰을 직접 사용하며 Material 그림자 별칭을 만들지 않는다. radius는 Shape와 컴포넌트 문맥을 따른다.
|
|
37
|
+
- backdrop-filter 미지원 및 `prefers-reduced-transparency: reduce`에서는 `--bg` 불투명 표면과 blur 없음으로 대체한다. 텍스트 자체의 opacity를 낮추지 않는다.
|
|
38
|
+
- 긴 본문·편집 폼·데이터 테이블·페이지 전체 바탕은 기본 불투명 표면을 우선한다. 색을 직접 판단하는 ColorPicker 팝업은 색상 영역과 입력 필드의 불투명 배경을 유지한다.
|
|
39
|
+
- 여러 큰 표면에 겹쳐 적용하지 않는다. 라이트/다크, 복잡한 배경, 선택/키보드 상태, 좁은 화면에서 실제로 확인한다.
|
|
40
|
+
|
|
41
|
+
### Fallback
|
|
42
|
+
일반 표면은 `--bg`, `--border`, 기존 컴포넌트 shadow/radius. Material 기본값은 Solid이며, Glass를 선택하면 지원하는 떠 있는 표면이 함께 전환된다.
|
|
43
|
+
|
|
44
|
+
### 관련
|
|
45
|
+
- [[tokens/color]] · [[tokens/shadow]] · [[components/command-palette]]
|
|
46
|
+
|
|
47
|
+
CommandPalette는 `--surface-glass-command-bg`로 라이트·다크 모두 불투명도70%를 사용한다. 다른 딤드 표면의 기본값과 독립적이며 blur8px와 Mode별 tint를 유지한다.
|
|
48
|
+
|
|
49
|
+
Floating Toolbar는 작은 표면에 맞춰 라이트·다크 모두 불투명도58%·blur8px를 사용한다. `--surface-glass-toolbar-bg/blur`에 저장하며 일반 피커·메뉴의 floating recipe와 분리한다. attached Toolbar는 기존 투명 표면을 유지한다.
|
|
50
|
+
|
|
51
|
+
ColorPicker는 `--surface-glass-picker-bg/blur/border`, 메뉴는 `--surface-glass-menu-bg`로 각 표면의 가독성과 비침을 조정한다. ColorPicker의 어두운 외곽/컨트롤 경계는 밝은 흰색 선 대신 중성 저대비 선을 유지한다.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Radius
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
컴포넌트 크기별 상대 위계. 이름은 고정, 값은 Shape 축이 결정.
|
|
5
|
+
Tooltip < Button < Card < Modal 순서는 어떤 프로젝트에서도 유지.
|
|
6
|
+
|
|
7
|
+
모서리 형태는 `corner-shape: var(--corner-shape)`로 연결한다. 반경을 상속하는 내부 표면은 `corner-shape: inherit`도 함께 쓴다. 미니 Checkbox·Badge는 `corner-shape-mini`를 사용한다. Switch는 자체 soft/crisp variant의 로컬 토큰을 유지하며 전역 Shape와 독립적이다.
|
|
8
|
+
|
|
9
|
+
Squircle 보정 배율은 `radius-scale`(standard·pill1.8, soft1.72, crisp1)이다. standard의 기준 반경 10% 축소와 soft의 큰 단계 축소는 배율 이전 기준값에 유지한다. none/full은 배율을 적용하지 않는다. soft의 액션 컨트롤 radius-pill-sm/md/lg는 해당 control 높이의 44%를 상한으로 두어 pill처럼 차는 것을 막는다. 작은 부품은 높이 절반 정규화 때문에 같은 모양이 될 수 있으므로 실제 화면에서 축별 곡선 차이를 확인한다.
|
|
10
|
+
|
|
11
|
+
- 표면 위 SVG 외곽선은 CSS의 radius·corner-shape에서 같은 경로를 생성한다. 별도 rect rx로 일반 원호를 겹치면 squircle과 어긋난다. border/outline 같은 동일 요소의 네이티브 경계와 구분한다.
|
|
12
|
+
|
|
13
|
+
### Do
|
|
14
|
+
- 컴포넌트 크기에 맞춰 스케일 선택: 작을수록 작은 radius.
|
|
15
|
+
- 완전한 원형(Avatar, Pill Chip)은 `radius-full`.
|
|
16
|
+
- 각져야 하는 표·시트 셀은 `radius-none`.
|
|
17
|
+
|
|
18
|
+
### Don't
|
|
19
|
+
- px 하드코딩 금지. Shape 축이 값 스왑을 담당.
|
|
20
|
+
- Modal에 `radius-sm`, Tooltip에 `radius-xl` 같은 위계 역전 금지.
|
|
21
|
+
|
|
22
|
+
### Fallback
|
|
23
|
+
애매하면 `radius-sm` (Button·Input 기본 스케일).
|
|
24
|
+
|
|
25
|
+
### 관련
|
|
26
|
+
- [[axes/shape]] — radius 값을 스왑
|
|
27
|
+
|
|
28
|
+
### 토큰 표
|
|
29
|
+
| Token | 용도 |
|
|
30
|
+
|---|---|
|
|
31
|
+
| `corner-shape` | 일반 표면의 Shape별 superellipse 곡선 |
|
|
32
|
+
| `card-corner-shape` | 카드·일정·문서 예제 프레임의 공통 squircle 곡선. 반경 크기는 Shape를 따름 |
|
|
33
|
+
| `corner-shape-mini` | Checkbox·Badge의 미니 곡선 |
|
|
34
|
+
| `radius-scale` | 공통 squircle 반경 보정 배율 |
|
|
35
|
+
| `radius-mini-ratio` | 미니 부품의 반경 비율 |
|
|
36
|
+
| `radius-mini-sm` / `radius-mini-md` | 미니 뱃지·체크박스의 반경 |
|
|
37
|
+
| `radius-none` | 표·시트 셀, 각져야 하는 경계 |
|
|
38
|
+
| `radius-xs` | Chip, Badge, Tooltip |
|
|
39
|
+
| `radius-sm` | Input, Button, Icon Button (기본) |
|
|
40
|
+
| `radius-md` | Card, Panel |
|
|
41
|
+
| `radius-lg` | Modal, Popover, Dropdown |
|
|
42
|
+
| `radius-xl` | 대형 카드 |
|
|
43
|
+
| `radius-2xl` | 히어로 카드 |
|
|
44
|
+
| `radius-3xl` | 랜딩·대형 오버레이 |
|
|
45
|
+
| `radius-full` | Avatar, Pill Chip, 원형 버튼 |
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Shadow
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
표면이 얼마나 위로 떠 있는가 — 시각 위계(elevation). Shape 축이 스타일 스왑.
|
|
5
|
+
|
|
6
|
+
### Do
|
|
7
|
+
- 컴포넌트 elevation에 맞춰 스케일 선택.
|
|
8
|
+
- Input focus·미세한 depth: `shadow-xs`.
|
|
9
|
+
- Card: `shadow-sm`. Dropdown·Popover: `shadow-md`. Modal: `shadow-lg`. Command Palette: `shadow-xl`.
|
|
10
|
+
- 눌린 상태(pressed inset)는 `shadow-inner`.
|
|
11
|
+
|
|
12
|
+
### Don't
|
|
13
|
+
- `box-shadow` 리터럴 하드코딩 금지. 색도 포함 — `rgba(0,0,0,...)`·`oklch(0 0 0 / ...)` 직접 쓰지 말고 `--shadow-*` 토큰 경유.
|
|
14
|
+
- 아래 요소(카드)가 위 요소(Modal)보다 강한 그림자 갖지 않는다 (elevation 역전 금지).
|
|
15
|
+
|
|
16
|
+
### Shadow 색
|
|
17
|
+
- `--shadow-color`: oklch(L C H) 세 성분. 알파는 shadow 단계별 상수로 보존.
|
|
18
|
+
- 기본은 중성 검정(`0 0 0`), 다크 모드도 동일(그림자는 "빛의 반대", Mode 반전 안 함) — 알파만 다크에서 상향.
|
|
19
|
+
- 테마가 override 하면 전체 shadow 톤이 스왑: 예 `--shadow-color: 0.15 0.03 40` → warm 브랜드의 갈색 틴트 그림자.
|
|
20
|
+
|
|
21
|
+
### Fallback
|
|
22
|
+
카드·패널이면 `shadow-sm`, 오버레이면 `shadow-md`.
|
|
23
|
+
|
|
24
|
+
### 관련
|
|
25
|
+
- [[axes/shape]] — Shape가 그림자 스타일을 스왑
|
|
26
|
+
|
|
27
|
+
### 토큰 표
|
|
28
|
+
| Token | 용도 |
|
|
29
|
+
|---|---|
|
|
30
|
+
| `shadow-xs` | Input focus, 미세 depth |
|
|
31
|
+
| `shadow-sm` | Card 기본 |
|
|
32
|
+
| `shadow-md` | Dropdown, Popover, Hover Card |
|
|
33
|
+
| `shadow-lg` | Modal, Drawer |
|
|
34
|
+
| `shadow-xl` | Command Palette, 화면 중심 |
|
|
35
|
+
| `shadow-inner` | 눌린 상태 (inset) |
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Spacing
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
관계의 밀도를 시각화. 가까울수록 관련 강하고, 멀수록 문맥 분리.
|
|
5
|
+
4px 배수(`--space-*`)만 사용. Density 축이 `--space-scale`로 여백 계열을 스왑한다. 실제 치수는 `--size-scale`·`--size-*`로 분리해 comfortable에서 여백만 더 늘릴 수 있다.
|
|
6
|
+
|
|
7
|
+
### Do
|
|
8
|
+
`--space-*`는 padding·gap·일반 margin에 사용한다. 박스·아이콘·체크박스·Avatar의 폭/높이와 그 치수에 종속된 광학 보정은 `--size-*`를 사용한다. size 계열은 같은 4px 기반으로 `--size-unit`과 숫자 단계를 제공한다(예: `--size-4`, 소수 단계는 `--size-0-5`·`--size-1-5`·`--size-2-5`). 컨트롤에는 기존 `--control-h-*`·`--icon-size-*` 등 의미 토큰을 우선한다.
|
|
9
|
+
공간은 **"맥락"으로 선택**한다. 토큰에 고정 용도가 박혀있지 않다. 아래 두 리듬 중 하나를 먼저 고르고, 그 안에서 스케일을 쓴다.
|
|
10
|
+
|
|
11
|
+
**앱·대시보드·콘솔 (디폴트 — 매일 쓰는 UI)**
|
|
12
|
+
- 작은 컴포넌트 사이(버튼↔버튼, 칩↔칩, 아이콘 묶음): **`space-1`(4px) 고정.** 묶음으로 읽히는 밀도. `space-2` 이상 금지.
|
|
13
|
+
- 컴포넌트 내부 요소(버튼의 아이콘-텍스트, chip 등): `space-1` ~ `space-2`.
|
|
14
|
+
- 폼 필드 간, 카드 내부 블록 간: `space-2` ~ `space-3`.
|
|
15
|
+
- 패널 헤더-바디, 카드 상하 padding: `space-3` 안팎 (상하는 좌우보다 한 단계 작게).
|
|
16
|
+
- 패널·섹션 간 세로 gap: `space-3` ~ `space-4`. border나 bg-subtle이 분리를 담당하므로 공간은 좁게.
|
|
17
|
+
- 페이지 body padding: `space-4` ~ `space-6`.
|
|
18
|
+
|
|
19
|
+
**랜딩·마케팅·에디토리얼 (선언형 UI)**
|
|
20
|
+
- 선언 섹션 간: `space-10` ~ `space-16`.
|
|
21
|
+
- 페이지 최상단·히어로 상하 호흡: `space-16` 이상.
|
|
22
|
+
- 큰 타이틀-서브헤드 간: `space-4` ~ `space-6`.
|
|
23
|
+
|
|
24
|
+
**공통 규칙**
|
|
25
|
+
- 어느 리듬이든, **카드·패널 그리드(border·bg로 이미 구분된 요소)의 가로/세로 gap은 균일하게.** 가로 `space-3`이면 세로도 `space-3`.
|
|
26
|
+
- 어느 리듬이든, 선언 섹션(히어로)과 콘솔 섹션(테이블/리스트)을 **같은 화면에서 섞을 때는 콘솔 리듬을 베이스로 두고** 선언 섹션 하나만 큰 호흡을 허락한다. 반대로 하지 않는다 (화면 전체가 랜딩처럼 뜨고 머리가 비게 됨).
|
|
27
|
+
|
|
28
|
+
**카드·패널 내부 padding — 시각적으로 상하좌우 동일**
|
|
29
|
+
- 카드, 패널, 모달, Callout 같은 "닫힌 박스" 안쪽은 **상하좌우 padding이 시각적으로 같아 보이게** 쓴다. 기본은 네 면 같은 토큰(`padding: var(--space-N)` 하나).
|
|
30
|
+
- 폰트는 line-height 여백을 품으므로, 콘텐츠가 큰 텍스트 블록이면 **상하를 수치상 한 단계 줄여** 시각 균형을 맞춘다 (line-height 보정). 예: 큰 타이틀 위주 카드면 `var(--space-2) var(--space-3)`. 이건 "비대칭을 쓰려는 게 아니라, 눈에 같아 보이게 하는 보정".
|
|
31
|
+
- 리스트 row·테이블 row처럼 **반복되는 가로 긴 아이템**도 동일 원칙 — 기본은 정사각, 큰 텍스트가 들어가면 line-height 보정으로만 상하 한 단계 축소.
|
|
32
|
+
- 예외는 panel 헤더(한 줄 고정 높이) 정도. 그 외엔 **"비대칭 padding이 눈에 보이면 틀린 것"**.
|
|
33
|
+
|
|
34
|
+
### Don't
|
|
35
|
+
- 스케일 밖의 임의 px 사용 금지. 필요하면 디자인 재검토 신호.
|
|
36
|
+
- 인접 스케일을 나란히 반복 금지 — 위계가 사라짐. 최소 2단계 차이. (line-height 보정은 예외)
|
|
37
|
+
- 컴포넌트 간 간격을 `space-2` 이하로 좁히기 금지 — **단, 버튼↔버튼·칩↔칩 등 "작은 컴포 묶음"은 역으로 `space-1`(4px) 고정.** 큰 섹션 간은 좁히지 말고, 작은 묶음은 넓히지 말라.
|
|
38
|
+
- 카드 그리드의 세로 gap을 가로 gap보다 크게 잡지 않는다 — 격자가 세로로만 벌어져 "열은 붙고 행은 떨어진" 어긋남이 생긴다.
|
|
39
|
+
- 카드 그리드끼리 또는 카드 그리드와 다음 패널을 `space-6` 이상 gap으로 분리하지 않는다 — 카드가 이미 border/배경으로 분리돼 있어 과한 공간은 "구조가 끊겨 보이는" 결과를 만든다.
|
|
40
|
+
- 카드·패널 내부 padding을 눈에 띄게 비대칭으로 쓰지 않는다 — 상하좌우가 시각적으로 같아 보이는 게 디폴트. 비대칭을 쓰는 경우는 "line-height 여백 보정" 목적일 때만, 상하를 한 단계 줄이는 쪽으로.
|
|
41
|
+
- **두 요소 사이 공간을 양쪽에서 동시에 잡기 금지 (이중 여백 금지).** 부모의 `gap` 과 자식의 `padding-top`/`margin-top` 을 동시에 쓰지 말 것. 둘 중 **한 쪽만** 공간 책임자다. 판정 기준: 두 블록이 **각자 독립된 "닫힌 박스"**(헤더 박스 + 콘텐츠 박스처럼 자체 padding 을 들고 다님)라면 **부모 gap = 0**, 두 블록이 **같은 트랙 안의 자식**(동일 패널 안 섹션들)이라면 **자식 padding = 0 + 부모 gap 으로 리듬**. 이걸 섞어 쓰면 공간이 두 번 더해져 리듬이 깨지고, 디자인 축을 바꿔도 한쪽만 반응해 어긋난다.
|
|
42
|
+
|
|
43
|
+
### Fallback
|
|
44
|
+
관련성이 확실치 않으면 `space-4`부터 시도.
|
|
45
|
+
|
|
46
|
+
### 관련
|
|
47
|
+
- [[axes/density]] — `--space-scale`로 모든 spacing 값 스왑
|
|
48
|
+
|
|
49
|
+
### 토큰 표
|
|
50
|
+
토큰에는 **고정 용도가 없다.** 아래 "전형적인 자리"는 가장 자주 쓰는 예시일 뿐, "섹션 간은 반드시 space-8" 식으로 못박지 않는다. 어느 자리에 어느 스케일을 쓸지는 위의 Do(앱 리듬 vs 랜딩 리듬)에서 결정한다.
|
|
51
|
+
|
|
52
|
+
| Token | 전형적인 자리 (예시) |
|
|
53
|
+
|---|---|
|
|
54
|
+
| `space-0.5` | 아이콘-텍스트 미세 간격 |
|
|
55
|
+
| `space-1` | 텍스트-아이콘, 아이콘 묶음, **버튼↔버튼 gap(고정)** |
|
|
56
|
+
| `space-1.5` | 컨트롤 내부 gap |
|
|
57
|
+
| `space-2` | 작은 gap (컴포넌트 사이는 제외 — space-1 고정) |
|
|
58
|
+
| `space-2.5` | 버튼 md 좌우 |
|
|
59
|
+
| `space-3` | 카드 내부, 콘솔 패널 세로 리듬 |
|
|
60
|
+
| `space-4` | 콘솔 패널 좌우 padding, 카드 그리드 gap |
|
|
61
|
+
| `space-5` | 콘솔 body padding |
|
|
62
|
+
| `space-6` | 콘솔 body padding (넉넉) / 랜딩 요소 간 |
|
|
63
|
+
| `space-8` | 선언 섹션 상하 호흡 |
|
|
64
|
+
| `space-10` | 랜딩 섹션 간 |
|
|
65
|
+
| `space-12` | 랜딩 섹션 간 (넉넉) |
|
|
66
|
+
| `space-16` | 랜딩 히어로·페이지 최상단 |
|
|
67
|
+
|
|
68
|
+
### 전역 element selector로 padding/margin 걸지 않기
|
|
69
|
+
`section`, `article`, `main`, `h1~h6` 등 **element selector에 전역 padding/margin을 걸면 그 태그를 쓰는 모든 자리를 오염**시킨다. 특히 `section`은 Ovenn에서 "panel/카드 하나"를 뜻하는 자리로도 쓰이고 "docs의 스크롤 네비 섹션"으로도 쓰이므로, 두 자리의 리듬이 서로 다른 걸 하나의 전역 룰로 묶으면 반드시 한 쪽이 터진다.
|
|
70
|
+
|
|
71
|
+
- 전역 룰은 **특정 wrapper 클래스 안으로 scope**한다 — `section` ❌ → `.docs section` ✅.
|
|
72
|
+
- 섹션 간 호흡은 **부모 flex-column의 `gap`으로** 담당하고, 섹션 자체에는 padding을 걸지 않는 쪽을 선호.
|
|
73
|
+
- 디버깅 체크리스트: 어떤 자리의 패딩이 "내가 안 걸었는데 들어있다"면 **상위 globals.css의 element selector 규칙**부터 의심한다.
|
|
74
|
+
|
|
75
|
+
### 텍스트 gap·line-height
|
|
76
|
+
- **섹션 타이틀(h1~h3)에는 반드시 명시적 `line-height` 지정.** 지정 없으면 body base(1.5)를 상속해 큰 폰트에서 "위가 뭉텅 비어 보임" 함정이 발생한다. 큰 선언형은 `--lh-tight`(1.2), 패널 헤더는 1.3 안팎.
|
|
77
|
+
- 상하좌우 균일 padding의 함정: 모달 상단 텍스트(타이틀), 하단 버튼일 때 균일 padding이면 위가 넓어 보일 수 있다 — 이 때는 **먼저 타이틀의 line-height를 조이고**, 그래도 위가 뜨면 상단 padding을 한 단계 축소.
|
|
78
|
+
- 텍스트 ↔ 텍스트 gap: 두 요소 모두 line-height를 품으므로 보수적으로. 라벨-값은 `space-1~2`.
|
|
79
|
+
- 텍스트 ↔ 그래픽 gap: 그래픽은 line-height 여백이 없으므로 표준 스케일 그대로.
|
|
80
|
+
- 그래픽 ↔ 그래픽: 필요하면 한 단계 크게.
|
|
81
|
+
|
|
82
|
+
### 한 줄에 크기가 다른 요소 수직 정렬
|
|
83
|
+
한 flex row 안에 폰트 크기가 다른 두 요소(큰 숫자값 + 작은 라벨/[[components/badge]]/작은 아이콘 등)가 나란히 올 때, `align-items`는 다음 기준으로 선택한다. 임의 기본값(특히 `baseline`) 금지.
|
|
84
|
+
|
|
85
|
+
- **기본은 `center`.** 큰 글자와 작은 글자/배지의 중심을 맞춘다. 카드 안에서 "값 + 변화량 Badge" 같은 조합이 전형. baseline으로 맞추면 작은 요소가 아래로 쏠려 위쪽 패딩이 비어 보이고 카드 내부 균형이 깨진다.
|
|
86
|
+
- **같은 폰트 크기의 텍스트끼리** 가로로 나열될 때만 `baseline`. 다른 크기 섞이면 금지.
|
|
87
|
+
- 아이콘 ↔ 텍스트는 `center` 고정 (아이콘엔 baseline이 없다).
|
|
88
|
+
- 패딩이 균일한 카드 안의 row는 `align-items: center` + 균일 padding으로 "실제로도, 시각적으로도" 가운데 정렬이 성립한다. 큰 요소 하나 때문에 상하 여백이 어긋나 보이면 **패딩이 아니라 정렬을 의심한다.**
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### 로컬 밀도와 토큰 계산 범위
|
|
92
|
+
- CSS 변수의 파생 값은 선언된 요소에서 계산된 뒤 상속된다. 상위에서 계산된 `--space-*`를 받는 하위 요소에 `--space-scale`만 지정해도 기존 파생 값이 다시 계산되지는 않는다.
|
|
93
|
+
- 표준 밀도 전환은 컨테이너에 `data-density`를 지정한다. `tokens.css`는 그 범위에서 간격·컨트롤·타이포 파생식을 함께 계산한다. TemplateBoundary도 이 경계를 사용한다.
|
|
94
|
+
- 직접 정한 배율을 사용하는 지역은 같은 요소에 `data-token-scope`를 지정한다. 배율 입력과 파생식의 계산 범위를 맞추고, 그 하위에서는 계산된 토큰을 상속받는다. 범위 밖 형제에는 영향을 주지 않는다.
|
|
95
|
+
- 특정 간격만 바꾸려면 해당 범위의 `--space-*`를 직접 override할 수 있다. 모든 자식에 토큰을 재선언하는 방식은 이런 의도적인 상속을 깨뜨리므로 사용하지 않는다.
|
|
96
|
+
- 프로젝트가 별도 간격 토큰을 만들었다면 그 파생식도 실제 밀도를 바꾸는 범위에 선언한다. 문서의 리듬 안내만으로 이미 생성한 CSS가 자동 변경되지는 않는다.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Typography
|
|
2
|
+
|
|
3
|
+
### 원칙
|
|
4
|
+
타이포 위계의 기본 토큰이다. 프로젝트에서 추가 슬롯과 값을 선언해 확장할 수 있다. 폰트·굵기·크기·line-height의 조합은 실제 내용과 역할로 판단한다.
|
|
5
|
+
|
|
6
|
+
### Do
|
|
7
|
+
- 같은 대시보드에 조합되는 동급 카드의 제목은 콘텐츠 종류와 관계없이 같은 font-size·line-height·font-weight를 사용한다. 기본 조합은 `text-base` + `lh-tight` + `font-weight-semibold`이며, 프로젝트가 바꾸면 동급 카드 전체에 함께 적용한다. 카드 폭이나 차트/목록 종류 때문에 제목 크기를 제각각 바꾸지 않는다.
|
|
8
|
+
- 본문/라벨/코드/제목의 역할을 정하고 필요한 크기와 굵기를 선택한다.
|
|
9
|
+
- 보조 텍스트와 성공/검증 결과가 주 작업보다 시선을 과하게 끌지 않는지 비교한다.
|
|
10
|
+
- 기본 text/label 토큰에서 시작하고, 프로젝트 토큰으로 필요한 위계를 확장한다.
|
|
11
|
+
|
|
12
|
+
### Don't
|
|
13
|
+
- [HARD] 사용처의 스타일 리터럴과 미선언 토큰 참조를 만들지 않는다.
|
|
14
|
+
- [SOFT] 모든 heading을 크게 만들거나, 모든 UI를 같은 굵기/크기로 처리하지 않는다.
|
|
15
|
+
|
|
16
|
+
### Fallback
|
|
17
|
+
본문 `text-base`, 라벨 `text-sm`, 헤딩 `text-2xl`.
|
|
18
|
+
|
|
19
|
+
### 관련
|
|
20
|
+
- [[axes/font]] — 폰트 스택·포인트 폰트 범위 결정
|
|
21
|
+
- [[axes/density]] — `--font-scale`로 사이즈 스케일 전체를 스왑 (compact 0.95× / default 1× / comfortable 1.05×)
|
|
22
|
+
|
|
23
|
+
### 제공되는 Core CSS 변수 (프로젝트 선언으로 확장 가능)
|
|
24
|
+
|
|
25
|
+
| 용도 | CSS 변수 | 참고 |
|
|
26
|
+
|---|---|---|
|
|
27
|
+
| 본문/캡션 크기 | `--text-{3xs,2xs,xs,sm,base,lg,xl,2xl,3xl,4xl,5xl}` | line-height는 `--lh-{...}` 짝으로 매칭 |
|
|
28
|
+
| 라벨/UI 크기 | `--label-{sm,md,lg}-size` | 라벨 폰트는 `--label-font` |
|
|
29
|
+
| 라인하이트 | `--lh-{3xs,2xs,xs,sm,base,lg,xl,2xl,3xl,4xl,5xl}` | font-size 토큰과 짝 |
|
|
30
|
+
| Weight | `--font-weight-{regular,book,medium,emphasis,semibold,bold}` | |
|
|
31
|
+
| Font family | `--font-normal`, `--label-font` | |
|
|
32
|
+
|
|
33
|
+
Core에 없는 이름 예: `--font-size-sm`, `--font-size-xs`, `--text-size-sm`, `--fs-sm`, `--size-text-sm`. 기본 선언은 없으므로, 사용하려면 프로젝트에서 실제로 선언한다.
|
|
34
|
+
|
|
35
|
+
### 토큰 표
|
|
36
|
+
|
|
37
|
+
**Font Size / Line-height**
|
|
38
|
+
| Token | CSS 변수 | 용도 |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| `text-3xs` | `--text-3xs` / `--lh-3xs` | Micro meta (사용 자제) |
|
|
41
|
+
| `text-2xs` | `--text-2xs` / `--lh-2xs` | Dense table meta, tag |
|
|
42
|
+
| `text-xs` | `--text-xs` / `--lh-xs` | Caption, Helper, Badge |
|
|
43
|
+
| `text-sm` | `--text-sm` / `--lh-sm` | Body Small, Table, Label |
|
|
44
|
+
| `text-base` | `--text-base` / `--lh-base` | Body (기본) |
|
|
45
|
+
| `text-lg` | `--text-lg` / `--lh-lg` | Lead 문단, 강조 본문 |
|
|
46
|
+
| `text-xl` | `--text-xl` / `--lh-xl` | H4 |
|
|
47
|
+
| `text-2xl` | `--text-2xl` / `--lh-2xl` | H3 |
|
|
48
|
+
| `text-3xl` | `--text-3xl` / `--lh-3xl` | H2 |
|
|
49
|
+
| `text-4xl` | `--text-4xl` / `--lh-4xl` | H1, Page Title |
|
|
50
|
+
| `text-5xl` | `--text-5xl` / `--lh-5xl` | Display (Hero) |
|
|
51
|
+
|
|
52
|
+
**Font Weight**
|
|
53
|
+
| Token | 시작 용도 |
|
|
54
|
+
|---|---|
|
|
55
|
+
| regular | 본문 |
|
|
56
|
+
| book (450) | 일반 강조·상태·데이터·파일명·프로필명 |
|
|
57
|
+
| medium (500) | 버튼·컨트롤/폼 라벨·실제 제목의 중간 강조. 영어도 500을 유지 |
|
|
58
|
+
| emphasis | 기존 문장 내부 강조. 영어는 book(450), 한국어 등은 기존 medium(500)을 유지 |
|
|
59
|
+
| semibold | 제목/주요 UI 강조 |
|
|
60
|
+
| bold | 강한 위계가 필요한 영역 |
|
|
61
|
+
|
|
62
|
+
이는 시작점이다. 크기에 따른 일괄 금지나 heading 종류별 굵기 금지는 없으며 실제 글꼴·가독성·주변 위계에 맞춰 선택한다.
|
|
63
|
+
|
|
64
|
+
**Letter Spacing**
|
|
65
|
+
| Token | 용도 |
|
|
66
|
+
|---|---|
|
|
67
|
+
| `tight` | 큰 헤딩(text-2xl 이상) |
|
|
68
|
+
| `normal` | 본문 |
|
|
69
|
+
| `wide` | 대문자 라벨, 뱃지 텍스트 |
|
|
70
|
+
|
|
71
|
+
### 언어별 전역 굵기 보정
|
|
72
|
+
|
|
73
|
+
weight 이름은 역할을 나타내는 명목값이며 실제 font-weight는 `clamp(1, 400 + (명목값 - 400) × scale + offset, 1000)`이다. regular400/book450/medium500/semibold600/bold700 역할을 유지한다.
|
|
74
|
+
|
|
75
|
+
- `--font-weight-scale-en: 1`, `--font-weight-offset-en: 0`: Manrope 기본값.
|
|
76
|
+
- `--font-weight-scale-ko: 0.75`, `--font-weight-offset-ko: 0`: Pretendard 기본값. regular400/book437.5/medium475/semibold550/bold625로 표시한다.
|
|
77
|
+
- scale은 본문400을 유지하면서 강조 강도를, offset은 전체 굵기를 보정한다. 프로젝트 루트에서 프로필 입력만 변경하면 버튼·태그·이름·제목 등 의미 토큰 소비처에 함께 적용된다. 개별 컴포넌트의 font-weight 리터럴로 우회하지 않는다.
|
|
78
|
+
- `[data-lang]`과 `[data-token-scope]`에서 파생 weight 및 label-weight를 재계산해 중첩된 다른 언어·폰트 경계가 상위 언어의 계산값을 물려받지 않게 한다. 사용자 폰트/기타 locale은 해당 data-lang 경계에서 유효 `--font-weight-scale` / `--font-weight-offset`을 설정할 수 있다.
|
|
79
|
+
- 일반 강조 emphasis의 의미 매핑은 영어 book, 한국어 medium을 유지하며 각 역할의 실측 값만 프로필을 따른다. Code의 폰트 파일 선언/가변 폰트 범위 같은 로딩 메타데이터는 이 보정 대상이 아니다.
|
|
80
|
+
- `/en/tokens/typography#weight-calibration`에서 현재 문서 전체에 적용되는 미리보기 슬라이더와 프로젝트 CSS를 제공한다. 미리보기 변경은 새로고침 시 기본값으로 복원된다.
|
|
81
|
+
|
|
82
|
+
```css
|
|
83
|
+
:root {
|
|
84
|
+
--font-weight-scale-en: 1;
|
|
85
|
+
--font-weight-offset-en: 0;
|
|
86
|
+
--font-weight-scale-ko: 0.75;
|
|
87
|
+
--font-weight-offset-ko: 0;
|
|
88
|
+
}
|
|
89
|
+
```
|