Styledex
← Index

Dashboard Layout

仪表盘布局

stylekitMITDashboard · dashboardProfessional · professionalLight and dark · bothHigh (data-dense) · highBlue · blueMedium · mediumSerif · serifGeneral · general

数据驱动的仪表盘布局,包含侧边导航、顶部工具栏、多模块数据面板和图表区域,适合后台管理系统、数据分析平台和监控面板。

NNorthwind
Product · Pricing
Specimen
Make the work feel finished

One interface, dressed in this style. Compare type, color, radius, and density.

128
Active
4.8
Score
12ms
Edge

Attribution

"Dashboard Layout" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/dashboard-layout @ bfa7da909e86.

https://github.com/AnxForever/stylekit · api/styles/dashboard-layout · bfa7da909e86 · © AnxForever

Do

  • 使用深色侧边导航栏 bg-gray-900 w-64
  • 顶部工具栏包含搜索、通知和用户信息
  • 使用 CSS Grid 排列数据面板 grid grid-cols-4
  • KPI 卡片使用大字号数字展示关键指标
  • 图表区域使用适当比例 aspect-video 或 aspect-square
  • 使用颜色编码区分数据状态(绿增红减)

Don't

  • 禁止侧边栏和内容区比例失调
  • 禁止数据面板间距不一致
  • 禁止忽略加载状态和空状态
  • 禁止所有面板大小完全相同
  • 禁止使用过多的装饰性元素分散注意力

Prompt

用 Dashboard Layout 设计一个电商仪表盘,要求:
1. 侧边栏:概览、订单、商品、客户、分析、设置
2. KPI:总收入、订单数、平均客单价、退货率
3. 主图表:收入趋势折线图(占2/3宽)
4. 辅助图表:商品分类饼图
5. 底部:最近订单表格
6. 所有数字带增长/下降百分比
7. 响应式折叠侧边栏

---
"Dashboard Layout" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/dashboard-layout @ bfa7da909e86.
powered by Styledex — https://styledex.dev

Tokens

DTCG

{
  "$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
  "$description": "Dashboard Layout. \"Dashboard Layout\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/dashboard-layout @ bfa7da909e86.",
  "$extensions": {
    "dev.styledex": {
      "id": "stylekit-dashboard-layout",
      "license": "MIT",
      "attribution": "\"Dashboard Layout\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/dashboard-layout @ bfa7da909e86.",
      "banner": "powered by Styledex — https://styledex.dev"
    }
  },
  "color": {
    "background": {
      "$type": "color",
      "$value": "#f9fafb"
    },
    "foreground": {
      "$type": "color",
      "$value": "#111827"
    },
    "card": {
      "$type": "color",
      "$value": "#f9fafb"
    },
    "card-foreground": {
      "$type": "color",
      "$value": "#111827"
    },
    "primary": {
      "$type": "color",
      "$value": "#111827"
    },
    "primary-foreground": {
      "$type": "color",
      "$value": "#fafaf9"
    },
    "secondary": {
      "$type": "color",
      "$value": "#f9fafb"
    },
    "secondary-foreground": {
      "$type": "color",
      "$value": "#111827"
    },
    "accent": {
      "$type": "color",
      "$value": "#6366f1"
    },
    "accent-foreground": {
      "$type": "color",
      "$value": "#fafaf9"
    },
    "muted": {
      "$type": "color",
      "$value": "#eaebec"
    },
    "muted-foreground": {
      "$type": "color",
      "$value": "#646973"
    },
    "border": {
      "$type": "color",
      "$value": "#d6d7d8"
    },
    "destructive": {
      "$type": "color",
      "$value": "#dc2626"
    },
    "ring": {
      "$type": "color",
      "$value": "#111827"
    }
  },
  "font": {
    "sans": {
      "$type": "fontFamily",
      "$value": [
        "ui-sans-serif",
        "system-ui",
        "sans-serif"
      ]
    },
    "serif": {
      "$type": "fontFamily",
      "$value": [
        "ui-serif",
        "Georgia",
        "serif"
      ]
    },
    "mono": {
      "$type": "fontFamily",
      "$value": [
        "ui-monospace",
        "SFMono-Regular",
        "Menlo",
        "monospace"
      ]
    }
  },
  "radius": {
    "base": {
      "$type": "dimension",
      "$value": "0.5rem"
    }
  },
  "spacing": {
    "base": {
      "$type": "dimension",
      "$value": "1rem"
    }
  },
  "shadow": {
    "base": {
      "$type": "shadow",
      "$value": "0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04)"
    }
  }
}

CSS

/* powered by Styledex — https://styledex.dev */
/* "Dashboard Layout" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/dashboard-layout @ bfa7da909e86. */
:root {
  --background: #f9fafb;
  --foreground: #111827;
  --card: #f9fafb;
  --card-foreground: #111827;
  --primary: #111827;
  --primary-foreground: #fafaf9;
  --secondary: #f9fafb;
  --secondary-foreground: #111827;
  --accent: #6366f1;
  --accent-foreground: #fafaf9;
  --muted: #eaebec;
  --muted-foreground: #646973;
  --border: #d6d7d8;
  --destructive: #dc2626;
  --ring: #111827;
  --radius: 0.5rem;
  --font-sans: ui-sans-serif, system-ui, sans-serif;
  --font-serif: ui-serif, Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --spacing: 1rem;
  --shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}

Tailwind

/* powered by Styledex — https://styledex.dev */
/* "Dashboard Layout" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/dashboard-layout @ bfa7da909e86. */
/** Tailwind theme extend for Dashboard Layout (stylekit-dashboard-layout) */
module.exports = {
  "theme": {
    "extend": {
      "colors": {
        "background": "#f9fafb",
        "foreground": "#111827",
        "card": "#f9fafb",
        "primary": "#111827",
        "primary-foreground": "#fafaf9",
        "secondary": "#f9fafb",
        "accent": "#6366f1",
        "muted": "#eaebec",
        "border": "#d6d7d8",
        "destructive": "#dc2626",
        "ring": "#111827"
      },
      "borderRadius": {
        "lg": "0.5rem"
      },
      "fontFamily": {
        "sans": [
          "ui-sans-serif",
          "system-ui",
          "sans-serif"
        ],
        "serif": [
          "ui-serif",
          "Georgia",
          "serif"
        ],
        "mono": [
          "ui-monospace",
          "SFMono-Regular",
          "Menlo",
          "monospace"
        ]
      },
      "boxShadow": {
        "styledex": "0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04)"
      }
    }
  }
};

shadcn

/* powered by Styledex — https://styledex.dev */
/* "Dashboard Layout" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/dashboard-layout @ bfa7da909e86. */
@layer base {
:root {
  --background: #f9fafb;
  --foreground: #111827;
  --card: #f9fafb;
  --card-foreground: #111827;
  --primary: #111827;
  --primary-foreground: #fafaf9;
  --secondary: #f9fafb;
  --secondary-foreground: #111827;
  --accent: #6366f1;
  --accent-foreground: #fafaf9;
  --muted: #eaebec;
  --muted-foreground: #646973;
  --border: #d6d7d8;
  --destructive: #dc2626;
  --ring: #111827;
  --radius: 0.5rem;
  --font-sans: ui-sans-serif, system-ui, sans-serif;
  --font-serif: ui-serif, Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --spacing: 1rem;
  --shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}
}