Theming
Components read CSS custom properties for colors, spacing and sizes. This page is
generated at build time from the library source, so it lists 628 variables across
52 components and modules, and 13 shared tokens. Set a
variable on the component (most forward style and class to their root element) or on any ancestor:
:root {
--text-color: light-dark(#222, #eee);
--tooltip-bg: light-dark(#fff, #2a2a2e);
} The default column shows the value a component uses when a variable is unset:
its var() fallbacks, or a declared value the component sets
on its own root element, which you override there rather than on an ancestor. A note flags variables the component sets at runtime (from props or measurements),
which may override yours, and values derived from other variables, whose inputs you can override
instead.
Shared tokens
Read by 3 or more components, so one declaration restyles all of them.
| Variable | Feeds | Read by |
|---|---|---|
--accent | --tag-fillcolor | PrevNext, Tag, Toc |
--accent-color | --table-accentaccent-colorcolor | DragOverlay, Progress, table |
--active-color | --range-colorbackgroundborder-colorcoloroutline | FindBar, RangeSlider, SplitPane, code-editor, table |
--border-color | borderborder-bottomborder-leftborder-rightborder-top | KeyValueList, SettingsSearch, SettingsSection, StatusMessage, table |
--border-radius | border-radius | DraggablePane, FullscreenButton, SettingsGroup, SettingsSearch, SettingsSection, StatusMessage, table |
--btn-bg | background | SettingsSection, StatusMessage, code-editor, table |
--error-color | --message-colorbackgroundcolor | StatGrid, StatusMessage, TaskStatus, code-editor, json-tree |
--heading-anchor-gap | padding-inline-start | Heading, Toc, markdown |
--page-bg | --column-filter-panel-bgbackground | DraggablePane, code-editor, table |
--sms-options-bg | --sms-bgbackground | ActionMenu, CommandMenu, MultiSelect, Popover, Toast |
--success-color | --message-colorbackgroundcolor | ClickFeedback, StatGrid, StatusMessage, json-tree |
--text-color | --editor-gutter-active-color--tok-plainbackground-colorcaret-colorcolor | Breadcrumbs, GlassChip, Nav, SettingsSection, Toc, code-editor |
--text-color-muted | --editor-gutter-colorbordercolor | Breadcrumbs, EmptyState, SettingsSearch, SettingsSection, StatGrid, StatusMessage, SubpageGrid, code-editor, table |
ActionMenu
ActionMenu.svelte Also reads --sms-options-bg.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--action-menu-bg | var(--sms-options-bg, light-dark(#fff, #2a2a2e)) | background | |
--action-menu-border | 1px solid light-dark(lightgray, #555) | border | |
--action-menu-item-checked-bg | light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.08)) | background | |
--action-menu-item-hover-bg | light-dark(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.15)) | background | |
--action-menu-item-padding | 2pt 6pt | padding | |
--action-menu-line-height | 1.35 | line-height | |
--action-menu-min-width | 10rem | min-width | |
--action-menu-padding | 3pt | padding | |
--action-menu-radius | 5pt | border-radius | |
--action-menu-section-border | 1px solid light-dark(lightgray, #555) | border-top | |
--action-menu-shadow | 0 3px 12px rgba(0, 0, 0, 0.3) | box-shadow | |
--action-menu-z-index | 20 | z-index |
Breadcrumbs
Breadcrumbs.svelte Also reads --text-color, --text-color-muted.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--breadcrumbs-color | var(--text-color-muted, inherit) | color | |
--breadcrumbs-current-color | inherit | color | |
--breadcrumbs-current-font-weight | 600 | font-weight | |
--breadcrumbs-gap | 0.15em | gap | |
--breadcrumbs-hover-bg | color-mix(in srgb, currentColor 10%, transparent) | background | |
--breadcrumbs-hover-color | var(--text-color, inherit) | color | |
--breadcrumbs-icon-gap | 0.3em | gap | |
--breadcrumbs-item-border-radius | 4px | border-radius | |
--breadcrumbs-item-max-width | 20em | max-width | |
--breadcrumbs-item-padding | 0.1em 0.3em | padding | |
--breadcrumbs-separator-color | var(--text-color-muted, inherit) | color | |
--breadcrumbs-wrap | wrap | flex-wrap |
ButtonGroup
| Variable | Default | Feeds | Note |
|---|---|---|---|
--btn-group-bg | transparent | background | |
--btn-group-border | none | border | |
--btn-group-btn-active-bg | light-dark(rgba(0, 0, 0, 0.13), rgba(255, 255, 255, 0.22)) | background | |
--btn-group-btn-active-border-color | transparent | border-color | |
--btn-group-btn-active-color | inherit | color | |
--btn-group-btn-bg | transparent | background | |
--btn-group-btn-border | 1px solid transparent | border | |
--btn-group-btn-color | inherit | color | |
--btn-group-btn-cursor | pointer | cursor | |
--btn-group-btn-disabled-opacity | 0.5 | opacity | |
--btn-group-btn-font-family | inherit | font-family | |
--btn-group-btn-font-size | inherit | font-size | |
--btn-group-btn-gap | 0.4em | gap | |
--btn-group-btn-hover-bg | light-dark(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.12)) | background | |
--btn-group-btn-hover-color | var(--btn-group-btn-color, inherit) | color | |
--btn-group-btn-hover-transform | none | transform | |
--btn-group-btn-padding | 2pt 6pt | padding | |
--btn-group-btn-radius | 3pt | border-radius | |
--btn-group-btn-transition | all 0s | transition | |
--btn-group-display | inline-flex | display | |
--btn-group-flex-wrap | wrap | flex-wrap | |
--btn-group-gap | 4pt | gap | |
--btn-group-justify-content | flex-start | justify-content | |
--btn-group-option-btn-padding-right | 0.5ex | padding-right | |
--btn-group-padding | 0 | padding | |
--btn-group-radius | 4pt | border-radius |
CircleSpinner
| Variable | Default | Feeds | Note |
|---|---|---|---|
--duration | none | animation | set by component at runtime |
ClickFeedback
ClickFeedback.svelte Also reads --success-color.
code-editor
code-editor/CodeEditor.sveltecode-editor/DiffView.sveltecode-editor/editor.css Also reads --active-color, --btn-bg, --error-color, --page-bg, --text-color, --text-color-muted.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--code-font | ui-monospace, sfmono-regular, menlo, monospace | --editor-font | |
--diff-add-bg | rgba(46, 160, 67, 0.23)declared | background | |
--diff-add-marker | #1a7f37declared | colortext-decoration | |
--diff-add-word-bg | rgba(46, 160, 67, 0.48)declared | background | |
--diff-del-bg | rgba(248, 81, 73, 0.23)declared | background | |
--diff-del-marker | #cf222edeclared | colortext-decoration | |
--diff-del-word-bg | rgba(248, 81, 73, 0.48)declared | background | |
--diff-new-gutter | none | grid-template-columns | set by component at runtime |
--diff-old-gutter | none | grid-template-columns | set by component at runtime |
--diff-skip-bg | rgba(0, 0, 0, 0.03)declared | background | |
--diff-spacer-bg | rgba(0, 0, 0, 0.03)declared | background | |
--editor-font | var(--code-font, ui-monospace, sfmono-regular, menlo, monospace)declared | font-family | derived from --code-font |
--editor-font-size | 13pxdeclared | font-size | set by component at runtime |
--editor-gutter-active-color | var(--text-color, #24292e)declared | color | derived from --text-color |
--editor-gutter-color | var(--text-color-muted, #8b949e)declared | color | derived from --text-color-muted |
--editor-line-height | 20pxdeclared | heightline-height | set by component at runtime |
--editor-pad-x | 8pxdeclared | leftpadding | |
--editor-search-active-color | #ba8300 | outline | |
--editor-search-bg | #eac54f66 | background | |
--editor-selection-bg | rgba(84, 150, 255, 0.28)declared | background | |
--editor-tab-size | none | tab-size | set by component at runtime |
--icon-btn-size | 24px | block-sizeinline-size | |
--icon-size | 16pxdeclared | block-sizeinline-size | |
--surface-bg | light-dark(#f6f8fa, #181b22) | background | |
--tok-attribute | var(--tok-function)declared | color | derived from --tok-function |
--tok-comment | #6a737ddeclared | color | |
--tok-constant | var(--tok-number)declared | color | derived from --tok-number |
--tok-escape | #22863adeclared | --tok-tagcolor | |
--tok-function | #6f42c1declared | --tok-attributecolor | |
--tok-invalid | #b31d28declared | color | |
--tok-keyword | #d73a49declared | --tok-operatorcolor | |
--tok-number | #005cc5declared | --tok-constantcolor | |
--tok-operator | var(--tok-keyword)declared | color | derived from --tok-keyword |
--tok-parameter | #24292edeclared | color | |
--tok-plain | var(--text-color, #24292e)declared | color | derived from --text-color |
--tok-punctuation | #57606adeclared | color | |
--tok-string | #032f62declared | color | |
--tok-tag | var(--tok-escape)declared | color | derived from --tok-escape |
--tok-type | #6f42c1declared | color | |
--tok-variable | #e36209declared | color |
CodeBlock
| Variable | Default | Feeds | Note |
|---|---|---|---|
--code-block-bg | light-dark(#f6f8fa, #161b22) | background | |
--code-block-font-size | 0.85rem | fontfont-size | |
--code-block-header-padding | 0.5rem 0.5rem 0 | padding | |
--code-block-max-block-size | none | max-block-size | |
--code-block-padding | 0.5rem | padding | |
--code-block-radius | 6px | border-radius | |
--code-font | ui-monospace, monospace | font |
CodeExample
| Variable | Default | Feeds | Note |
|---|---|---|---|
--code-example-margin | 1em auto | margin | |
--code-example-nav-gap | 1ex | gap | |
--code-example-nav-margin | initial | margin | |
--code-example-pre-bg | var(--pre-bg) | background-color | |
--code-example-pre-border-radius | 4pt | border-radius | |
--code-example-pre-margin | 0 0 1em 01em 0 0 0 | margin | |
--code-example-pre-max-height | 80vh | max-height | |
--code-example-pre-padding | 1ex 1em | padding | |
--code-example-pre-transition-duration | 0.3s | transition-duration | |
--pre-bg | none | background-color |
ColorInput
| Variable | Default | Feeds | Note |
|---|---|---|---|
--color | none | background | set by component at runtime |
--color-input-error | #d43f3a | border-colorcolor | |
--color-input-focus | Highlight | outline |
CommandMenu
CommandMenu.svelteinternal/OptionList.svelte Also reads --sms-options-bg.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--cmd-badge-bg | color-mix(in srgb, currentColor 10%, transparent) | background | |
--cmd-badge-font-size | 0.7em | font-size | |
--cmd-description-font-size | 0.75em | font-size | |
--cmd-dialog-backdrop | rgba(0, 0, 0, 0.42) | background | |
--cmd-dialog-backdrop-filter | blur(2px) | backdrop-filter | |
--cmd-dialog-padding | 6pt | padding | |
--cmd-kbd-bg | light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.15)) | background | |
--cmd-kbd-font-size | 0.8em | font-size | |
--cmd-menu-z-index | 10 | z-index | |
--cmd-metadata-max-width | 14em | max-width | |
--cmd-width | min(38rem, 90vw) | --sms-width | |
--sms-bg | Canvas | background | set by component at runtime |
--sms-li-active-bg | color-mix(in srgb, currentColor 12%, transparent) | background | |
--sms-options-max-height | 40vh | max-height | |
--sms-width | 100% | width | set by component at runtime |
ConfirmDialog
| Variable | Default | Feeds | Note |
|---|---|---|---|
--confirm-dialog-accent-bg | cornflowerblue | background | |
--confirm-dialog-accent-color | white | color | |
--confirm-dialog-backdrop | rgba(0, 0, 0, 0.42) | background | |
--confirm-dialog-backdrop-filter | blur(4px) | backdrop-filter | |
--confirm-dialog-bg | light-dark(#fff, #2a2a2e) | background | |
--confirm-dialog-border | 1px solid light-dark(lightgray, #555) | border | |
--confirm-dialog-button-bg | rgba(125, 125, 125, 0.2) | background | |
--confirm-dialog-button-font-size | 0.9em | font-size | |
--confirm-dialog-button-padding | 2pt 6pt | padding | |
--confirm-dialog-color | light-dark(#222, #eee) | color | |
--confirm-dialog-danger-bg | darkred | background | |
--confirm-dialog-danger-color | white | color | |
--confirm-dialog-error-color | crimson | color | |
--confirm-dialog-padding | 0.75rem | padding | |
--confirm-dialog-radius | 5pt | border-radius | |
--confirm-dialog-shadow | 0 3px 12px rgba(0, 0, 0, 0.3) | box-shadow | |
--confirm-dialog-width | min(30rem, calc(100vw - 2rem)) | inline-size |
ContributorList
| Variable | Default | Feeds | Note |
|---|---|---|---|
--contributor-avatar-size | 60px | heightwidth | |
--contributor-gap | 1ex | gap |
ControlGroup
| Variable | Default | Feeds | Note |
|---|---|---|---|
--control-group-gap | 1ex | gap |
Dialog
| Variable | Default | Feeds | Note |
|---|---|---|---|
--dialog-backdrop | rgba(0, 0, 0, 0.42) | background | |
--dialog-backdrop-filter | blur(2px) | backdrop-filter | |
--dialog-bg | light-dark(#fff, #2a2a2e) | background | |
--dialog-border | 1px solid light-dark(lightgray, #555) | border | |
--dialog-color | inherit | color | |
--dialog-content-padding | 1rem | padding | |
--dialog-radius | 5pt | border-radius | |
--dialog-section-padding | 1rem | padding | |
--dialog-shadow | 0 3px 18px rgba(0, 0, 0, 0.3) | box-shadow | |
--dialog-width | min(32rem, calc(100vw - 2rem)) | width |
DraggablePane
DraggablePane.svelte Also reads --border-radius, --page-bg.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--pane-align-content | start | align-content | |
--pane-bg | var(--page-bg, light-dark(white, black)) | background | |
--pane-border | 1px solid light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.15)) | border | |
--pane-border-radius | var(--border-radius, 3pt) | border-radius | |
--pane-box-shadow | 0 4px 20px -4px light-dark(rgba(0, 0, 0, 0.15), transparent), 0 8px 16px -4px light-dark(transparent, rgba(0, 0, 0, 0.3)) | box-shadow | |
--pane-control-tab-z-index | 1 | z-index | |
--pane-gap | 4pt | gap | |
--pane-max-height | 80vh | max-height | |
--pane-min-height | auto | min-height | |
--pane-overflow-x | hidden | overflow-x | |
--pane-overflow-y | auto | overflow-y | |
--pane-padding | 1ex | padding | |
--pane-toggle-border-radius | var(--border-radius, 3pt) | border-radius | |
--pane-toggle-font-size | 0.875rem | font-size | |
--pane-toggle-padding | 2pt | padding | |
--pane-toggle-transition | background-color 0.2s | transition | |
--pane-viewport-clamp | 200vh | max-height | set by component at runtime |
--pane-width | 28em | width | |
--pane-z-index | 10 | z-index |
DragOverlay
DragOverlay.svelte Also reads --accent-color.
EmptyState
EmptyState.svelte Also reads --text-color-muted.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--empty-state-max-width | 500px | max-width |
FileDetails
| Variable | Default | Feeds | Note |
|---|---|---|---|
--pre-bg | light-dark(#f3f5f8, rgba(0, 0, 0, 0.3)) | --code-block-bg |
FindBar
FindBar.svelte Also reads --active-color.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--find-bar-bg | light-dark(white, #181b22) | background | |
--find-bar-z-index | 50 | z-index |
Footer
| Variable | Default | Feeds | Note |
|---|---|---|---|
--footer-bg | transparent | background | |
--footer-link-color | inherit | color | |
--footer-link-gap | 3pt | gap | |
--footer-nav-gap | 2em | gap | |
--footer-nav-margin | 2em 0 | margin | |
--footer-padding | 3vh 3vw | padding |
FullscreenButton
FullscreenButton.svelte Also reads --border-radius.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--fullscreen-btn-bg | transparent | background | |
--fullscreen-btn-border-radius | var(--border-radius, 3pt) | border-radius | |
--fullscreen-btn-color | inherit | color | |
--fullscreen-btn-hover-bg | color-mix(in srgb, currentcolor 8%, transparent) | background | |
--fullscreen-btn-hover-opacity | 1 | opacity | |
--fullscreen-btn-opacity | 1 | opacity | |
--fullscreen-btn-padding | 2pt | padding | |
--fullscreen-btn-position | absolute | position | |
--fullscreen-btn-right | 4px | right | |
--fullscreen-btn-top | 5pt | top | |
--fullscreen-btn-z-index | 10 | z-index |
GitHubCorner
| Variable | Default | Feeds | Note |
|---|---|---|---|
--github-corner-bg | light-dark(#222, #eee) | fill | set by component at runtime |
--github-corner-bg-hover | var(--github-corner-bg, light-dark(#222, #eee)) | fill | |
--github-corner-color | light-dark(#fafafa, #1a1a1a) | color | set by component at runtime |
--github-corner-color-hover | var(--github-corner-color, light-dark(#fafafa, #1a1a1a)) | color | |
--github-corner-print-display | none | display | |
--github-corner-size | 70px | heightwidth | |
--github-corner-z-index | 1 | z-index |
GlassChip
GlassChip.svelte Also reads --text-color.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--glass-chip-bg | transparent | background | |
--glass-chip-font-size | 0.85em | font-size | |
--glass-chip-left | 10px | left | |
--glass-chip-max-width | calc(100% - 20px) | max-width | |
--glass-chip-top | 10px | top | |
--glass-chip-z | 2 | z-index |
Heading
heading-anchors.ts Also reads --heading-anchor-gap.
Icon
| Variable | Default | Feeds | Note |
|---|---|---|---|
--icon-size | 1emauto | heightwidth |
json-tree
json-tree/JsonNode.sveltejson-tree/JsonTree.sveltejson-tree/JsonValue.svelte Also reads --error-color, --success-color.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--jt-arrow | light-dark(#6e6e6e, #858585) | color | |
--jt-bg | transparent | background | |
--jt-bigint | light-dark(#098658, #b5cea8) | color | |
--jt-boolean | light-dark(#0000ff, #569cd6) | color | |
--jt-border-radius | 4px | border-radius | |
--jt-change-flash | light-dark(#c8e6c9, #1b5e20) | background | |
--jt-content-padding | 8px | padding | |
--jt-ctx-bg | light-dark(white, #2d2d2d) | background | |
--jt-ctx-border | light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1))light-dark(rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.15)) | backgroundborder | |
--jt-ctx-hover | light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.1)) | background | |
--jt-current-match-bg | light-dark(#ffcc80, #8a5600) | background | |
--jt-date | light-dark(#098658, #dcdcaa) | color | |
--jt-diff-added | light-dark(rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.2)) | background | |
--jt-diff-changed | light-dark(rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.2)) | background | |
--jt-diff-removed | light-dark(rgba(244, 67, 54, 0.12), rgba(244, 67, 54, 0.18)) | background | |
--jt-edit-bg | light-dark(#fff, #1a1a2e) | background | |
--jt-edit-border | light-dark(#4a90d9, #4a90d9) | border | |
--jt-error | light-dark(#a31515, #f48771) | color | |
--jt-expand-btn | light-dark(#0066cc, #4fc3f7) | color | |
--jt-focus-bg | light-dark(#e3f2fd, #0d3a58) | background | |
--jt-font-family | 'SF Mono', Monaco, 'Courier New', monospace | font-family | |
--jt-font-size | 13px | font-size | |
--jt-function | light-dark(#795e26, #dcdcaa) | color | |
--jt-header-bg | light-dark(rgba(0, 0, 0, 0.03), rgba(255, 255, 255, 0.05)) | background | |
--jt-header-border | light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1)) | backgroundborder-bottom | |
--jt-hover-bg | light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.08)) | background | |
--jt-indent | 1.2em | padding-left | |
--jt-indent-guide | light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1)) | border-left | |
--jt-key | light-dark(#001080, #9cdcfe) | color | |
--jt-line-height | 1.5 | line-height | |
--jt-match-count-color | light-dark(#666, #aaa) | color | |
--jt-max-height | none | max-height | |
--jt-null | #808080 | color | |
--jt-number | light-dark(#098658, #b5cea8) | color | |
--jt-placeholder | light-dark(#999, #666) | color | |
--jt-preview | #808080 | color | |
--jt-punctuation | light-dark(#000, #d4d4d4) | color | |
--jt-regexp | light-dark(#811f3f, #d16969) | color | |
--jt-search-bg | light-dark(white, rgba(0, 0, 0, 0.2)) | background | |
--jt-search-border | light-dark(rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.15)) | border | |
--jt-search-match-bg | light-dark(#fff59d, #614d00) | background | |
--jt-select-bg | light-dark(#bbdefb, #0a3050) | background | |
--jt-sticky-bg | var(--jt-bg, transparent) | background | |
--jt-sticky-depth | none | topz-index | set by component at runtime |
--jt-string | light-dark(#a31515, #ce9178) | color | |
--jt-symbol | light-dark(#267f99, #4ec9b0) | color | |
--jt-type-annotation | light-dark(#808080, #6a6a6a) | color | |
--jt-url | light-dark(#0066cc, #4fc3f7) | color |
KeyValueList
KeyValueList.svelte Also reads --border-color.
LiteYouTubeEmbed
| Variable | Default | Feeds | Note |
|---|---|---|---|
--lite-youtube-bg | #000 | background-color |
markdown
heading-anchors.ts Also reads --heading-anchor-gap.
MultiSelect
MultiSelect.svelte Also reads --sms-options-bg.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--sms-active-color | cornflowerbluelight-dark(rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.15))light-dark(rgba(70, 70, 140, 0.2), rgba(120, 170, 255, 0.2)) | accent-colorbackgroundborderborder-inline-startcoloroutline | |
--sms-bg | light-dark(white, #222226) | background | |
--sms-border | 1px solid light-dark(lightgray, #555) | border | |
--sms-border-radius | 3pt | border-radius | |
--sms-disabled-bg | light-dark(lightgray, #444) | background | |
--sms-focus-border | 1px solid var(--sms-active-color, cornflowerblue) | border | |
--sms-font-size | inherit | font-size | |
--sms-group-collapse-duration | 0.15s | transition | |
--sms-group-deselect-color | light-dark(#c44, #f77) | color | |
--sms-group-header-bg | transparent | background | |
--sms-group-header-border-top | 1px solid light-dark(#eee, #333) | border-top | |
--sms-group-header-color | light-dark(#666, #aaa) | color | |
--sms-group-header-font-size | 0.9em | font-size | |
--sms-group-header-font-weight | 600 | font-weight | |
--sms-group-header-hover-bg | light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.05)) | background | |
--sms-group-header-letter-spacing | 0.5px | letter-spacing | |
--sms-group-header-margin-top | 4pt | margin-top | |
--sms-group-header-padding | 2pt 1ex | padding | |
--sms-group-header-sticky-bg | var(--sms-options-bg, light-dark(#fcfcfc, #222226)) | background | |
--sms-group-header-text-transform | uppercase | text-transform | |
--sms-group-item-padding-left | var(--sms-group-option-indent, 1.5ex) | padding-inline-start | |
--sms-group-option-indent | 1.5ex | padding-inline-start | |
--sms-group-select-all-hover-bg | light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1)) | background | |
--sms-li-active-bg | var(--sms-active-color, light-dark(rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.15)))var(--sms-active-color, light-dark(rgba(70, 70, 140, 0.2), rgba(120, 170, 255, 0.2))) | background | |
--sms-li-disabled-bg | light-dark(#f5f5f6, #2a2a2a) | background | |
--sms-li-disabled-text | light-dark(#b8b8b8, #666) | color | |
--sms-li-selected-plain-bg | light-dark(rgba(0, 123, 255, 0.1), rgba(100, 180, 255, 0.2)) | background | |
--sms-li-selected-plain-border | 1px solid var(--sms-active-color, cornflowerblue) | border-inline-start | |
--sms-margin | none | margin | |
--sms-max-width | none | max-width | |
--sms-min-height | 20.5pt | min-height | |
--sms-open-z-index | 4 | z-index | |
--sms-options-border | 1px solid light-dark(lightgray, #555) | border | |
--sms-options-border-radius | 1ex | border-radius | |
--sms-options-border-width | 1px | border-width | |
--sms-options-li-padding | 2pt 1ex | padding | |
--sms-options-margin | 6pt 0 0 0 | margin | |
--sms-options-max-height | 50vh | max-height | |
--sms-options-overscroll | none | overscroll-behavior | |
--sms-options-padding | 0 | padding | |
--sms-options-scroll-margin | 100px | scroll-margin | |
--sms-options-shadow | 0 0 14pt -3pt light-dark(rgba(0, 0, 0, 0.2), transparent), 0 0 14pt -4pt light-dark(transparent, rgba(0, 0, 0, 0.8)) | box-shadow | |
--sms-options-z-index | 3 | z-index | |
--sms-padding | 0 3pt | padding | |
--sms-placeholder-color | none | color | |
--sms-placeholder-opacity | none | opacity | |
--sms-remove-btn-hover-bg | light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)) | background | |
--sms-remove-btn-hover-color | inherit | color | |
--sms-select-all-bg | transparent | background | |
--sms-select-all-border-bottom | 1px solid light-dark(lightgray, #555) | border-bottom | |
--sms-select-all-color | inherit | color | |
--sms-select-all-font-weight | 500 | font-weight | |
--sms-select-all-hover-bg | var(--sms-li-active-bg, var(--sms-active-color, light-dark(rgba(70, 70, 140, 0.2), rgba(120, 170, 255, 0.2)))) | background | |
--sms-select-all-margin-bottom | 2pt | margin-bottom | |
--sms-selected-bg | light-dark(rgba(100, 120, 140, 0.15), rgba(120, 170, 255, 0.2)) | background | |
--sms-selected-li-padding | 0 2pt 0 5pt | padding | |
--sms-selected-text-color | var(--sms-text-color, light-dark(#222, #eee)) | color | |
--sms-text-color | light-dark(#222, #eee) | color | |
--sms-width | none | width |
Nav
Nav.svelte Also reads --text-color.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--nav-border-radius | 3ptdeclared | border-end-end-radiusborder-end-start-radiusborder-radiusborder-start-end-radiusborder-start-start-radius | |
--nav-burger-bg | var(--nav-surface-bg) | background | |
--nav-burger-border-color | var(--nav-surface-border) | border | |
--nav-burger-box | calc(var(--nav-burger-height) + 2 * var(--nav-burger-padding, 0.25rem) + 2px)declared | top | derived from --nav-burger-height, --nav-burger-padding |
--nav-burger-height | calc(var(--nav-burger-size, 1.4rem) * 0.9)declared | --nav-burger-boxheighttransform | derived from --nav-burger-size |
--nav-burger-inset | 1remdeclared | inset-inlineinset-inline-starttop | |
--nav-burger-padding | 0.25rem0.3rem | --nav-burger-boxpadding-blockpadding-inline | |
--nav-burger-position | fixed | position | |
--nav-burger-shadow | var(--nav-surface-shadow) | box-shadow | |
--nav-burger-size | 1.4rem | --nav-burger-heightwidth | |
--nav-disabled-opacity | 0.5 | opacity | |
--nav-dropdown-bg | var(--nav-surface-bg) | background-color | |
--nav-dropdown-border-color | color-mix(in srgb, currentColor 30%, transparent 70%)declared | border | |
--nav-dropdown-left | 0 | inset-inline-start | |
--nav-dropdown-link-padding | 2pt 6pt | padding | |
--nav-dropdown-margin | 2pt | heightmargin | |
--nav-dropdown-max-width | none | max-width | |
--nav-dropdown-min-width | 100% | min-width | |
--nav-dropdown-padding | 0 | padding | |
--nav-dropdown-right | auto | inset-inline-end | |
--nav-dropdown-shadow | var(--nav-surface-shadow) | box-shadow | |
--nav-dropdown-toggle-hover-color | light-dark(#2563eb, #7db4ff) | color | |
--nav-dropdown-width | max-content | width | |
--nav-dropdown-z-index | 100 | z-index | |
--nav-item-padding | 1pt 4pt | padding | |
--nav-link-active-color | currentColor | border-inline-start-colorcolor | |
--nav-link-bg | none | background-color | |
--nav-link-bg-hover | light-dark(rgba(70, 70, 140, 0.2), rgba(120, 170, 255, 0.2))declared | background-color | |
--nav-mobile-inset | var(--nav-burger-inset) | inset-inline | |
--nav-mobile-menu-gap | 0.5rem | top | |
--nav-mobile-menu-position | fixed | position | |
--nav-mobile-z-index | 2 | z-index | |
--nav-separator-color | currentColor | background-color | |
--nav-separator-margin | 0 0.25em0.25em 0 | margin | |
--nav-submenu-duration | 0.25s | transition | |
--nav-submenu-line-color | light-dark(rgba(128, 128, 128, 0.55), rgba(200, 200, 200, 0.4)) | border-inline-start | |
--nav-surface-bg | light-dark(#fafafa, #222226)declared | backgroundbackground-color | |
--nav-surface-border | light-dark(rgba(128, 128, 128, 0.25), rgba(200, 200, 200, 0.2))declared | border | |
--nav-surface-shadow | 0 2px 8px light-dark(rgba(0, 0, 0, 0.15), transparent), 0 4px 12px light-dark(transparent, rgba(0, 0, 0, 0.5))declared | box-shadow | |
--nav-toggle-btn-z-index | 10 | z-index | |
--submenu-rows | none | grid-template-rows | set by component at runtime |
Popover
Popover.svelte Also reads --sms-options-bg.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--popover-bg | var(--sms-options-bg, light-dark(#fff, #2a2a2e)) | background | |
--popover-border | 1px solid light-dark(lightgray, #555) | border | |
--popover-color | inherit | color | |
--popover-max-width | min(90vw, 30rem) | max-width | |
--popover-padding | 6pt 8pt | padding | |
--popover-radius | 5pt | border-radius | |
--popover-shadow | 0 3px 12px rgba(0, 0, 0, 0.3) | box-shadow | |
--popover-z-index | 10 | z-index |
PrevNext
PrevNext.svelte Also reads --accent.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--accent-hover | orange | color | |
--prev-next-color | var(--accent, cornflowerblue) | color | |
--prev-next-gap | 2em | gap | |
--prev-next-hover-color | var(--accent-hover, orange) | color | |
--prev-next-label-margin | 0 auto 1ex | margin | |
--prev-next-link-bg | none | background | |
--prev-next-link-border-radius | none | border-radius | |
--prev-next-link-padding | none | padding | |
--prev-next-margin | 3em auto | margin | |
--prev-next-padding | 0 | padding |
Progress
Progress.svelte Also reads --accent-color.
RangeSlider
RangeSlider.svelte Also reads --active-color.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--range-color | var(--range-slider-color, var(--active-color, #6366f1))declared | backgroundcoloroutline | derived from --active-color, --range-slider-color |
--range-slider-color | var(--active-color, #6366f1) | --range-color | |
--range-slider-input-bg | transparent | background | |
--range-slider-thumb | #fff | background | |
--range-slider-track | color-mix(in srgb, currentColor 15%, transparent) | background |
SettingsGroup
SettingsGroup.svelte Also reads --border-radius.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--settings-group-border | color-mix(in srgb, currentColor 12%, transparent) | border-top |
SettingsSearch
SettingsSearch.svelte Also reads --border-color, --border-radius, --text-color-muted.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--input-bg | transparent | background | |
--pane-gap | 4pt | gap |
SettingsSection
SettingsSection.svelte Also reads --border-color, --border-radius, --btn-bg, --text-color, --text-color-muted.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--btn-bg-hover | rgba(0, 0, 0, 0.15)rgba(0, 0, 0, 0.2) | background | |
--ctrl-cols | var(--ctrl-label-w, 8.5em) var(--ctrl-value-w, 4em) minmax(0, 1fr) | grid-template-columns | |
--ctrl-gap | 7pt | column-gap | |
--ctrl-label-w | 8.5em | grid-template-columns | |
--ctrl-value-w | 4em | grid-template-columns | |
--reset-btn-border-radius | var(--border-radius, 3pt) | border-radius | |
--reset-btn-padding | 1pt 4pt | padding | |
--settings-row-gap | 4pt | gap |
Sheet
| Variable | Default | Feeds | Note |
|---|---|---|---|
--sheet-backdrop | rgba(0, 0, 0, 0.42) | --dialog-backdrop | |
--sheet-backdrop-filter | blur(2px) | --dialog-backdrop-filter | |
--sheet-bg | light-dark(#fff, #2a2a2e) | --dialog-bg | |
--sheet-border | 1px solid light-dark(lightgray, #555) | --dialog-border | |
--sheet-color | inherit | --dialog-color | |
--sheet-content-padding | 1rem | --dialog-content-padding | |
--sheet-section-padding | 1rem | --dialog-section-padding | |
--sheet-shadow | 0 0 18px rgba(0, 0, 0, 0.3) | --dialog-shadow | |
--sheet-size | min(20rem, 100vh)min(24rem, 100vw) | heightwidth |
Spinner
| Variable | Default | Feeds | Note |
|---|---|---|---|
--spinner-border-width | 2px | border-width | |
--spinner-color | #007acc | color | |
--spinner-duration | 1s | duration | |
--spinner-margin | 3pt | margin | |
--spinner-size | 1em | size |
SplitPane
SplitPane.svelte Also reads --active-color.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--split-pane-size | 50% | inset-block-startinset-inline-start | set by component at runtime |
StatGrid
StatGrid.svelte Also reads --error-color, --success-color, --text-color-muted.
StatusMessage
StatusMessage.svelte Also reads --border-color, --border-radius, --btn-bg, --error-color, --success-color, --text-color-muted.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--btn-bg-hover | #ccc | background | |
--error-border | 1px solid #ef4444 | border | |
--message-color | none | backgroundbordercolor | derived from --error-color, --success-color, --warning-color |
--warning-border | 1px solid #fb8c00 | border | |
--warning-color | light-dark(#9a4d00, #ffb74d) | --message-color |
SubpageGrid
SubpageGrid.svelte Also reads --text-color-muted.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--main-max-width | none | max-width |
table
table/ColumnFilter.sveltetable/ColumnPicker.sveltetable/DataTable.sveltetable/export.ts Also reads --accent-color, --active-color, --border-color, --border-radius, --btn-bg, --page-bg, --text-color-muted.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--cell-bg | transparent | background-color | set by component at runtime |
--column-filter-active-color | var(--table-accent)declared | color | derived from --table-accent |
--column-filter-choices-max-height | 14em | max-height | |
--column-filter-icon-size | 10px | heightwidth | |
--column-filter-panel-bg | var(--table-header-bg, var(--page-bg, Canvas))declared | background | derived from --page-bg, --table-header-bg |
--column-filter-panel-border | 1px solid light-dark(rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.18)) | border | |
--column-filter-panel-padding | 6px | padding | |
--column-filter-panel-radius | 4px | border-radius | |
--column-filter-panel-shadow | 0 4px 12px rgba(0, 0, 0, 0.18) | box-shadow | |
--column-filter-trigger-size | 14px | heightwidth | |
--column-picker-btn-bg | var(--btn-bg) | background | |
--column-picker-btn-padding | 0 6pt | padding | |
--column-picker-column-gap | 8px | column-gap | |
--column-picker-font-size | 1.1em | font-size | |
--column-picker-hover-bg | light-dark(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.12)) | background | |
--column-picker-menu-bg | var(--page-bg, Canvas) | background | |
--column-picker-menu-border | 1px solid color-mix(in srgb, currentColor 10%, transparent) | border | |
--column-picker-menu-max-height | min(70vh, 600px) | max-height | |
--column-picker-menu-padding | 3pt 5pt6pt 8pt | padding | |
--column-picker-menu-shadow | 0 4px 12px color-mix(in srgb, currentColor 8%, transparent) | box-shadow | |
--column-picker-radius | 3pt4pt | border-radius | |
--column-picker-section-bg | color-mix(in srgb, currentColor 5%, transparent) | background | |
--column-picker-section-hover-bg | color-mix(in srgb, currentColor 12%, transparent) | background | |
--group-header-height | 0 | top | set by component at runtime |
--highlight-bg | rgba(74, 158, 255, 0.15) | background | |
--surface-bg-hover | #333 | backgroundbackground-color | |
--table-accent | var(--accent-color, #4a9eff)declared | --column-filter-active-colorbackgroundborder-bottomborder-leftborder-rightborder-topbox-shadowcoloroutline | derived from --accent-color |
--table-badge-color | white | color | |
--table-best-cell-color | var(--table-accent) | outline | |
--table-cell-border | none | border | |
--table-cell-padding | var(--table-density-padding, 1pt 5pt) | padding | |
--table-column-max-width | 20em | max-width | |
--table-data-bar-height | 70% | height | |
--table-data-bar-opacity | 0.35 | opacity | |
--table-density-padding | 1pt 5pt | padding | |
--table-fill-opacity | 100% | background-color | |
--table-font-size | 0.9em | font-size | |
--table-header-bg | var(--page-bg, Canvas) | --column-filter-panel-bgbackground | |
--table-header-hover-bg | var(--surface-bg-hover) | background | |
--table-numeric-text-align | right | text-align | |
--table-row-hover-bg | rgba(128, 128, 128, 0.16) | background-image | |
--table-row-hover-filter | none | filter | |
--table-row-num-align | right | text-align | |
--table-row-num-padding-left | 5pt | padding-left | |
--table-row-num-padding-right | 8px | padding-right | |
--table-sticky-cell-bg | var(--page-bg, Canvas) | background | |
--table-sticky-cell-odd-bg | var(--table-sticky-cell-bg, var(--page-bg, Canvas)) | background | |
--table-text-align | left | text-align |
Tag
Tag.svelte Also reads --accent.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--tag-active-bg | var(--tag-fill) | background | |
--tag-bg | color-mix(in srgb, var(--tag-fill) 18%, transparent)transparentvar(--tag-fill) | background | |
--tag-border-color | transparentvar(--tag-fill) | borderborder-color | |
--tag-border-radius | 1em | border-radius | |
--tag-border-width | 1px | border | |
--tag-color | var(--accent, cornflowerblue) | --tag-fill | set by component at runtime |
--tag-contrast-color | inherit | color | set by component at runtime |
--tag-count-bg | color-mix(in srgb, currentColor 15%, transparent) | background | |
--tag-disabled-opacity | 0.5 | opacity | |
--tag-fill | var(--tag-color, var(--accent, cornflowerblue))declared | backgroundborder-coloroutline | derived from --accent, --tag-color |
--tag-focus-color | var(--tag-fill) | outline | |
--tag-font-size | 0.85em | font-size | |
--tag-font-weight | inherit | font-weight | |
--tag-gap | 0.35em | gap | |
--tag-hover-bg | color-mix(in srgb, currentColor 12%, transparent) | background | |
--tag-line-height | 1.3 | line-height | |
--tag-padding | 0.15em 0.65em | padding | |
--tag-remove-padding | 0 0.5em 0 0.2em | padding | |
--tag-text-color | inheritvar(--tag-contrast-color, inherit) | color |
TaskStatus
TaskStatus.svelte Also reads --error-color.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--task-status-button-justify | centerstart | justify-self | |
--task-status-overlay-z-index | 1 | z-index |
ThemeToggle
| Variable | Default | Feeds | Note |
|---|---|---|---|
--theme-toggle-background | transparent | background | |
--theme-toggle-border | none | border | |
--theme-toggle-border-radius | 50% | border-radius | |
--theme-toggle-line-height | 1 | line-height | |
--theme-toggle-size | 1.8em | heightwidth |
Toast
Toast.svelte Also reads --sms-options-bg.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--toast-accent | transparent | background | derived from --toast-error-color, --toast-success-color, --toast-warning-color |
--toast-bg | var(--sms-options-bg, light-dark(#fff, #2a2a2e)) | background | |
--toast-border | 1px solid light-dark(lightgray, #555) | border | |
--toast-button-bg | rgba(255, 255, 255, 0.15) | background | |
--toast-button-hover-bg | rgba(255, 255, 255, 0.3) | background | |
--toast-button-padding | 2pt 5pt | padding | |
--toast-color | inherit | color | |
--toast-error-color | crimson | --toast-accent | |
--toast-font-size | inherit | font-size | |
--toast-gap | 0.4em | gap | |
--toast-inset | 1rem | bottomleftrighttop | |
--toast-item-gap | 0.6em | gap | |
--toast-max-width | min(90vw, 28rem) | max-width | |
--toast-padding | 6pt 8pt | padding | |
--toast-radius | 5pt | border-radius | |
--toast-shadow | 0 3px 12px rgba(0, 0, 0, 0.3) | box-shadow | |
--toast-stack-position | fixed | position | |
--toast-success-color | forestgreen | --toast-accent | |
--toast-warning-color | orange | --toast-accent | |
--toast-z-index | 30 | z-index |
Toc
Toc.svelteheading-anchors.tstoc-utils.ts Also reads --accent, --heading-anchor-gap, --text-color.
| Variable | Default | Feeds | Note |
|---|---|---|---|
--toc-active-bg | none | background | |
--toc-active-border | none | border | |
--toc-active-border-radius | var(--toc-item-radius) | border-radius | |
--toc-active-border-width | none | border-width | |
--toc-active-color | none | color | |
--toc-active-li-font | none | font | |
--toc-active-text-shadow | none | text-shadow | |
--toc-collapse-duration | 0.2s | transition | |
--toc-desktop-aside-margin | none | margin | |
--toc-desktop-bg | none | background | |
--toc-desktop-max-width | none | max-width | |
--toc-desktop-nav-margin | none | margin | |
--toc-desktop-sticky-top | 2em | top | |
--toc-flash-color | var(--accent, #6495ed) | color | |
--toc-flash-duration | 1500ms | animation | set by component at runtime |
--toc-focus-outline | 2px solid currentColor | outline | |
--toc-focus-outline-offset | 1px | outline-offset | |
--toc-font-size | 0.7em | font-size | |
--toc-indent-per-level | 1em | margin-left | |
--toc-item-hover-bg | light-dark(rgba(70, 70, 140, 0.2), rgba(120, 170, 255, 0.2))declared | background | |
--toc-item-radius | 3ptdeclared | border-radius | |
--toc-li-bg | none | background | |
--toc-li-border | none | border | |
--toc-li-border-radius | var(--toc-item-radius) | border-radius | |
--toc-li-color | none | color | |
--toc-li-font | none | font | |
--toc-li-font-size-base | 3ex | font-size | |
--toc-li-font-size-min | 2ex | font-size | |
--toc-li-font-size-step | 0.1ex | font-size | |
--toc-li-hover-bg | var(--toc-item-hover-bg) | background | |
--toc-li-hover-color | var(--toc-active-color) | color | |
--toc-li-margin | none | margin | |
--toc-li-max-height | 10em | max-height | |
--toc-li-padding | 2pt 4pt | padding | |
--toc-li-transition | background-color 0.2s | transition | |
--toc-max-height | 90vh | max-height | |
--toc-min-width | 15em | min-width | |
--toc-mobile-bg | rgba(255, 255, 255, 0.2)white | background | |
--toc-mobile-border | var(--toc-surface-border) | border | |
--toc-mobile-border-radius | 6pt | border-radius | |
--toc-mobile-bottom | 1em | bottommax-height | |
--toc-mobile-btn-bg | var(--toc-mobile-bg, rgba(255, 255, 255, 0.2)) | background | |
--toc-mobile-btn-border | var(--toc-surface-border) | border | |
--toc-mobile-btn-border-radius | 3pt | border-radius | |
--toc-mobile-btn-bottom | 0 | bottom | |
--toc-mobile-btn-color | var(--text-color, black) | color | |
--toc-mobile-btn-font | 1.4rem sans-serif | font | |
--toc-mobile-btn-line-height | 0 | line-height | |
--toc-mobile-btn-padding | 0.25rem0.3rem | padding-blockpadding-inline | |
--toc-mobile-btn-right | 0 | right | |
--toc-mobile-btn-shadow | var(--toc-surface-shadow) | box-shadow | |
--toc-mobile-btn-transition-duration | 0.2s | transition | |
--toc-mobile-btn-z-index | 2 | z-index | |
--toc-mobile-font-size | 1rem | font-size | |
--toc-mobile-gap | 0.5em | gap | |
--toc-mobile-padding | 0.5em var(--toc-mobile-padding-inline) 1em | padding | |
--toc-mobile-padding-inline | none | margin-inlinepaddingpadding-inline | |
--toc-mobile-right | 1em | max-widthright | |
--toc-mobile-shadow | var(--toc-surface-shadow) | box-shadow | |
--toc-mobile-title-border | var(--toc-surface-border) | border-bottom | |
--toc-mobile-title-line-height | 1.3 | line-height | |
--toc-mobile-title-margin-bottom | 0.35em | margin-block-end | |
--toc-mobile-title-padding-bottom | 0.2em | padding-block-end | |
--toc-mobile-width | 18em | width | |
--toc-mobile-z-index | 2 | z-index | |
--toc-ol-list-style | none | list-style | |
--toc-ol-margin | none | margin | |
--toc-ol-padding | 0 | padding | |
--toc-overflow | auto | overflow | |
--toc-padding | 1em 1em 0 3em | padding | |
--toc-surface-border | 1px solid light-dark(rgba(128, 128, 128, 0.25), rgba(200, 200, 200, 0.2))declared | borderborder-bottom | |
--toc-surface-shadow | 0 2px 8px light-dark(rgba(0, 0, 0, 0.15), transparent), 0 4px 12px light-dark(transparent, rgba(0, 0, 0, 0.5))declared | box-shadow | |
--toc-text-wrap | balance | text-wrap | |
--toc-title-color | none | color | |
--toc-title-font-size | initial | font-size | |
--toc-title-font-weight | none | font-weight | |
--toc-title-margin | 1em 0 | margin | |
--toc-title-margin-top | 0 | margin-top | |
--toc-title-padding | none | padding | |
--toc-width | none | width | |
--toc-z-index | 2 | z-index |
Toggle
| Variable | Default | Feeds | Note |
|---|---|---|---|
--checked-offset | none | transform | derived from --toggle-knob-after-width, --toggle-knob-padding, --toggle-knob-width |
--toggle-background | light-dark(#222, #555) | background | |
--toggle-input-width | 1em | width | |
--toggle-knob-after-background | light-dark(gray, #888)light-dark(green, #4ade80) | background | |
--toggle-knob-after-border-radius | 50% | border-radius | |
--toggle-knob-after-display | block | display | |
--toggle-knob-after-height | 1.2em | height | |
--toggle-knob-after-transform | translate(calc(-1 * var(--checked-offset)))translate(var(--checked-offset)) | transform | |
--toggle-knob-after-transition | 0.3s | transition | |
--toggle-knob-after-width | 1.2em | --checked-offsetwidth | |
--toggle-knob-border | 1px solid light-dark(lightgray, #555) | border | |
--toggle-knob-border-radius | 0.75em | border-radius | |
--toggle-knob-focus-border | 1px solid light-dark(cornflowerblue, #6495ed) | border | |
--toggle-knob-height | 1.5em | height | |
--toggle-knob-padding | 0.1em | --checked-offsetpadding | |
--toggle-knob-transition | 0.3s | transition | |
--toggle-knob-width | 3em | --checked-offsetwidth | |
--toggle-label-align-items | center | align-items | |
--toggle-label-display | inline-flex | display | |
--toggle-label-vertical-align | middle | vertical-align | |
--toggle-label-width | max-content | width |
tooltip
| Variable | Default | Feeds | Note |
|---|---|---|---|
--text-color | light-dark(#222, #eee) | color | set by component at runtime |
--tooltip-arrow-size | none | ||
--tooltip-available-width | calc(100dvw - 16px) | max-width | set by component at runtime |
--tooltip-bg | light-dark(#fff, #2a2a2e) | background-color | |
--tooltip-border | 1px solid light-dark(lightgray, #555) | border | |
--tooltip-font-family | inherit | font-family | set by component at runtime |
--tooltip-font-size | 0.8rem | font-size | |
--tooltip-max-height | min(50dvh, 480px) | max-height | |
--tooltip-max-width | 280px | max-width | |
--tooltip-opacity | none | ||
--tooltip-padding | 2px 6px | padding | |
--tooltip-radius | 5pt | border-radius | |
--tooltip-shadow | drop-shadow(0 2px 8px rgba(0,0,0,0.25)) | filter | |
--tooltip-transition | 0.15s ease-out | transition | |
--tooltip-z-index | 9999 | z-index |