mirrored_repositories/dw9_delivery_app/dw9_delivery_app/lib/app/core/ui
import 'package:flutter/material.dart';

class TextStyles {
  static TextStyles? _instance;
  TextStyles._();

  static TextStyles get i {
    _instance ??= TextStyles._();
    return _instance!;
  }

  String get font => 'mplus1';

  TextStyle get textLight => TextStyle(
        fontFamily: font,
        fontWeight: FontWeight.w300,
      );

  TextStyle get textRegular => TextStyle(
        fontFamily: font,
        fontWeight: FontWeight.normal,
      );

  TextStyle get textMedium => TextStyle(
        fontFamily: font,
        fontWeight: FontWeight.w500,
      );

  TextStyle get textSemiBold => TextStyle(
        fontFamily: font,
        fontWeight: FontWeight.w600,
      );

  TextStyle get textBold => TextStyle(
        fontFamily: font,
        fontWeight: FontWeight.bold,
      );

  TextStyle get textExtraBold => TextStyle(
        fontFamily: font,
        fontWeight: FontWeight.w800,
      );

  TextStyle get textButtonLabel => textBold.copyWith(fontSize: 14);

  TextStyle get textTitle => textBold.copyWith(fontSize: 28);
}

extension TextStylesExtensions on BuildContext {
  TextStyles get textStyles => TextStyles.i;
}
