TermosTextStyles class

Text styles for code (Fira Code) and prose. Built from TermosColors.

Fonts are referenced by family name only — the consuming app is responsible for providing them (e.g. via google_fonts or bundled assets).

Constructors

TermosTextStyles({required TextStyle terminalHeader(Color color), required TextStyle navLabel({required Color color, required bool selected}), required TextStyle sectionTitle(Color color), required TextStyle body(Color color), required TextStyle codePrimary(Color color), required TextStyle switchLabel(Color color), required TextStyle timePickerWheel(Color color, {required double fontSize}), required TextStyle timePickerColon(Color color, {required double fontSize})})
const

Properties

body TextStyle Function(Color color)
Body text (Inter 14).
final
codePrimary TextStyle Function(Color color)
Code primary (Fira Code 14).
final
hashCode int
The hash code for this object.
no setterinherited
Bottom nav labels (Fira Code 13).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sectionTitle TextStyle Function(Color color)
Section titles (Outfit 18).
final
switchLabel TextStyle Function(Color color)
ON/OFF label inside TermosSwitch (Fira Code 14, w700).
final
terminalHeader TextStyle Function(Color color)
Primary button / label (Fira Code 14, w500).
final
timePickerColon TextStyle Function(Color color, {required double fontSize})
Colon separator inside TermosTimePicker (Fira Code, bold).
final
timePickerWheel TextStyle Function(Color color, {required double fontSize})
Drum wheel digits inside TermosTimePicker (Fira Code, w600).
final

Methods

lerp(TermosTextStyles other, double t) TermosTextStyles
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromColors(TermosColors colors) TermosTextStyles