CSS Theming

Customize the form appearance using CSS

For advanced customization beyond the dashboard color settings, you can target Aidkit's CSS classes directly to style the form to match your brand.

CSS Classes

All Aidkit elements have CSS classes prefixed with aidkit- to avoid conflicts with your existing styles.

Form Structure

ClassTarget
aidkit-form-containerMain form wrapper
aidkit-form-cardForm card
aidkit-form-headerHeader section
aidkit-form-titleTitle text
aidkit-form-contentContent sections
aidkit-form-footerFooter section

Form Fields

ClassTarget
aidkit-field-topicTopic field wrapper
aidkit-field-severitySeverity field wrapper
aidkit-field-nameName field wrapper
aidkit-field-emailEmail field wrapper
aidkit-field-subjectSubject field wrapper
aidkit-field-messageMessage field wrapper
aidkit-field-servicesServices field wrapper
aidkit-field-customCustom field wrappers

Input Elements

ClassTarget
aidkit-labelForm labels
aidkit-inputText inputs
aidkit-textareaTextarea inputs
aidkit-select-triggerSelect dropdowns
aidkit-select-contentSelect dropdown content
aidkit-select-itemSelect options
aidkit-multi-selectMulti-select component

Media Actions

ClassTarget
aidkit-media-actionsScreenshot/video buttons
aidkit-screenshot-buttonScreenshot button
aidkit-screenshot-iconScreenshot icon wrapper
aidkit-video-recorderVideo recorder component

Input Group

ClassTarget
aidkit-input-groupInput group wrapper
aidkit-input-addonInput addon buttons
aidkit-attachment-buttonFile attachment button
aidkit-dictate-buttonDictation button
aidkit-attachment-previewAttachment preview area

Other Elements

ClassTarget
aidkit-separatorSection separators
aidkit-submit-buttonSubmit button
aidkit-error-messageError message display
aidkit-footer-textFooter text
aidkit-severity-warningSeverity warning banner

Success State

ClassTarget
aidkit-success-containerSuccess state wrapper
aidkit-success-cardSuccess card
aidkit-success-contentSuccess content
aidkit-success-iconSuccess checkmark
aidkit-success-titleSuccess title
aidkit-success-messageSuccess message
aidkit-success-buttonSubmit another button

CSS Variables

Aidkit uses CSS custom properties that you can override. Variables use the HSL color format without the hsl() wrapper:

.aidkit-form-container {
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --primary: 221.2 83.2% 53.3%;
  --primary-foreground: 210 40% 98%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 221.2 83.2% 53.3%;
}
Note

Use HSL values without the hsl() wrapper. For example, use 221.2 83.2% 53.3% instead of hsl(221.2, 83.2%, 53.3%) or hex colors.

Styling Examples

Custom Submit Button

.aidkit-submit-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.aidkit-submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

Custom Form Card

.aidkit-form-card {
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  border: none;
}

Custom Input Styling

.aidkit-input,
.aidkit-textarea {
  border-radius: 8px;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.aidkit-input:focus,
.aidkit-textarea:focus {
  border-color: var(--primary);
}

Dark Mode

For dark mode support, you can override colors based on your dark mode class:

.dark .aidkit-form-container {
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --border: 217.2 32.6% 17.5%;
}