React Data GridTheme Customization
Customize Handsontable's appearance using the Theme API, Figma Theme Generator, CSS variables, or the visual Theme Builder.
Overview
CSS variables provide a powerful and flexible way to customize Handsontable's appearance by adjusting design elements such as colors, spacing, borders, and typography to match your application's design system. These variables give you granular control over every visual aspect of the data grid, from basic styling to advanced component customization.
We provide multiple approaches for leveraging CSS variables to create any look that your designer can imagine. From quick theme modifications to completely custom designs, your options include:
- Theme API – Modify themes via configuration parameters or register your own custom theme programmatically.
- Figma Theme Generator – Modify design variables in Figma and export them using the Figma Theme Generator tool.
- Override CSS variables – Directly override CSS variables or edit CSS files from the
/stylesdirectory for full control. - Theme Builder UI – Use the online Theme Builder (opens new window) to visually customize and export your theme without writing code.
The data grid's styling system is built entirely on CSS variables, with over 200 variables organized into logical categories covering typography, colors, spacing, borders, and component-specific styling listed below.
Option 1: Theme API
The Theme API allows you to customize themes programmatically by registering custom themes and configuring them at runtime. You can use the theme option with a ThemeBuilder object for dynamic configuration.
Register a custom theme
Use registerTheme to create a custom theme with your own configuration:
import Handsontable from 'handsontable';
import { HotTable } from '@handsontable/react-wrapper';
import { mainTheme, registerTheme } from 'handsontable/themes';
// Register main theme
const myTheme = registerTheme(mainTheme);
// Configure the theme at runtime
myTheme.setColorScheme('light');
myTheme.setDensityType('default');
function App() {
return (
<HotTable
theme={myTheme}
// other options
/>
);
}
Configure theme parameters
Use the params() method to update theme parameters dynamically:
myTheme.params({
colors: {
primary: {
500: '#9333ea', // Change primary color
},
},
tokens: {
fontSize: '16px',
iconSize: 'sizing.size_5',
borderColor: ['colors.primary.500', 'colors.primary.600'],
},
});
Theme API example
The following example demonstrates using the Theme API to register a theme with a custom purple accent color:
Option 2: Figma Theme Generator
The Figma Theme Generator allows designers and developers to work together seamlessly by exporting design tokens directly from Figma into a CSS theme file.
Export themes from Figma
To create a new theme or modify an existing one in Figma:
- Open your Figma design file and modify the design variables (colors, spacing, typography, etc.) to match your requirements.
- Export the design tokens as JSON using Figma's built-in variables export or a plugin.
- Visit the Handsontable Theme Generator (opens new window) and follow the instructions to convert your Figma tokens into CSS theme files or JS variable objects.
The Theme Generator transforms JSON tokens exported from Figma into properly formatted theme files that work with Handsontable. It outputs CSS files (with or without icons) and JS variable files for colors, tokens, and icons. This approach is ideal for teams where designers define the visual language in Figma and developers implement it in code.
Option 3: Override CSS variables
For full control over your theme, you can override CSS variables directly. Follow these steps to apply a theme, then override the variables for your chosen theme.
You can also directly modify the CSS theme files located in handsontable/dist/styles/themes/. This gives you immediate access to all CSS variables and allows for quick iterations.
Here's an example for .ht-theme-main:
Option 4: Use the Theme Builder UI
If you prefer a visual approach to creating themes, use the Handsontable Theme Builder (opens new window). This online tool provides an intuitive interface for customizing colors, spacing, and other theme properties without writing code. Once you're satisfied with your design, you can export the generated your theme and integrate it into your project.
Variables Reference
Handsontable provides a comprehensive set of JS and CSS variables that let you customize the appearance of every component.
CSS Variable — The names of the CSS custom properties (e.g. --ht-sizing-size-1) you can override in your stylesheet.
JS Option — The values in this column are the keys you use when customizing a theme via the Theme API. Call theme.params() on your registered theme and pass an object where each key is nested under one of:
sizing— spacing and size scale (e.g.sizing.size_1)density.sizes.default,density.sizes.compact, ordensity.sizes.comfortable— density-specific spacing (e.g.cellVertical,gap)colors— color palette (e.g.colors.primary.500)tokens— design tokens used by components (e.g.tokens.fontSize)
Example: to override the tokens.gapSize, use the JS Option like this:
myTheme.params({
tokens: {
gapSize: 'sizing.size_1'
}
})
Sizing Variables
| Variable | Description |
|---|---|
CSS: --ht-sizing-size-0JS: size_0 | Zero size (0px) |
CSS: --ht-sizing-size-0-25JS: size_0_25 | Quarter unit size (1px) |
CSS: --ht-sizing-size-0-5JS: size_0_5 | Half unit size (2px) |
CSS: --ht-sizing-size-1JS: size_1 | Base unit size (4px) |
CSS: --ht-sizing-size-1-5JS: size_1_5 | 1.5x unit size (6px) |
CSS: --ht-sizing-size-2JS: size_2 | 2x unit size (8px) |
CSS: --ht-sizing-size-3JS: size_3 | 3x unit size (12px) |
CSS: --ht-sizing-size-4JS: size_4 | 4x unit size (16px) |
CSS: --ht-sizing-size-5JS: size_5 | 5x unit size (20px) |
CSS: --ht-sizing-size-6JS: size_6 | 6x unit size (24px) |
CSS: --ht-sizing-size-7JS: size_7 | 7x unit size (28px) |
CSS: --ht-sizing-size-8JS: size_8 | 8x unit size (32px) |
CSS: --ht-sizing-size-9JS: size_9 | 9x unit size (36px) |
CSS: --ht-sizing-size-10JS: size_10 | 10x unit size (40px) |
Density Variables
| Variable | Description |
|---|---|
CSS: --ht-density-cell-verticalJS: cellVertical | Vertical padding for cells |
CSS: --ht-density-cell-horizontalJS: cellHorizontal | Horizontal padding for cells |
CSS: --ht-density-bars-horizontalJS: barsHorizontal | Horizontal padding for bars |
CSS: --ht-density-bars-verticalJS: barsVertical | Vertical padding for bars |
CSS: --ht-density-gapJS: gap | Standard gap size |
CSS: --ht-density-button-horizontalJS: buttonHorizontal | Horizontal padding for buttons |
CSS: --ht-density-button-verticalJS: buttonVertical | Vertical padding for buttons |
CSS: --ht-density-dialog-horizontalJS: dialogHorizontal | Horizontal padding for dialogs |
CSS: --ht-density-dialog-verticalJS: dialogVertical | Vertical padding for dialogs |
CSS: --ht-density-input-horizontalJS: inputHorizontal | Horizontal padding for inputs |
CSS: --ht-density-input-verticalJS: inputVertical | Vertical padding for inputs |
CSS: --ht-density-menu-verticalJS: menuVertical | Vertical padding for menus |
CSS: --ht-density-menu-horizontalJS: menuHorizontal | Horizontal padding for menus |
CSS: --ht-density-menu-item-verticalJS: menuItemVertical | Vertical padding for menu items |
CSS: --ht-density-menu-item-horizontalJS: menuItemHorizontal | Horizontal padding for menu items |
Color Palette Variables
| Variable | Description |
|---|---|
CSS: --ht-colors-whiteJS: white | Pure white color |
CSS: --ht-colors-blackJS: black | Pure black color |
CSS: --ht-colors-transparentJS: transparent | Transparent color |
CSS: --ht-colors-primary-100JS: primary.100 | Lightest primary accent |
CSS: --ht-colors-primary-200JS: primary.200 | Light primary accent |
CSS: --ht-colors-primary-300JS: primary.300 | Medium-light primary accent |
CSS: --ht-colors-primary-400JS: primary.400 | Medium primary accent |
CSS: --ht-colors-primary-500JS: primary.500 | Main primary accent |
CSS: --ht-colors-primary-600JS: primary.600 | Dark primary accent |
CSS: --ht-colors-palette-50JS: palette.50 | Lightest gray |
CSS: --ht-colors-palette-100JS: palette.100 | Very light gray |
CSS: --ht-colors-palette-200JS: palette.200 | Light gray |
CSS: --ht-colors-palette-300JS: palette.300 | Medium-light gray |
CSS: --ht-colors-palette-400JS: palette.400 | Medium gray |
CSS: --ht-colors-palette-500JS: palette.500 | Medium-dark gray |
CSS: --ht-colors-palette-600JS: palette.600 | Dark gray |
CSS: --ht-colors-palette-700JS: palette.700 | Darker gray |
CSS: --ht-colors-palette-800JS: palette.800 | Very dark gray |
CSS: --ht-colors-palette-900JS: palette.900 | Near black |
CSS: --ht-colors-palette-950JS: palette.950 | Darkest gray |
Tokens Variables
Typography Variables
| Variable | Description |
|---|---|
CSS: --ht-font-familyJS: fontFamily | Font family for all text elements |
CSS: --ht-font-sizeJS: fontSize | Base font size for all text elements |
CSS: --ht-font-size-smallJS: fontSizeSmall | Font size for smaller text |
CSS: --ht-line-heightJS: lineHeight | Line height for text elements |
CSS: --ht-line-height-smallJS: lineHeightSmall | Line height for smaller text |
CSS: --ht-font-weightJS: fontWeight | Font weight for text elements |
CSS: --ht-letter-spacingJS: letterSpacing | Letter spacing for text elements |
Layout & Spacing Variables
| Variable | Description |
|---|---|
CSS: --ht-gap-sizeJS: gapSize | Standard gap size used throughout the component |
CSS: --ht-icon-sizeJS: iconSize | Size of icons throughout the interface |
CSS: --ht-table-transitionJS: tableTransition | Transition duration for table animations |
Color System Variables
| Variable | Description |
|---|---|
CSS: --ht-border-colorJS: borderColor | Default border color for all elements |
CSS: --ht-accent-colorJS: accentColor | Primary accent color used for highlights and active states |
CSS: --ht-foreground-colorJS: foregroundColor | Primary text color |
CSS: --ht-foreground-secondary-colorJS: foregroundSecondaryColor | Secondary text color |
CSS: --ht-background-colorJS: backgroundColor | Primary background color |
CSS: --ht-background-secondary-colorJS: backgroundSecondaryColor | Secondary background color |
CSS: --ht-placeholder-colorJS: placeholderColor | Color for placeholder text |
CSS: --ht-read-only-colorJS: readOnlyColor | Color for read-only text |
CSS: --ht-disabled-colorJS: disabledColor | Color for disabled elements |
Shadow Variables
| Variable | Description |
|---|---|
CSS: --ht-shadow-colorJS: shadowColor | Base color used for shadows |
CSS: --ht-shadow-xJS: shadowX | Horizontal offset of shadows |
CSS: --ht-shadow-yJS: shadowY | Vertical offset of shadows |
CSS: --ht-shadow-blurJS: shadowBlur | Blur radius of shadows |
CSS: --ht-shadow-opacityJS: shadowOpacity | Opacity of shadows |
Bar Variables
| Variable | Description |
|---|---|
CSS: --ht-bar-foreground-colorJS: barForegroundColor | Foreground color of bar elements |
CSS: --ht-bar-background-colorJS: barBackgroundColor | Background color of bar elements |
CSS: --ht-bar-horizontal-paddingJS: barHorizontalPadding | Horizontal padding inside bar elements |
CSS: --ht-bar-vertical-paddingJS: barVerticalPadding | Vertical padding inside bar elements |
Cell Border Variables
| Variable | Description |
|---|---|
CSS: --ht-cell-horizontal-border-colorJS: cellHorizontalBorderColor | Color of horizontal cell borders |
CSS: --ht-cell-vertical-border-colorJS: cellVerticalBorderColor | Color of vertical cell borders |
Wrapper Variables
| Variable | Description |
|---|---|
CSS: --ht-wrapper-border-widthJS: wrapperBorderWidth | Width of the table wrapper border |
CSS: --ht-wrapper-border-radiusJS: wrapperBorderRadius | Border radius of the table wrapper |
CSS: --ht-wrapper-border-colorJS: wrapperBorderColor | Color of the table wrapper border |
Row Styling Variables
| Variable | Description |
|---|---|
CSS: --ht-row-header-odd-background-colorJS: rowHeaderOddBackgroundColor | Background color for odd row headers |
CSS: --ht-row-header-even-background-colorJS: rowHeaderEvenBackgroundColor | Background color for even row headers |
CSS: --ht-row-cell-odd-background-colorJS: rowCellOddBackgroundColor | Background color for odd row cells |
CSS: --ht-row-cell-even-background-colorJS: rowCellEvenBackgroundColor | Background color for even row cells |
Cell Padding Variables
| Variable | Description |
|---|---|
CSS: --ht-cell-horizontal-paddingJS: cellHorizontalPadding | Horizontal padding inside cells |
CSS: --ht-cell-vertical-paddingJS: cellVerticalPadding | Vertical padding inside cells |
Cell Editor Variables
| Variable | Description |
|---|---|
CSS: --ht-cell-editor-border-widthJS: cellEditorBorderWidth | Border width of cell editors |
CSS: --ht-cell-editor-border-colorJS: cellEditorBorderColor | Border color of cell editors |
CSS: --ht-cell-editor-foreground-colorJS: cellEditorForegroundColor | Text color in cell editors |
CSS: --ht-cell-editor-background-colorJS: cellEditorBackgroundColor | Background color of cell editors |
CSS: --ht-cell-editor-shadow-blur-radiusJS: cellEditorShadowBlurRadius | Shadow blur radius for cell editors |
CSS: --ht-cell-editor-shadow-colorJS: cellEditorShadowColor | Shadow color for cell editors |
Cell State Variables
| Variable | Description |
|---|---|
CSS: --ht-cell-success-background-colorJS: cellSuccessBackgroundColor | Background color for successful cell operations |
CSS: --ht-cell-error-background-colorJS: cellErrorBackgroundColor | Background color for error states in cells |
CSS: --ht-cell-read-only-background-colorJS: cellReadOnlyBackgroundColor | Background color for read-only cells |
Cell Selection Variables
| Variable | Description |
|---|---|
CSS: --ht-cell-selection-border-colorJS: cellSelectionBorderColor | Border color for selected cells |
CSS: --ht-cell-selection-background-colorJS: cellSelectionBackgroundColor | Background color for selected cells |
Cell Autofill Variables
| Variable | Description |
|---|---|
CSS: --ht-cell-autofill-sizeJS: cellAutofillSize | Size of the autofill handle |
CSS: --ht-cell-autofill-hit-area-sizeJS: cellAutofillHitAreaSize | Size of the autofill hit area |
CSS: --ht-cell-autofill-border-widthJS: cellAutofillBorderWidth | Border width of autofill elements |
CSS: --ht-cell-autofill-border-radiusJS: cellAutofillBorderRadius | Border radius of autofill elements |
CSS: --ht-cell-autofill-border-colorJS: cellAutofillBorderColor | Border color of autofill elements |
CSS: --ht-cell-autofill-background-colorJS: cellAutofillBackgroundColor | Background color of autofill elements |
CSS: --ht-cell-autofill-fill-border-colorJS: cellAutofillFillBorderColor | Border color of autofill fill indicator |
Cell Mobile Handle Variables
| Variable | Description |
|---|---|
CSS: --ht-cell-mobile-handle-sizeJS: cellMobileHandleSize | Size of mobile touch handles |
CSS: --ht-cell-mobile-handle-border-widthJS: cellMobileHandleBorderWidth | Border width of mobile handles |
CSS: --ht-cell-mobile-handle-border-radiusJS: cellMobileHandleBorderRadius | Border radius of mobile handles |
CSS: --ht-cell-mobile-handle-border-colorJS: cellMobileHandleBorderColor | Border color of mobile handles |
CSS: --ht-cell-mobile-handle-background-colorJS: cellMobileHandleBackgroundColor | Background color of mobile handles |
CSS: --ht-cell-mobile-handle-background-opacityJS: cellMobileHandleBackgroundOpacity | Background opacity of mobile handles |
Indicator Variables
| Variable | Description |
|---|---|
CSS: --ht-resize-indicator-colorJS: resizeIndicatorColor | Color of resize indicators |
CSS: --ht-move-backlight-colorJS: moveBacklightColor | Background color for move operations |
CSS: --ht-move-backlight-opacityJS: moveBacklightOpacity | Opacity of move backlight |
CSS: --ht-move-indicator-colorJS: moveIndicatorColor | Color of move indicators |
CSS: --ht-hidden-indicator-colorJS: hiddenIndicatorColor | Color of hidden element indicators |
Scrollbar Variables
| Variable | Description |
|---|---|
CSS: --ht-scrollbar-border-radiusJS: scrollbarBorderRadius | Border radius of scrollbars |
CSS: --ht-scrollbar-track-colorJS: scrollbarTrackColor | Background color of scrollbar tracks |
CSS: --ht-scrollbar-thumb-colorJS: scrollbarThumbColor | Color of scrollbar thumbs |
Header Variables
| Variable | Description |
|---|---|
CSS: --ht-header-font-weightJS: headerFontWeight | Font weight for header text |
CSS: --ht-header-foreground-colorJS: headerForegroundColor | Text color for headers |
CSS: --ht-header-background-colorJS: headerBackgroundColor | Background color for headers |
CSS: --ht-header-highlighted-shadow-sizeJS: headerHighlightedShadowSize | Shadow size for highlighted headers |
CSS: --ht-header-highlighted-foreground-colorJS: headerHighlightedForegroundColor | Text color for highlighted headers |
CSS: --ht-header-highlighted-background-colorJS: headerHighlightedBackgroundColor | Background color for highlighted headers |
CSS: --ht-header-active-border-colorJS: headerActiveBorderColor | Border color for active headers |
CSS: --ht-header-active-foreground-colorJS: headerActiveForegroundColor | Text color for active headers |
CSS: --ht-header-active-background-colorJS: headerActiveBackgroundColor | Background color for active headers |
CSS: --ht-header-filter-background-colorJS: headerFilterBackgroundColor | Background color for header filters |
Header Row Variables
| Variable | Description |
|---|---|
CSS: --ht-header-row-foreground-colorJS: headerRowForegroundColor | Text color for header rows |
CSS: --ht-header-row-background-colorJS: headerRowBackgroundColor | Background color for header rows |
CSS: --ht-header-row-highlighted-foreground-colorJS: headerRowHighlightedForegroundColor | Text color for highlighted header rows |
CSS: --ht-header-row-highlighted-background-colorJS: headerRowHighlightedBackgroundColor | Background color for highlighted header rows |
CSS: --ht-header-row-active-foreground-colorJS: headerRowActiveForegroundColor | Text color for active header rows |
CSS: --ht-header-row-active-background-colorJS: headerRowActiveBackgroundColor | Background color for active header rows |
Checkbox Variables
| Variable | Description |
|---|---|
CSS: --ht-checkbox-sizeJS: checkboxSize | Size of checkbox elements |
CSS: --ht-checkbox-border-radiusJS: checkboxBorderRadius | Border radius of checkboxes |
CSS: --ht-checkbox-border-colorJS: checkboxBorderColor | Border color of checkboxes |
CSS: --ht-checkbox-background-colorJS: checkboxBackgroundColor | Background color of checkboxes |
CSS: --ht-checkbox-icon-colorJS: checkboxIconColor | Color of checkbox icons |
CSS: --ht-checkbox-focus-border-colorJS: checkboxFocusBorderColor | Border color of focused checkboxes |
CSS: --ht-checkbox-focus-background-colorJS: checkboxFocusBackgroundColor | Background color of focused checkboxes |
CSS: --ht-checkbox-focus-icon-colorJS: checkboxFocusIconColor | Icon color of focused checkboxes |
CSS: --ht-checkbox-focus-ring-colorJS: checkboxFocusRingColor | Focus ring color for checkboxes |
CSS: --ht-checkbox-disabled-border-colorJS: checkboxDisabledBorderColor | Border color of disabled checkboxes |
CSS: --ht-checkbox-disabled-background-colorJS: checkboxDisabledBackgroundColor | Background color of disabled checkboxes |
CSS: --ht-checkbox-disabled-icon-colorJS: checkboxDisabledIconColor | Icon color of disabled checkboxes |
CSS: --ht-checkbox-checked-border-colorJS: checkboxCheckedBorderColor | Border color of checked checkboxes |
CSS: --ht-checkbox-checked-background-colorJS: checkboxCheckedBackgroundColor | Background color of checked checkboxes |
CSS: --ht-checkbox-checked-icon-colorJS: checkboxCheckedIconColor | Icon color of checked checkboxes |
CSS: --ht-checkbox-checked-focus-border-colorJS: checkboxCheckedFocusBorderColor | Border color of focused checked checkboxes |
CSS: --ht-checkbox-checked-focus-background-colorJS: checkboxCheckedFocusBackgroundColor | Background color of focused checked checkboxes |
CSS: --ht-checkbox-checked-focus-icon-colorJS: checkboxCheckedFocusIconColor | Icon color of focused checked checkboxes |
CSS: --ht-checkbox-checked-disabled-border-colorJS: checkboxCheckedDisabledBorderColor | Border color of disabled checked checkboxes |
CSS: --ht-checkbox-checked-disabled-background-colorJS: checkboxCheckedDisabledBackgroundColor | Background color of disabled checked checkboxes |
CSS: --ht-checkbox-checked-disabled-icon-colorJS: checkboxCheckedDisabledIconColor | Icon color of disabled checked checkboxes |
CSS: --ht-checkbox-indeterminate-border-colorJS: checkboxIndeterminateBorderColor | Border color of indeterminate checkboxes |
CSS: --ht-checkbox-indeterminate-background-colorJS: checkboxIndeterminateBackgroundColor | Background color of indeterminate checkboxes |
CSS: --ht-checkbox-indeterminate-icon-colorJS: checkboxIndeterminateIconColor | Icon color of indeterminate checkboxes |
CSS: --ht-checkbox-indeterminate-focus-border-colorJS: checkboxIndeterminateFocusBorderColor | Border color of focused indeterminate checkboxes |
CSS: --ht-checkbox-indeterminate-focus-background-colorJS: checkboxIndeterminateFocusBackgroundColor | Background color of focused indeterminate checkboxes |
CSS: --ht-checkbox-indeterminate-focus-icon-colorJS: checkboxIndeterminateFocusIconColor | Icon color of focused indeterminate checkboxes |
CSS: --ht-checkbox-indeterminate-disabled-border-colorJS: checkboxIndeterminateDisabledBorderColor | Border color of disabled indeterminate checkboxes |
CSS: --ht-checkbox-indeterminate-disabled-background-colorJS: checkboxIndeterminateDisabledBackgroundColor | Background color of disabled indeterminate checkboxes |
CSS: --ht-checkbox-indeterminate-disabled-icon-colorJS: checkboxIndeterminateDisabledIconColor | Icon color of disabled indeterminate checkboxes |
Radio Button Variables
| Variable | Description |
|---|---|
CSS: --ht-radio-sizeJS: radioSize | Size of radio button elements |
CSS: --ht-radio-border-colorJS: radioBorderColor | Border color of radio buttons |
CSS: --ht-radio-background-colorJS: radioBackgroundColor | Background color of radio buttons |
CSS: --ht-radio-icon-colorJS: radioIconColor | Color of radio button icons |
CSS: --ht-radio-focus-border-colorJS: radioFocusBorderColor | Border color of focused radio buttons |
CSS: --ht-radio-focus-background-colorJS: radioFocusBackgroundColor | Background color of focused radio buttons |
CSS: --ht-radio-focus-icon-colorJS: radioFocusIconColor | Icon color of focused radio buttons |
CSS: --ht-radio-focus-ring-colorJS: radioFocusRingColor | Focus ring color for radio buttons |
CSS: --ht-radio-disabled-border-colorJS: radioDisabledBorderColor | Border color of disabled radio buttons |
CSS: --ht-radio-disabled-background-colorJS: radioDisabledBackgroundColor | Background color of disabled radio buttons |
CSS: --ht-radio-disabled-icon-colorJS: radioDisabledIconColor | Icon color of disabled radio buttons |
CSS: --ht-radio-checked-border-colorJS: radioCheckedBorderColor | Border color of checked radio buttons |
CSS: --ht-radio-checked-background-colorJS: radioCheckedBackgroundColor | Background color of checked radio buttons |
CSS: --ht-radio-checked-icon-colorJS: radioCheckedIconColor | Icon color of checked radio buttons |
CSS: --ht-radio-checked-focus-border-colorJS: radioCheckedFocusBorderColor | Border color of focused checked radio buttons |
CSS: --ht-radio-checked-focus-background-colorJS: radioCheckedFocusBackgroundColor | Background color of focused checked radio buttons |
CSS: --ht-radio-checked-focus-icon-colorJS: radioCheckedFocusIconColor | Icon color of focused checked radio buttons |
CSS: --ht-radio-checked-disabled-border-colorJS: radioCheckedDisabledBorderColor | Border color of disabled checked radio buttons |
CSS: --ht-radio-checked-disabled-background-colorJS: radioCheckedDisabledBackgroundColor | Background color of disabled checked radio buttons |
CSS: --ht-radio-checked-disabled-icon-colorJS: radioCheckedDisabledIconColor | Icon color of disabled checked radio buttons |
Icon Button Variables
| Variable | Description |
|---|---|
CSS: --ht-icon-button-border-radiusJS: iconButtonBorderRadius | Border radius of icon buttons |
CSS: --ht-icon-button-large-border-radiusJS: iconButtonLargeBorderRadius | Border radius of large icon buttons |
CSS: --ht-icon-button-large-paddingJS: iconButtonLargePadding | Padding of large icon buttons |
CSS: --ht-icon-button-border-colorJS: iconButtonBorderColor | Border color of icon buttons |
CSS: --ht-icon-button-background-colorJS: iconButtonBackgroundColor | Background color of icon buttons |
CSS: --ht-icon-button-icon-colorJS: iconButtonIconColor | Color of icon button icons |
CSS: --ht-icon-button-hover-border-colorJS: iconButtonHoverBorderColor | Border color of hovered icon buttons |
CSS: --ht-icon-button-hover-background-colorJS: iconButtonHoverBackgroundColor | Background color of hovered icon buttons |
CSS: --ht-icon-button-hover-icon-colorJS: iconButtonHoverIconColor | Icon color of hovered icon buttons |
CSS: --ht-icon-button-active-border-colorJS: iconButtonActiveBorderColor | Border color of active icon buttons |
CSS: --ht-icon-button-active-background-colorJS: iconButtonActiveBackgroundColor | Background color of active icon buttons |
CSS: --ht-icon-button-active-icon-colorJS: iconButtonActiveIconColor | Icon color of active icon buttons |
CSS: --ht-icon-button-active-hover-border-colorJS: iconButtonActiveHoverBorderColor | Border color of hovered active icon buttons |
CSS: --ht-icon-button-active-hover-background-colorJS: iconButtonActiveHoverBackgroundColor | Background color of hovered active icon buttons |
CSS: --ht-icon-button-active-hover-icon-colorJS: iconButtonActiveHoverIconColor | Icon color of hovered active icon buttons |
Collapse Button Variables
| Variable | Description |
|---|---|
CSS: --ht-collapse-button-border-radiusJS: collapseButtonBorderRadius | Border radius of collapse buttons |
CSS: --ht-collapse-button-open-border-colorJS: collapseButtonOpenBorderColor | Border color of open collapse buttons |
CSS: --ht-collapse-button-open-background-colorJS: collapseButtonOpenBackgroundColor | Background color of open collapse buttons |
CSS: --ht-collapse-button-open-icon-colorJS: collapseButtonOpenIconColor | Icon color of open collapse buttons |
CSS: --ht-collapse-button-open-icon-active-colorJS: collapseButtonOpenIconActiveColor | Active icon color of open collapse buttons |
CSS: --ht-collapse-button-open-hover-border-colorJS: collapseButtonOpenHoverBorderColor | Border color of hovered open collapse buttons |
CSS: --ht-collapse-button-open-hover-background-colorJS: collapseButtonOpenHoverBackgroundColor | Background color of hovered open collapse buttons |
CSS: --ht-collapse-button-open-hover-icon-colorJS: collapseButtonOpenHoverIconColor | Icon color of hovered open collapse buttons |
CSS: --ht-collapse-button-open-hover-icon-active-colorJS: collapseButtonOpenHoverIconActiveColor | Active icon color of hovered open collapse buttons |
CSS: --ht-collapse-button-close-border-colorJS: collapseButtonCloseBorderColor | Border color of closed collapse buttons |
CSS: --ht-collapse-button-close-background-colorJS: collapseButtonCloseBackgroundColor | Background color of closed collapse buttons |
CSS: --ht-collapse-button-close-icon-colorJS: collapseButtonCloseIconColor | Icon color of closed collapse buttons |
CSS: --ht-collapse-button-close-icon-active-colorJS: collapseButtonCloseIconActiveColor | Active icon color of closed collapse buttons |
CSS: --ht-collapse-button-close-hover-border-colorJS: collapseButtonCloseHoverBorderColor | Border color of hovered closed collapse buttons |
CSS: --ht-collapse-button-close-hover-background-colorJS: collapseButtonCloseHoverBackgroundColor | Background color of hovered closed collapse buttons |
CSS: --ht-collapse-button-close-hover-icon-colorJS: collapseButtonCloseHoverIconColor | Icon color of hovered closed collapse buttons |
CSS: --ht-collapse-button-close-hover-icon-active-colorJS: collapseButtonCloseHoverIconActiveColor | Active icon color of hovered closed collapse buttons |
Button Variables
| Variable | Description |
|---|---|
CSS: --ht-button-border-radiusJS: buttonBorderRadius | Border radius of buttons |
CSS: --ht-button-horizontal-paddingJS: buttonHorizontalPadding | Horizontal padding of buttons |
CSS: --ht-button-vertical-paddingJS: buttonVerticalPadding | Vertical padding of buttons |
Primary Button Variables
| Variable | Description |
|---|---|
CSS: --ht-primary-button-border-colorJS: primaryButtonBorderColor | Border color of primary buttons |
CSS: --ht-primary-button-foreground-colorJS: primaryButtonForegroundColor | Text color of primary buttons |
CSS: --ht-primary-button-background-colorJS: primaryButtonBackgroundColor | Background color of primary buttons |
CSS: --ht-primary-button-disabled-border-colorJS: primaryButtonDisabledBorderColor | Border color of disabled primary buttons |
CSS: --ht-primary-button-disabled-foreground-colorJS: primaryButtonDisabledForegroundColor | Text color of disabled primary buttons |
CSS: --ht-primary-button-disabled-background-colorJS: primaryButtonDisabledBackgroundColor | Background color of disabled primary buttons |
CSS: --ht-primary-button-hover-border-colorJS: primaryButtonHoverBorderColor | Border color of hovered primary buttons |
CSS: --ht-primary-button-hover-foreground-colorJS: primaryButtonHoverForegroundColor | Text color of hovered primary buttons |
CSS: --ht-primary-button-hover-background-colorJS: primaryButtonHoverBackgroundColor | Background color of hovered primary buttons |
CSS: --ht-primary-button-focus-border-colorJS: primaryButtonFocusBorderColor | Border color of focused primary buttons |
CSS: --ht-primary-button-focus-foreground-colorJS: primaryButtonFocusForegroundColor | Text color of focused primary buttons |
CSS: --ht-primary-button-focus-background-colorJS: primaryButtonFocusBackgroundColor | Background color of focused primary buttons |
Secondary Button Variables
| Variable | Description |
|---|---|
CSS: --ht-secondary-button-border-colorJS: secondaryButtonBorderColor | Border color of secondary buttons |
CSS: --ht-secondary-button-foreground-colorJS: secondaryButtonForegroundColor | Text color of secondary buttons |
CSS: --ht-secondary-button-background-colorJS: secondaryButtonBackgroundColor | Background color of secondary buttons |
CSS: --ht-secondary-button-disabled-border-colorJS: secondaryButtonDisabledBorderColor | Border color of disabled secondary buttons |
CSS: --ht-secondary-button-disabled-foreground-colorJS: secondaryButtonDisabledForegroundColor | Text color of disabled secondary buttons |
CSS: --ht-secondary-button-disabled-background-colorJS: secondaryButtonDisabledBackgroundColor | Background color of disabled secondary buttons |
CSS: --ht-secondary-button-hover-border-colorJS: secondaryButtonHoverBorderColor | Border color of hovered secondary buttons |
CSS: --ht-secondary-button-hover-foreground-colorJS: secondaryButtonHoverForegroundColor | Text color of hovered secondary buttons |
CSS: --ht-secondary-button-hover-background-colorJS: secondaryButtonHoverBackgroundColor | Background color of hovered secondary buttons |
CSS: --ht-secondary-button-focus-border-colorJS: secondaryButtonFocusBorderColor | Border color of focused secondary buttons |
CSS: --ht-secondary-button-focus-foreground-colorJS: secondaryButtonFocusForegroundColor | Text color of focused secondary buttons |
CSS: --ht-secondary-button-focus-background-colorJS: secondaryButtonFocusBackgroundColor | Background color of focused secondary buttons |
Chip Variables
| Variable | Description |
|---|---|
CSS: --ht-chip-backgroundJS: chipBackground | Background color of chip elements |
CSS: --ht-chip-border-radiusJS: chipBorderRadius | Border radius of chip elements |
CSS: --ht-chip-vertical-paddingJS: chipVerticalPadding | Vertical padding of chip elements |
CSS: --ht-chip-horizontal-paddingJS: chipHorizontalPadding | Horizontal padding of chip elements |
CSS: --ht-chip-gapJS: chipGap | Gap between chip elements |
Comments Variables
| Variable | Description |
|---|---|
CSS: --ht-comments-textarea-horizontal-paddingJS: commentsTextareaHorizontalPadding | Horizontal padding of comment textareas |
CSS: --ht-comments-textarea-vertical-paddingJS: commentsTextareaVerticalPadding | Vertical padding of comment textareas |
CSS: --ht-comments-textarea-border-widthJS: commentsTextareaBorderWidth | Border width of comment textareas |
CSS: --ht-comments-textarea-border-colorJS: commentsTextareaBorderColor | Border color of comment textareas |
CSS: --ht-comments-textarea-foreground-colorJS: commentsTextareaForegroundColor | Text color of comment textareas |
CSS: --ht-comments-textarea-background-colorJS: commentsTextareaBackgroundColor | Background color of comment textareas |
CSS: --ht-comments-textarea-focus-border-widthJS: commentsTextareaFocusBorderWidth | Border width of focused comment textareas |
CSS: --ht-comments-textarea-focus-border-colorJS: commentsTextareaFocusBorderColor | Border color of focused comment textareas |
CSS: --ht-comments-textarea-focus-foreground-colorJS: commentsTextareaFocusForegroundColor | Text color of focused comment textareas |
CSS: --ht-comments-textarea-focus-background-colorJS: commentsTextareaFocusBackgroundColor | Background color of focused comment textareas |
CSS: --ht-comments-indicator-sizeJS: commentsIndicatorSize | Size of comment indicators |
CSS: --ht-comments-indicator-colorJS: commentsIndicatorColor | Color of comment indicators |
License Variables
| Variable | Description |
|---|---|
CSS: --ht-license-horizontal-paddingJS: licenseHorizontalPadding | Horizontal padding of license elements |
CSS: --ht-license-vertical-paddingJS: licenseVerticalPadding | Vertical padding of license elements |
CSS: --ht-license-foreground-colorJS: licenseForegroundColor | Text color of license elements |
CSS: --ht-license-background-colorJS: licenseBackgroundColor | Background color of license elements |
Link Variables
| Variable | Description |
|---|---|
CSS: --ht-link-colorJS: linkColor | Color of links |
CSS: --ht-link-hover-colorJS: linkHoverColor | Color of hovered links |
Input Variables
| Variable | Description |
|---|---|
CSS: --ht-input-border-widthJS: inputBorderWidth | Border width of input elements |
CSS: --ht-input-border-radiusJS: inputBorderRadius | Border radius of input elements |
CSS: --ht-input-horizontal-paddingJS: inputHorizontalPadding | Horizontal padding of input elements |
CSS: --ht-input-vertical-paddingJS: inputVerticalPadding | Vertical padding of input elements |
CSS: --ht-input-border-colorJS: inputBorderColor | Border color of input elements |
CSS: --ht-input-foreground-colorJS: inputForegroundColor | Text color of input elements |
CSS: --ht-input-background-colorJS: inputBackgroundColor | Background color of input elements |
CSS: --ht-input-hover-border-colorJS: inputHoverBorderColor | Border color of hovered input elements |
CSS: --ht-input-hover-foreground-colorJS: inputHoverForegroundColor | Text color of hovered input elements |
CSS: --ht-input-hover-background-colorJS: inputHoverBackgroundColor | Background color of hovered input elements |
CSS: --ht-input-disabled-border-colorJS: inputDisabledBorderColor | Border color of disabled input elements |
CSS: --ht-input-disabled-foreground-colorJS: inputDisabledForegroundColor | Text color of disabled input elements |
CSS: --ht-input-disabled-background-colorJS: inputDisabledBackgroundColor | Background color of disabled input elements |
CSS: --ht-input-focus-border-colorJS: inputFocusBorderColor | Border color of focused input elements |
CSS: --ht-input-focus-foreground-colorJS: inputFocusForegroundColor | Text color of focused input elements |
CSS: --ht-input-focus-background-colorJS: inputFocusBackgroundColor | Background color of focused input elements |
Menu Variables
| Variable | Description |
|---|---|
CSS: --ht-menu-border-widthJS: menuBorderWidth | Border width of menu elements |
CSS: --ht-menu-border-radiusJS: menuBorderRadius | Border radius of menu elements |
CSS: --ht-menu-horizontal-paddingJS: menuHorizontalPadding | Horizontal padding of menu elements |
CSS: --ht-menu-vertical-paddingJS: menuVerticalPadding | Vertical padding of menu elements |
CSS: --ht-menu-item-horizontal-paddingJS: menuItemHorizontalPadding | Horizontal padding of menu items |
CSS: --ht-menu-item-vertical-paddingJS: menuItemVerticalPadding | Vertical padding of menu items |
CSS: --ht-menu-border-colorJS: menuBorderColor | Border color of menu elements |
CSS: --ht-menu-shadow-xJS: menuShadowX | Horizontal shadow offset of menus |
CSS: --ht-menu-shadow-yJS: menuShadowY | Vertical shadow offset of menus |
CSS: --ht-menu-shadow-blurJS: menuShadowBlur | Shadow blur radius of menus |
CSS: --ht-menu-shadow-colorJS: menuShadowColor | Shadow color of menus |
CSS: --ht-menu-shadow-opacityJS: menuShadowOpacity | Shadow opacity of menus |
CSS: --ht-menu-item-hover-colorJS: menuItemHoverColor | Background color of hovered menu items |
CSS: --ht-menu-item-hover-color-opacityJS: menuItemHoverColorOpacity | Opacity of hovered menu item background |
CSS: --ht-menu-item-active-colorJS: menuItemActiveColor | Background color of active menu items |
CSS: --ht-menu-item-active-color-opacityJS: menuItemActiveColorOpacity | Opacity of active menu item background |
Dialog Variables
| Variable | Description |
|---|---|
CSS: --ht-dialog-semi-transparent-background-colorJS: dialogSemiTransparentBackgroundColor | Semi-transparent background color of dialog overlay |
CSS: --ht-dialog-semi-transparent-background-opacityJS: dialogSemiTransparentBackgroundOpacity | Opacity of semi-transparent dialog background |
CSS: --ht-dialog-solid-background-colorJS: dialogSolidBackgroundColor | Solid background color of dialog overlay |
CSS: --ht-dialog-content-padding-horizontalJS: dialogContentPaddingHorizontal | Horizontal padding of dialog content |
CSS: --ht-dialog-content-padding-verticalJS: dialogContentPaddingVertical | Vertical padding of dialog content |
CSS: --ht-dialog-content-border-radiusJS: dialogContentBorderRadius | Border radius of dialog content |
CSS: --ht-dialog-content-background-colorJS: dialogContentBackgroundColor | Background color of dialog content |
Pagination Variables
| Variable | Description |
|---|---|
CSS: --ht-pagination-bar-foreground-colorJS: paginationBarForegroundColor | Text color of pagination bar |
CSS: --ht-pagination-bar-background-colorJS: paginationBarBackgroundColor | Background color of pagination bar |
CSS: --ht-pagination-bar-horizontal-paddingJS: paginationBarHorizontalPadding | Horizontal padding of pagination bar |
CSS: --ht-pagination-bar-vertical-paddingJS: paginationBarVerticalPadding | Vertical padding of pagination bar |