Styledex
← Index

Magazine Grid

杂志网格布局

stylekitMITBlog · blogDashboard · dashboardProfessional · professionalLight · lightMedium · mediumNeutral · neutralMuted · mutedSerif · 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

"Magazine Grid" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/magazine-grid @ bfa7da909e86.

https://github.com/AnxForever/stylekit · api/styles/magazine-grid · bfa7da909e86 · © AnxForever

Do

  • 使用 CSS Grid 创建复杂网格 grid-template-areas
  • 特色内容使用更大的网格区域 col-span-2 row-span-2
  • 保持基线对齐和一致的间距
  • 使用不同大小的内容块创造层次
  • 移动端转为单列或简化网格
  • 添加清晰的分类标签和时间戳
  • 考虑广告位的预留空间
  • 所有文章卡片使用 group 类触发子元素联动

Don't

  • 禁止所有内容块大小相同
  • 禁止忽略移动端布局适配
  • 禁止内容过于拥挤无留白
  • 禁止分类标签不一致
  • 禁止忽略图片裁切比例
  • 禁止对正文段落施加任何位移动画(阅读稳定性优先)
  • 禁止标题 hover 使用发光或阴影效果(应直接切换颜色,干脆利落)

Prompt

Create a news homepage with magazine grid:
1. 4-column grid on desktop, 2 on tablet, 1 on mobile
2. Featured story spanning 2x2 with image overlay
3. Regular articles in grid with thumbnail, category, title
4. Category tabs: All, Politics, Tech, Business, Sports
5. Breaking news banner at top
6. Load more button at bottom
7. Sidebar with trending stories (optional)
Clean, professional news design with red accent

---
"Magazine Grid" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/magazine-grid @ bfa7da909e86.
powered by Styledex — https://styledex.dev

Tokens

DTCG

{
  "$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
  "$description": "Magazine Grid. \"Magazine Grid\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/magazine-grid @ bfa7da909e86.",
  "$extensions": {
    "dev.styledex": {
      "id": "stylekit-magazine-grid",
      "license": "MIT",
      "attribution": "\"Magazine Grid\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/magazine-grid @ bfa7da909e86.",
      "banner": "powered by Styledex — https://styledex.dev"
    }
  },
  "color": {
    "background": {
      "$type": "color",
      "$value": "#ffffff"
    },
    "foreground": {
      "$type": "color",
      "$value": "#18181b"
    },
    "card": {
      "$type": "color",
      "$value": "#ffffff"
    },
    "card-foreground": {
      "$type": "color",
      "$value": "#18181b"
    },
    "primary": {
      "$type": "color",
      "$value": "#1a1a1a"
    },
    "primary-foreground": {
      "$type": "color",
      "$value": "#fafaf9"
    },
    "secondary": {
      "$type": "color",
      "$value": "#fafafa"
    },
    "secondary-foreground": {
      "$type": "color",
      "$value": "#18181b"
    },
    "accent": {
      "$type": "color",
      "$value": "#e63946"
    },
    "accent-foreground": {
      "$type": "color",
      "$value": "#fafaf9"
    },
    "muted": {
      "$type": "color",
      "$value": "#f0f0f0"
    },
    "muted-foreground": {
      "$type": "color",
      "$value": "#69696b"
    },
    "border": {
      "$type": "color",
      "$value": "#dbdbdb"
    },
    "destructive": {
      "$type": "color",
      "$value": "#dc2626"
    },
    "ring": {
      "$type": "color",
      "$value": "#1a1a1a"
    }
  },
  "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 */
/* "Magazine Grid" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/magazine-grid @ bfa7da909e86. */
:root {
  --background: #ffffff;
  --foreground: #18181b;
  --card: #ffffff;
  --card-foreground: #18181b;
  --primary: #1a1a1a;
  --primary-foreground: #fafaf9;
  --secondary: #fafafa;
  --secondary-foreground: #18181b;
  --accent: #e63946;
  --accent-foreground: #fafaf9;
  --muted: #f0f0f0;
  --muted-foreground: #69696b;
  --border: #dbdbdb;
  --destructive: #dc2626;
  --ring: #1a1a1a;
  --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 */
/* "Magazine Grid" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/magazine-grid @ bfa7da909e86. */
/** Tailwind theme extend for Magazine Grid (stylekit-magazine-grid) */
module.exports = {
  "theme": {
    "extend": {
      "colors": {
        "background": "#ffffff",
        "foreground": "#18181b",
        "card": "#ffffff",
        "primary": "#1a1a1a",
        "primary-foreground": "#fafaf9",
        "secondary": "#fafafa",
        "accent": "#e63946",
        "muted": "#f0f0f0",
        "border": "#dbdbdb",
        "destructive": "#dc2626",
        "ring": "#1a1a1a"
      },
      "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 */
/* "Magazine Grid" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/magazine-grid @ bfa7da909e86. */
@layer base {
:root {
  --background: #ffffff;
  --foreground: #18181b;
  --card: #ffffff;
  --card-foreground: #18181b;
  --primary: #1a1a1a;
  --primary-foreground: #fafaf9;
  --secondary: #fafafa;
  --secondary-foreground: #18181b;
  --accent: #e63946;
  --accent-foreground: #fafaf9;
  --muted: #f0f0f0;
  --muted-foreground: #69696b;
  --border: #dbdbdb;
  --destructive: #dc2626;
  --ring: #1a1a1a;
  --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);
}
}