rift-ds 1.0.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/LICENSE +21 -0
- package/README.md +107 -0
- package/behaviors/focusable.d.ts +26 -0
- package/behaviors/focusable.js +18 -0
- package/behaviors/useFocusScope.d.ts +38 -0
- package/behaviors/useFocusScope.js +82 -0
- package/behaviors/useLayer.d.ts +43 -0
- package/behaviors/useLayer.js +55 -0
- package/behaviors/useMounted.d.ts +7 -0
- package/behaviors/useMounted.js +14 -0
- package/behaviors/useScrollLock.d.ts +55 -0
- package/behaviors/useScrollLock.js +59 -0
- package/bin/rift-ds.mjs +82 -0
- package/charts.d.ts +16 -0
- package/charts.js +24 -0
- package/components/Accordion/Accordion.css +119 -0
- package/components/Accordion/Accordion.d.ts +24 -0
- package/components/Accordion/Accordion.js +76 -0
- package/components/AgentPlan/AgentPlan.css +251 -0
- package/components/AgentPlan/AgentPlan.d.ts +41 -0
- package/components/AgentPlan/AgentPlan.js +100 -0
- package/components/AgentRail/AgentRail.css +282 -0
- package/components/AgentRail/AgentRail.d.ts +72 -0
- package/components/AgentRail/AgentRail.js +101 -0
- package/components/AgentStatus/AgentStatus.css +511 -0
- package/components/AgentStatus/AgentStatus.d.ts +41 -0
- package/components/AgentStatus/AgentStatus.js +86 -0
- package/components/AgentStatus/AgentStatusPatterns.d.ts +17 -0
- package/components/AgentStatus/AgentStatusPatterns.js +20 -0
- package/components/AiButton/AiButton.css +559 -0
- package/components/AiButton/AiButton.d.ts +79 -0
- package/components/AiButton/AiButton.js +183 -0
- package/components/Alert/Alert.css +261 -0
- package/components/Alert/Alert.d.ts +25 -0
- package/components/Alert/Alert.js +53 -0
- package/components/AlertDialog/AlertDialog.css +133 -0
- package/components/AlertDialog/AlertDialog.d.ts +29 -0
- package/components/AlertDialog/AlertDialog.js +98 -0
- package/components/AnchorNav/AnchorNav.css +137 -0
- package/components/AnchorNav/AnchorNav.d.ts +40 -0
- package/components/AnchorNav/AnchorNav.js +135 -0
- package/components/AnimatedNumber/AnimatedNumber.css +31 -0
- package/components/AnimatedNumber/AnimatedNumber.d.ts +36 -0
- package/components/AnimatedNumber/AnimatedNumber.js +55 -0
- package/components/AppLayout/AppLayout.css +52 -0
- package/components/AppLayout/AppLayout.d.ts +33 -0
- package/components/AppLayout/AppLayout.js +47 -0
- package/components/AppSidebar/AppSidebar.css +592 -0
- package/components/AppSidebar/AppSidebar.d.ts +90 -0
- package/components/AppSidebar/AppSidebar.js +295 -0
- package/components/Avatar/Avatar.css +133 -0
- package/components/Avatar/Avatar.d.ts +20 -0
- package/components/Avatar/Avatar.js +58 -0
- package/components/Avatar/demoAvatars.d.ts +18 -0
- package/components/Avatar/demoAvatars.js +16 -0
- package/components/AvatarGroup/AvatarGroup.css +61 -0
- package/components/AvatarGroup/AvatarGroup.d.ts +32 -0
- package/components/AvatarGroup/AvatarGroup.js +31 -0
- package/components/Badge/Badge.css +67 -0
- package/components/Badge/Badge.d.ts +13 -0
- package/components/Badge/Badge.js +15 -0
- package/components/Banner/Banner.css +110 -0
- package/components/Banner/Banner.d.ts +36 -0
- package/components/Banner/Banner.js +59 -0
- package/components/Breadcrumb/Breadcrumb.css +100 -0
- package/components/Breadcrumb/Breadcrumb.d.ts +25 -0
- package/components/Breadcrumb/Breadcrumb.js +40 -0
- package/components/Button/Button.css +473 -0
- package/components/Button/Button.d.ts +73 -0
- package/components/Button/Button.js +91 -0
- package/components/ButtonGroup/ButtonGroup.css +39 -0
- package/components/ButtonGroup/ButtonGroup.d.ts +13 -0
- package/components/ButtonGroup/ButtonGroup.js +30 -0
- package/components/Card/Card.css +190 -0
- package/components/Card/Card.d.ts +48 -0
- package/components/Card/Card.js +113 -0
- package/components/CardStack/CardStack.css +106 -0
- package/components/CardStack/CardStack.d.ts +44 -0
- package/components/CardStack/CardStack.js +140 -0
- package/components/Carousel/Carousel.css +121 -0
- package/components/Carousel/Carousel.d.ts +25 -0
- package/components/Carousel/Carousel.js +160 -0
- package/components/Chart/AreaChart.d.ts +40 -0
- package/components/Chart/AreaChart.js +101 -0
- package/components/Chart/BarChart.d.ts +36 -0
- package/components/Chart/BarChart.js +107 -0
- package/components/Chart/Chart.css +224 -0
- package/components/Chart/ComboChart.d.ts +40 -0
- package/components/Chart/ComboChart.js +142 -0
- package/components/Chart/LineChart.d.ts +36 -0
- package/components/Chart/LineChart.js +91 -0
- package/components/Chart/PieChart.d.ts +36 -0
- package/components/Chart/PieChart.js +93 -0
- package/components/Chart/RadarChart.d.ts +36 -0
- package/components/Chart/RadarChart.js +92 -0
- package/components/Chart/RadialChart.d.ts +43 -0
- package/components/Chart/RadialChart.js +114 -0
- package/components/Chart/ScatterChart.d.ts +38 -0
- package/components/Chart/ScatterChart.js +99 -0
- package/components/Chart/StackedBarChart.d.ts +36 -0
- package/components/Chart/StackedBarChart.js +98 -0
- package/components/Chart/Treemap.d.ts +35 -0
- package/components/Chart/Treemap.js +95 -0
- package/components/Chart/palette.d.ts +1 -0
- package/components/Chart/palette.js +17 -0
- package/components/ChatHeader/ChatHeader.css +35 -0
- package/components/ChatHeader/ChatHeader.d.ts +30 -0
- package/components/ChatHeader/ChatHeader.js +17 -0
- package/components/ChatMarker/ChatMarker.css +61 -0
- package/components/ChatMarker/ChatMarker.d.ts +22 -0
- package/components/ChatMarker/ChatMarker.js +18 -0
- package/components/ChatMessage/ChatMessage.css +326 -0
- package/components/ChatMessage/ChatMessage.d.ts +74 -0
- package/components/ChatMessage/ChatMessage.js +71 -0
- package/components/ChatThread/ChatThread.css +171 -0
- package/components/ChatThread/ChatThread.d.ts +41 -0
- package/components/ChatThread/ChatThread.js +175 -0
- package/components/Checkbox/Checkbox.css +183 -0
- package/components/Checkbox/Checkbox.d.ts +81 -0
- package/components/Checkbox/Checkbox.js +176 -0
- package/components/Chip/Chip.css +231 -0
- package/components/Chip/Chip.d.ts +27 -0
- package/components/Chip/Chip.js +80 -0
- package/components/CircularButton/CircularButton.css +263 -0
- package/components/CircularButton/CircularButton.d.ts +68 -0
- package/components/CircularButton/CircularButton.js +72 -0
- package/components/CodeBlock/CodeBlock.css +189 -0
- package/components/CodeBlock/CodeBlock.d.ts +23 -0
- package/components/CodeBlock/CodeBlock.js +96 -0
- package/components/CodeDiff/CodeDiff.css +175 -0
- package/components/CodeDiff/CodeDiff.d.ts +58 -0
- package/components/CodeDiff/CodeDiff.js +114 -0
- package/components/ColorPicker/ColorPicker.css +278 -0
- package/components/ColorPicker/ColorPicker.d.ts +50 -0
- package/components/ColorPicker/ColorPicker.js +349 -0
- package/components/ColourSwatch/ColourSwatch.css +88 -0
- package/components/ColourSwatch/ColourSwatch.d.ts +34 -0
- package/components/ColourSwatch/ColourSwatch.js +42 -0
- package/components/Combobox/Combobox.css +384 -0
- package/components/Combobox/Combobox.d.ts +93 -0
- package/components/Combobox/Combobox.js +331 -0
- package/components/CommandPalette/CommandPalette.css +342 -0
- package/components/CommandPalette/CommandPalette.d.ts +62 -0
- package/components/CommandPalette/CommandPalette.js +247 -0
- package/components/Composer/Composer.css +427 -0
- package/components/Composer/Composer.d.ts +97 -0
- package/components/Composer/Composer.js +146 -0
- package/components/ContactCard/ContactCard.css +132 -0
- package/components/ContactCard/ContactCard.d.ts +24 -0
- package/components/ContactCard/ContactCard.js +79 -0
- package/components/ContextMenu/ContextMenu.css +258 -0
- package/components/ContextMenu/ContextMenu.d.ts +26 -0
- package/components/ContextMenu/ContextMenu.js +387 -0
- package/components/ContributionGraph/ContributionGraph.css +169 -0
- package/components/ContributionGraph/ContributionGraph.d.ts +34 -0
- package/components/ContributionGraph/ContributionGraph.js +149 -0
- package/components/DataTable/DataTable.css +109 -0
- package/components/DataTable/DataTable.d.ts +81 -0
- package/components/DataTable/DataTable.js +236 -0
- package/components/DateInput/DateInput.css +127 -0
- package/components/DateInput/DateInput.d.ts +44 -0
- package/components/DateInput/DateInput.js +82 -0
- package/components/DatePicker/DatePicker.css +198 -0
- package/components/DatePicker/DatePicker.d.ts +29 -0
- package/components/DatePicker/DatePicker.js +196 -0
- package/components/Dialog/Dialog.css +178 -0
- package/components/Dialog/Dialog.d.ts +39 -0
- package/components/Dialog/Dialog.js +99 -0
- package/components/Divider/Divider.css +100 -0
- package/components/Divider/Divider.d.ts +18 -0
- package/components/Divider/Divider.js +31 -0
- package/components/DocumentChip/DocumentChip.css +190 -0
- package/components/DocumentChip/DocumentChip.d.ts +41 -0
- package/components/DocumentChip/DocumentChip.js +78 -0
- package/components/Drawer/Drawer.css +262 -0
- package/components/Drawer/Drawer.d.ts +41 -0
- package/components/Drawer/Drawer.js +101 -0
- package/components/Dropdown/Dropdown.css +288 -0
- package/components/Dropdown/Dropdown.d.ts +85 -0
- package/components/Dropdown/Dropdown.js +308 -0
- package/components/DropdownMenu/DropdownMenu.css +301 -0
- package/components/DropdownMenu/DropdownMenu.d.ts +42 -0
- package/components/DropdownMenu/DropdownMenu.js +371 -0
- package/components/EmptyState/EmptyState.css +136 -0
- package/components/EmptyState/EmptyState.d.ts +27 -0
- package/components/EmptyState/EmptyState.js +32 -0
- package/components/EntityCard/EntityCard.css +69 -0
- package/components/EntityCard/EntityCard.d.ts +19 -0
- package/components/EntityCard/EntityCard.js +26 -0
- package/components/EventCalendar/EventCalendar.css +363 -0
- package/components/EventCalendar/EventCalendar.d.ts +59 -0
- package/components/EventCalendar/EventCalendar.js +230 -0
- package/components/Field/Field.css +80 -0
- package/components/Field/Field.d.ts +57 -0
- package/components/Field/Field.js +70 -0
- package/components/Field/FieldContext.d.ts +42 -0
- package/components/Field/FieldContext.js +8 -0
- package/components/Figure/Figure.css +71 -0
- package/components/Figure/Figure.d.ts +17 -0
- package/components/Figure/Figure.js +26 -0
- package/components/FileInput/FileInput.css +281 -0
- package/components/FileInput/FileInput.d.ts +54 -0
- package/components/FileInput/FileInput.js +205 -0
- package/components/FilterBar/FilterBar.css +202 -0
- package/components/FilterBar/FilterBar.d.ts +55 -0
- package/components/FilterBar/FilterBar.js +249 -0
- package/components/FunnelChart/FunnelChart.css +17 -0
- package/components/FunnelChart/FunnelChart.d.ts +51 -0
- package/components/FunnelChart/FunnelChart.js +96 -0
- package/components/GanttChart/GanttChart.css +326 -0
- package/components/GanttChart/GanttChart.d.ts +82 -0
- package/components/GanttChart/GanttChart.js +202 -0
- package/components/Gauge/Gauge.css +120 -0
- package/components/Gauge/Gauge.d.ts +64 -0
- package/components/Gauge/Gauge.js +111 -0
- package/components/Globe/Globe.css +155 -0
- package/components/Globe/Globe.d.ts +103 -0
- package/components/Globe/Globe.js +416 -0
- package/components/HoverCard/HoverCard.css +125 -0
- package/components/HoverCard/HoverCard.d.ts +29 -0
- package/components/HoverCard/HoverCard.js +83 -0
- package/components/ImageCompare/ImageCompare.css +112 -0
- package/components/ImageCompare/ImageCompare.d.ts +40 -0
- package/components/ImageCompare/ImageCompare.js +134 -0
- package/components/Input/Input.css +150 -0
- package/components/Input/Input.d.ts +45 -0
- package/components/Input/Input.js +99 -0
- package/components/Instructions/Instructions.css +216 -0
- package/components/Instructions/Instructions.d.ts +29 -0
- package/components/Instructions/Instructions.js +32 -0
- package/components/InterruptCard/InterruptCard.css +164 -0
- package/components/InterruptCard/InterruptCard.d.ts +54 -0
- package/components/InterruptCard/InterruptCard.js +57 -0
- package/components/Kbd/Kbd.css +28 -0
- package/components/Kbd/Kbd.d.ts +19 -0
- package/components/Kbd/Kbd.js +14 -0
- package/components/LegendTile/LegendTile.css +60 -0
- package/components/LegendTile/LegendTile.d.ts +30 -0
- package/components/LegendTile/LegendTile.js +21 -0
- package/components/Lightbox/Lightbox.css +210 -0
- package/components/Lightbox/Lightbox.d.ts +45 -0
- package/components/Lightbox/Lightbox.js +109 -0
- package/components/LinkList/LinkList.css +71 -0
- package/components/LinkList/LinkList.d.ts +24 -0
- package/components/LinkList/LinkList.js +42 -0
- package/components/MapCallout/MapCallout.css +46 -0
- package/components/MapCallout/MapCallout.d.ts +29 -0
- package/components/MapCallout/MapCallout.js +17 -0
- package/components/MapLegend/MapLegend.css +88 -0
- package/components/MapLegend/MapLegend.d.ts +40 -0
- package/components/MapLegend/MapLegend.js +68 -0
- package/components/MessageActions/MessageActions.css +85 -0
- package/components/MessageActions/MessageActions.d.ts +38 -0
- package/components/MessageActions/MessageActions.js +40 -0
- package/components/MessageCard/MessageCard.css +163 -0
- package/components/MessageCard/MessageCard.d.ts +35 -0
- package/components/MessageCard/MessageCard.js +30 -0
- package/components/Meter/Meter.css +98 -0
- package/components/Meter/Meter.d.ts +36 -0
- package/components/Meter/Meter.js +48 -0
- package/components/ModelPicker/ModelPicker.css +243 -0
- package/components/ModelPicker/ModelPicker.d.ts +60 -0
- package/components/ModelPicker/ModelPicker.js +261 -0
- package/components/MotionSwatch/MotionSwatch.css +176 -0
- package/components/MotionSwatch/MotionSwatch.d.ts +25 -0
- package/components/MotionSwatch/MotionSwatch.js +74 -0
- package/components/Nav/Nav.css +51 -0
- package/components/Nav/Nav.d.ts +19 -0
- package/components/Nav/Nav.js +26 -0
- package/components/NavList/NavList.css +155 -0
- package/components/NavList/NavList.d.ts +56 -0
- package/components/NavList/NavList.js +100 -0
- package/components/NotificationCenter/NotificationCenter.css +279 -0
- package/components/NotificationCenter/NotificationCenter.d.ts +72 -0
- package/components/NotificationCenter/NotificationCenter.js +145 -0
- package/components/NumberInput/NumberInput.css +163 -0
- package/components/NumberInput/NumberInput.d.ts +44 -0
- package/components/NumberInput/NumberInput.js +147 -0
- package/components/Pagination/Pagination.css +126 -0
- package/components/Pagination/Pagination.d.ts +22 -0
- package/components/Pagination/Pagination.js +84 -0
- package/components/Panel/Panel.css +26 -0
- package/components/Panel/Panel.d.ts +22 -0
- package/components/Panel/Panel.js +19 -0
- package/components/PinInput/PinInput.css +92 -0
- package/components/PinInput/PinInput.d.ts +46 -0
- package/components/PinInput/PinInput.js +161 -0
- package/components/Popover/Popover.css +118 -0
- package/components/Popover/Popover.d.ts +22 -0
- package/components/Popover/Popover.js +113 -0
- package/components/ProgressBar/ProgressBar.css +60 -0
- package/components/ProgressBar/ProgressBar.d.ts +16 -0
- package/components/ProgressBar/ProgressBar.js +27 -0
- package/components/PromptSuggestions/PromptSuggestions.css +264 -0
- package/components/PromptSuggestions/PromptSuggestions.d.ts +68 -0
- package/components/PromptSuggestions/PromptSuggestions.js +87 -0
- package/components/Prose/Prose.css +269 -0
- package/components/Prose/Prose.d.ts +21 -0
- package/components/Prose/Prose.js +14 -0
- package/components/Quote/Quote.css +78 -0
- package/components/Quote/Quote.d.ts +18 -0
- package/components/Quote/Quote.js +26 -0
- package/components/RadioButton/RadioButton.css +151 -0
- package/components/RadioButton/RadioButton.d.ts +90 -0
- package/components/RadioButton/RadioButton.js +138 -0
- package/components/Rating/Rating.css +74 -0
- package/components/Rating/Rating.d.ts +41 -0
- package/components/Rating/Rating.js +124 -0
- package/components/Reasoning/Reasoning.css +291 -0
- package/components/Reasoning/Reasoning.d.ts +55 -0
- package/components/Reasoning/Reasoning.js +99 -0
- package/components/RichDropdown/RichDropdown.css +239 -0
- package/components/RichDropdown/RichDropdown.d.ts +78 -0
- package/components/RichDropdown/RichDropdown.js +227 -0
- package/components/SectionTitle/SectionTitle.css +45 -0
- package/components/SectionTitle/SectionTitle.d.ts +12 -0
- package/components/SectionTitle/SectionTitle.js +22 -0
- package/components/SegmentedControl/SegmentedControl.css +231 -0
- package/components/SegmentedControl/SegmentedControl.d.ts +44 -0
- package/components/SegmentedControl/SegmentedControl.js +240 -0
- package/components/SelectionCard/SelectionCard.css +255 -0
- package/components/SelectionCard/SelectionCard.d.ts +36 -0
- package/components/SelectionCard/SelectionCard.js +102 -0
- package/components/ShaderField/ShaderField.css +24 -0
- package/components/ShaderField/ShaderField.d.ts +68 -0
- package/components/ShaderField/ShaderField.js +55 -0
- package/components/ShaderField/field.glsl.d.ts +39 -0
- package/components/ShaderField/field.glsl.js +178 -0
- package/components/ShaderField/useShaderField.d.ts +103 -0
- package/components/ShaderField/useShaderField.js +410 -0
- package/components/Skeleton/Skeleton.css +81 -0
- package/components/Skeleton/Skeleton.d.ts +16 -0
- package/components/Skeleton/Skeleton.js +30 -0
- package/components/Slider/Slider.css +104 -0
- package/components/Slider/Slider.d.ts +48 -0
- package/components/Slider/Slider.js +86 -0
- package/components/SourceChip/SourceChip.css +111 -0
- package/components/SourceChip/SourceChip.d.ts +32 -0
- package/components/SourceChip/SourceChip.js +31 -0
- package/components/SourceTrail/SourceTrail.css +209 -0
- package/components/SourceTrail/SourceTrail.d.ts +49 -0
- package/components/SourceTrail/SourceTrail.js +108 -0
- package/components/SpacingSwatch/SpacingSwatch.css +108 -0
- package/components/SpacingSwatch/SpacingSwatch.d.ts +20 -0
- package/components/SpacingSwatch/SpacingSwatch.js +50 -0
- package/components/Sparkline/Sparkline.css +76 -0
- package/components/Sparkline/Sparkline.d.ts +51 -0
- package/components/Sparkline/Sparkline.js +116 -0
- package/components/Spinner/Spinner.css +84 -0
- package/components/Spinner/Spinner.d.ts +14 -0
- package/components/Spinner/Spinner.js +42 -0
- package/components/SplitButton/SplitButton.css +93 -0
- package/components/SplitButton/SplitButton.d.ts +43 -0
- package/components/SplitButton/SplitButton.js +67 -0
- package/components/SplitPane/SplitPane.css +106 -0
- package/components/SplitPane/SplitPane.d.ts +36 -0
- package/components/SplitPane/SplitPane.js +130 -0
- package/components/Stat/Stat.css +121 -0
- package/components/Stat/Stat.d.ts +22 -0
- package/components/Stat/Stat.js +36 -0
- package/components/StatusDot/StatusDot.css +104 -0
- package/components/StatusDot/StatusDot.d.ts +34 -0
- package/components/StatusDot/StatusDot.js +23 -0
- package/components/Stepper/Stepper.css +216 -0
- package/components/Stepper/Stepper.d.ts +41 -0
- package/components/Stepper/Stepper.js +61 -0
- package/components/StreamingText/StreamingText.css +40 -0
- package/components/StreamingText/StreamingText.d.ts +62 -0
- package/components/StreamingText/StreamingText.js +49 -0
- package/components/StreamingText/useStreamReveal.d.ts +70 -0
- package/components/StreamingText/useStreamReveal.js +121 -0
- package/components/Swatch/Swatch.css +52 -0
- package/components/Swatch/Swatch.d.ts +34 -0
- package/components/Swatch/Swatch.js +44 -0
- package/components/Table/Table.css +223 -0
- package/components/Table/Table.d.ts +53 -0
- package/components/Table/Table.js +65 -0
- package/components/Tabs/Tabs.css +140 -0
- package/components/Tabs/Tabs.d.ts +28 -0
- package/components/Tabs/Tabs.js +78 -0
- package/components/TagInput/TagInput.css +169 -0
- package/components/TagInput/TagInput.d.ts +43 -0
- package/components/TagInput/TagInput.js +137 -0
- package/components/Textarea/Textarea.css +109 -0
- package/components/Textarea/Textarea.d.ts +43 -0
- package/components/Textarea/Textarea.js +86 -0
- package/components/ThreadPanel/ThreadPanel.css +862 -0
- package/components/ThreadPanel/ThreadPanel.d.ts +175 -0
- package/components/ThreadPanel/ThreadPanel.js +466 -0
- package/components/ThreadTabs/ThreadTabs.css +252 -0
- package/components/ThreadTabs/ThreadTabs.d.ts +54 -0
- package/components/ThreadTabs/ThreadTabs.js +201 -0
- package/components/TimePicker/TimePicker.css +230 -0
- package/components/TimePicker/TimePicker.d.ts +46 -0
- package/components/TimePicker/TimePicker.js +250 -0
- package/components/Timeline/Timeline.css +366 -0
- package/components/Timeline/Timeline.d.ts +67 -0
- package/components/Timeline/Timeline.js +73 -0
- package/components/Toast/Toast.css +363 -0
- package/components/Toast/Toast.d.ts +63 -0
- package/components/Toast/Toast.js +215 -0
- package/components/ToggleGroup/ToggleGroup.css +110 -0
- package/components/ToggleGroup/ToggleGroup.d.ts +50 -0
- package/components/ToggleGroup/ToggleGroup.js +73 -0
- package/components/ToggleSwitch/ToggleSwitch.css +172 -0
- package/components/ToggleSwitch/ToggleSwitch.d.ts +43 -0
- package/components/ToggleSwitch/ToggleSwitch.js +76 -0
- package/components/ToolCall/ToolCall.css +234 -0
- package/components/ToolCall/ToolCall.d.ts +43 -0
- package/components/ToolCall/ToolCall.js +90 -0
- package/components/Toolbar/Toolbar.css +56 -0
- package/components/Toolbar/Toolbar.d.ts +35 -0
- package/components/Toolbar/Toolbar.js +62 -0
- package/components/Tooltip/Tooltip.css +175 -0
- package/components/Tooltip/Tooltip.d.ts +22 -0
- package/components/Tooltip/Tooltip.js +74 -0
- package/components/TreeView/TreeView.css +119 -0
- package/components/TreeView/TreeView.d.ts +45 -0
- package/components/TreeView/TreeView.js +232 -0
- package/components/TypographySwatch/TypographySwatch.css +81 -0
- package/components/TypographySwatch/TypographySwatch.d.ts +24 -0
- package/components/TypographySwatch/TypographySwatch.js +40 -0
- package/components/UsageCard/UsageCard.css +30 -0
- package/components/UsageCard/UsageCard.d.ts +48 -0
- package/components/UsageCard/UsageCard.js +54 -0
- package/components/Waveform/Waveform.css +97 -0
- package/components/Waveform/Waveform.d.ts +44 -0
- package/components/Waveform/Waveform.js +46 -0
- package/components/WorldMap/WorldMap.css +234 -0
- package/components/WorldMap/WorldMap.d.ts +113 -0
- package/components/WorldMap/WorldMap.js +427 -0
- package/components/WorldMap/land.d.ts +14 -0
- package/components/WorldMap/land.js +4 -0
- package/components/registry.d.ts +79 -0
- package/components/registry.js +13 -0
- package/components/registry.json +1153 -0
- package/components/registry.json.d.ts +1156 -0
- package/components/registry.json.js +11 -0
- package/fonts/MaterialSymbolsRounded-VariableFont_FILL,GRAD,opsz,wght.woff2 +0 -0
- package/fonts/material-symbols.css +94 -0
- package/fonts/presets/dm-sans-300-700-latin-ext.woff2 +0 -0
- package/fonts/presets/dm-sans-300-700-latin.woff2 +0 -0
- package/fonts/presets/fraunces-300-700-latin-ext.woff2 +0 -0
- package/fonts/presets/fraunces-300-700-latin.woff2 +0 -0
- package/fonts/presets/ibm-plex-mono-300-latin-ext.woff2 +0 -0
- package/fonts/presets/ibm-plex-mono-300-latin.woff2 +0 -0
- package/fonts/presets/ibm-plex-mono-400-latin-ext.woff2 +0 -0
- package/fonts/presets/ibm-plex-mono-400-latin.woff2 +0 -0
- package/fonts/presets/ibm-plex-mono-500-latin-ext.woff2 +0 -0
- package/fonts/presets/ibm-plex-mono-500-latin.woff2 +0 -0
- package/fonts/presets/ibm-plex-mono-600-latin-ext.woff2 +0 -0
- package/fonts/presets/ibm-plex-mono-600-latin.woff2 +0 -0
- package/fonts/presets/ibm-plex-mono-700-latin-ext.woff2 +0 -0
- package/fonts/presets/ibm-plex-mono-700-latin.woff2 +0 -0
- package/fonts/presets/ibm-plex-sans-300-700-latin-ext.woff2 +0 -0
- package/fonts/presets/ibm-plex-sans-300-700-latin.woff2 +0 -0
- package/fonts/presets/inter-300-700-latin-ext.woff2 +0 -0
- package/fonts/presets/inter-300-700-latin.woff2 +0 -0
- package/fonts/presets/inter-tight-300-900-latin-ext.woff2 +0 -0
- package/fonts/presets/inter-tight-300-900-latin.woff2 +0 -0
- package/fonts/presets/lora-400-700-latin-ext.woff2 +0 -0
- package/fonts/presets/lora-400-700-latin.woff2 +0 -0
- package/fonts/presets/montserrat-300-700-latin-ext.woff2 +0 -0
- package/fonts/presets/montserrat-300-700-latin.woff2 +0 -0
- package/fonts/presets/poppins-300-latin-ext.woff2 +0 -0
- package/fonts/presets/poppins-300-latin.woff2 +0 -0
- package/fonts/presets/poppins-400-latin-ext.woff2 +0 -0
- package/fonts/presets/poppins-400-latin.woff2 +0 -0
- package/fonts/presets/poppins-500-latin-ext.woff2 +0 -0
- package/fonts/presets/poppins-500-latin.woff2 +0 -0
- package/fonts/presets/poppins-600-latin-ext.woff2 +0 -0
- package/fonts/presets/poppins-600-latin.woff2 +0 -0
- package/fonts/presets/poppins-700-latin-ext.woff2 +0 -0
- package/fonts/presets/poppins-700-latin.woff2 +0 -0
- package/fonts/presets/source-sans-3-300-700-latin-ext.woff2 +0 -0
- package/fonts/presets/source-sans-3-300-700-latin.woff2 +0 -0
- package/fonts/presets/space-grotesk-300-700-latin-ext.woff2 +0 -0
- package/fonts/presets/space-grotesk-300-700-latin.woff2 +0 -0
- package/fonts/presets/work-sans-300-700-latin-ext.woff2 +0 -0
- package/fonts/presets/work-sans-300-700-latin.woff2 +0 -0
- package/index.d.ts +132 -0
- package/index.js +277 -0
- package/package.json +87 -0
- package/tokens/motion.d.ts +44 -0
- package/tokens/motion.js +32 -0
- package/tokens/presets/contrast.css +316 -0
- package/tokens/presets/coral.css +356 -0
- package/tokens/presets/forest.css +334 -0
- package/tokens/presets/gold.css +303 -0
- package/tokens/presets/mono.css +286 -0
- package/tokens/presets/pink.css +349 -0
- package/tokens/presets/presets.css +17 -0
- package/tokens/presets/terminal.css +378 -0
- package/tokens/presets/violet.css +314 -0
- package/tokens/presets/warm.css +320 -0
- package/tokens/presets/zest.css +359 -0
- package/tokens/registry.d.ts +22 -0
- package/tokens/registry.js +14 -0
- package/tokens/registry.json +276 -0
- package/tokens/registry.json.d.ts +279 -0
- package/tokens/registry.json.js +8 -0
- package/tokens/tokens-dark.css +186 -0
- package/tokens/tokens-light.css +276 -0
- package/tokens/tokens-motion.css +72 -0
- package/tokens/tokens-primitives.css +213 -0
- package/tokens/tokens-typography.css +210 -0
- package/tokens/tokens.css +11 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
PRIMITIVE TOKENS
|
|
3
|
+
Source of truth — raw values only
|
|
4
|
+
Do not use these directly in components
|
|
5
|
+
============================================ */
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
/* ============================================
|
|
9
|
+
COLOR PRIMITIVES
|
|
10
|
+
============================================ */
|
|
11
|
+
|
|
12
|
+
/* Neutral Scale
|
|
13
|
+
Alpha variants follow the -aNN grammar: NN is the alpha × 100, so
|
|
14
|
+
--primitive-neutral-09-a80 is neutral-09 at 80% opacity. */
|
|
15
|
+
--primitive-neutral-00: #FFFFFF;
|
|
16
|
+
--primitive-neutral-00-a01: rgba(255, 255, 255, 0.01);
|
|
17
|
+
--primitive-neutral-00-a60: rgba(255, 255, 255, 0.6);
|
|
18
|
+
--primitive-neutral-00-a90: rgba(255, 255, 255, 0.9);
|
|
19
|
+
--primitive-neutral-01: #F1F1F1;
|
|
20
|
+
--primitive-neutral-01-a01: rgba(241, 241, 241, 0.01);
|
|
21
|
+
--primitive-neutral-01-a60: rgba(241, 241, 241, 0.6);
|
|
22
|
+
--primitive-neutral-01-a82: rgba(241, 241, 241, 0.82);
|
|
23
|
+
--primitive-neutral-02: #D6D6D6;
|
|
24
|
+
--primitive-neutral-02-a80: rgba(214, 214, 214, 0.8);
|
|
25
|
+
--primitive-neutral-03: #BCBCBC;
|
|
26
|
+
--primitive-neutral-03-a80: rgba(188, 188, 188, 0.8);
|
|
27
|
+
--primitive-neutral-04: #A2A2A2;
|
|
28
|
+
--primitive-neutral-05: #888888;
|
|
29
|
+
--primitive-neutral-06: #6D6D6D;
|
|
30
|
+
--primitive-neutral-07: #303030;
|
|
31
|
+
--primitive-neutral-07-a80: rgba(48, 48, 48, 0.8);
|
|
32
|
+
--primitive-neutral-08: #232323;
|
|
33
|
+
--primitive-neutral-08-a80: rgba(35, 35, 35, 0.8);
|
|
34
|
+
--primitive-neutral-09: #0E0E0E;
|
|
35
|
+
--primitive-neutral-09-a01: rgba(14, 14, 14, 0.01);
|
|
36
|
+
--primitive-neutral-09-a80: rgba(14, 14, 14, 0.8);
|
|
37
|
+
--primitive-neutral-09-a60: rgba(14, 14, 14, 0.6);
|
|
38
|
+
--primitive-neutral-09-a66: rgba(14, 14, 14, 0.66);
|
|
39
|
+
--primitive-neutral-10: #050505;
|
|
40
|
+
--primitive-neutral-10-a60: rgba(5, 5, 5, 0.6);
|
|
41
|
+
--primitive-neutral-10-a01: rgba(5, 5, 5, 0.01);
|
|
42
|
+
--primitive-neutral-11: #000000;
|
|
43
|
+
|
|
44
|
+
/* Chromatic ramps, 00–11. Step 07 is each ramp's key colour; relative
|
|
45
|
+
luminance decreases strictly from 00 down to 11 (build-enforced by
|
|
46
|
+
scripts/validate-theme-mirrors.mjs).
|
|
47
|
+
|
|
48
|
+
The 00 and 11 end caps are generated, not drawn: blended gamma-aware
|
|
49
|
+
in sRGB (linearize each channel, lerp linearly, delinearize) —
|
|
50
|
+
00 = mix(white → step 01) at t = 0.45
|
|
51
|
+
11 = mix(step 10 → black) at t = 0.38 (≈62% of step 10's luminance)
|
|
52
|
+
Orange, yellow and green 05/06 are gamma-aware interpolations of
|
|
53
|
+
04 → 07 at t = 1/3 and 2/3 (the hand-drawn steps sat darker than the
|
|
54
|
+
07 key, kinking the ramps); every other step is the original drawn
|
|
55
|
+
value. */
|
|
56
|
+
|
|
57
|
+
/* Red Scale */
|
|
58
|
+
--primitive-red-00: #FEF8FA;
|
|
59
|
+
--primitive-red-01: #FDEFF3;
|
|
60
|
+
--primitive-red-02: #FAD3DD;
|
|
61
|
+
--primitive-red-03: #F8B7C7;
|
|
62
|
+
--primitive-red-04: #F69BB1;
|
|
63
|
+
--primitive-red-05: #F37F9B;
|
|
64
|
+
--primitive-red-06: #F16385;
|
|
65
|
+
--primitive-red-07: #EF476F;
|
|
66
|
+
--primitive-red-08: #C93A5C;
|
|
67
|
+
--primitive-red-09: #8E2641;
|
|
68
|
+
--primitive-red-10: #571727;
|
|
69
|
+
--primitive-red-11: #45101D;
|
|
70
|
+
|
|
71
|
+
/* Orange Scale */
|
|
72
|
+
--primitive-orange-00: #FFFAF7;
|
|
73
|
+
--primitive-orange-01: #FFF3EC;
|
|
74
|
+
--primitive-orange-02: #FBD9C5;
|
|
75
|
+
--primitive-orange-03: #F6B794;
|
|
76
|
+
--primitive-orange-04: #F1996E;
|
|
77
|
+
--primitive-orange-05: #F09263;
|
|
78
|
+
--primitive-orange-06: #F08A56;
|
|
79
|
+
--primitive-orange-07: #EF8247;
|
|
80
|
+
--primitive-orange-08: #C65E33;
|
|
81
|
+
--primitive-orange-09: #8F4324;
|
|
82
|
+
--primitive-orange-10: #552716;
|
|
83
|
+
--primitive-orange-11: #431D0F;
|
|
84
|
+
|
|
85
|
+
/* Yellow Scale */
|
|
86
|
+
--primitive-yellow-00: #FFFCF6;
|
|
87
|
+
--primitive-yellow-01: #FFF9EA;
|
|
88
|
+
--primitive-yellow-02: #FFF0C9;
|
|
89
|
+
--primitive-yellow-03: #FFE5A3;
|
|
90
|
+
--primitive-yellow-04: #FFD97F;
|
|
91
|
+
--primitive-yellow-05: #FFD677;
|
|
92
|
+
--primitive-yellow-06: #FFD46F;
|
|
93
|
+
--primitive-yellow-07: #FFD166;
|
|
94
|
+
--primitive-yellow-08: #C49A3E;
|
|
95
|
+
--primitive-yellow-09: #8A6B2A;
|
|
96
|
+
--primitive-yellow-10: #544016;
|
|
97
|
+
--primitive-yellow-11: #42320F;
|
|
98
|
+
|
|
99
|
+
/* Green Scale */
|
|
100
|
+
--primitive-green-00: #F7FEFB;
|
|
101
|
+
--primitive-green-01: #ECFCF7;
|
|
102
|
+
--primitive-green-02: #CEF6E8;
|
|
103
|
+
--primitive-green-03: #9DEBD4;
|
|
104
|
+
--primitive-green-04: #6DE0C0;
|
|
105
|
+
--primitive-green-05: #5ADDB6;
|
|
106
|
+
--primitive-green-06: #41D9AC;
|
|
107
|
+
--primitive-green-07: #06D6A0;
|
|
108
|
+
--primitive-green-08: #05A67C;
|
|
109
|
+
--primitive-green-09: #03765A;
|
|
110
|
+
--primitive-green-10: #024336;
|
|
111
|
+
--primitive-green-11: #01342A;
|
|
112
|
+
|
|
113
|
+
/* Teal Scale */
|
|
114
|
+
--primitive-teal-00: #F7FBFD;
|
|
115
|
+
--primitive-teal-01: #ECF7FB;
|
|
116
|
+
--primitive-teal-02: #CFEAF3;
|
|
117
|
+
--primitive-teal-03: #9ED4E5;
|
|
118
|
+
--primitive-teal-04: #6DBCD6;
|
|
119
|
+
--primitive-teal-05: #3CA5C6;
|
|
120
|
+
--primitive-teal-06: #2C9AB9;
|
|
121
|
+
--primitive-teal-07: #118AB2;
|
|
122
|
+
--primitive-teal-08: #0E6E8F;
|
|
123
|
+
--primitive-teal-09: #0A4E66;
|
|
124
|
+
--primitive-teal-10: #052F3E;
|
|
125
|
+
--primitive-teal-11: #032430;
|
|
126
|
+
|
|
127
|
+
/* Blue Scale */
|
|
128
|
+
--primitive-blue-00: #F8FAFE;
|
|
129
|
+
--primitive-blue-01: #EEF3FD;
|
|
130
|
+
--primitive-blue-02: #D3DDF8;
|
|
131
|
+
--primitive-blue-03: #AABCEF;
|
|
132
|
+
--primitive-blue-04: #7F99E3;
|
|
133
|
+
--primitive-blue-05: #5475D4;
|
|
134
|
+
--primitive-blue-06: #345AC4;
|
|
135
|
+
--primitive-blue-07: #1E47B0;
|
|
136
|
+
--primitive-blue-08: #163789;
|
|
137
|
+
--primitive-blue-09: #0F265E;
|
|
138
|
+
--primitive-blue-10: #081633;
|
|
139
|
+
--primitive-blue-11: #050F27;
|
|
140
|
+
|
|
141
|
+
/* Purple Scale */
|
|
142
|
+
--primitive-purple-00: #FBF8FF;
|
|
143
|
+
--primitive-purple-01: #F7F0FE;
|
|
144
|
+
--primitive-purple-02: #E6D2FB;
|
|
145
|
+
--primitive-purple-03: #CFABF7;
|
|
146
|
+
--primitive-purple-04: #B785F0;
|
|
147
|
+
--primitive-purple-05: #A86AE8;
|
|
148
|
+
--primitive-purple-06: #9754DC;
|
|
149
|
+
--primitive-purple-07: #9E47EF;
|
|
150
|
+
--primitive-purple-08: #7434B3;
|
|
151
|
+
--primitive-purple-09: #52247D;
|
|
152
|
+
--primitive-purple-10: #31164A;
|
|
153
|
+
--primitive-purple-11: #260F3A;
|
|
154
|
+
|
|
155
|
+
/* True Black */
|
|
156
|
+
--primitive-true-black: #000000;
|
|
157
|
+
--primitive-true-black-semi: rgba(0, 0, 0, 0.5);
|
|
158
|
+
--primitive-true-black-strong: rgba(0, 0, 0, 0.7);
|
|
159
|
+
|
|
160
|
+
/* ============================================
|
|
161
|
+
SPACING PRIMITIVES
|
|
162
|
+
============================================ */
|
|
163
|
+
|
|
164
|
+
/* Spacing / Radius */
|
|
165
|
+
--primitive-radius-050: 2px;
|
|
166
|
+
--primitive-radius-100: 4px;
|
|
167
|
+
--primitive-radius-200: 8px;
|
|
168
|
+
--primitive-radius-300: 12px;
|
|
169
|
+
--primitive-radius-400: 16px;
|
|
170
|
+
--primitive-radius-600: 24px;
|
|
171
|
+
--primitive-radius-1200: 48px;
|
|
172
|
+
--primitive-radius-pill: 999px;
|
|
173
|
+
/* The composer shell's corner: concentric with the 40px send button it
|
|
174
|
+
wraps (half the button + the padding-sm ring + the border width).
|
|
175
|
+
Held as a resolved constant so consumers re-theme it like any other
|
|
176
|
+
|
|
177
|
+
/* Padding */
|
|
178
|
+
--primitive-padding-050: 2px;
|
|
179
|
+
--primitive-padding-100: 4px;
|
|
180
|
+
--primitive-padding-150: 6px;
|
|
181
|
+
--primitive-padding-200: 8px;
|
|
182
|
+
--primitive-padding-300: 12px;
|
|
183
|
+
--primitive-padding-400: 16px;
|
|
184
|
+
--primitive-padding-500: 20px;
|
|
185
|
+
--primitive-padding-1000: 40px;
|
|
186
|
+
--primitive-padding-1500: 60px;
|
|
187
|
+
|
|
188
|
+
/* Border width */
|
|
189
|
+
--primitive-border-025: 1px;
|
|
190
|
+
--primitive-border-050: 2px;
|
|
191
|
+
|
|
192
|
+
/* Icon size
|
|
193
|
+
The scale starts at 20px because that is the floor of the Material
|
|
194
|
+
Symbols variable font's `opsz` (optical size) axis — see the fvar
|
|
195
|
+
range 20..48. Below 20 the axis clamps and optical sizing silently
|
|
196
|
+
stops tracking, so smaller icons cannot be drawn correctly. */
|
|
197
|
+
--primitive-icon-500: 20px;
|
|
198
|
+
--primitive-icon-600: 24px;
|
|
199
|
+
--primitive-icon-800: 32px;
|
|
200
|
+
--primitive-icon-1200: 48px;
|
|
201
|
+
|
|
202
|
+
/* Gap */
|
|
203
|
+
--primitive-gap-050: 2px;
|
|
204
|
+
--primitive-gap-100: 4px;
|
|
205
|
+
--primitive-gap-200: 8px;
|
|
206
|
+
--primitive-gap-300: 12px;
|
|
207
|
+
--primitive-gap-400: 16px;
|
|
208
|
+
--primitive-gap-500: 20px;
|
|
209
|
+
--primitive-gap-1000: 40px;
|
|
210
|
+
--primitive-gap-1500: 60px;
|
|
211
|
+
--primitive-gap-2000: 80px;
|
|
212
|
+
--primitive-gap-3000: 120px;
|
|
213
|
+
}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
TYPOGRAPHY TOKENS
|
|
3
|
+
Font families, sizes, weights, line heights
|
|
4
|
+
All typography styles from Figma design system
|
|
5
|
+
============================================ */
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
/* ============================================
|
|
9
|
+
FONT FAMILIES
|
|
10
|
+
============================================ */
|
|
11
|
+
|
|
12
|
+
--font-family-primary: 'Nunito Sans', sans-serif;
|
|
13
|
+
|
|
14
|
+
/* Family roles. Every type-scale step chains to one of these two
|
|
15
|
+
aliases: the display and heading tiers read the heading role, the
|
|
16
|
+
body tiers (Title Body through Caption) read the body role. Both
|
|
17
|
+
default to the primary family, so this system stays one typeface and
|
|
18
|
+
overriding --font-family-primary still re-fonts everything at once —
|
|
19
|
+
a consumer who wants a display face over a text face overrides the
|
|
20
|
+
roles separately instead. */
|
|
21
|
+
--font-family-heading: var(--font-family-primary);
|
|
22
|
+
--font-family-body: var(--font-family-primary);
|
|
23
|
+
|
|
24
|
+
/* The one sanctioned monospace stack — CodeBlock, ToolCall names, and
|
|
25
|
+
Prose inline code. Anything monospace references this token. */
|
|
26
|
+
--font-family-code: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas,
|
|
27
|
+
monospace;
|
|
28
|
+
|
|
29
|
+
/* ============================================
|
|
30
|
+
TYPE SCALE LADDERS
|
|
31
|
+
The sizes and pixel line-heights every style bundle below
|
|
32
|
+
resolves through — rank = px / 4 x 100, the same rule as the
|
|
33
|
+
spacing scale. Override a ladder step and every tier that
|
|
34
|
+
reads it rescales together; the display tiers' unitless
|
|
35
|
+
leadings (0.92-1.15) are ratios, not lengths, and stay in
|
|
36
|
+
their bundles.
|
|
37
|
+
============================================ */
|
|
38
|
+
|
|
39
|
+
--font-size-300: 12px;
|
|
40
|
+
--font-size-350: 14px;
|
|
41
|
+
--font-size-400: 16px;
|
|
42
|
+
--font-size-550: 22px;
|
|
43
|
+
--font-size-600: 24px;
|
|
44
|
+
--font-size-650: 26px;
|
|
45
|
+
--font-size-750: 30px;
|
|
46
|
+
--font-size-1000: 40px;
|
|
47
|
+
--font-size-1200: 48px;
|
|
48
|
+
--font-size-1400: 56px;
|
|
49
|
+
--font-size-1600: 64px;
|
|
50
|
+
--font-size-2400: 96px;
|
|
51
|
+
--font-size-2900: 116px;
|
|
52
|
+
--font-size-3300: 132px;
|
|
53
|
+
|
|
54
|
+
--font-line-height-400: 16px;
|
|
55
|
+
--font-line-height-500: 20px;
|
|
56
|
+
--font-line-height-600: 24px;
|
|
57
|
+
--font-line-height-700: 28px;
|
|
58
|
+
--font-line-height-800: 32px;
|
|
59
|
+
--font-line-height-900: 36px;
|
|
60
|
+
--font-line-height-1100: 44px;
|
|
61
|
+
|
|
62
|
+
/* ============================================
|
|
63
|
+
DISPLAY STYLES (Large headlines)
|
|
64
|
+
|
|
65
|
+
Leading is unitless across this tier and loosens as the size drops:
|
|
66
|
+
0.92 on Mega, 1.05 on Display 1, 1.1 on Display 2. A display line
|
|
67
|
+
set solid reads as a poster on one line and as a stack on two, and
|
|
68
|
+
these headlines wrap — a page title is a sentence, not a word. The
|
|
69
|
+
ratios are the smallest step that opens a wrapped title without
|
|
70
|
+
costing the tier its density.
|
|
71
|
+
============================================ */
|
|
72
|
+
|
|
73
|
+
/* Mega 1 - Largest display text */
|
|
74
|
+
--font-mega-1-family: var(--font-family-heading);
|
|
75
|
+
--font-mega-1-size: var(--font-size-3300);
|
|
76
|
+
--font-mega-1-weight: 300;
|
|
77
|
+
--font-mega-1-line-height: 0.92;
|
|
78
|
+
--font-mega-1-letter-spacing: 0.02em; /* 2% */
|
|
79
|
+
|
|
80
|
+
/* Mega 2 */
|
|
81
|
+
--font-mega-2-family: var(--font-family-heading);
|
|
82
|
+
--font-mega-2-size: var(--font-size-2900);
|
|
83
|
+
--font-mega-2-weight: 300;
|
|
84
|
+
--font-mega-2-line-height: 0.92;
|
|
85
|
+
--font-mega-2-letter-spacing: 0.02em; /* 2% */
|
|
86
|
+
|
|
87
|
+
/* Display 1 */
|
|
88
|
+
--font-display-1-family: var(--font-family-heading);
|
|
89
|
+
--font-display-1-size: var(--font-size-2400);
|
|
90
|
+
--font-display-1-weight: 300;
|
|
91
|
+
--font-display-1-line-height: 1.05;
|
|
92
|
+
--font-display-1-letter-spacing: 0.02em; /* 2% */
|
|
93
|
+
|
|
94
|
+
/* Display 2 */
|
|
95
|
+
--font-display-2-family: var(--font-family-heading);
|
|
96
|
+
--font-display-2-size: var(--font-size-1600);
|
|
97
|
+
--font-display-2-weight: 300;
|
|
98
|
+
--font-display-2-line-height: 1.1;
|
|
99
|
+
--font-display-2-letter-spacing: 0.015em; /* 1.5% */
|
|
100
|
+
|
|
101
|
+
/* Sub Display */
|
|
102
|
+
--font-sub-display-family: var(--font-family-heading);
|
|
103
|
+
--font-sub-display-size: var(--font-size-750);
|
|
104
|
+
--font-sub-display-weight: 300;
|
|
105
|
+
--font-sub-display-line-height: var(--font-line-height-1100);
|
|
106
|
+
--font-sub-display-letter-spacing: 0.015em; /* 1.5% */
|
|
107
|
+
|
|
108
|
+
/* ============================================
|
|
109
|
+
HEADING STYLES
|
|
110
|
+
============================================ */
|
|
111
|
+
|
|
112
|
+
/* Heading 1 */
|
|
113
|
+
--font-heading-1-family: var(--font-family-heading);
|
|
114
|
+
--font-heading-1-size: var(--font-size-750);
|
|
115
|
+
--font-heading-1-weight: 600;
|
|
116
|
+
--font-heading-1-line-height: var(--font-line-height-1100);
|
|
117
|
+
--font-heading-1-letter-spacing: 0.015em; /* 1.5% */
|
|
118
|
+
|
|
119
|
+
/* Heading 2 */
|
|
120
|
+
--font-heading-2-family: var(--font-family-heading);
|
|
121
|
+
--font-heading-2-size: var(--font-size-650);
|
|
122
|
+
--font-heading-2-weight: 600;
|
|
123
|
+
--font-heading-2-line-height: var(--font-line-height-800);
|
|
124
|
+
--font-heading-2-letter-spacing: 0.015em; /* 1.5% */
|
|
125
|
+
|
|
126
|
+
/* Heading 3 */
|
|
127
|
+
--font-heading-3-family: var(--font-family-heading);
|
|
128
|
+
--font-heading-3-size: var(--font-size-550);
|
|
129
|
+
--font-heading-3-weight: 600;
|
|
130
|
+
--font-heading-3-line-height: var(--font-line-height-700);
|
|
131
|
+
--font-heading-3-letter-spacing: 0.015em; /* 1.5% */
|
|
132
|
+
|
|
133
|
+
/* ============================================
|
|
134
|
+
BODY TEXT STYLES
|
|
135
|
+
============================================ */
|
|
136
|
+
|
|
137
|
+
/* Title Body */
|
|
138
|
+
--font-title-body-family: var(--font-family-body);
|
|
139
|
+
--font-title-body-size: var(--font-size-400);
|
|
140
|
+
--font-title-body-weight: 600;
|
|
141
|
+
--font-title-body-line-height: var(--font-line-height-600);
|
|
142
|
+
--font-title-body-letter-spacing: -0.01em; /* -1% */
|
|
143
|
+
|
|
144
|
+
/* Paragraph Em (emphasis — medium weight, between paragraph and title body) */
|
|
145
|
+
--font-paragraph-emphasis-family: var(--font-family-body);
|
|
146
|
+
--font-paragraph-emphasis-size: var(--font-size-400);
|
|
147
|
+
--font-paragraph-emphasis-weight: 500;
|
|
148
|
+
--font-paragraph-emphasis-line-height: var(--font-line-height-600);
|
|
149
|
+
--font-paragraph-emphasis-letter-spacing: -0.01em; /* -1% */
|
|
150
|
+
|
|
151
|
+
/* Paragraph */
|
|
152
|
+
--font-paragraph-family: var(--font-family-body);
|
|
153
|
+
--font-paragraph-size: var(--font-size-400);
|
|
154
|
+
--font-paragraph-weight: 400;
|
|
155
|
+
--font-paragraph-line-height: var(--font-line-height-600);
|
|
156
|
+
--font-paragraph-letter-spacing: 0;
|
|
157
|
+
|
|
158
|
+
/* Paragraph SM */
|
|
159
|
+
--font-paragraph-sm-family: var(--font-family-body);
|
|
160
|
+
--font-paragraph-sm-size: var(--font-size-350);
|
|
161
|
+
--font-paragraph-sm-weight: 400;
|
|
162
|
+
--font-paragraph-sm-line-height: var(--font-line-height-500);
|
|
163
|
+
--font-paragraph-sm-letter-spacing: 0;
|
|
164
|
+
|
|
165
|
+
/* Paragraph SM Em (emphasis — medium weight small paragraph) */
|
|
166
|
+
--font-paragraph-sm-emphasis-family: var(--font-family-body);
|
|
167
|
+
--font-paragraph-sm-emphasis-size: var(--font-size-350);
|
|
168
|
+
--font-paragraph-sm-emphasis-weight: 500;
|
|
169
|
+
--font-paragraph-sm-emphasis-line-height: var(--font-line-height-500);
|
|
170
|
+
--font-paragraph-sm-emphasis-letter-spacing: 0;
|
|
171
|
+
|
|
172
|
+
/* Overline — the uppercase label face: an eyebrow over a title, a map
|
|
173
|
+
callout's place name, a code block's language chip. Small and bold with
|
|
174
|
+
open tracking, because capitals at this size need air to stay legible.
|
|
175
|
+
Pair with text-transform: uppercase at the use site — the tokens set the
|
|
176
|
+
metrics, never the casing. */
|
|
177
|
+
--font-overline-family: var(--font-family-body);
|
|
178
|
+
--font-overline-size: var(--font-size-350);
|
|
179
|
+
--font-overline-weight: 600;
|
|
180
|
+
--font-overline-line-height: var(--font-line-height-500);
|
|
181
|
+
--font-overline-letter-spacing: 0.08em; /* +8% */
|
|
182
|
+
|
|
183
|
+
/* Caption — the floor of the scale. Footnotes and disclaimers: a line the
|
|
184
|
+
reader should be able to find but never has to read to use the screen.
|
|
185
|
+
Never on a control, never for running text. */
|
|
186
|
+
--font-caption-family: var(--font-family-body);
|
|
187
|
+
--font-caption-size: var(--font-size-300);
|
|
188
|
+
--font-caption-weight: 400;
|
|
189
|
+
--font-caption-line-height: var(--font-line-height-400);
|
|
190
|
+
--font-caption-letter-spacing: 0;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* ============================================
|
|
194
|
+
RESPONSIVE COLLAPSE
|
|
195
|
+
The display tier steps down once, at 768px — the token layer's only
|
|
196
|
+
breakpoint. Headings and body never step; weights and letter-spacing
|
|
197
|
+
never change at any breakpoint (weight contrast is the hierarchy rule).
|
|
198
|
+
============================================ */
|
|
199
|
+
|
|
200
|
+
@media (max-width: 768px) {
|
|
201
|
+
:root {
|
|
202
|
+
--font-mega-1-size: var(--font-size-1600);
|
|
203
|
+
--font-mega-2-size: var(--font-size-1400);
|
|
204
|
+
--font-display-1-size: var(--font-size-1200);
|
|
205
|
+
--font-display-2-size: var(--font-size-1000);
|
|
206
|
+
--font-display-2-line-height: 1.15;
|
|
207
|
+
--font-sub-display-size: var(--font-size-600);
|
|
208
|
+
--font-sub-display-line-height: var(--font-line-height-900);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
TOKENS — MAIN ENTRY POINT
|
|
3
|
+
Import this file once in your app
|
|
4
|
+
Order matters: primitives first, then themes
|
|
5
|
+
============================================ */
|
|
6
|
+
|
|
7
|
+
@import './tokens-primitives.css';
|
|
8
|
+
@import './tokens-typography.css';
|
|
9
|
+
@import './tokens-motion.css';
|
|
10
|
+
@import './tokens-light.css';
|
|
11
|
+
@import './tokens-dark.css';
|