一键导入
subscription-pill-4-tier-color-hierarchy
The 4-tier M3 color system for subscription status pills
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
The 4-tier M3 color system for subscription status pills
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Guidelines for managing Varisankya releases across Beta and Production tracks.
How to safely record extra payments without advancing the Varisankya subscription next due date.
Instructions for extracting the Play Store upload keystore, Firebase JSON, and passwords from Bitwarden.
Standard operating procedure for concluding an AI agent session and ensuring workspace integrity.
Guidelines for compiling Varisankya from the CLI without Android Studio.
How to correctly handle custom dates for extra subscription payments using MaterialDatePicker.
| name | Subscription Pill 4-Tier Color Hierarchy |
| description | The 4-tier M3 color system for subscription status pills |
This skill documents the color hierarchy used for subscription status pills in the app.
| State | Background | Text | Usage |
|---|---|---|---|
| Active | colorPrimary | colorOnPrimary | Any active subscription (Due Today/Tomorrow/Future) |
| Inactive | colorSurfaceVariant | colorOnSurfaceVariant | Paused/Discontinued subscriptions |
| Amount Pill | colorSurfaceContainerHighest | colorOnSurface | Secondary formatting for cost |
app/src/main/java/com/hora/varisankya/SubscriptionAdapter.kt
We moved away from complex urgency gradients to a clean binary state:
if (!subscription.active) {
// INACTIVE
holder.pillContainer.setCardBackgroundColor(surfaceVariant)
holder.daysLeftTextView.setTextColor(onSurfaceVariant)
} else {
// ACTIVE (Uniform Priority)
holder.pillContainer.setCardBackgroundColor(primary)
holder.daysLeftTextView.setTextColor(onPrimary)
}
colorOutlineVariantThe notification window is user-configurable:
val notificationWindow = PreferenceHelper.getNotificationDays(context)
This determines the boundary between Tier 2 and Tier 3.
ThemeHelper.kt - Color resolutionitem_subscription.xml - Pill layoutRoundedProgressView.kt - Progress bar component