{"data":{"slug":"discovered-5cd5dfaf0ada323a94db7cc62a29f44c508356c636ea30ff","title":"Nexio UI Design Language (Source-Tested Version)","summary":"A UI design language for NexioSchedule, based on real source code from the Miuix component library and custom components. It includes design tokens, spacing, typography, and component guidelines for building interfaces in the Nexio\/NexioSchedule style.","url":"https:\/\/skillshunter.net\/skills\/discovered-5cd5dfaf0ada323a94db7cc62a29f44c508356c636ea30ff","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-5cd5dfaf0ada323a94db7cc62a29f44c508356c636ea30ff","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-5cd5dfaf0ada323a94db7cc62a29f44c508356c636ea30ff.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-5cd5dfaf0ada323a94db7cc62a29f44c508356c636ea30ff\/download","category":{"slug":"product-design","name":"Product & Design"},"editor_note":"Before writing any interface, read the 'Pitfall Checklist' in the skill document. All values are derived from the current source code, and hardcoding colors or dimensions is not allowed, except for the unified theme blue button color `Color(0xFF0A84FF)`. Ensure that the `AppDarkTheme` or `ThemeController` is used for managing light\/dark themes.","instructions":"---\nname: nexio-ui\ndescription: >-\n  Nexio \u8bfe\u7a0b\u8868\uff08NexioSchedule\uff09UI \u8bbe\u8ba1\u8bed\u8a00\u2014\u2014\u4ee5\u9879\u76ee\u771f\u5b9e\u6e90\u7801\uff08Miuix \u7ec4\u4ef6\u5e93 + \u81ea\u7814\u7ec4\u4ef6\uff09\u5b9e\u6d4b\u4e3a\u57fa\u51c6\u7684\u89c4\u8303\uff1a\n  \u5355\u4f4d\u4f53\u7cfb\uff08MiuixTheme \/ 20dp \u8fde\u7eed\u5706\u89d2\u5361 \/ SmallTitle \u5206\u7ec4\uff09\u3001\u8bbe\u7f6e\u9875\u7ec4\u4ef6\u5e93\uff08SwitchPreference \/ BasicComponent \/\n  ArrowPreference \/ OverlayDropdownMenu \/ CardExpand\uff09\u3001\u80f6\u56ca\u6309\u94ae\u4f53\u7cfb\u3001\u884c\u5185\u8f93\u5165\u4e0e\u63a9\u7801\u5b57\u6bb5\u3001\u6de1\u5165\u6e10\u53d8\u52a8\u6548\n  \uff08\u9ad8\u5ea6 spring + \u6de1\u5165 180ms + \u6a21\u7cca 12dp \u8fdb\u6162\u51fa\u5feb\uff09\u3001\u67d4\u5149\u73bb\u7483\u78e8\u7802\uff08GlassBackdrop \/ SoftGlassSurface \/\n  AGSL \u7740\u8272\u5668 + \u58c1\u7eb8\u7eb9\u7406\uff09\u3001\u5168\u5c40 Text \u7ec4\u4ef6\u6df1\u8272\u5751\u3001\u89e6\u611f\u53cd\u9988\u3002\u51e1\u6d89\u53ca Nexio\/NexioSchedule \u754c\u9762\u5f00\u53d1\u6216\u590d\u523b\u3001\n  \u7528\u6237\u8bf4\u300cNexio \u98ce\u683c\u300d\u300c\u7167 Nexio \u6539\u300d\u300c\u8bfe\u7a0b\u8868 App UI\u300d\u300cMiuix \u98ce\u683c\u8bbe\u7f6e\u9875\u300d\u300c\u6db2\u6001\u73bb\u7483\u300d\u300c\u67d4\u5149\u73bb\u7483\u300d\u300c\u78e8\u7802\u5361\u7247\u300d\uff0c\n  \u6216\u8981\u5728\u8be5\u5de5\u7a0b\u91cc\u65b0\u589e\u9875\u9762\/\u7ec4\u4ef6\u65f6\u4f7f\u7528\u3002\u4e0e fruit-flavor-design\uff08HIG \u603b\u7eb2\uff09\u5171\u7528\u65f6\u4ee5\u672c skill \u7684\u5b9e\u6d4b\u53d6\u503c\u4e3a\u51c6\u3002\n---\n\n# Nexio UI \u8bbe\u8ba1\u8bed\u8a00\uff08\u6e90\u7801\u5b9e\u6d4b\u7248\uff09\n\n\u57fa\u51c6\u4ed3\u5e93\uff1a`NexioSchedule`\uff08https:\/\/github.com\/suiren0219\/NexioSchedule\uff0c\u5206\u652f `feat\/island-auth-local-mcp` \u5b9e\u6d4b\uff09\u3002\n\u4e09\u5c42\u7ed3\u6784\uff1a`miuix\/`\uff08Miuix \u7ec4\u4ef6\u5e93\uff0cApache-2.0 \u4e0a\u6e38 + \u5b9a\u5236\uff09\u2192 `ui-shared\/`\uff08\u8de8\u5e73\u53f0\u9875\u9762\u4e0e\u81ea\u7814\u7ec4\u4ef6\uff09\u2192 \u5e73\u53f0\u5bbf\u4e3b\uff08androidApp \/ desktopApp \/ ios \/ ohos\uff09\u3002\n**\u5199\u4efb\u4f55\u754c\u9762\u4e4b\u524d\u5148\u8bfb\u672c\u6587\u4ef6\u7684\u300c\u5751\u6e05\u5355\u300d**\uff1b\u6240\u6709\u53d6\u503c\u90fd\u6765\u81ea\u5f53\u524d\u6e90\u7801\uff0c\u4e0d\u8981\u51ed\u611f\u89c9\u53d1\u660e\u5c3a\u5bf8\u3002\n\n## 1. \u8bbe\u8ba1\u7406\u5ff5\n\nMIUI \u8bbe\u7f6e\u9875\u7684\u9aa8\u67b6 \u00d7 iOS \u7ea7\u7684\u7ec6\u8282\uff1a\u5206\u7ec4\u5c0f\u6807\u9898 + \u8fde\u7eed\u5706\u89d2\u5361\u7247 + \u884c\u5185\u53f3\u5bf9\u9f50\u8f93\u5165 + \u6781\u6de1\u7684\u6309\u94ae\u8986\u76d6\u5e95 + \u5168\u94fe\u8def\u52a8\u6548\uff08\u9ad8\u5ea6 spring \u8865\u95f4\u3001\u6362\u5b57\u6a21\u7cca\u8fc7\u6e21\u3001\u5c55\u5f00\u65f6\u5185\u5bb9\u4ece\u6a21\u7cca\u6563\u5c3d\u5230\u6e05\u6670\uff09\u3002\u6df1\u6d45\u8272\u3001\u5e73\u677f\u3001\u73bb\u7483\u964d\u7ea7\u90fd\u662f\u4e00\u7b49\u516c\u6c11\u3002\n\n## 2. Design Tokens\uff08\u5b9e\u6d4b\u503c\uff09\n\n### 2.1 \u989c\u8272\uff08\u4e00\u5f8b\u4ece `MiuixTheme.colorScheme` \u53d6\uff0c\u4e0d\u786c\u7f16\u7801\uff09\n\n| \u69fd\u4f4d | \u7528\u9014 |\n| --- | --- |\n| `surface` | \u9875\u9762\u80cc\u666f |\n| `surfaceContainer` \/ `onSurfaceContainer` | \u5361\u7247\u5e95 \/ \u5361\u4e0a\u5185\u5bb9\uff08Card \u9ed8\u8ba4\u8272\uff09 |\n| `onSurface` | \u884c\u6807\u9898\u3001\u6b63\u6587\u4e3b\u8272 |\n| `onSurfaceVariantSummary` | \u6458\u8981\u3001\u8f85\u52a9\u8bf4\u660e\u3001hint\uff0813\u201314sp \u7070\u5b57\uff09 |\n| `onSurfaceVariantActions` | \u6b21\u7ea7\u56fe\u5f62\/\u5206\u9694\u7ebf\u57fa\u8272\uff08\u5206\u9694\u7ebf = \u5b83 `copy(alpha = 0.1f)`\uff09 |\n| `primary` | \u5f3a\u8c03\u3001\u7f16\u53f7\u3001\u6210\u529f\u6001\u3001\u5149\u6807 |\n| `error` | \u5931\u8d25\u6001\u6587\u5b57 |\n| `disabledSecondaryVariant` \/ `disabledOnSecondaryVariant` | TextButton \u7981\u7528\u5e95\/\u5b57\uff08\u89c1 \u00a76 \u5751\uff09 |\n\n\u6df1\u6d45\u8272\u7531 `AppDarkTheme` \/ `ThemeController` \u7ba1\u7406\uff1b**\u9875\u9762\u4ee3\u7801\u6c38\u8fdc\u53ea\u5199\u4e3b\u9898\u69fd\u4f4d**\uff0c\u7981\u6b62 `Color(0xFF\u2026)`\uff08\u552f\u4e00\u4f8b\u5916\uff1a\u4e3b\u9898\u84dd\u4e3b\u6309\u94ae `Color(0xFF0A84FF)`\uff0c\u5168\u5de5\u7a0b\u7edf\u4e00\u503c\uff09\u3002\n\n### 2.2 \u5b57\u53f7\uff08`MiuixTheme.textStyles`\uff09\n\n| style | sp | \u5178\u578b\u7528\u9014 |\n| --- | --- | --- |\n| `headline1` | 17 | \u504f\u597d\u9879\u6807\u9898\uff08BasicComponent \u5185\u90e8\u5df2\u7528\uff09 |\n| `subtitle` | 14 Bold | SmallTitle\uff08\u5916\u90e8\u518d\u53e0 `Medium`\uff09 |\n| `body1` | 16 | \u6b63\u6587 |\n| `body2` | 14 | \u504f\u597d\u9879\u6458\u8981\u3001\u6309\u94ae\u884c\u8bf4\u660e |\n| `footnote1` | 13 | \u8f85\u52a9\u8bf4\u660e\u3001\u9690\u79c1\u63d0\u793a\u3001\u5de5\u5177\u63cf\u8ff0 |\n| `footnote2` | 11 | \u6700\u5c0f\u6ce8\u811a |\n| `button` | 17 | TextButton \u9ed8\u8ba4\u5b57\uff08\u80f6\u56ca\u5c0f\u6309\u94ae\u8981\u663e\u5f0f\u8986\u76d6\uff09 |\n\n\u9875\u9762\u624b\u5199 Text \u7684\u5bb6\u65cf\u53e3\u5f84\uff1a\u6807\u9898 17sp\/Medium\u3001\u6458\u8981 14sp\u3001\u8f85\u52a9 13sp\u3001\u7f16\u53f7 14sp\/Medium \u4e3b\u8272\u3002\n\n### 2.3 \u95f4\u8ddd\u4e0e\u5706\u89d2\n\n- \u9875\u9762\u6c34\u5e73\u7559\u767d\uff1a\u624b\u673a 16dp \/ \u5e73\u677f\uff08`isTabletWidth()`\uff0920dp\u3002\n- \u5361\u7247\u95f4\u8ddd `SECTION_GAP = 12dp`\uff08\u5404\u9875 private val\uff09\u3002\n- \u8bbe\u7f6e\u884c\u5185\u8fb9\u8ddd\uff1a\u6c34\u5e73 16dp\u3001\u5782\u76f4 14dp\uff1b\u504f\u597d\u884c\u6700\u5c0f\u9ad8 56dp\uff08`BasicComponentDefaults`\uff09\u3002\n- `Card` \u9ed8\u8ba4\u5706\u89d2 **20dp**\uff08`continuousSurface` \u8fde\u7eed\u5706\u89d2\uff09\uff0c`CardDefaults.InsideMargin = 0.dp`\u2014\u2014**\u5361\u7247\u5185\u4e00\u5f8b\u81ea\u5df1\u63a7 padding**\uff08\u9875\u9996\u6ce8\u91ca\u539f\u6587\uff1a\u300c\u5361\u7247\u5185\u90e8\u4e00\u5f8b\u81ea\u5df1\u63a7 padding\uff08insideMargin = 0\uff09\u300d\uff09\u3002\n- \u6309\u94ae\uff1a\u6b21\u7ea7\u80f6\u56ca `cornerRadius = 100.dp`\uff1bCard \u9ad8\u5ea6\u53d8\u5316\u7531 Card \u81ea\u5e26 spring \u8865\u95f4\uff08`CardDefaults.SizeAnimation`\uff0cdampingRatio 0.9 \/ StiffnessMediumLow\uff0c\u9996\u5e27\u4e0d\u64ad\uff09\u3002\n\n### 2.4 \u9875\u9762\u9876\u90e8\u7559\u767d\uff08`pageTopExtra`\uff0c\u552f\u4e00\u6765\u6e90\uff09\n\n| \u9875\u9762\u6700\u4e0a\u65b9\u662f | \u5e73\u677f | \u624b\u673a |\n| --- | --- | --- |\n| SmallTitle\uff08\u5206\u7ec4\u5c0f\u6807\u9898\uff09 | 12dp | 0 |\n| \u5361\u7247 \/ \u63a7\u4ef6\uff08\u65e0\u5c0f\u6807\u9898\uff09 | 24dp | 12dp |\n\n\u26a0 \u6709\u5c0f\u6807\u9898\u7684\u9875\u9762\u5fc5\u987b\u4f20 `hasSmallTitle = true`\uff0c\u4f20\u9519\u4f1a\u591a\u51fa\u4e00\u622a\u7a7a\u767d\u3002\n\n## 3. \u9875\u9762\u9aa8\u67b6\uff08\u7167\u6284\u8fd9\u6bb5\uff09\n\n```kotlin\nScaffold(topBar = {}) { paddingValues ->\n    Column(\n        modifier = Modifier\n            .fillMaxSize()\n            .overScrollVertical()\n            .scrollEndHaptic(hapticFeedbackType = HapticFeedbackType.TextHandleMove)\n            .collapsibleTopInset(scrollBehavior)\n            .then(scrollBehavior?.let { Modifier.nestedScroll(it.nestedScrollConnection) } ?: Modifier)\n            .verticalScroll(rememberScrollState())\n            .padding(\n                start = horizontalPadding, end = horizontalPadding,\n                top = paddingValues.calculateTopPadding() +\n                    CollapsibleTopAppBarDefaults.CollapsedHeight +\n                    pageTopExtra(isTablet, hasSmallTitle = true),\n                bottom = 120.dp,          \/\/ \u5217\u8868\u9875 120\uff1b\u666e\u901a\u8bbe\u7f6e\u9875\u4e5f\u89c1 60\n            ),\n    ) { \/* SmallTitle + Card \u5e8f\u5217 *\/ }\n}\n```\n\n\u957f\u5217\u8868\u7528 `LazyColumn(contentPadding = \u2026, verticalArrangement = Arrangement.spacedBy(12.dp))`\uff1b\u82e5\u5361\u7247\u7684\u6761\u4ef6\u5185\u5bb9\u4f1a\u6574\u4f53\u6536\u8d77\uff0c\u6539\u7528 `Arrangement.Top` + \u6bcf\u5361 `padding(bottom = 12.dp)`\uff08\u7a7a item \u4e5f\u5360\u4f4d\u7684\u95ee\u9898\uff09\u3002\n\n## 4. \u8bbe\u7f6e\u9875\u7ec4\u4ef6\u5e93\n\n\u5206\u7ec4 = `SmallTitle(text = \u2026)` + `Card(fillMaxWidth, insideMargin = 0.dp)`\uff0c\u5361\u5185\u591a\u884c\u7528 0.5dp \u4f4e\u5bf9\u6bd4\u5206\u9694\u7ebf\uff1a\n\n```kotlin\nHorizontalDivider(\n    modifier = Modifier.padding(horizontal = 16.dp),\n    thickness = 0.5.dp,\n    color = theme.onSurfaceVariantActions.copy(alpha = 0.1f),\n)\n```\n\n| \u7ec4\u4ef6 | \u7528\u9014 | \u8981\u70b9 |\n| --- | --- | --- |\n| `SwitchPreference(checked, onCheckedChange, title, summary, enabled)` | \u5f00\u5173\u884c | \u70b9\u6574\u884c\u5373\u5207\u6362\uff1b\u7981\u7528\u6001\u7531 `enabled` \u8868\u8fbe |\n| `BasicComponent(title, summary, endActions = { \u2026 })` | \u53ea\u8bfb\u5c55\u793a\u884c | title 17sp\/Medium\u3001summary 14sp \u81ea\u52a8\uff1b`endActions` \u653e\u53f3\u4fa7\u80f6\u56ca\u6309\u94ae |\n| `ArrowPreference(title, summary, endActions, onClick, holdDownState)` | \u8fdb\u5165\u4e0b\u4e00\u9875 | \u81ea\u5e26 ArrowRight |\n| `OverlayDropdownMenu(title, summary, entry = DropdownEntry(items), collapseOnSelection, liquidGlassBackdrop, dropdownColors)` | \u4e0b\u62c9\u9009\u62e9 | \u5361\u5185\u76f4\u63a5\u653e\uff1b\u73bb\u7483\u9875\u628a backdrop \u4f20\u5165 |\n| `CardExpand(visible) { \u2026 }` | \u5361\u5185\u6761\u4ef6\u5185\u5bb9\u5c55\u5f00\/\u6536\u8d77 | \u89c1 \u00a78 \u52a8\u6548\uff1b\u5361\u5185\u552f\u4e00\u6b63\u786e\u59ff\u52bf |\n| `FeatureRow(title, summary, onClick)` | \u529f\u80fd\u5165\u53e3\u884c | title 17sp\/Medium + summary 13sp + ArrowRight\uff08\u5404\u9875\u79c1\u6709\u5b9e\u73b0\uff09 |\n| `BasicComponent` + `StatusPill` | \u72b6\u6001\u884c | \u5de6\u6807\u9898\/\u6458\u8981\uff0c\u53f3\u72b6\u6001\u80f6\u56ca\uff08\u5907\u4efd\u4e2d\u5fc3\u8303\u672c\uff09 |\n\n\u4e00\u884c\u5361\u5185\u653e\u300c\u5f00\u5173 + \u5c55\u793a\u884c + \u5b57\u6bb5\u300d\u65f6\uff1a`SwitchPreference \u2192 Divider \u2192 BasicComponent \u2192 Divider \u2192 \u5b57\u6bb5 \u2192 \u8bf4\u660e\u6587\u5b57`\uff0c\u8bf4\u660e\u6587\u5b57 `padding(horizontal = 16.dp).padding(bottom = 14.dp)`\u3002\n\n## 5. \u6309\u94ae\u4f53\u7cfb\n\n```kotlin\n\/\/ \u6b21\u7ea7\u80f6\u56ca\uff08\u590d\u5236\/\u4fdd\u5b58\/\u53d6\u6d88\uff09\uff1a\u9ed8\u8ba4\u8272 = \u767d\/\u9ed1 6% \u900f\u660e\u8986\u76d6\nTextButton(\n    text = \u2026, onClick = \u2026,\n    minWidth = 64.dp, minHeight = 36.dp,\n    insideMargin = PaddingValues(horizontal = 16.dp, vertical = 0.dp),\n    cornerRadius = 100.dp,\n)\n\n\/\/ \u4e3b\u84dd\u80f6\u56ca\uff08\u6d4b\u8bd5\u8fde\u63a5\/\u4e0a\u4f20\/\u786e\u8ba4\uff09\uff1a\u5168\u5de5\u7a0b\u7edf\u4e00 0xFF0A84FF\nTextButton(\n    \u2026,\n    colors = ButtonDefaults.textButtonColorsPrimary(\n        color = Color(0xFF0A84FF), textColor = Color.White,\n    ),\n    cornerRadius = 100.dp, minWidth = 76.dp, minHeight = 36.dp,\n    insideMargin = PaddingValues(horizontal = 20.dp, vertical = 0.dp),\n)\n```\n\n- TextButton \u9ed8\u8ba4\u5b57\u53f7 17sp\u2014\u2014\u653e\u8fdb\u884c\u5185\u7684\u5c0f\u6309\u94ae\u8981 `minWidth\/minHeight + insideMargin(horizontal, vertical = 0)` \u538b\u6241\u3002\n- \u4e3b\u84dd\u7981\u7528\u6001\u81ea\u52a8\u53d8 `disabledPrimaryButton`\uff0c\u4e0d\u8981\u624b\u52a8\u6539\u900f\u660e\u5ea6\u3002\n\n### \u26a0 \u7981\u7528\u6001\u5e95\u8272\u5751\uff08\u5b9e\u6d4b\u8e29\u8fc7\uff09\n\n`textButtonColors()` \u7684 enabled \u5e95 = `Color.White\/Black \u00d7 alpha 0.06f`\uff08\u51e0\u4e4e\u900f\u660e\uff09\uff0c**disabled \u5e95 = \u5b9e\u5fc3\u7070 `disabledSecondaryVariant` \u4e14\u4e0d\u518d\u4e58 alpha**\uff08Button.kt\uff1a`bgColor = color.copy(alpha); disabledBgColor = disabledColor`\uff09\u3002\u7a7a\u503c\u5b57\u6bb5\u65c1\u7684\u7981\u7528\u6309\u94ae\u5728\u6df1\u8272\u4e0b\u4f1a\u53d8\u6210\u7a81\u5140\u5b9e\u7070\u5757\u3002\u7edf\u4e00\u624b\u6cd5\uff1a\n\n```kotlin\nval dimBackground = if (theme.background.luminance() < 0.5f)\n    Color.White.copy(alpha = 0.06f) else Color.Black.copy(alpha = 0.06f)\nTextButton(\u2026, colors = ButtonDefaults.textButtonColors(disabledColor = dimBackground))\n```\n\n\u5e95\u8272\u4e0e\u53ef\u7528\u6001\u4e00\u81f4\u3001\u4ec5\u6587\u5b57\u4fdd\u6301 `disabledTextColor` \u53d8\u6de1\u3002\n\n## 6. \u8f93\u5165\u4f53\u7cfb\n\n```kotlin\n\/\/ \u884c\u5185\u8f93\u5165\uff08\u65e0\u63a9\u7801\u5b57\u6bb5\uff09\uff1a\u5de6\u6807\u7b7e + \u53f3\u5bf9\u9f50\u65e0\u8fb9\u6846\u8f93\u5165\uff08\u300c\u6dfb\u52a0\u8bfe\u7a0b\u300d\u5f39\u7a97\u540c\u6b3e\uff09\nRow(Modifier.fillMaxWidth().padding(start = 16.dp, end = 16.dp, top = 14.dp, bottom = 14.dp),\n    verticalAlignment = Alignment.CenterVertically) {\n    Text(label, fontSize = 17.sp, fontWeight = FontWeight.Medium, color = theme.onSurface)\n    NativeTextField(\n        value, onValueChange,\n        modifier = Modifier.weight(1f).padding(start = 16.dp),\n        hint = hint, singleLine = true, textAlign = TextAlign.End,\n        textStyle = TextStyle(fontSize = 17.sp, fontWeight = FontWeight.Medium),\n    )\n}\n```\n\n\u5e26\u63a9\u7801\u7684\u79c1\u5bc6\u5b57\u6bb5\u7528\u5de5\u7a0b\u73b0\u6210\u7ec4\u4ef6 `com.haooz.chedule.ui.components.PrivateSettingField`\uff08label \u5de6\u3001\u80f6\u56ca\u300c\u663e\u793a\/\u590d\u5236\u300d\u53f3\u3001`BasicTextField + PasswordVisualTransformation` \u53f3\u5bf9\u9f50\uff1b30 \u79d2 \/ \u8f93\u5165\u6846\u5931\u7126 \/ \u7a97\u53e3\u5931\u7126 \/ \u7981\u7528\u81ea\u52a8\u91cd\u63a9\u7801\uff1b\u590d\u5236\u8d70\u5bbf\u4e3b\u56de\u8c03\u5e76\u63d0\u793a\u526a\u8d34\u677f\u654f\u611f\uff09\u3002**\u4e0d\u8981**\u7ed9 NativeTextField \u5916\u9762\u5305\u5e95\u6846\uff08\u9875\u9996\u6ce8\u91ca\uff1a\u300c\u4e0d\u7528\u5e26\u5e95\u6846\u7684 NativeMiuixTextField\uff0c\u907f\u514d\u5361\u7247\u91cc\u518d\u5957\u4e00\u5c42\u5361\u7247\u300d\uff09\uff1bWebDav \u9875\u7684 `fillMaxWidth(0.65f)` \u662f\u53e6\u4e00\u65cf\u53d8\u4f53\u3002\n\n## 7. \u5168\u5c40\u6587\u5b57\u7ec4\u4ef6\uff08\u6df1\u8272\u9ed1\u5b57\u5751\uff09\n\n\u5de5\u7a0b\u6709\u4e24\u4efd\u540c\u7b7e\u540d\u7684\u5168\u5c40 `Text`\uff0c**call-site \u6362 import \u5373\u53ef\u5207\u6362**\uff1a\n\n| \u5305 | \u9ed8\u8ba4 style | \u7ed3\u8bba |\n| --- | --- | --- |\n| `com.haooz.chedule.ui.components.text.miuix.Text` | `MiuixTheme.textStyles.main`\uff0ccolor Unspecified \u56de\u9000 Miuix \u4e3b\u9898 | \u2705 \u65b0\u9875\u9762\u4e00\u5f8b\u7528\u5b83 |\n| `com.haooz.chedule.ui.components.text.material.Text` | M3 `LocalTextStyle.current` | \u26a0 \u5728 Miuix \u6df1\u8272\u4e3b\u9898\u4e0b\u4e0d\u8ddf\u968f \u2192 **\u6807\u9898\u9ed1\u5b57**\uff08\u4e0a\u6e38 AI \u9875\u5728\u7528\uff0c\u6bcf\u884c\u90fd\u663e\u5f0f\u4f20 color \u624d\u5b89\u5168\uff09 |\n\n\u65b0\u9875\u9762\u5199\u6cd5\uff1a`import com.haooz.chedule.ui.components.text.miuix.Text`\uff0c\u4e14\u6bcf\u884c\u4ecd\u663e\u5f0f `color = theme.onSurface` \/ `onSurfaceVariantSummary`\u3002\u4e24\u4efd\u90fd\u4f1a\u53e0\u52a0 `TextMotionBox` \u6362\u5b57\u6a21\u7cca\u8fc7\u6e21\uff08\u89c1 \u00a78\uff09\u3002\n\n\u6587\u6848\u5168\u90e8\u8d70 `L(\u4e2d\u6587, English)` \u53cc\u8bed\u5bf9\u8c61\uff08\u5982 `McpStr` \/ `ReminderStr`\uff09\uff0c\u975e Composable \u4e0a\u4e0b\u6587\u7684\u6309\u8c03\u7528\u65f6\u523b\u8bed\u8a00\u53d6\u503c\u3002\n\n## 8. \u52a8\u6548\u7cfb\u7edf\uff08\u6de1\u5165\u6e10\u53d8\uff09\n\n### 8.1 \u5361\u5185\u6761\u4ef6\u5185\u5bb9\uff1a`CardExpand`\uff08\u5168\u7ad9\u552f\u4e00\u59ff\u52bf\uff09\n\n```\n\u5c55\u5f00\uff1a\u9ad8\u5ea6 0\u2192\u5b9e\u9645\uff08spring\uff0c\u7ea6 260~320ms\uff09 + \u6de1\u5165 180ms + \u6a21\u7cca 12dp\u21920\uff08420ms\uff0c\u6bd4\u9ad8\u5ea6\u665a\u6563\u5c3d\uff09\n\u6536\u8d77\uff1a\u5185\u5bb9\u538b\u5230 0\uff08\u540c spring\uff09 + \u6de1\u51fa 180ms + \u6a21\u7cca 0\u219212dp\uff08160ms\uff0c\u6bd4\u9ad8\u5ea6\u5148\u7cca\u6ee1\uff09\n```\n\n\u53c2\u6570\u96c6\u4e2d\u5728 `CardExpandSpec`\uff08`HeightSpring = CardDefaults.SizeAnimation`\u3001`FADE_MILLIS = 180`\u3001`BLUR_DP = 12f`\u3001`BLUR_IN_MILLIS = 420`\u3001`BLUR_OUT_MILLIS = 160`\uff09\u2014\u2014\u8fdb\u6162\u51fa\u5feb\u662f\u523b\u610f\u7684\u3002\u5b9e\u73b0\u8981\u70b9\uff08\u81ea\u5df1\u5199\u7c7b\u4f3c\u52a8\u6548\u65f6\u5fc5\u987b\u9075\u5b88\uff09\uff1a\n\n- **\u4e0d\u7528 `animateContentSize` \u5305 Card**\uff1a\u5b83\u8865\u95f4\u5360\u4f4d\u5c3a\u5bf8\u3001\u5185\u5bb9\u6309\u6700\u7ec8\u5c3a\u5bf8\u7ed8\u5236\uff0c\u300c\u6536\u4e0d\u56de\u53bb\u300d\uff1b\u9ad8\u5ea6\u53d8\u5316\u5fc5\u987b `AnimatedVisibility` \u81ea\u5df1\u7b97\u3002\n- \u6de1\u5165\u6de1\u51fa**\u4e0d\u8d70 enter\/exit**\uff08\u5e38\u9a7b graphicsLayer \u4f1a\u7f69\u4f4f\u8d85\u957f\u5185\u5bb9\u5bfc\u81f4\u4e0b\u534a\u5c4f\u89e6\u6478\u5931\u6548\uff09\uff0c\u6539\u7531 `derivedStateOf { transition.currentState != transition.targetState }` \u53ea\u5728\u52a8\u753b\u671f\u4e34\u65f6\u6302 layer\u3002\n- \u6a21\u7cca = `BlurEffect(px, px, TileMode.Decal)`\uff0c\u5148\u5224 `isRenderEffectSupported()`\uff1b\u7ed8\u5236\u671f\u8bfb\u52a8\u753b\u503c\uff0c\u7ec4\u5408\u671f\u4e0d\u8bfb \u2192 \u96f6\u91cd\u7ec4\u3002\n- **AnimatedVisibility \u5185\u5fc5\u987b\u518d\u5305\u4e00\u5c42 Column**\uff1a\u5b83\u6309\u5355\u5b50\u5185\u5bb9\u8bbe\u8ba1\uff0c\u591a\u5b50\u9879\u4f1a\u88ab\u5168\u90e8 place \u5230 (0,0) \u53e0\u6210\u4e00\u884c\u3002\n- \u7eaf\u81ea\u7ed8\u5bb9\u5668\uff08\u975e miuix Card\uff09\u7684\u5c3a\u5bf8\u53d8\u5316\u7528 `Modifier.cardContentSize()`\uff08\u540c\u4e00\u6761 spring\uff09\u3002\n- \u540c\u4e00\u6bb5\u5185\u5bb9\u53ea\u7528\u4e00\u79cd\u673a\u5236\uff0c`CardExpand` \u5957 `cardContentSize` = \u300c\u52a8\u753b\u7684\u52a8\u753b\u300d\u53d1\u8089\u3002\n\n### 8.2 \u6362\u5b57\u52a8\u6548\n\n- miuix \u504f\u597d\u884c\u5185\u7684\u6587\u5b57\u7ecf `MotionAwareText`\uff1a\u5bbf\u4e3b\u6ce8\u518c\u4e86\u6362\u5b57\u52a8\u6548\u5c31\u5e26\u6a21\u7cca\u8fc7\u6e21\uff0c\u5426\u5219\u539f\u6837 `Text`\uff1b\u53ea\u7528\u4e8e\u975e\u7528\u6237\u9010\u5b57\u8f93\u5165\u7684\u6587\u6848\u3002\n- \u5168\u5c40 `Text`\uff08miuix\/material \u4e24\u4efd\uff09\u5185\u90e8\u90fd\u5305 `TextMotionBox(key = text)`\uff1a\u6587\u5b57\u88ab\u6539\u5199\u65f6\u53e0\u52a0\u6a21\u7cca\u805a\u7126\u8fc7\u6e21\u3002\n\n### 8.3 \u89e6\u611f\u4e0e\u6309\u538b\n\n- \u5f00\u5173\/\u786e\u8ba4 `HapticFeedbackType.Confirm`\uff1b\u4e0b\u62c9\u9009\u62e9 `VirtualKey`\uff1b\u5217\u8868\u6eda\u5230\u5e95 `TextHandleMove`\uff08`scrollEndHaptic`\uff09\u3002\n- \u53ef\u70b9\u884c\u652f\u6301 `holdDownState = true`\uff08\u6309\u4f4f\u89c6\u89c9\u9a7b\u7559\uff09\uff0c\u5f39\u7a97\u6253\u5f00\u524d\u5e38\u914d\u300cdialog \u72b6\u6001 + holdDownState\u300d\u3002\n\n## 9. \u67d4\u5149\u73bb\u7483 \/ \u78e8\u7802\u8d28\u611f\n\n\u73bb\u7483\u4f53\u7cfb\u5728 `com.haooz.softglass.*` \u5e93\uff08\u5e73\u53f0\u5b9e\u73b0 AGSL\/SkSL \u7740\u8272\u5668 + \u58c1\u7eb8\u7eb9\u7406\u91c7\u6837\uff09\uff0c\u9875\u9762\u5c42\u53ea\u78b0\u4e09\u4e2a\u4e1c\u897f\uff1a\n\n1. **\u9875\u9762\u53c2\u6570\u6ce8\u5165**\uff1a`liquidGlassBackdrop: GlassBackdrop? = null` \u7531\u8def\u7531\u5c42\uff08AppRoutes\uff09\u521b\u5efa\u5e76\u4f20\u5165\u9875\u9762\uff1b\u9875\u9762\u53ea\u8d1f\u8d23\u628a\u5b83\u7ee7\u7eed\u4f20\u7ed9\u73bb\u7483\u5316\u7684\u5b50\u7ec4\u4ef6\uff08\u4e0b\u62c9\u3001\u6309\u94ae\u3001\u5e95\u680f\uff09\u3002\n2. **\u73bb\u7483\u4e0a\u7684\u4e0b\u62c9**\uff1a`liquidGlassBackdrop != null` \u65f6\u5fc5\u987b\u7528\u900f\u660e\u5bb9\u5668\uff0c\u8ba9 backdrop \u900f\u51fa\u6765\uff1a\n\n```kotlin\nval dropdownColors = if (liquidGlassBackdrop != null)\n    DropdownDefaults.dropdownColors(containerColor = Color.Transparent, selectedContainerColor = Color.Transparent)\nelse DropdownDefaults.dropdownColors()\n```\n\n3. **\u5361\u7247\u7ea7\u78e8\u7802**\uff1a`SoftGlassSurface.modifier(density, origin = () -> Offset, radiusPx, redraw)`\u2014\u2014\u9875\u9762\u7ea7\u5171\u4eab\u4e00\u4efd\uff08\u8bfe\u8868\/\u4eca\u65e5\u5404\u4e00\u4efd\uff0c\u6837\u5f0f\u4e92\u4e0d\u5f71\u54cd\uff09\uff1b\u53ea\u51c6\u5907\u58c1\u7eb8\u7eb9\u7406 + \u5750\u6807\u6620\u5c04\uff0c\u62d6\u6a21\u7cca\/\u6539\u5916\u89c2\u53c2\u6570\u53ea\u91cd\u704c uniform\uff0c\u4e0d\u91cd\u70d8\u7119\u3002shader \u4e0d\u53ef\u7528\u6216\u65e0\u58c1\u7eb8\u65f6\u8fd4\u56de null\uff0c**\u6240\u6709\u9762\u677f\u9000\u56de\u7eaf\u8272\u8868\u9762**\uff08\u964d\u7ea7\u662f\u5e38\u6001\u8def\u5f84\uff0c\u4e0d\u662f\u5f02\u5e38\uff09\u3002\n\n\u5176\u5b83\u516c\u5f00\u4ef6\uff1a`GlassPreset.Default.style`\uff08`SoftGlassStyle`\uff0c\u5de5\u7a0b\u522b\u540d `ScheduleSoftGlassStyle`\/`TodaySoftGlassStyle`\uff09\u3001`SOFT_GLASS_LIVE_SHADER`\uff08\u6db2\u6001\u73bb\u7483\u6d3b\u4f53\u7740\u8272\u5668\uff0c`LiquidGlassTextButton`\/`LiquidTopBarButton`\/`CapsuleSegmentedControl`\/\u5e95\u680f\u90fd\u7528\u5b83\uff09\u3001\u62d6\u62fd\u624b\u611f\u5e38\u91cf `GlassDragStretchRatio` \/ `GlassDragTranslationDamping`\uff08\u5b9a\u4e49\u5728 miuix \u73bb\u7483\u6863\u4f4d\uff09\u3002\u8bbe\u7f6e\u91cc\u7684\u300c\u5e94\u7528\u6750\u8d28\u6548\u679c\u300d\u6863\u4f4d\u5207\u6362\u73bb\u7483\u6837\u5f0f\uff1b**\u7ed9\u73bb\u7483\u63a7\u4ef6\u5199\u6837\u5f0f\u65f6\u6c38\u8fdc\u8d70\u6837\u5f0f\u5bf9\u8c61\uff0c\u4e0d\u6563\u843d\u786c\u7f16\u7801\u6a21\u7cca\u534a\u5f84**\u3002\n\n## 10. \u9a8c\u6536\u6e05\u5355\n\n- [ ] \u6df1\u8272\uff1a\u6240\u6709\u6587\u5b57\/\u5206\u9694\u7ebf\/\u6309\u94ae\u5e95\u8272\u8ddf\u968f\u4e3b\u9898\uff08\u65e0\u9ed1\u5b57\u3001\u65e0\u7a81\u5140\u5b9e\u7070\u7981\u7528\u5757\uff09\n- [ ] \u5e73\u677f 20dp \/ \u624b\u673a 16dp \u8fb9\u8ddd\uff1b`pageTopExtra` \u53e3\u5f84\u4e0e\u9875\u9762\u9996\u5143\u7d20\u5339\u914d\n- [ ] \u5361\u5185\u6761\u4ef6\u5185\u5bb9\u7528 `CardExpand` \u6536\u653e\u81ea\u5982\uff08\u4e0d\u662f\u300c\u7a7a\u767d\u5728\u7f29\u300d\uff09\n- [ ] \u6309\u94ae\u7981\u7528\u6001\uff1a\u5e95\u8272\u4e0e\u53ef\u7528\u6001\u4e00\u81f4\u3001\u6587\u5b57\u53d8\u6de1\n- [ ] \u73bb\u7483\u9875\uff1a\u65e0\u58c1\u7eb8\/\u65e0 shader \u65f6\u9000\u56de\u7eaf\u8272\u8868\u9762\u53ef\u7528\n- [ ] \u89e6\u611f\uff1a\u5f00\u5173 Confirm\u3001\u4e0b\u62c9 VirtualKey\n- [ ] \u5168\u90e8\u6587\u6848\u53cc\u8bed `L(\u4e2d, en)`\n\n## 11. \u76f8\u5173\u6e90\u7801\u7d22\u5f15\uff08\u76f8\u5bf9\u4ed3\u5e93\u6839\uff09\n\n```\nmiuix\/\u2026\/basic\/{Card,BasicComponent(Component),Button,SmallTitle,MotionAwareText}.kt\nmiuix\/\u2026\/preference\/{SwitchPreference,ArrowPreference}.kt\nmiuix\/\u2026\/theme\/{Colors,TextStyles,AppDarkTheme,ThemeController}.kt\nui-shared\/\u2026\/components\/{CardExpand,SoftGlassSurface,PrivateSettingField,PageTopSpacing}.kt\nui-shared\/\u2026\/components\/text\/{miuix\/Text.kt,material\/Text.kt,TextMotionBox}\nui-shared\/\u2026\/glass\/SoftGlassAliases.kt\nui-shared\/\u2026\/screens\/{AiFeaturesScreen,McpServiceScreen,CloudMcpSection}.kt\uff08\u9875\u9762\u8303\u672c\uff09\nui-shared\/\u2026\/activities\/{WebDavSettingsScreen,BackupCenterScreen}.kt\uff08\u591a\u5b57\u6bb5\u5361\/\u72b6\u6001\u884c\u8303\u672c\uff09\n```\n","use_cases":["Developing or replicating Nexio\/NexioSchedule-style interfaces","Creating new pages or components within the NexioSchedule project","Implementing settings pages with Miuix-style components","Designing interfaces with soft glass, frosted glass, and blur effects"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/suiren0219\/ui-skills\/blob\/667948be054f8dc3d7de5f963f383a5c8e483fb5\/nexio-ui\/SKILL.md","source_commit":"667948be054f8dc3d7de5f963f383a5c8e483fb5","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:57:04.000000Z","updated_at":"2026-11-29T10:53:53.000000Z","seo_title":"Nexio UI Design Language - Source-Tested for NexioSchedule","seo_description":"A comprehensive UI design language for NexioSchedule, based on real source code from Miuix and custom components. Includes design tokens, spacing, typography, and best-pr","seo_keywords":["Nexio UI","NexioSchedule UI","Miuix component library","soft glass design","frosted glass UI","Nexio-style interface","CardExpand animation","Nexio UI design tokens"]}}