defaultStyle top-level property
Style
get
defaultStyle
Implementation
Style get defaultStyle => Style.create([
$.outerContainer.color.black(),
// $.innerContainer.color.transparent(),
$.contentContainer.padding.all(40),
// $.contentContainer.color(Colors.yellow),
$.textStyle.as(baseTextStyle),
$.headings.textStyle.as(headingTextStyle),
$.h1.textStyle.fontSize(96),
$.h1.padding.bottom(12),
$.h2.textStyle.fontSize(72),
$.h2.padding.bottom(9),
$.h3.textStyle.fontSize(48),
$.h3.padding.bottom(6),
$.h4.textStyle.fontSize(36),
$.h4.padding.bottom(4),
$.h5.textStyle.fontSize(24),
$.h5.padding.bottom(3),
$.h6.textStyle.as(baseTextStyle),
$.h6.padding.bottom(3),
$.paragraph.textStyle.as(baseTextStyle),
$.paragraph.padding.bottom(12),
$.link.color(Colors.blue),
$.list.textStyle.as(baseTextStyle),
$.list.item.as(baseTextStyle),
$.list.itemMarker.as(baseTextStyle),
$.list.itemMarkerTrailingSpace(12),
$.list.itemMinIndent(12),
$.table.textStyle.as(baseTextStyle),
$.table.head.as(baseTextStyle.copyWith(fontWeight: FontWeight.bold)),
$.table.body.as(baseTextStyle),
$.blockSpacing(20),
$.table.cellPadding.all(12),
$.table.border.all(color: Colors.grey, width: 2),
$.table.rowDecoration.color(Colors.grey.withOpacity(0.1)),
$.code.span.as(monoTextStyle),
$.code.padding.all(24),
$.code.decoration.color(const Color.fromARGB(255, 23, 23, 23)),
$.code.decoration.borderRadius.circular(10),
$.blockquote.textStyle.as(serifTextStyle),
$.blockquote.textStyle.fontSize(32),
$.blockquote.padding.bottom(12),
$.blockquote.contentPadding.left(30),
$.blockquote.decoration.border.left.color(Colors.grey),
$.blockquote.decoration.border.left.width(4),
$.divider.height(1),
$.divider.color(Colors.grey),
$.divider.thickness(2),
$.image.fit.cover(),
]);