UIFont+Theme.swift 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // UIFont+Theme.swift
  3. // Lanu
  4. //
  5. // Created by OneeChan on 2025/11/6.
  6. //
  7. import Foundation
  8. extension UIFont {
  9. static let boldFontName = "Poppins-SemiBold"
  10. static let heading_h1: UIFont = {
  11. .init(name: boldFontName, size: 24)!
  12. }()
  13. static let heading_h1_5: UIFont = {
  14. .init(name: boldFontName, size: 22)!
  15. }()
  16. static let heading_h2: UIFont = {
  17. .init(name: boldFontName, size: 18)!
  18. }()
  19. static let heading_h3: UIFont = {
  20. .init(name: boldFontName, size: 16)!
  21. }()
  22. static let heading_h4: UIFont = {
  23. .init(name: boldFontName, size: 14)!
  24. }()
  25. static let heading_h5: UIFont = {
  26. .init(name: boldFontName, size: 12)!
  27. }()
  28. static let body_xl: UIFont = {
  29. .systemFont(ofSize: 24)
  30. }()
  31. static let body_l: UIFont = {
  32. .systemFont(ofSize: 16)
  33. }()
  34. static let body_m: UIFont = {
  35. .systemFont(ofSize: 14)
  36. }()
  37. static let body_s: UIFont = {
  38. .systemFont(ofSize: 12)
  39. }()
  40. static let body_xs: UIFont = {
  41. .systemFont(ofSize: 11)
  42. }()
  43. static let body_xxs: UIFont = {
  44. .systemFont(ofSize: 8)
  45. }()
  46. }