Flutter Color Palette Swatch Card with Shade Scale
A color palette card showing four Wind color families across five shades each, the utility-first token scale at a glance. Built entirely from Wind className strings with dark mode built in.
WDiv(
className: 'max-w-sm w-full mx-auto p-6 rounded-3xl bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 shadow-xl',
children: [
WDiv(
className: 'flex flex-row items-center justify-between w-full mb-6',
children: [
WDiv(
className: 'flex flex-col',
children: [
WText(
'Color palette',
className: 'text-gray-900 dark:text-white text-lg font-bold'
),
WText(
'Utility-first tokens',
className: 'text-gray-500 dark:text-gray-400 text-xs'
),
],
),
WDiv(
className: 'px-3 py-1 rounded-full bg-indigo-50 dark:bg-indigo-950',
child: WText(
'Wind',
className: 'text-indigo-600 dark:text-indigo-300 text-xs font-semibold'
),
),
],
),
WDiv(
className: 'w-full mb-4',
children: [
WText(
'Indigo',
className: 'text-gray-700 dark:text-gray-200 text-sm font-semibold mb-2'
),
WDiv(
className: 'flex flex-row gap-2 w-full',
children: [
WDiv(
className: 'flex-1 h-10 rounded-lg bg-indigo-300 dark:bg-indigo-300',
children: []
),
WDiv(
className: 'flex-1 h-10 rounded-lg bg-indigo-400 dark:bg-indigo-400',
children: []
),
WDiv(
className: 'flex-1 h-10 rounded-lg bg-indigo-500 dark:bg-indigo-500',
children: []
),
WDiv(
className: 'flex-1 h-10 rounded-lg bg-indigo-600 dark:bg-indigo-600',
children: []
),
WDiv(
className: 'flex-1 h-10 rounded-lg bg-indigo-700 dark:bg-indigo-700',
children: []
),
],
),
],
),
WDiv(
className: 'w-full mb-4',
children: [
WText(
'Emerald',
className: 'text-gray-700 dark:text-gray-200 text-sm font-semibold mb-2'
),
WDiv(
className: 'flex flex-row gap-2 w-full',
children: [
WDiv(
className: 'flex-1 h-10 rounded-lg bg-emerald-300 dark:bg-emerald-300',
children: []
),
WDiv(
className: 'flex-1 h-10 rounded-lg bg-emerald-400 dark:bg-emerald-400',
children: []
),
WDiv(
className: 'flex-1 h-10 rounded-lg bg-emerald-500 dark:bg-emerald-500',
children: []
),
WDiv(
className: 'flex-1 h-10 rounded-lg bg-emerald-600 dark:bg-emerald-600',
children: []
),
WDiv(
className: 'flex-1 h-10 rounded-lg bg-emerald-700 dark:bg-emerald-700',
children: []
),
],
),
],
),
WDiv(
className: 'w-full mb-4',
children: [
WText(
'Amber',
className: 'text-gray-700 dark:text-gray-200 text-sm font-semibold mb-2'
),
WDiv(
className: 'flex flex-row gap-2 w-full',
children: [
WDiv(
className: 'flex-1 h-10 rounded-lg bg-amber-300 dark:bg-amber-300',
children: []
),
WDiv(
className: 'flex-1 h-10 rounded-lg bg-amber-400 dark:bg-amber-400',
children: []
),
WDiv(
className: 'flex-1 h-10 rounded-lg bg-amber-500 dark:bg-amber-500',
children: []
),
WDiv(
className: 'flex-1 h-10 rounded-lg bg-amber-600 dark:bg-amber-600',
children: []
),
WDiv(
className: 'flex-1 h-10 rounded-lg bg-amber-700 dark:bg-amber-700',
children: []
),
],
),
],
),
WDiv(
className: 'w-full',
children: [
WText(
'Rose',
className: 'text-gray-700 dark:text-gray-200 text-sm font-semibold mb-2'
),
WDiv(
className: 'flex flex-row gap-2 w-full',
children: [
WDiv(
className: 'flex-1 h-10 rounded-lg bg-rose-300 dark:bg-rose-300',
children: []
),
WDiv(
className: 'flex-1 h-10 rounded-lg bg-rose-400 dark:bg-rose-400',
children: []
),
WDiv(
className: 'flex-1 h-10 rounded-lg bg-rose-500 dark:bg-rose-500',
children: []
),
WDiv(
className: 'flex-1 h-10 rounded-lg bg-rose-600 dark:bg-rose-600',
children: []
),
WDiv(
className: 'flex-1 h-10 rounded-lg bg-rose-700 dark:bg-rose-700',
children: []
),
],
),
],
),
],
)
Benzer örnekler
-
Flutter File Permission Card with rwx Grid and Octal Mode Readout
A Flutter file permission card for DevOps dashboards, hosting panels and learning apps: a terminal-style grid of owner, group and other against read, write and execute, bits worth 4, 2 and 1 summing to the octal digits of mode 755, plus the chmod command and the -rwxr-xr-x listing. Built with wind_kit.
-
Flutter Contrast Checker Card with WCAG AA and AAA Pass Badges
A WCAG 2.2 colour contrast card for design system and accessibility apps: text and background swatches, a live preview of body and large text, the 3.74:1 ratio on a threshold scale, AA and AAA pass or fail tiles for normal and large text, and a one-tap fix to the nearest passing shade.
-
Flutter Subnet Calculator Card with 32 Bit Network and Host Grid
A Flutter subnet calculator card for network and developer tools: an IPv4 address with its CIDR prefix, all 32 bits by octet with network and host bits in two colours, plus network, mask, first and last host, broadcast and usable hosts. A correct /21 worked example built with wind_kit.