Skip to main content

Theming

This is the API reference for the KritzelTheme. It lists the theme groups and their light and dark default values. Override selected values by spreading an existing preset and replacing only the properties you want to customize.

import { KritzelTheme, lightTheme } from '@kritzel/angular-editor';

const customTheme: KritzelTheme = {
...lightTheme,
name: 'branded-purple-flat',
global: {
...lightTheme.global,
primaryColor: '#7c3aed',
textPrimary: '#3b2a66',
},
engine: {
...lightTheme.engine,
backgroundColor: 'transparent',
},
toolbar: {
...lightTheme.toolbar,
backgroundColor: '#f8f2ff',
borderRadius: '0px',
controlSelectedBackgroundColor: '#7c3aed',
},
};

Global​

PropertyLight defaultDark default
borderColor#ebebeb#3a3a3a
dividerColor#e0e0e0#3a3a3a
focusColor#333333#ffffff
focusRingColor#333333#ffffff
iconColorcurrentColorcurrentColor
scrollbarThumbColor#ebebeb#555555
textPrimary#000000#ffffff
textSecondary#333333#e0e0e0

Back To Content​

PropertyLight defaultDark default
activeBackgroundColorhsl(0, 0%, 0%, 8.6%)hsl(0, 0%, 100%, 12%)
backgroundColor#ffffff#2a2a2a
border1px solid #ebebeb1px solid #3a3a3a
boxShadow0 0 3px rgba(0, 0, 0, 0.08)0 0 6px rgba(0, 0, 0, 0.3)
color#000000#ffffff
hoverBackgroundColorhsl(0, 0%, 0%, 4.3%)hsl(0, 0%, 100%, 8%)

Checkerboard​

PropertyLight defaultDark default
colorDark#cccccc#4a4a4a
colorLight#ffffff#3a3a3a

Color Palette​

PropertyLight defaultDark default
circleBorderColor#dddcdc#4a4a4a
hoverBackgroundColor#ebebeb#3a3a3a
selectedBackgroundColor#ebebeb#3a3a3a

Context Menu​

PropertyLight defaultDark default
backgroundColor#ffffff#2a2a2a
border1px solid #ebebeb1px solid #3a3a3a
boxShadow0 1px 6px rgba(0, 0, 0, 0.12)0 1px 8px rgba(0, 0, 0, 0.4)
dividerColorrgba(0, 0, 0, 0.1)rgba(255, 255, 255, 0.1)
itemActiveBackgroundColorhsl(0, 0%, 0%, 8.6%)hsl(0, 0%, 100%, 12%)
itemColor#333333#e0e0e0
itemDisabledColor#aaaaaa#666666
itemHoverBackgroundColorhsl(0, 0%, 0%, 4.3%)hsl(0, 0%, 100%, 8%)

Current User Dialog​

PropertyLight defaultDark default
emailColor#666666#999999
nameColor#333333#ffffff

Dialog​

PropertyLight defaultDark default
backdropColorrgba(0, 0, 0, 0.4)rgba(0, 0, 0, 0.6)
backgroundColor#ffffff#2a2a2a
border1px solid #ebebeb1px solid #3a3a3a
boxShadow0 4px 24px rgba(0, 0, 0, 0.15)0 4px 24px rgba(0, 0, 0, 0.5)
closeButtonActiveBackgroundhsl(0, 0%, 0%, 8.6%)hsl(0, 0%, 100%, 12%)
closeButtonBackgroundtransparenttransparent
closeButtonColor#333333#e0e0e0
closeButtonHoverBackgroundhsl(0, 0%, 0%, 4.3%)hsl(0, 0%, 100%, 8%)
closeButtonHoverColor#000000#ffffff
fontFamilyinherit-
footerBorder1px solid #ebebeb1px solid #3a3a3a
headerBorder1px solid #ebebeb1px solid #3a3a3a
titleColor#000000#ffffff
PropertyLight defaultDark default
accentColor#007bff#0A84FF
background#ffffff#1a1a1a
borderColor#dbdbdb#4a4a4a
borderRadius6px6px
hoverBackgroundColor#f0f0f0#3a3a3a
hoverBorderColor#cccccc#5a5a5a
menuBorderRadius6px6px
selectedBackgroundColor#007bff1argba(10, 132, 255, 0.2)
textColor#333333#e0e0e0

Editor​

PropertyLight defaultDark default
loadingOverlayBackgroundrgba(255, 255, 255, 0.85)rgba(26, 26, 26, 0.85)
loadingOverlayColor#333333#e0e0e0
loadingOverlaySpinnerActiveColor#333333#e0e0e0
loadingOverlaySpinnerColor#cccccc#555555
syncIndicatorBackgroundrgba(255, 255, 255, 0.92)rgba(30, 30, 30, 0.95)
syncIndicatorColor#334155#e0e0e0
syncIndicatorSpinnerColor#007AFF#0A84FF
syncIndicatorSpinnerTrackrgba(148, 163, 184, 0.35)rgba(160, 160, 160, 0.3)
syncIndicatorZIndex1000110001

Engine​

PropertyLight defaultDark default
backgroundColor#ffffff#1a1a1a

Font Size​

PropertyLight defaultDark default
hoverBackgroundColor#ebebeb#3a3a3a
selectedBackgroundColor#ebebeb#3a3a3a
textColor#333333#e0e0e0

Line Endings​

PropertyLight defaultDark default
hoverBackgroundColor#ebebeb#3a3a3a
labelColor#666666#999999
optionBackground#ffffff#2a2a2a
selectedBackgroundColor#ebebeb#3a3a3a

Login Dialog​

PropertyLight defaultDark default
buttonActiveBackground#ebebeb#444444
buttonBackground#ffffff#2a2a2a
buttonBorderColor#e0e0e0#4a4a4a
buttonHoverBackground#f5f5f5#3a3a3a
buttonHoverBorderColor#cccccc#5a5a5a
buttonTextColor#333333#e0e0e0
spinnerActiveColor#333333#ffffff
spinnerColor#cccccc#555555
subtitleColor#666666#999999

Master Detail​

PropertyLight defaultDark default
backButtonColor#333333#e0e0e0
backgroundColor#ffffff#2a2a2a
detailBackgroundColor#ffffff#2a2a2a
detailFocusOutline2px solid #3333332px solid #ffffff
menuBackgroundColor#ffffff#2a2a2a
menuBorderRight1px solid #ebebeb1px solid #3a3a3a
menuItemActiveBackgroundColorhsl(0, 0%, 0%, 8.6%)hsl(0, 0%, 100%, 12%)
menuItemBackgroundColortransparenttransparent
menuItemChevronColor#aaaaaa#666666
menuItemColor#333333#e0e0e0
menuItemDisabledColor#aaaaaa#666666
menuItemFocusOutline2px solid #3333332px solid #ffffff
menuItemHoverBackgroundColorhsl(0, 0%, 0%, 4.3%)hsl(0, 0%, 100%, 8%)
menuItemSelectedBackgroundColor#007AFF#0A84FF
menuItemSelectedColor#ffffff#ffffff
menuItemSelectedHoverBackgroundColor#007AFF#0A84FF
PropertyLight defaultDark default
backgroundColor#ffffff#2a2a2a
border1px solid #ebebeb1px solid #3a3a3a
boxShadow0 0 3px rgba(0, 0, 0, 0.08)0 0 6px rgba(0, 0, 0, 0.3)
itemButtonHoverBackgroundColorhsl(0, 0%, 0%, 4.3%)hsl(0, 0%, 100%, 8%)
itemChildOpenBackgroundColorhsl(0, 0%, 0%, 3%)hsl(0, 0%, 100%, 6%)
itemColor#333333#e0e0e0
itemEditingBackgroundColor#f0f0f0#3a3a3a
itemInputBorder1px solid #3333331px solid #ffffff
itemInputBorderColorOnSelected#ffffff#ffffff
itemInputCaretColor#333333#e0e0e0
itemInputCaretColorOnSelected#ffffff#ffffff
itemInputSelectionColor#007aff#b0b0b0
itemInputSelectionColorOnSelectedrgba(255, 255, 255, 0.55)rgba(255, 255, 255, 0.35)
itemInputSelectionTextColor#ffffff#ffffff
itemInputSelectionTextColorOnSelected#ffffff#ffffff
itemOverlayBackgroundColorhsl(0, 0%, 0%, 4.3%)hsl(0, 0%, 100%, 8%)
itemSelectedBackgroundColor#007aff#0A84FF
itemSelectedColor#ffffff#ffffff

More Menu​

PropertyLight defaultDark default
backgroundColor#ffffff#2a2a2a
border1px solid #ebebeb1px solid #3a3a3a
borderRadius12px12px
boxShadow0 0 3px rgba(0, 0, 0, 0.08)0 0 6px rgba(0, 0, 0, 0.3)
buttonActiveBackgroundColorhsl(0, 0%, 0%, 8.6%)hsl(0, 0%, 100%, 12%)
buttonColor#000000#ffffff
buttonHoverBackgroundColorhsl(0, 0%, 0%, 4.3%)hsl(0, 0%, 100%, 8%)
innerBorderRadius12px12px

Notification Card​

PropertyLight defaultDark default
backgroundColor#ffffff#2a2a2a
border1px solid #e5e7eb1px solid #3a3a3a
borderRadius12px12px
boxShadow0 8px 20px rgba(15, 23, 42, 0.08)0 8px 20px rgba(0, 0, 0, 0.35)
color#111827#e0e0e0
dismissButtonActiveBackgroundColor#e5e7ebhsl(0, 0%, 100%, 12%)
dismissButtonBackgroundColortransparenttransparent
dismissButtonBorderRadius6px6px
dismissButtonColor#4b5563#c7c7c7
dismissButtonHoverBackgroundColor#f3f4f6hsl(0, 0%, 100%, 8%)
dismissButtonSize24px24px
errorPillBackgroundColor#fef2f2#4d1f24
errorPillColor#b91c1c#ff9aa2
headerGap8px8px
headerMarginBottom8px8px
headerRightGap6px6px
infoPillBackgroundColor#eff6ff#1f2f4a
infoPillColor#1d4ed8#8bb7ff
maxWidth360px360px
messageColorinheritinherit
messageFontSize14px14px
messageLineHeight1.451.45
padding12px 14px12px 14px
pillBackgroundColor#eff6ff#1f2f4a
pillBorderRadius999px999px
pillColor#1d4ed8#8bb7ff
pillFontSize12px12px
pillFontWeight600600
pillHeight22px22px
pillPadding0 8px0 8px
timestampColor#6b7280#a0a0a0
timestampFontSize12px12px
warningPillBackgroundColor#fff7ed#4a341f
warningPillColor#b45309#ffd29a

Numeric Input​

PropertyLight defaultDark default
borderColor#dbdbdb#4a4a4a
borderRadius6px6px
focusBorderColor#333333#ffffff
hoverBorderColor#cccccc#5a5a5a
inputBackground#ffffff#1a1a1a
labelColor#666666#999999
selectionBackground#007AFF#0A84FF
selectionColor#ffffff#ffffff
spinnerActiveBackgroundhsl(0, 0%, 0%, 8.6%)hsl(0, 0%, 100%, 12%)
spinnerBackgroundtransparenttransparent
spinnerBorderRadius5px5px
spinnerColor#333333#e0e0e0
spinnerHoverBackgroundhsl(0, 0%, 0%, 4.3%)hsl(0, 0%, 100%, 8%)
textColor#333333#e0e0e0

Opacity Slider​

PropertyLight defaultDark default
activeColor#007AFF#0A84FF
thumbBorderColor#007AFF#0A84FF
thumbColor#ffffff#ffffff
trackColor#e0e0e0#4a4a4a

Pill Tabs​

PropertyLight defaultDark default
background#f0f0f0#3a3a3a
tabBackgroundtransparenttransparent
tabBackgroundHoverrgba(0, 0, 0, 0.05)rgba(255, 255, 255, 0.08)
tabBackgroundSelected#ffffff#2a2a2a
tabLabelMaxWidth10rem10rem
tabShadowSelected0 1px 3px rgba(0, 0, 0, 0.1)0 1px 3px rgba(0, 0, 0, 0.3)
tabTextColor#666666#999999
tabTextColorSelected#000000#ffffff

Selection​

PropertyLight defaultDark default
borderColor#007AFF#0A84FF
boxBackgroundColorrgba(0, 122, 255, 0.2)rgba(10, 132, 255, 0.2)
boxBorderColorrgba(0, 122, 255, 0.5)rgba(10, 132, 255, 0.5)
handleColor#ffffff#1a1a1a
handleStrokeColor#007AFF#0A84FF

Settings​

PropertyLight defaultDark default
contentHeadingColor#000000#ffffff
contentTextColor#333333#e0e0e0
descriptionColor#666666#999999
labelColor#333333#e0e0e0
shortcutItemBg#f8f8f8#3a3a3a
shortcutKeyBg#ffffff#2a2a2a
shortcutKeyBorder#e0e0e0#4a4a4a
shortcutKeyColor#555555#e0e0e0

Shape Fill​

PropertyLight defaultDark default
hoverBackgroundColor#ebebeb#3a3a3a
optionBackground#ffffff#2a2a2a
selectedBackgroundColor#ebebeb#3a3a3a

Share Dialog​

PropertyLight defaultDark default
borderColor#e5e5e5-
copyButtonBackground#ffffff#2a2a2a
copyButtonColor#666666#e0e0e0
copyButtonHoverBackground#e8e8e8#3a3a3a
copyButtonHoverColor#333333#ffffff
copySuccessBackground#d4edda#28a745
copySuccessColor#28a745#ffffff
descriptionColor#666666#e0e0e0
inputBackground#f5f5f5#1a1a1a
inputBorderColor#e0e0e0#4a4a4a
inputTextColor#333333#e0e0e0
labelColor#333333#e0e0e0
revokeButtonBorderColor#dc3545-
revokeButtonColor#dc3545-
revokeButtonHoverBackground#dc3545-
revokeButtonHoverColor#ffffff-
selectionColor#cce5ff#0A84FF

Slide Toggle​

PropertyLight defaultDark default
thumbColor#fff#ffffff
thumbSize18px-
trackCheckedColor#007AFF#0A84FF
trackColor#ccc#4a4a4a
transitionDuration-0.2s

Snap​

PropertyLight defaultDark default
indicatorFillrgba(59, 130, 246, 0.3)rgba(10, 132, 255, 0.35)
indicatorFillInactivergba(59, 130, 246, 0.18)rgba(10, 132, 255, 0.2)
indicatorStroke#007bff#0A84FF
indicatorStrokeInactivergba(59, 130, 246, 0.5)rgba(255, 255, 255, 0.45)
lineStrokergba(0, 0, 0, 0.2)rgba(255, 255, 255, 0.35)

Split Button​

PropertyLight defaultDark default
backgroundColor#ffffff#2a2a2a
border1px solid #ebebeb1px solid #3a3a3a
boxShadow0 0 3px rgba(0, 0, 0, 0.08)0 0 6px rgba(0, 0, 0, 0.3)
color#000000#ffffff
dividerBackgroundColor#ebebeb#3a3a3a
hoverBackgroundColorhsl(0, 0%, 0%, 4.3%)hsl(0, 0%, 100%, 8%)

Stroke Size​

PropertyLight defaultDark default
hoverBackgroundColor#ebebeb#3a3a3a
selectedBackgroundColor#ebebeb#3a3a3a

Text Input​

PropertyLight defaultDark default
background#ffffff#1a1a1a
borderColor#dbdbdb#4a4a4a
borderRadius6px6px
focusBorderColor#333333#ffffff
hoverBorderColor#cccccc#5a5a5a
labelColor#333333#e0e0e0
placeholderColor#999999#777777
selectionBackground#007AFF#0A84FF
selectionColor#ffffff#ffffff
suffixBackground#f5f5f5#3a3a3a
suffixColor#666666#aaaaaa
textColor#333333#e0e0e0

Toolbar​

PropertyLight defaultDark default
backgroundColor#ffffff#2a2a2a
border1px solid #ebebeb1px solid #3a3a3a
boxShadow0 0 3px rgba(0, 0, 0, 0.08)0 0 6px rgba(0, 0, 0, 0.3)
controlActiveBackgroundColorhsl(0, 0%, 0%, 8.6%)hsl(0, 0%, 100%, 12%)
controlColor#000000#ffffff
controlHoverBackgroundColorhsl(0, 0%, 0%, 4.3%)hsl(0, 0%, 100%, 8%)
controlSelectedBackgroundColor#007AFF#0A84FF
controlSelectedColor#ffffff#ffffff
separatorColor#ebebeb#3a3a3a

Tooltip​

PropertyLight defaultDark default
backgroundColor#ffffff#2a2a2a
border1px solid #ebebeb1px solid #3a3a3a
boxShadow0 1px 6px rgba(0, 0, 0, 0.12)0 1px 8px rgba(0, 0, 0, 0.4)
color#000000#ffffff

Utility Panel​

PropertyLight defaultDark default
backgroundColor#e2e2e2#3a3a3a
buttonColor#333333#e0e0e0
buttonHoverBackgroundColorhsl(0, 0%, 0%, 4.3%)hsl(0, 0%, 100%, 8%)
separatorColorhsl(0, 0%, 0%, 8%)hsl(0, 0%, 100%, 12%)

Watermark​

PropertyLight defaultDark default
backgroundrgba(255, 255, 255, 0.6)rgba(40, 40, 40, 0.6)
boxShadow0 1px 2px rgba(0, 0, 0, 0.12)0 1px 2px rgba(0, 0, 0, 0.35)
colorrgba(60, 60, 60, 0.75)rgba(220, 220, 220, 0.8)

Zoom Panel​

PropertyLight defaultDark default
backgroundColor#ffffff#2a2a2a
border1px solid #ebebeb1px solid #3a3a3a
borderRadius12px12px
boxShadow0 0 3px rgba(0, 0, 0, 0.08)0 0 3px rgba(0, 0, 0, 0.4)
buttonActiveBackgroundColorhsl(0, 0%, 0%, 8.6%)hsl(0, 0%, 100%, 12%)
buttonBorderRadius8px8px
buttonHoverBackgroundColorhsl(0, 0%, 0%, 4.3%)hsl(0, 0%, 100%, 8%)
buttonSize32px32px
gap4px4px
iconColor#000000#e0e0e0
padding4px4px