组件 容器 容器组件

容器组件

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

预览

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>

相关组件

容器组件

用于电子商务的响应式 Material Design 容器,具有柔和的色彩、深色模式支持和使用 Tailwind CSS 的复杂交互式元素。

打开

玻璃化容器组件

一种带有三元色方案的响应式玻璃摩尔风格容器组件,专为作品集设计。支持深色模式。

打开

容器组件

一个用于仪表板的极简容器组件,使用具有深色模式支持的 Tailwind CSS。

打开