iOS/Sources/Shared/DesignSystem/DesignSystem.swift
Bruno Pantaleão Gonçalves 7372b1f15c
Create new onboarding folders, DesignSystem file and adjust welcome screen (#3684)
<!-- Thank you for submitting a Pull Request and helping to improve Home
Assistant. Please complete the following sections to help the processing
and review of your changes. Please do not delete anything from this
template. -->

## Summary
<!-- Provide a brief summary of the changes you have made and most
importantly what they aim to achieve -->

## Screenshots
<!-- If this is a user-facing change not in the frontend, please include
screenshots in light and dark mode. -->
![CleanShot 2025-06-30 at 14 14
15@2x](https://github.com/user-attachments/assets/14fd74a7-7849-435e-b41c-00613edf4946)

## Link to pull request in Documentation repository
<!-- Pull requests that add, change or remove functionality must have a
corresponding pull request in the Companion App Documentation repository
(https://github.com/home-assistant/companion.home-assistant). Please add
the number of this pull request after the "#" -->
Documentation: home-assistant/companion.home-assistant#

## Any other notes
<!-- If there is any other information of note, like if this Pull
Request is part of a bigger change, please include it here. -->
2025-06-30 18:45:30 +02:00

42 lines
1.5 KiB
Swift

import Foundation
import SwiftUICore
public enum DesignSystem {
// TODO: Use HA design system font sizes when ready
public enum Font {
/// Large Title (34pt)
public static let largeTitle: SwiftUICore.Font = .largeTitle
/// Title (28pt)
public static let title: SwiftUICore.Font = .title
/// Title2 (22pt)
public static let title2: SwiftUICore.Font = .title2
/// Title3 (20pt)
public static let title3: SwiftUICore.Font = .title3
/// Headline (17pt, semibold)
public static let headline: SwiftUICore.Font = .headline
/// Subheadline (15pt)
public static let subheadline: SwiftUICore.Font = .subheadline
/// Body (17pt)
public static let body: SwiftUICore.Font = .body
/// Callout (16pt)
public static let callout: SwiftUICore.Font = .callout
/// Footnote (13pt)
public static let footnote: SwiftUICore.Font = .footnote
/// Caption (12pt)
public static let caption: SwiftUICore.Font = .caption
/// Caption2 (11pt)
public static let caption2: SwiftUICore.Font = .caption2
}
public enum Spaces {
public static let half: CGFloat = 4
public static let one: CGFloat = 8
public static let oneAndHalf: CGFloat = 12
public static let two: CGFloat = 16
public static let three: CGFloat = 24
public static let four: CGFloat = 32
public static let five: CGFloat = 40
public static let six: CGFloat = 48
}
}