BsThemeData constructor
const
BsThemeData({
- required Color primary,
- required Color secondary,
- required Color success,
- required Color danger,
- required Color warning,
- required Color info,
- required Color light,
- required Color dark,
- required Color bodyText,
- required Color bodyTextSecondary,
- required Color bodyTextTertiary,
- required Color emphasisColor,
- required Color bodyBg,
- required Color bodyBgSecondary,
- required Color bodyBgTertiary,
- required Color border,
- required Color borderTranslucent,
- required Color linkColor,
- required Color linkHoverColor,
- required Color primaryTextEmphasis,
- required Color secondaryTextEmphasis,
- required Color successTextEmphasis,
- required Color dangerTextEmphasis,
- required Color warningTextEmphasis,
- required Color infoTextEmphasis,
- required Color lightTextEmphasis,
- required Color darkTextEmphasis,
- required Color primaryBgSubtle,
- required Color secondaryBgSubtle,
- required Color successBgSubtle,
- required Color dangerBgSubtle,
- required Color warningBgSubtle,
- required Color infoBgSubtle,
- required Color lightBgSubtle,
- required Color darkBgSubtle,
- required Color primaryBorderSubtle,
- required Color secondaryBorderSubtle,
- required Color successBorderSubtle,
- required Color dangerBorderSubtle,
- required Color warningBorderSubtle,
- required Color infoBorderSubtle,
- required Color lightBorderSubtle,
- required Color darkBorderSubtle,
- required Color onDark,
- 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,
});