组件 容器 容器组件

容器组件

一种响应式暗黑模式内容容器,具有简单的灰度设计。

预览

HTML 代码

<div class="container mx-auto p-4 dark:bg-gray-900 bg-white text-gray-800 dark:text-gray-200 rounded-lg shadow-lg">
  <h1 class="text-2xl font-bold mb-4 text-center">Blog Post Title</h1>
  <img src="https://picsum.photos/seed/unsplash/800/400" alt="Blog Post Image" class="w-full h-auto rounded-md mb-4">
  <div class="prose dark:prose-invert max-w-none">
    <p>This is an example of a blog post content paragraph within the container. It demonstrates a simple layout for reading and content consumption in dark mode.</p>
    <p>The container is designed to be responsive and uses Tailwind CSS classes for styling, including dark mode support with the <code class="language-text">dark:</code> prefix.</p>
    <p>Grayscale colors are used for a clean and minimalist look.</p>
  </div>
</div>

相关组件

Neumorphic 电子商务产品卡

一张简单、响应式的电子商务产品卡,具有灰度的中构设计风格,支持深色模式。

打开

Material Design 电子商务容器

一个响应式电子商务容器组件,具有产品网格、购物车摘要和深色主题支持,使用 Material Design 原则和大地色调配色方案设计。它具有多个交互式元素,包括带有图像、标题、价格和“添加到购物车”按钮的产品卡,以及随添加商品而更新的粘性购物车摘要。布局会针对不同的屏幕大小进行调整,并且所有元素都具有使用 Tailwind CSS dark: 前缀定义的深色模式样式。

打开

容器组件

用于电子商务的响应式容器组件,支持深色模式

打开