Skip to content

Commit 68d26bd

Browse files
authored
Merge pull request tailwindlabs#39 from tailwindcss/horizontal-colors
Horizontal layout for color palette
2 parents d901363 + 127f84e commit 68d26bd

File tree

2 files changed

+382
-400
lines changed

2 files changed

+382
-400
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<div class="relative my-8 overflow-hidden rounded shadow-md">
2+
<div class="relative shadow bg-{{ $colors['Base']['name'] }} text-{{ $colors['Base']['fg'] }} px-3 py-4 md:py-1 text-sm font-semibold flex justify-between">
3+
<div class="uppercase">{{ $colorName }}</div>
4+
<div class="flex justify-between">
5+
<span class='mr-2'>Base</span>
6+
<span class="font-normal opacity-75">{{ strtoupper($page->config['colors'][$colors['Base']['name']]) }}</span>
7+
</div>
8+
</div>
9+
<div class="md:flex md:flex-row-reverse">
10+
@foreach ($colors as $variant => $color)
11+
<div class="text-{{ $color['fg'] }} bg-{{ $color['name'] }} px-3 py-4 text-sm flex-1 font-semibold leading-tight">
12+
{{-- <div>{{ $colorName }}</div> --}}
13+
<div class="mb-2">{{ $variant }}</div>
14+
<div class="font-normal opacity-75">{{ strtoupper($page->config['colors'][$color['name']]) }}</div>
15+
</div>
16+
@endforeach
17+
</div>
18+
</div>

0 commit comments

Comments
 (0)