Skip to content

CSS Variables

All variables are set on the ats-widget element and inherited by the Shadow DOM.

VariableDefaultDescription
--ats-primary#4DB8A8Primary brand color (buttons, links, active states)
--ats-primary-hoverautoPrimary color on hover — auto-calculated (10% darker than --ats-primary)
--ats-primary-lightautoLight primary background — auto-calculated (10% opacity blend of --ats-primary)

Note: You only need to set --ats-primary. The widget automatically generates the hover and light variants at runtime. You can still override them manually if needed.

VariableDefaultDescription
--ats-text#1a1a1aMain text color
--ats-text-secondary#666666Secondary text (labels, hints)
--ats-text-muted#4a5568Muted text (placeholders, disabled)
VariableDefaultDescription
--ats-background#ffffffMain background
--ats-background-secondary#f5f5f5Secondary background (cards, sections)
VariableDefaultDescription
--ats-error#dc2626Error text and icons
--ats-error-light#fef2f2Error background
--ats-success#16a34aSuccess text and icons
--ats-success-light#f0fdf4Success background
--ats-warning#d97706Warning text and icons
--ats-warning-light#fffbebWarning background
VariableDefaultDescription
--ats-border#e0e0e0Border color
--ats-radius8pxDefault border radius
--ats-radius-lg12pxLarge border radius (cards, modals)
VariableDefaultDescription
--ats-shadow0 1px 3px rgba(0,0,0,0.1)Default shadow
--ats-shadow-lg0 4px 6px rgba(0,0,0,0.1)Elevated shadow
VariableDefaultDescription
--ats-font-family-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serifFont stack
--ats-transition150ms easeDefault transition timing
ats-widget {
/* Only --ats-primary is needed; hover and light are auto-calculated */
--ats-primary: #4DB8A8;
--ats-text: #1a1a1a;
--ats-text-secondary: #666666;
--ats-text-muted: #4a5568;
--ats-background: #ffffff;
--ats-background-secondary: #f5f5f5;
--ats-border: #e0e0e0;
--ats-radius: 8px;
--ats-radius-lg: 12px;
--ats-error: #dc2626;
--ats-error-light: #fef2f2;
--ats-success: #16a34a;
--ats-success-light: #f0fdf4;
--ats-warning: #d97706;
--ats-warning-light: #fffbeb;
--ats-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
--ats-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
--ats-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
--ats-transition: 150ms ease;
}