Skip to main content

Theming

This is the API reference for KritzelTheme. It lists the theme groups and their supported properties. All values are CSS strings. Override selected values by spreading an existing preset and replacing only the groups you need.

import { lightTheme, type KritzelTheme } from '@kritzel/vue-editor'

const customTheme: KritzelTheme = {
...lightTheme,
name: 'brand-theme',
global: { ...lightTheme.global, textPrimary: '#172033' },
engine: { ...lightTheme.engine, backgroundColor: 'transparent' },
toolbar: { ...lightTheme.toolbar, controlSelectedBackgroundColor: '#0f766e' },
}

Use Themes for Vue registration and binding examples.

Global​

borderColor, dividerColor, focusColor, focusRingColor, iconColor, scrollbarThumbColor, textPrimary, textSecondary.

Back To Content​

activeBackgroundColor, backgroundColor, border, boxShadow, color, hoverBackgroundColor.

Checkerboard​

colorDark, colorLight.

Color Palette​

circleBorderColor, hoverBackgroundColor, selectedBackgroundColor.

Context Menu​

backgroundColor, border, boxShadow, dividerColor, itemActiveBackgroundColor, itemColor, itemDisabledColor, itemHoverBackgroundColor.

Current User Dialog​

emailColor, nameColor.

Dialog​

backdropColor, backgroundColor, border, boxShadow, closeButtonActiveBackground, closeButtonBackground, closeButtonColor, closeButtonHoverBackground, closeButtonHoverColor, fontFamily, footerBorder, headerBorder, titleColor.

accentColor, background, borderColor, borderRadius, hoverBackgroundColor, hoverBorderColor, menuBorderRadius, selectedBackgroundColor, textColor.

PropertyLight defaultDark default
accentColor#4A7DFF#5B8CFF
selectedBackgroundColor#4A7DFF1Argba(91, 140, 255, 0.2)

Editor​

loadingOverlayBackground, loadingOverlayColor, loadingOverlaySpinnerActiveColor, loadingOverlaySpinnerColor, syncIndicatorBackground, syncIndicatorColor, syncIndicatorSpinnerColor, syncIndicatorSpinnerTrack, syncIndicatorZIndex.

PropertyLight defaultDark default
syncIndicatorSpinnerColor#4A7DFF#5B8CFF

Engine​

backgroundColor.

Font Size​

hoverBackgroundColor, selectedBackgroundColor, textColor.

Line Endings​

hoverBackgroundColor, labelColor, optionBackground, selectedBackgroundColor.

Login Dialog​

buttonActiveBackground, buttonBackground, buttonBorderColor, buttonHoverBackground, buttonHoverBorderColor, buttonTextColor, spinnerActiveColor, spinnerColor, subtitleColor.

Master Detail​

backButtonColor, backgroundColor, detailBackgroundColor, detailFocusOutline, menuBackgroundColor, menuBorderRight, menuItemActiveBackgroundColor, menuItemBackgroundColor, menuItemChevronColor, menuItemColor, menuItemDisabledColor, menuItemFocusOutline, menuItemHoverBackgroundColor, menuItemSelectedBackgroundColor, menuItemSelectedColor, menuItemSelectedHoverBackgroundColor.

PropertyLight defaultDark default
menuItemSelectedBackgroundColor#4A7DFF#5B8CFF
menuItemSelectedHoverBackgroundColor#4A7DFF#5B8CFF

backgroundColor, border, boxShadow, itemButtonHoverBackgroundColor, itemChildOpenBackgroundColor, itemColor, itemEditingBackgroundColor, itemInputBorder, itemInputBorderColorOnSelected, itemInputCaretColor, itemInputCaretColorOnSelected, itemInputSelectionColor, itemInputSelectionColorOnSelected, itemInputSelectionTextColor, itemInputSelectionTextColorOnSelected, itemOverlayBackgroundColor, itemSelectedBackgroundColor, itemSelectedColor.

PropertyLight defaultDark default
itemInputSelectionColor#4A7DFF#b0b0b0
itemSelectedBackgroundColor#4A7DFF#5B8CFF

More Menu​

backgroundColor, border, borderRadius, boxShadow, buttonActiveBackgroundColor, buttonColor, buttonHoverBackgroundColor, innerBorderRadius.

Notification Card​

backgroundColor, border, borderRadius, boxShadow, color, dismissButtonActiveBackgroundColor, dismissButtonBackgroundColor, dismissButtonBorderRadius, dismissButtonColor, dismissButtonHoverBackgroundColor, dismissButtonSize, errorPillBackgroundColor, errorPillColor, headerGap, headerMarginBottom, headerRightGap, infoPillBackgroundColor, infoPillColor, maxWidth, messageColor, messageFontSize, messageLineHeight, padding, pillBackgroundColor, pillBorderRadius, pillColor, pillFontSize, pillFontWeight, pillHeight, pillPadding, timestampColor, timestampFontSize, warningPillBackgroundColor, warningPillColor.

Numeric Input​

borderColor, borderRadius, focusBorderColor, hoverBorderColor, inputBackground, labelColor, selectionBackground, selectionColor, spinnerActiveBackground, spinnerBackground, spinnerBorderRadius, spinnerColor, spinnerHoverBackground, textColor.

PropertyLight defaultDark default
selectionBackground#4A7DFF#5B8CFF

Opacity Slider​

activeColor, thumbBorderColor, thumbColor, trackColor.

PropertyLight defaultDark default
activeColor#4A7DFF#5B8CFF
thumbBorderColor#4A7DFF#5B8CFF

Pill Tabs​

background, tabBackground, tabBackgroundHover, tabBackgroundSelected, tabLabelMaxWidth, tabShadowSelected, tabTextColor, tabTextColorSelected.

Selection​

borderColor, boxBackgroundColor, boxBorderColor, handleColor, handleStrokeColor.

PropertyLight defaultDark default
borderColor#4A7DFF#5B8CFF
boxBackgroundColorrgba(74, 125, 255, 0.2)rgba(91, 140, 255, 0.2)
boxBorderColorrgba(74, 125, 255, 0.5)rgba(91, 140, 255, 0.5)
handleStrokeColor#4A7DFF#5B8CFF

Settings​

contentHeadingColor, contentTextColor, descriptionColor, labelColor, shortcutItemBg, shortcutKeyBg, shortcutKeyBorder, shortcutKeyColor.

Shape Fill​

hoverBackgroundColor, optionBackground, selectedBackgroundColor.

Share Dialog​

borderColor, copyButtonBackground, copyButtonColor, copyButtonHoverBackground, copyButtonHoverColor, copySuccessBackground, copySuccessColor, descriptionColor, inputBackground, inputBorderColor, inputTextColor, labelColor, revokeButtonBorderColor, revokeButtonColor, revokeButtonHoverBackground, revokeButtonHoverColor, selectionColor.

PropertyLight defaultDark default
selectionColor#cce5ff#5B8CFF

Slide Toggle​

thumbColor, thumbSize, trackCheckedColor, trackColor, transitionDuration.

PropertyLight defaultDark default
trackCheckedColor#4A7DFF#5B8CFF

Snap​

indicatorFill, indicatorFillInactive, indicatorStroke, indicatorStrokeInactive, lineStroke.

PropertyLight defaultDark default
indicatorFillrgba(74, 125, 255, 0.3)rgba(91, 140, 255, 0.35)
indicatorFillInactivergba(74, 125, 255, 0.18)rgba(91, 140, 255, 0.2)
indicatorStroke#4A7DFF#5B8CFF
indicatorStrokeInactivergba(74, 125, 255, 0.5)rgba(255, 255, 255, 0.45)

Split Button​

backgroundColor, border, boxShadow, color, dividerBackgroundColor, hoverBackgroundColor.

Stroke Size​

hoverBackgroundColor, selectedBackgroundColor.

Text Input​

background, borderColor, borderRadius, focusBorderColor, hoverBorderColor, labelColor, placeholderColor, selectionBackground, selectionColor, suffixBackground, suffixColor, textColor.

PropertyLight defaultDark default
selectionBackground#4A7DFF#5B8CFF

Toolbar​

backgroundColor, border, boxShadow, controlActiveBackgroundColor, controlColor, controlHoverBackgroundColor, controlSelectedBackgroundColor, controlSelectedColor, separatorColor.

PropertyLight defaultDark default
controlSelectedBackgroundColor#4A7DFF#5B8CFF

Tooltip​

backgroundColor, border, boxShadow, color.

Utility Panel​

backgroundColor, buttonColor, buttonHoverBackgroundColor, separatorColor.

Watermark​

background, boxShadow, color.

Zoom Panel​

backgroundColor, border, borderRadius, boxShadow, buttonActiveBackgroundColor, buttonBorderRadius, buttonHoverBackgroundColor, buttonSize, gap, iconColor, padding.