BsThemeData constructor

const BsThemeData({
  1. required Color primary,
  2. required Color secondary,
  3. required Color success,
  4. required Color danger,
  5. required Color warning,
  6. required Color info,
  7. required Color light,
  8. required Color dark,
  9. required Color bodyText,
  10. required Color bodyTextSecondary,
  11. required Color bodyTextTertiary,
  12. required Color emphasisColor,
  13. required Color bodyBg,
  14. required Color bodyBgSecondary,
  15. required Color bodyBgTertiary,
  16. required Color border,
  17. required Color borderTranslucent,
  18. required Color linkColor,
  19. required Color linkHoverColor,
  20. required Color primaryTextEmphasis,
  21. required Color secondaryTextEmphasis,
  22. required Color successTextEmphasis,
  23. required Color dangerTextEmphasis,
  24. required Color warningTextEmphasis,
  25. required Color infoTextEmphasis,
  26. required Color lightTextEmphasis,
  27. required Color darkTextEmphasis,
  28. required Color primaryBgSubtle,
  29. required Color secondaryBgSubtle,
  30. required Color successBgSubtle,
  31. required Color dangerBgSubtle,
  32. required Color warningBgSubtle,
  33. required Color infoBgSubtle,
  34. required Color lightBgSubtle,
  35. required Color darkBgSubtle,
  36. required Color primaryBorderSubtle,
  37. required Color secondaryBorderSubtle,
  38. required Color successBorderSubtle,
  39. required Color dangerBorderSubtle,
  40. required Color warningBorderSubtle,
  41. required Color infoBorderSubtle,
  42. required Color lightBorderSubtle,
  43. required Color darkBorderSubtle,
  44. required Color onDark,
  45. required Color onLight,
})

Creates a BsThemeData instance with the given Bootstrap-specific colors.

Implementation

const BsThemeData({
  // ── Main Semantic Colors ────────────────────────────────────────────
  required this.primary,
  required this.secondary,
  required this.success,
  required this.danger,
  required this.warning,
  required this.info,
  required this.light,
  required this.dark,

  // ── Body Text ─────────────────────────────────────────────────────────
  // --bs-body-color           → bodyText
  // --bs-secondary-color      → bodyTextSecondary   (.text-body-secondary)
  // --bs-tertiary-color       → bodyTextTertiary    (.text-body-tertiary)
  // --bs-emphasis-color       → emphasisColor       (.text-body-emphasis)
  required this.bodyText,
  required this.bodyTextSecondary,
  required this.bodyTextTertiary,
  required this.emphasisColor,

  // ── Body Backgrounds ──────────────────────────────────────────────────
  // --bs-body-bg              → bodyBg
  // --bs-secondary-bg         → bodyBgSecondary
  // --bs-tertiary-bg          → bodyBgTertiary
  required this.bodyBg,
  required this.bodyBgSecondary,
  required this.bodyBgTertiary,

  // ── Borders ───────────────────────────────────────────────────────────
  // --bs-border-color         → border
  // --bs-border-color-translucent → borderTranslucent
  required this.border,
  required this.borderTranslucent,

  // ── Links ─────────────────────────────────────────────────────────────
  required this.linkColor,
  required this.linkHoverColor,

  // ── Text Emphasis (for Alerts, Badges, etc.) ───────────────────────────
  // --bs-{color}-text-emphasis
  required this.primaryTextEmphasis,
  required this.secondaryTextEmphasis,
  required this.successTextEmphasis,
  required this.dangerTextEmphasis,
  required this.warningTextEmphasis,
  required this.infoTextEmphasis,
  required this.lightTextEmphasis,
  required this.darkTextEmphasis,

  // ── Subtle Backgrounds (for Alerts, Badges, etc.) ──────────────────────
  // --bs-{color}-bg-subtle
  required this.primaryBgSubtle,
  required this.secondaryBgSubtle,
  required this.successBgSubtle,
  required this.dangerBgSubtle,
  required this.warningBgSubtle,
  required this.infoBgSubtle,
  required this.lightBgSubtle,
  required this.darkBgSubtle,

  // ── Subtle Borders ────────────────────────────────────────────────────
  // --bs-{color}-border-subtle
  required this.primaryBorderSubtle,
  required this.secondaryBorderSubtle,
  required this.successBorderSubtle,
  required this.dangerBorderSubtle,
  required this.warningBorderSubtle,
  required this.infoBorderSubtle,
  required this.lightBorderSubtle,
  required this.darkBorderSubtle,
  required this.onDark,
  required this.onLight,
});