Skip to content

Component Variables

Variables for editor, images, mathematics, and other components.

Editor

VariableDefaultDescription
--vizel-editor-min-height350pxMinimum editor height
--vizel-editor-paddingvar(--vizel-spacing-6)Editor content padding
--vizel-editor-font-familyvar(--vizel-font-sans)Editor font family
--vizel-editor-font-sizevar(--vizel-font-size-base)Editor font size
--vizel-editor-line-heightvar(--vizel-line-height-relaxed)Editor line height

Image

VariableDefaultDescription
--vizel-image-border-radiusvar(--vizel-radius-lg)Image border radius
--vizel-image-outline-colorvar(--vizel-primary)Selected image outline
--vizel-image-outline-width2pxOutline width

Image Resize Handle

VariableDefaultDescription
--vizel-resize-handle-colorvar(--vizel-primary)Resize handle color
--vizel-resize-handle-color-hovervar(--vizel-primary-hover)Resize handle hover
--vizel-resize-handle-width8pxHandle width
--vizel-resize-handle-height48pxHandle height
--vizel-resize-tooltip-bgvar(--vizel-foreground)Tooltip background
--vizel-resize-tooltip-colorvar(--vizel-background)Tooltip text

Mathematics

VariableDefaultDescription
--vizel-math-block-bgvar(--vizel-background-secondary)Block math background
--vizel-math-block-hover-bgvar(--vizel-background-tertiary)Block math hover
--vizel-math-block-selected-bgvar(--vizel-primary-bg)Block math selected
--vizel-math-inline-bgtransparentInline math background
--vizel-math-inline-hover-bgvar(--vizel-background-secondary)Inline math hover
--vizel-math-inline-selected-bgvar(--vizel-primary-bg)Inline math selected
--vizel-math-editing-bgvar(--vizel-background-tertiary)Editing state bg
--vizel-math-preview-bgvar(--vizel-background-secondary)Preview background

Code Block

See Color Variables for code block color tokens.

VariableDescription
--vizel-code-block-bgBackground color
--vizel-code-block-textText color
--vizel-code-block-borderBorder color
--vizel-code-block-toolbar-bgToolbar background
--vizel-code-block-gutter-bgLine number gutter
--vizel-code-block-line-number-colorLine numbers
--vizel-code-block-language-colorLanguage indicator
--vizel-code-block-placeholderPlaceholder text
--vizel-code-block-button-colorButton text
--vizel-code-block-button-borderButton border
--vizel-code-block-button-hover-bgButton hover bg
--vizel-code-block-button-hover-colorButton hover text
--vizel-code-block-input-bgInput background
--vizel-code-block-input-borderInput border
--vizel-code-block-input-focus-bgInput focus bg

Usage Example

css
:root {
  /* Larger editor */
  --vizel-editor-min-height: 500px;
  --vizel-editor-padding: 2rem;
  
  /* Rounded images */
  --vizel-image-border-radius: 1rem;
  
  /* Custom math styling */
  --vizel-math-block-bg: oklch(0.95 0.01 250);
}

Released under the MIT License.