import SwiftUI /// Colors for the part of a heading that is status rather than prose: org's `TODO` and /// `DONE` keywords. /// /// The defaults are deliberately semantic rather than literal. A package cannot know the /// palette of the app embedding it, and picking concrete hues — green for done, orange for /// todo — puts colors on screen that belong to no design system and match nothing around /// them. Apps pass their own. public struct OrgKeywordStyle: Sendable { public var todo: Color public var done: Color public init(todo: Color = .secondary, done: Color = .secondary) { self.todo = todo self.done = done } /// The keyword's color, or nil for a keyword that is neither. func color(for keyword: String) -> Color { keyword == "DONE" ? done : todo } }