Skip to main content

Design Tokens & Styling Guidelines

BonardaHR uses Tailwind CSS 4 configured with custom @theme variables in src/index.css.


Color Palette​

Token NameHex CodePreviewUsage
--color-primary#097d9f#097d9fPrimary brand color, main CTA buttons, active sidebar links
--color-secondary#065166#065166Darker brand accent, active state highlights
--color-primary-hover#4ccff5#4ccff5Button hover state, interactive highlights
--color-soft#e6f2f5#e6f2f5Light tinted surface backgrounds, subtle cards
--color-base#f0f0f0#f0f0f0Main application canvas background
--color-stroke#cbd5e1#cbd5e1Card and container border strokes
--color-active#34c759#34c759Active employee status indicator
--color-inactive#ff383c#ff383cTerminated employee status, error banners
--color-custom-orange#ff8d28#ff8d28Pending leave requests, warning alerts
--color-custom-green#2d9a6b#2d9a6bApproved status, success badges
--color-draft#825b01#825b01Draft timesheet text
--color-draft-bg#fcedc8#fcedc8Draft timesheet badge background

Typography​

BonardaHR bundles custom self-hosted web fonts under src/assets/fonts/:

  • Title Font (--font-title): Bricolage Grotesque — used for page headers, major section titles, and modal headers.
  • Body & Interface Font (--font-sans): Poppins — used for interface copy, tables, forms, and buttons with weights 300, 400, 500, 600, 700.
/* Using fonts in Tailwind 4 */
.font-sans {
font-family: "Poppins", sans-serif;
}

.font-title {
font-family: "Bricolage", sans-serif;
}