Skip to content

Customization

Juttu uses CSS custom properties (variables) for all visual styling. You can override any of them to match your site’s design.

By default, Juttu uses a transparent background so it blends seamlessly into your site. Text and border colors adapt automatically based on whether your site uses a light or dark color scheme.

To customize the widget, define your overrides on the .juttu-comments selector. Your styles take precedence over the defaults:

.juttu-comments {
--juttu-accent-color: #6366f1; /* Indigo accent */
--juttu-radius: 12px; /* Rounder corners */
}
VariableDefault (light)Default (dark)Description
--juttu-font-familysystem-ui, …sameFont stack for UI elements
--juttu-comment-font-familyinherits --juttu-font-familysameFont stack for comment text
--juttu-font-size14pxsameBase font size
--juttu-comment-font-sizeinherits --juttu-font-sizesameFont size for comment text
--juttu-bgtransparenttransparentWidget background
--juttu-surfacergba(0,0,0,0.03)rgba(255,255,255,0.05)Input fields, cards
--juttu-border-color#e1e8ed#38444dBorders and dividers
--juttu-text#0f1419#ffffffPrimary text color
--juttu-text-muted#536471#8b98a5Secondary text color
--juttu-accent-color#1d9bf0sameLinks, buttons, focus rings
--juttu-like-color#e0245esameLike button active state
--juttu-repost-color#17bf63sameRepost button active state
--juttu-avatar-size32pxsameAvatar dimensions
--juttu-radius8pxsameBorder radius
--juttu-autocomplete-bg#ffffff#1e2d3dBackground of the @mention autocomplete dropdown

If you prefer the widget to have its own background rather than being transparent:

.juttu-comments[data-juttu-theme="light"] {
--juttu-bg: #ffffff;
--juttu-surface: #f7f9f9;
}
.juttu-comments[data-juttu-theme="dark"] {
--juttu-bg: #15202b;
--juttu-surface: #1e2732;
}

Use a serif typeface for comment bodies while keeping the UI (handles, buttons, etc.) in sans-serif:

.juttu-comments {
--juttu-comment-font-family: Georgia, 'Times New Roman', serif;
}
.juttu-comments {
--juttu-accent-color: #8b5cf6; /* Purple */
}
.juttu-comments {
--juttu-font-family: 'Inter', sans-serif;
--juttu-accent-color: #2563eb;
--juttu-radius: 4px;
--juttu-border-color: #d1d5db;
}