Patterns from production · Honest numbers
A price says when it was checked
Checked today, or “may have changed”.
A price says when it was checked
Try the controls to see the rule.
The rule
A price read from someone else’s page shows the day it was checked, and says it may have changed once that is old. It never looks as live as a price we set.
Tokens used
color.text.primarytheme.text.primarycolor.accent.basetheme.accentsize.tap44pxspace.md12pxmotion.duration.base260ms
Native spec · generated from this pattern and the shared token registry
struct OvPriceFreshness: View {
let status: String
@Environment(\.accessibilityReduceMotion) private var reduceMotion
var body: some View {
HStack(spacing: OvScale.spaceMd) {
Text(status).font(.body)
}
.frame(minHeight: OvScale.sizeTap)
.animation(reduceMotion ? .none : .easeOut(duration: OvScale.motionDurationBase), value: status)
}
}
// Tokens: color.text.primary=theme.text.primary, color.accent.base=theme.accent, size.tap=44px, space.md=12px, motion.duration.base=260ms@Composable
fun OvPriceFreshness(status: String, reduceMotion: Boolean) {
Row(
modifier = Modifier.defaultMinSize(minHeight = OvScale.SizeTap),
horizontalArrangement = Arrangement.spacedBy(OvScale.SpaceMd),
) {
Text(status, style = MaterialTheme.typography.bodyMedium)
}
// Apply motion only when !reduceMotion.
}
// Tokens: color.text.primary=theme.text.primary, color.accent.base=theme.accent, size.tap=44px, space.md=12px, motion.duration.base=260ms