[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FAYG36FAT6G8ZGSK1XWCEG":3,"skill-same:01M7FAYG36FAT6G8ZGSK1XWCEG":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7FAYG36FAT6G8ZGSK1XWCEG","dashboard-design",null,"Web and App implementation guide for Dashboard Design. Trigger when user wants analytics-focused layouts, data visualization, and modular overview screens.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Ffrontend\u002Fdesign-it\u002Fdashboard-design\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: dashboard-design\ndescription: Web and App implementation guide for Dashboard Design. Trigger when user wants analytics-focused layouts, data visualization, and modular overview screens.\ndate_added: \"2026-06-17\"\nrisk: safe\nsource: self\nsource_type: self\n---\n\n# Dashboard Design\n\n> \"Data at a glance. Organized, scannable, and highly functional.\"\n\n\n## When to Use\nUse this sub-style when the user's request matches the aesthetic described above. This is a child reference of the `design-it` skill and is not meant to be triggered directly.\n\n## Core Principles\n1. **Modular Grid**: The screen is broken down into functional \"widgets\" or cards. Usually a sidebar on the left and a top nav.\n2. **Data Hierarchy**: The most important numbers (KPIs) are large and usually at the top. Charts take up the middle, and lists\u002Ftables are at the bottom.\n3. **Muted Backgrounds**: A soft grey or off-white background so the white data cards stand out clearly.\n\n## Visual DNA\n- **Colors**: **Minimalist Slate** or **Earth-Grounded Elegance**. Avoid too many colors. Use red\u002Fgreen strictly for positive\u002Fnegative trends.\n- **Typography**: Clean, tabular sans-serifs (`Inter`, `Roboto Mono` for numbers).\n- **Styling**: Very subtle shadows or 1px borders to separate cards.\n\n## Web Implementation\n- Use CSS Grid for the macro layout (Sidebar, Header, Main).\n- **CSS Example**:\n```css\nbody {\n  background-color: #F8F9FA;\n  color: #212529;\n  font-family: 'Inter', sans-serif;\n  margin: 0;\n}\n\n.dashboard-layout {\n  display: grid;\n  grid-template-columns: 250px 1fr;\n  grid-template-rows: 70px 1fr;\n  height: 100vh;\n}\n\n.sidebar {\n  grid-row: 1 \u002F 3;\n  background-color: #ffffff;\n  border-right: 1px solid #e9ecef;\n  padding: 20px;\n}\n\n.header {\n  background-color: #ffffff;\n  border-bottom: 1px solid #e9ecef;\n  padding: 0 30px;\n  display: flex;\n  align-items: center;\n}\n\n.main-content {\n  padding: 30px;\n  display: grid;\n  grid-template-columns: repeat(4, 1fr);\n  gap: 20px;\n  overflow-y: auto;\n}\n\n\u002F* KPI Card *\u002F\n.kpi-card {\n  background: #fff;\n  border-radius: 8px;\n  padding: 24px;\n  border: 1px solid #e9ecef;\n  box-shadow: 0 2px 4px rgba(0,0,0,0.02);\n}\n\n.kpi-title { font-size: 0.9rem; color: #6c757d; }\n.kpi-value { font-size: 2rem; font-weight: 700; margin-top: 8px; }\n.kpi-trend.positive { color: #28a745; }\n```\n\n## App Implementation\n\n### SwiftUI\n```swift\nstruct DashboardView: View {\n    \u002F\u002F For iPad\u002FMac, NavigationSplitView is ideal.\n    \u002F\u002F For iPhone, we use a scrolling VGrid.\n    let columns = [\n        GridItem(.adaptive(minimum: 150), spacing: 16)\n    ]\n    \n    var body: some View {\n        NavigationView {\n            ScrollView {\n                LazyVGrid(columns: columns, spacing: 16) {\n                    KPICard(title: \"Revenue\", value: \"$45,231\", trend: \"+12.5%\", isPositive: true)\n                    KPICard(title: \"Active Users\", value: \"2,405\", trend: \"+4.1%\", isPositive: true)\n                    KPICard(title: \"Churn Rate\", value: \"1.2%\", trend: \"-0.4%\", isPositive: false)\n                    KPICard(title: \"Avg. Session\", value: \"4m 12s\", trend: \"+0.1%\", isPositive: true)\n                }\n                .padding()\n                \n                \u002F\u002F Placeholder for Chart\n                RoundedRectangle(cornerRadius: 12)\n                    .fill(Color.white)\n                    .frame(height: 250)\n                    .overlay(Text(\"Chart Area\").foregroundColor(.gray))\n                    .padding(.horizontal)\n            }\n            .background(Color(UIColor.systemGroupedBackground))\n            .navigationTitle(\"Overview\")\n        }\n    }\n}\n\nstruct KPICard: View {\n    let title: String\n    let value: String\n    let trend: String\n    let isPositive: Bool\n    \n    var body: some View {\n        VStack(alignment: .leading, spacing: 8) {\n            Text(title).font(.subheadline).foregroundColor(.secondary)\n            Text(value).font(.title2).fontWeight(.bold)\n            Text(trend)\n                .font(.caption)\n                .fontWeight(.semibold)\n                .foregroundColor(isPositive ? .green : .red)\n        }\n        .padding()\n        .frame(maxWidth: .infinity, alignment: .leading)\n        .background(Color.white)\n        .cornerRadius(12)\n        .shadow(color: Color.black.opacity(0.02), radius: 4, y: 2)\n    }\n}\n```\n- Dashboards require `.adaptive` grids. `LazyVGrid` handles rearranging 4 cards in a row on iPad down to 2 cards on iPhone automatically.\n- Use `Color(UIColor.systemGroupedBackground)` to provide that subtle off-white contrast against stark white cards.\n\n### Flutter\n```dart\nclass DashboardScreen extends StatelessWidget {\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      backgroundColor: const Color(0xFFF8F9FA),\n      appBar: AppBar(\n        title: const Text('Overview', style: TextStyle(color: Colors.black)),\n        backgroundColor: Colors.white,\n        elevation: 1,\n      ),\n      \u002F\u002F On tablets, use a Row with NavigationRail. On mobile, use Drawer.\n      drawer: const Drawer(), \n      body: CustomScrollView(\n        slivers: [\n          SliverPadding(\n            padding: const EdgeInsets.all(16),\n            sliver: SliverGrid.extent(\n              maxCrossAxisExtent: 200, \u002F\u002F Adapts layout based on width\n              mainAxisSpacing: 16,\n              crossAxisSpacing: 16,\n              childAspectRatio: 1.5,\n              children: [\n                _buildKPI('Revenue', '\\$45,231', '+12.5%', true),\n                _buildKPI('Active Users', '2,405', '+4.1%', true),\n                _buildKPI('Churn Rate', '1.2%', '-0.4%', false),\n                _buildKPI('Avg. Session', '4m 12s', '+0.1%', true),\n              ],\n            ),\n          ),\n          SliverPadding(\n            padding: const EdgeInsets.symmetric(horizontal: 16),\n            sliver: SliverToBoxAdapter(\n              child: Container(\n                height: 250,\n                decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(12)),\n                child: const Center(child: Text('Chart Area', style: TextStyle(color: Colors.grey))),\n              ),\n            ),\n          ),\n        ],\n      ),\n    );\n  }\n\n  Widget _buildKPI(String title, String value, String trend, bool isPositive) {\n    return Container(\n      padding: const EdgeInsets.all(16),\n      decoration: BoxDecoration(\n        color: Colors.white,\n        borderRadius: BorderRadius.circular(12),\n        border: Border.all(color: Colors.grey[200]!),\n      ),\n      child: Column(\n        crossAxisAlignment: CrossAxisAlignment.start,\n        mainAxisAlignment: MainAxisAlignment.center,\n        children: [\n          Text(title, style: const TextStyle(color: Colors.grey, fontSize: 14)),\n          const SizedBox(height: 8),\n          Text(value, style: const TextStyle(fontSize: 24, fontWeight: FontWeight.bold)),\n          Text(trend, style: TextStyle(color: isPositive ? Colors.green : Colors.red, fontWeight: FontWeight.w600)),\n        ],\n      ),\n    );\n  }\n}\n```\n- `SliverGrid.extent` with a `maxCrossAxisExtent` is the responsive magic bullet for Flutter dashboards. It handles varying screen widths flawlessly.\n- For charts, the `fl_chart` package is the gold standard in Flutter.\n\n### React Native\n```jsx\nconst DashboardScreen = () => {\n  return (\n    \u003CScrollView style={{ flex: 1, backgroundColor: '#F8F9FA' }}>\n      \u003CView style={{ padding: 16, flexDirection: 'row', flexWrap: 'wrap', gap: 16 }}>\n        \u003CKPICard title=\"Revenue\" value=\"$45,231\" trend=\"+12.5%\" isPositive={true} \u002F>\n        \u003CKPICard title=\"Users\" value=\"2,405\" trend=\"+4.1%\" isPositive={true} \u002F>\n        \u003CKPICard title=\"Churn\" value=\"1.2%\" trend=\"-0.4%\" isPositive={false} \u002F>\n        \u003CKPICard title=\"Session\" value=\"4m 12s\" trend=\"+0.1%\" isPositive={true} \u002F>\n      \u003C\u002FView>\n      \n      \u003CView style={{ paddingHorizontal: 16, paddingBottom: 32 }}>\n        \u003CView style={{ height: 250, backgroundColor: '#FFF', borderRadius: 12, justifyContent: 'center', alignItems: 'center' }}>\n          \u003CText style={{ color: '#999' }}>Chart Area\u003C\u002FText>\n        \u003C\u002FView>\n      \u003C\u002FView>\n    \u003C\u002FScrollView>\n  );\n};\n\nconst KPICard = ({ title, value, trend, isPositive }) => (\n  \u003CView style={{\n    backgroundColor: '#FFF',\n    padding: 16,\n    borderRadius: 8,\n    borderWidth: 1,\n    borderColor: '#E9ECEF',\n    flexBasis: '47%', \u002F\u002F roughly half width minus gap\n    minWidth: 150\n  }}>\n    \u003CText style={{ color: '#6C757D', fontSize: 14, marginBottom: 4 }}>{title}\u003C\u002FText>\n    \u003CText style={{ fontSize: 22, fontWeight: '700', marginBottom: 4 }}>{value}\u003C\u002FText>\n    \u003CText style={{ color: isPositive ? '#28A745' : '#DC3545', fontWeight: '600', fontSize: 12 }}>{trend}\u003C\u002FText>\n  \u003C\u002FView>\n);\n```\n- To make responsive flex grids in React Native, use `flexDirection: 'row'`, `flexWrap: 'wrap'`, and set the children to `flexBasis: '47%'`.\n- For heavy data visualization, look into `victory-native` or `@shopify\u002Freact-native-skia`.\n\n### Jetpack Compose\n```kotlin\n@Composable\nfun DashboardScreen() {\n    Column(\n        modifier = Modifier\n            .fillMaxSize()\n            .background(Color(0xFFF8F9FA))\n            .verticalScroll(rememberScrollState())\n    ) {\n        \u002F\u002F Top App Bar substitute\n        Text(\n            text = \"Overview\",\n            style = MaterialTheme.typography.headlineSmall,\n            fontWeight = FontWeight.Bold,\n            modifier = Modifier.padding(16.dp)\n        )\n\n        \u002F\u002F KPI Grid\n        LazyVerticalGrid(\n            columns = GridCells.Adaptive(minSize = 150.dp),\n            contentPadding = PaddingValues(horizontal = 16.dp),\n            horizontalArrangement = Arrangement.spacedBy(16.dp),\n            verticalArrangement = Arrangement.spacedBy(16.dp),\n            modifier = Modifier.heightIn(max = 400.dp) \u002F\u002F Bound the grid height in scrollview\n        ) {\n            item { KPICard(\"Revenue\", \"$45,231\", \"+12.5%\", true) }\n            item { KPICard(\"Active Users\", \"2,405\", \"+4.1%\", true) }\n            item { KPICard(\"Churn Rate\", \"1.2%\", \"-0.4%\", false) }\n            item { KPICard(\"Avg. Session\", \"4m 12s\", \"+0.1%\", true) }\n        }\n\n        Spacer(Modifier.height(16.dp))\n\n        \u002F\u002F Chart Area\n        Box(\n            modifier = Modifier\n                .fillMaxWidth()\n                .padding(horizontal = 16.dp)\n                .height(250.dp)\n                .background(Color.White, RoundedCornerShape(12.dp))\n                .border(1.dp, Color(0xFFE9ECEF), RoundedCornerShape(12.dp)),\n            contentAlignment = Alignment.Center\n        ) {\n            Text(\"Chart Area\", color = Color.Gray)\n        }\n        \n        Spacer(Modifier.height(32.dp))\n    }\n}\n\n@Composable\nfun KPICard(title: String, value: String, trend: String, isPositive: Boolean) {\n    Column(\n        modifier = Modifier\n            .background(Color.White, RoundedCornerShape(8.dp))\n            .border(1.dp, Color(0xFFE9ECEF), RoundedCornerShape(8.dp))\n            .padding(16.dp)\n    ) {\n        Text(title, color = Color.Gray, fontSize = 14.sp)\n        Spacer(Modifier.height(4.dp))\n        Text(value, fontSize = 22.sp, fontWeight = FontWeight.Bold)\n        Spacer(Modifier.height(4.dp))\n        Text(trend, color = if (isPositive) Color(0xFF28A745) else Color(0xFFDC3545), fontWeight = FontWeight.SemiBold, fontSize = 12.sp)\n    }\n}\n```\n- `GridCells.Adaptive(minSize = 150.dp)` creates the responsive card layout automatically.\n- Warning: Nesting `LazyVerticalGrid` inside a `Column` with `.verticalScroll` can cause height calculation issues. You must use `.heightIn(max=...)` on the grid, or completely convert the entire layout to a single `LazyVerticalGrid` where the chart is just a `GridItemSpan(maxLineSpan)` element.\n\n## Do's and Don'ts\n- **DO**: Right-align numbers in tables so they are easier to scan and compare.\n- **DON'T**: Clutter cards with unnecessary decorative images. The data is the decoration.\n\n## Limitations\n- This is a styling reference and does not replace environment-specific validation, accessibility testing, or expert review.\n- Ensure appropriate contrast ratios and responsive behaviors are verified separately.\n","# Dashboard Design\n\n> \"Data at a glance. Organized, scannable, and highly functional.\"\n\n\n## When to Use\nUse this sub-style when the user's request matches the aesthetic described above. This is a child reference of the `design-it` skill and is not meant to be triggered directly.\n\n## Core Principles\n1. **Modular Grid**: The screen is broken down into functional \"widgets\" or cards. Usually a sidebar on the left and a top nav.\n2. **Data Hierarchy**: The most important numbers (KPIs) are large and usually at the top. Charts take up the middle, and lists\u002Ftables are at the bottom.\n3. **Muted Backgrounds**: A soft grey or off-white background so the white data cards stand out clearly.\n\n## Visual DNA\n- **Colors**: **Minimalist Slate** or **Earth-Grounded Elegance**. Avoid too many colors. Use red\u002Fgreen strictly for positive\u002Fnegative trends.\n- **Typography**: Clean, tabular sans-serifs (`Inter`, `Roboto Mono` for numbers).\n- **Styling**: Very subtle shadows or 1px borders to separate cards.\n\n## Web Implementation\n- Use CSS Grid for the macro layout (Sidebar, Header, Main).\n- **CSS Example**:\n```css\nbody {\n  background-color: #F8F9FA;\n  color: #212529;\n  font-family: 'Inter', sans-serif;\n  margin: 0;\n}\n\n.dashboard-layout {\n  display: grid;\n  grid-template-columns: 250px 1fr;\n  grid-template-rows: 70px 1fr;\n  height: 100vh;\n}\n\n.sidebar {\n  grid-row: 1 \u002F 3;\n  background-color: #ffffff;\n  border-right: 1px solid #e9ecef;\n  padding: 20px;\n}\n\n.header {\n  background-color: #ffffff;\n  border-bottom: 1px solid #e9ecef;\n  padding: 0 30px;\n  display: flex;\n  align-items: center;\n}\n\n.main-content {\n  padding: 30px;\n  display: grid;\n  grid-template-columns: repeat(4, 1fr);\n  gap: 20px;\n  overflow-y: auto;\n}\n\n\u002F* KPI Card *\u002F\n.kpi-card {\n  background: #fff;\n  border-radius: 8px;\n  padding: 24px;\n  border: 1px solid #e9ecef;\n  box-shadow: 0 2px 4px rgba(0,0,0,0.02);\n}\n\n.kpi-title { font-size: 0.9rem; color: #6c757d; }\n.kpi-value { font-size: 2rem; font-weight: 700; margin-top: 8px; }\n.kpi-trend.positive { color: #28a745; }\n```\n\n## App Implementation\n\n### SwiftUI\n```swift\nstruct DashboardView: View {\n    \u002F\u002F For iPad\u002FMac, NavigationSplitView is ideal.\n    \u002F\u002F For iPhone, we use a scrolling VGrid.\n    let columns = [\n        GridItem(.adaptive(minimum: 150), spacing: 16)\n    ]\n    \n    var body: some View {\n        NavigationView {\n            ScrollView {\n                LazyVGrid(columns: columns, spacing: 16) {\n                    KPICard(title: \"Revenue\", value: \"$45,231\", trend: \"+12.5%\", isPositive: true)\n                    KPICard(title: \"Active Users\", value: \"2,405\", trend: \"+4.1%\", isPositive: true)\n                    KPICard(title: \"Churn Rate\", value: \"1.2%\", trend: \"-0.4%\", isPositive: false)\n                    KPICard(title: \"Avg. Session\", value: \"4m 12s\", trend: \"+0.1%\", isPositive: true)\n                }\n                .padding()\n                \n                \u002F\u002F Placeholder for Chart\n                RoundedRectangle(cornerRadius: 12)\n                    .fill(Color.white)\n                    .frame(height: 250)\n                    .overlay(Text(\"Chart Area\").foregroundColor(.gray))\n                    .padding(.horizontal)\n            }\n            .background(Color(UIColor.systemGroupedBackground))\n            .navigationTitle(\"Overview\")\n        }\n    }\n}\n\nstruct KPICard: View {\n    let title: String\n    let value: String\n    let trend: String\n    let isPositive: Bool\n    \n    var body: some View {\n        VStack(alignment: .leading, spacing: 8) {\n            Text(title).font(.subheadline).foregroundColor(.secondary)\n            Text(value).font(.title2).fontWeight(.bold)\n            Text(trend)\n                .font(.caption)\n                .fontWeight(.semibold)\n                .foregroundColor(isPositive ? .green : .red)\n        }\n        .padding()\n        .frame(maxWidth: .infinity, alignment: .leading)\n        .background(Color.white)\n        .cornerRadius(12)\n        .shadow(color: Color.black.opacity(0.02), radius: 4, y: 2)\n    }\n}\n```\n- Dashboards require `.adaptive` grids. `LazyVGrid` handles rearranging 4 cards in a row on iPad down to 2 cards on iPhone automatically.\n- Use `Color(UIColor.systemGroupedBackground)` to provide that subtle off-white contrast against stark white cards.\n\n### Flutter\n```dart\nclass DashboardScreen extends StatelessWidget {\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      backgroundColor: const Color(0xFFF8F9FA),\n      appBar: AppBar(\n        title: const Text('Overview', style: TextStyle(color: Colors.black)),\n        backgroundColor: Colors.white,\n        elevation: 1,\n      ),\n      \u002F\u002F On tablets, use a Row with NavigationRail. On mobile, use Drawer.\n      drawer: const Drawer(), \n      body: CustomScrollView(\n        slivers: [\n          SliverPadding(\n            padding: const EdgeInsets.all(16),\n            sliver: SliverGrid.extent(\n              maxCrossAxisExtent: 200, \u002F\u002F Adapts layout based on width\n              mainAxisSpacing: 16,\n              crossAxisSpacing: 16,\n              childAspectRatio: 1.5,\n              children: [\n                _buildKPI('Revenue', '\\$45,231', '+12.5%', true),\n                _buildKPI('Active Users', '2,405', '+4.1%', true),\n                _buildKPI('Churn Rate', '1.2%', '-0.4%', false),\n                _buildKPI('Avg. Session', '4m 12s', '+0.1%', true),\n              ],\n            ),\n          ),\n          SliverPadding(\n            padding: const EdgeInsets.symmetric(horizontal: 16),\n            sliver: SliverToBoxAdapter(\n              child: Container(\n                height: 250,\n                decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(12)),\n                child: const Center(child: Text('Chart Area', style: TextStyle(color: Colors.grey))),\n              ),\n            ),\n          ),\n        ],\n      ),\n    );\n  }\n\n  Widget _buildKPI(String title, String value, String trend, bool isPositive) {\n    return Container(\n      padding: const EdgeInsets.all(16),\n      decoration: BoxDecoration(\n        color: Colors.white,\n        borderRadius: BorderRadius.circular(12),\n        border: Border.all(color: Colors.grey[200]!),\n      ),\n      child: Column(\n        crossAxisAlignment: CrossAxisAlignment.start,\n        mainAxisAlignment: MainAxisAlignment.center,\n        children: [\n          Text(title, style: const TextStyle(color: Colors.grey, fontSize: 14)),\n          const SizedBox(height: 8),\n          Text(value, style: const TextStyle(fontSize: 24, fontWeight: FontWeight.bold)),\n          Text(trend, style: TextStyle(color: isPositive ? Colors.green : Colors.red, fontWeight: FontWeight.w600)),\n        ],\n      ),\n    );\n  }\n}\n```\n- `SliverGrid.extent` with a `maxCrossAxisExtent` is the responsive magic bullet for Flutter dashboards. It handles varying screen widths flawlessly.\n- For charts, the `fl_chart` package is the gold standard in Flutter.\n\n### React Native\n```jsx\nconst DashboardScreen = () => {\n  return (\n    \u003CScrollView style={{ flex: 1, backgroundColor: '#F8F9FA' }}>\n      \u003CView style={{ padding: 16, flexDirection: 'row', flexWrap: 'wrap', gap: 16 }}>\n        \u003CKPICard title=\"Revenue\" value=\"$45,231\" trend=\"+12.5%\" isPositive={true} \u002F>\n        \u003CKPICard title=\"Users\" value=\"2,405\" trend=\"+4.1%\" isPositive={true} \u002F>\n        \u003CKPICard title=\"Churn\" value=\"1.2%\" trend=\"-0.4%\" isPositive={false} \u002F>\n        \u003CKPICard title=\"Session\" value=\"4m 12s\" trend=\"+0.1%\" isPositive={true} \u002F>\n      \u003C\u002FView>\n      \n      \u003CView style={{ paddingHorizontal: 16, paddingBottom: 32 }}>\n        \u003CView style={{ height: 250, backgroundColor: '#FFF', borderRadius: 12, justifyContent: 'center', alignItems: 'center' }}>\n          \u003CText style={{ color: '#999' }}>Chart Area\u003C\u002FText>\n        \u003C\u002FView>\n      \u003C\u002FView>\n    \u003C\u002FScrollView>\n  );\n};\n\nconst KPICard = ({ title, value, trend, isPositive }) => (\n  \u003CView style={{\n    backgroundColor: '#FFF',\n    padding: 16,\n    borderRadius: 8,\n    borderWidth: 1,\n    borderColor: '#E9ECEF',\n    flexBasis: '47%', \u002F\u002F roughly half width minus gap\n    minWidth: 150\n  }}>\n    \u003CText style={{ color: '#6C757D', fontSize: 14, marginBottom: 4 }}>{title}\u003C\u002FText>\n    \u003CText style={{ fontSize: 22, fontWeight: '700', marginBottom: 4 }}>{value}\u003C\u002FText>\n    \u003CText style={{ color: isPositive ? '#28A745' : '#DC3545', fontWeight: '600', fontSize: 12 }}>{trend}\u003C\u002FText>\n  \u003C\u002FView>\n);\n```\n- To make responsive flex grids in React Native, use `flexDirection: 'row'`, `flexWrap: 'wrap'`, and set the children to `flexBasis: '47%'`.\n- For heavy data visualization, look into `victory-native` or `@shopify\u002Freact-native-skia`.\n\n### Jetpack Compose\n```kotlin\n@Composable\nfun DashboardScreen() {\n    Column(\n        modifier = Modifier\n            .fillMaxSize()\n            .background(Color(0xFFF8F9FA))\n            .verticalScroll(rememberScrollState())\n    ) {\n        \u002F\u002F Top App Bar substitute\n        Text(\n            text = \"Overview\",\n            style = MaterialTheme.typography.headlineSmall,\n            fontWeight = FontWeight.Bold,\n            modifier = Modifier.padding(16.dp)\n        )\n\n        \u002F\u002F KPI Grid\n        LazyVerticalGrid(\n            columns = GridCells.Adaptive(minSize = 150.dp),\n            contentPadding = PaddingValues(horizontal = 16.dp),\n            horizontalArrangement = Arrangement.spacedBy(16.dp),\n            verticalArrangement = Arrangement.spacedBy(16.dp),\n            modifier = Modifier.heightIn(max = 400.dp) \u002F\u002F Bound the grid height in scrollview\n        ) {\n            item { KPICard(\"Revenue\", \"$45,231\", \"+12.5%\", true) }\n            item { KPICard(\"Active Users\", \"2,405\", \"+4.1%\", true) }\n            item { KPICard(\"Churn Rate\", \"1.2%\", \"-0.4%\", false) }\n            item { KPICard(\"Avg. Session\", \"4m 12s\", \"+0.1%\", true) }\n        }\n\n        Spacer(Modifier.height(16.dp))\n\n        \u002F\u002F Chart Area\n        Box(\n            modifier = Modifier\n                .fillMaxWidth()\n                .padding(horizontal = 16.dp)\n                .height(250.dp)\n                .background(Color.White, RoundedCornerShape(12.dp))\n                .border(1.dp, Color(0xFFE9ECEF), RoundedCornerShape(12.dp)),\n            contentAlignment = Alignment.Center\n        ) {\n            Text(\"Chart Area\", color = Color.Gray)\n        }\n        \n        Spacer(Modifier.height(32.dp))\n    }\n}\n\n@Composable\nfun KPICard(title: String, value: String, trend: String, isPositive: Boolean) {\n    Column(\n        modifier = Modifier\n            .background(Color.White, RoundedCornerShape(8.dp))\n            .border(1.dp, Color(0xFFE9ECEF), RoundedCornerShape(8.dp))\n            .padding(16.dp)\n    ) {\n        Text(title, color = Color.Gray, fontSize = 14.sp)\n        Spacer(Modifier.height(4.dp))\n        Text(value, fontSize = 22.sp, fontWeight = FontWeight.Bold)\n        Spacer(Modifier.height(4.dp))\n        Text(trend, color = if (isPositive) Color(0xFF28A745) else Color(0xFFDC3545), fontWeight = FontWeight.SemiBold, fontSize = 12.sp)\n    }\n}\n```\n- `GridCells.Adaptive(minSize = 150.dp)` creates the responsive card layout automatically.\n- Warning: Nesting `LazyVerticalGrid` inside a `Column` with `.verticalScroll` can cause height calculation issues. You must use `.heightIn(max=...)` on the grid, or completely convert the entire layout to a single `LazyVerticalGrid` where the chart is just a `GridItemSpan(maxLineSpan)` element.\n\n## Do's and Don'ts\n- **DO**: Right-align numbers in tables so they are easier to scan and compare.\n- **DON'T**: Clutter cards with unnecessary decorative images. The data is the decoration.\n\n## Limitations\n- This is a styling reference and does not replace environment-specific validation, accessibility testing, or expert review.\n- Ensure appropriate contrast ratios and responsive behaviors are verified separately.\n",{"name":5,"risk":24,"source":25,"date_added":26,"description":7,"source_type":25},"safe","self","2026-06-17","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Ffrontend\u002Fdesign-it\u002Fdashboard-design","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill dashboard-design",{"tool":39,"command":40},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill dashboard-design",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill dashboard-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Ffrontend\u002Fdesign-it\u002Fdashboard-design\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]