- Home
- Skills
- Frontend & Web Apps
- Taste Layer: Premium UI for AI Coding
More screenshots
Works with the AI Agents you already use
Taste Layer: Premium UI for AI Coding
Transform generic AI-generated frontend code into professional UI using strict design tokens and a critique-fix loop.
$29
Taste Layer: Premium UI for AI Coding
Example session with this skill installed
I generated this React/Tailwind dashboard component with AI, but it looks incredibly generic and "slop-like." It works functionally, but I need it to look premium, editorial, and designed by a human.
Refine this UI. Make it look professional.
Here is the code
import React from 'react';
import { TrendingUp, Users, DollarSign, Activity } from 'lucide-react';
export default function Dashboard() {
return (
<div className="min-h-screen bg-gray-900 text-white font-sans p-8">
{/* Header */}
<div className="flex justify-between items-center mb-8">
<h1 className="text-2xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-purple-400 to-pink-600">
Analytics Dashboard
</h1>
<button className="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-lg transition-all hover:scale-105">
Export Report
</button>
</div>
{/* Stats Grid */}
<div className="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
{/* Card 1 */}
<div className="bg-gray-800 p-6 rounded-lg border-l-4 border-purple-500 shadow-lg transition-all hover:scale-105">
<div className="flex items-center gap-4">
<div className="p-3 bg-purple-500/20 rounded-full">
<DollarSign className="text-purple-400 w-6 h-6" />
</div>
<div>
<p className="text-gray-400 text-sm">Total Revenue</p>
<h2 className="text-2xl font-bold">$45,231.89</h2>
</div>
</div>
</div>
{/* Card 2 */}
<div className="bg-gray-800 p-6 rounded-lg border-l-4 border-blue-500 shadow-lg transition-all hover:scale-105">
<div className="flex items-center gap-4">
<div className="p-3 bg-blue-500/20 rounded-full">
<Users className="text-blue-400 w-6 h-6" />
</div>
<div>
<p className="text-gray-400 text-sm">Active Users</p>
<h2 className="text-2xl font-bold">+2,350</h2>
</div>
</div>
</div>
{/* Card 3 */}
<div className="bg-gray-800 p-6 rounded-lg border-l-4 border-green-500 shadow-lg transition-all hover:scale-105">
<div className="flex items-center gap-4">
<div className="p-3 bg-green-500/20 rounded-full">
<Activity className="text-green-400 w-6 h-6" />
</div>
<div>
<p className="text-gray-400 text-sm">Conversion Rate</p>
<h2 className="text-2xl font-bold">3.2%</h2>
</div>
</div>
</div>
</div>
{/* Main Chart Area (Card in Card) */}
<div className="bg-gray-800 p-6 rounded-lg shadow-lg">
<div className="flex justify-between items-center mb-6">
<h3 className="text-lg font-bold">Revenue Overview</h3>
<select className="bg-gray-700 text-white p-2 rounded-lg border border-gray-600">
<option>Last 7 days</option>
<option>Last 30 days</option>
</select>
</div>
<div className="bg-gray-900 p-4 rounded-lg border border-gray-700 h-64 flex items-center justify-center">
<p className="text-gray-500">Chart placeholder</p>
</div>
</div>
</div>
);
}
- Read your context and instructions
- Compiled the taste layer
- Generated the UI component
I’ve rewritten the dashboard as Dashboard.jsx, a drop-in replacement for your component. I haven’t rendered it, so I only checked it by reading the code.
What changed
Direction: a warm paper surface with ink text and a single vermilion accent, replacing dark gray with purple.
Type: Fraunces for headlines and figures, Instrument Sans for everything else. The headline is solid ink, with no gradient.
Layout: an 8/4 split instead of three equal cards. The revenue chart sits in one hairline panel, and the other stats become hairline-separated rows with large serif figures. The icon circles, side stripes and card-in-card are gone.
Controls: the Export button is solid ink and inverts on hover, using transition-colors at 200ms with cubic-out easing. The native <select> is now a pill-shaped segmented control.
Chart: the placeholder is now a small SVG line chart, and the segmented control switches between 7 and 30 days.
States: status can be ready, loading, empty or error, and each has a designed view. Buttons also have focus-visible rings, a disabled style and reduced-motion handling.
Tokens: spacing, type scale, radius and colors are defined once at the top and used throughout.
Things to check
The chart data, the percentage deltas and the “Avg. order value” row are sample values I made up. Replace them with your real data, or drop the row if you don’t track it.
The fonts load from Google Fonts through an @import. If your project has a font pipeline, move the families there.
You can preview the other states with <Dashboard status="loading" />, "empty" or "error".
import React, { useState } from 'react';
import { TrendingUp, TrendingDown } from 'lucide-react';
/* ------------------------------------------------------------------
TOKENS
Spacing: 4 / 8 / 12 / 16 / 24 / 32 / 48 (Tailwind 1,2,3,4,6,8,12)
Type: Fraunces (display) + Instrument Sans (body), 1.25 ratio
Color: one anchor hue (warm paper), one accent (vermilion)
Radius: sm 4 (controls) / md 8 (panel) / full (pills)
Shadow: none. Containment is a hairline border.
------------------------------------------------------------------- */
const TOKENS = `
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600&family=Instrument+Sans:wght@400;500;600&display=swap');
.dash {
--surface: #F4EFE6;
--surface-raised: #FAF7F1;
--ink: #1E1A15;
--ink-muted: #675E52;
--border: #DCD3C3;
--accent: #B13F1E;
--accent-ink: #FAF7F1;
--danger: #A32A22;
--success: #2D6849;
--radius-sm: 4px;
--radius-md: 8px;
--ease-out: cubic-bezier(0, 0, 0.2, 1);
/* 1.25 scale from 16px */
--t-xs: 0.8rem;
--t-sm: 0.875rem;
--t-base: 1rem;
--t-lg: 1.25rem;
--t-xl: 1.953rem;
--t-2xl: 3.052rem;
font-family: 'Instrument Sans', system-ui, sans-serif;
font-size: var(--t-base);
background: var(--surface);
color: var(--ink);
}
.dash .display { font-family: 'Fraunces', Georgia, serif; letter-spacing: -0.03em; font-weight: 400; font-variant-numeric: lining-nums tabular-nums; }
.dash .label { font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.dash .btn { transition-property: background-color, color, border-color; transition-duration: 200ms; transition-timing-function: var(--ease-out); }
.dash :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dash .skeleton { background: var(--border); opacity: 0.6; animation: dash-pulse 1.4s var(--ease-out) infinite; }
@keyframes dash-pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) {
.dash .btn { transition: none; }
.dash .skeleton { animation: none; }
}
`;
/* ------------------------------------------------------------------
DATA (swap for real data via props)
------------------------------------------------------------------- */
const RANGES = {
'7d': {
label: '7 days',
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
values: [4.2, 5.1, 4.8, 6.3, 5.9, 7.4, 8.1],
},
'30d': {
label: '30 days',
labels: ['Oct 9', 'Oct 16', 'Oct 23', 'Oct 30', 'Nov 6'],
values: [3.1, 3.4, 3.2, 3.9, 3.6, 4.1, 4.0, 4.6, 4.4, 5.0, 4.8, 5.3, 5.1, 5.6, 5.4, 6.0, 5.8, 6.1, 5.9, 6.5, 6.2, 6.8, 6.6, 7.0, 6.9, 7.3, 7.1, 7.6, 7.9, 8.1],
},
};
const STATS = [
{ label: 'Active users', value: '2,350', delta: '+12.4%', up: true },
{ label: 'Conversion rate', value: '3.2%', delta: '−0.3 pt', up: false },
{ label: 'Avg. order value', value: '$19.24', delta: '+4.1%', up: true },
];
/* ------------------------------------------------------------------
CHART
------------------------------------------------------------------- */
function RevenueChart({ labels, values }) {
const W = 640, H = 240, PAD = { t: 8, r: 8, b: 28, l: 36 };
const max = Math.ceil(Math.max(...values));
const x = (i) => PAD.l + (i / (values.length - 1)) * (W - PAD.l - PAD.r);
const y = (v) => PAD.t + (1 - v / max) * (H - PAD.t - PAD.b);
const line = values.map((v, i) => `${i ? 'L' : 'M'}${x(i).toFixed(1)},${y(v).toFixed(1)}`).join(' ');
const area = `${line} L${x(values.length - 1)},${H - PAD.b} L${x(0)},${H - PAD.b} Z`;
const ticks = [0, max / 2, max];
const labelIdx = labels.length === values.length
? labels.map((_, i) => i)
: labels.map((_, i) => Math.round((i / (labels.length - 1)) * (values.length - 1)));
return (
<svg
viewBox={`0 0 ${W} ${H}`}
className="w-full h-auto"
role="img"
aria-label={`Revenue trend, from $${values[0]}k to $${values[values.length - 1]}k`}
>
{ticks.map((t) => (
<g key={t}>
<line x1={PAD.l} x2={W - PAD.r} y1={y(t)} y2={y(t)} stroke="var(--border)" strokeWidth="1" />
<text x={PAD.l - 8} y={y(t) + 4} textAnchor="end" fontSize="11" fill="var(--ink-muted)">
${t}k
</text>
</g>
))}
<path d={area} fill="var(--accent)" opacity="0.08" />
<path d={line} fill="none" stroke="var(--accent)" strokeWidth="2" strokeLinejoin="round" strokeLinecap="round" />
<circle cx={x(values.length - 1)} cy={y(values[values.length - 1])} r="4" fill="var(--accent)" />
{labels.map((l, i) => (
<text
key={l}
x={x(labelIdx[i])}
y={H - 8}
textAnchor={i === 0 ? 'start' : i === labels.length - 1 ? 'end' : 'middle'}
fontSize="11"
fill="var(--ink-muted)"
>
{l}
</text>
))}
</svg>
);
}
/* ------------------------------------------------------------------
PANEL STATES (loading / empty / error)
------------------------------------------------------------------- */
function ChartLoading() {
return (
<div aria-busy="true" aria-label="Loading revenue chart" className="flex flex-col gap-3 pt-2">
<div className="skeleton h-[1px] w-full" />
<div className="skeleton h-[1px] w-full" />
<div className="skeleton h-[1px] w-full" />
<div className="skeleton h-24 w-full" style={{ borderRadius: 'var(--radius-sm)' }} />
</div>
);
}
function ChartMessage({ title, body, action, onAction, tone = 'ink' }) {
return (
<div className="py-12 max-w-sm">
<p className="display" style={{ fontSize: 'var(--t-lg)', color: tone === 'danger' ? 'var(--danger)' : 'var(--ink)' }}>
{title}
</p>
<p className="mt-2" style={{ fontSize: 'var(--t-sm)', color: 'var(--ink-muted)' }}>
{body}
</p>
{action && (
<button
type="button"
onClick={onAction}
className="btn mt-4 px-3 py-2 border hover:bg-[var(--surface)]"
style={{ borderColor: 'var(--border)', borderRadius: 'var(--radius-sm)', fontSize: 'var(--t-sm)', fontWeight: 500 }}
>
{action}
</button>
)}
</div>
);
}
/* ------------------------------------------------------------------
DASHBOARD
status: 'ready' | 'loading' | 'empty' | 'error'
------------------------------------------------------------------- */
export default function Dashboard({ status = 'ready', onExport, onRetry, exporting = false }) {
const [range, setRange] = useState('7d');
const { labels, values } = RANGES[range];
return (
<div className="dash min-h-screen">
<style>{TOKENS}</style>
<main className="max-w-[1120px] mx-auto px-8 py-12">
{/* Header: left-aligned, button sits on the baseline */}
<header className="flex flex-wrap items-end justify-between gap-6 mb-12">
<div>
<p className="label mb-2">Analytics · November 2026</p>
<h1 className="display" style={{ fontSize: 'var(--t-xl)', lineHeight: 1.1 }}>
How the month is going
</h1>
</div>
<button
type="button"
onClick={onExport}
disabled={exporting}
className="btn px-4 py-2 border border-[var(--ink)] bg-[var(--ink)] text-[var(--surface-raised)] hover:bg-transparent hover:text-[var(--ink)] disabled:cursor-not-allowed disabled:bg-transparent disabled:border-dashed disabled:border-[var(--border)] disabled:text-[var(--ink-muted)]"
style={{ borderRadius: 'var(--radius-sm)', fontSize: 'var(--t-sm)', fontWeight: 500 }}
>
{exporting ? 'Exporting…' : 'Export report'}
</button>
</header>
{/* 8 / 4 split: chart panel + typographic stat list */}
<div className="grid grid-cols-1 lg:grid-cols-12 gap-8 items-start">
{/* One containment layer, hairline only */}
<section
className="lg:col-span-8 p-6 border"
style={{ background: 'var(--surface-raised)', borderColor: 'var(--border)', borderRadius: 'var(--radius-md)' }}
aria-labelledby="rev-label"
>
<div className="flex flex-wrap items-start justify-between gap-4 mb-8">
<div>
<h2 id="rev-label" className="label mb-2">Total revenue</h2>
<p className="display" style={{ fontSize: 'var(--t-2xl)', lineHeight: 1 }}>
$45,231.89
</p>
<p className="mt-3 inline-flex items-center gap-2" style={{ fontSize: 'var(--t-sm)', color: 'var(--success)', fontWeight: 500 }}>
<TrendingUp size={16} strokeWidth={1.75} aria-hidden="true" />
+20.1% vs. previous period
</p>
</div>
{/* Segmented control replaces the native select */}
<div
role="group"
aria-label="Time range"
className="inline-flex p-1 border"
style={{ borderColor: 'var(--border)', borderRadius: '9999px' }}
>
{Object.entries(RANGES).map(([key, r]) => {
const on = key === range;
return (
<button
key={key}
type="button"
aria-pressed={on}
onClick={() => setRange(key)}
className="btn px-3 py-1"
style={{
borderRadius: '9999px',
fontSize: 'var(--t-sm)',
fontWeight: on ? 600 : 400,
background: on ? 'var(--ink)' : 'transparent',
color: on ? 'var(--surface-raised)' : 'var(--ink-muted)',
}}
>
{r.label}
</button>
);
})}
</div>
</div>
{status === 'loading' && <ChartLoading />}
{status === 'empty' && (
<ChartMessage
title="No revenue yet"
body="Once your first order comes through, the trend appears here. Connect a payment source to get started."
action="Connect payments"
/>
)}
{status === 'error' && (
<ChartMessage
tone="danger"
title="We couldn't load revenue"
body="The request timed out before any data came back. Your numbers are safe; try again in a moment."
action="Try again"
onAction={onRetry}
/>
)}
{status === 'ready' && <RevenueChart labels={labels} values={values} />}
</section>
{/* No cards: hairline-separated rows, type does the work */}
<aside className="lg:col-span-4" aria-label="Key metrics">
<h2 className="label pb-3 border-b" style={{ borderColor: 'var(--ink)' }}>
Also this period
</h2>
<dl>
{STATS.map((s) => {
const Icon = s.up ? TrendingUp : TrendingDown;
return (
<div key={s.label} className="py-6 border-b" style={{ borderColor: 'var(--border)' }}>
<dt style={{ fontSize: 'var(--t-sm)', color: 'var(--ink-muted)' }}>{s.label}</dt>
<dd className="mt-1 flex items-baseline justify-between gap-4">
<span className="display" style={{ fontSize: 'var(--t-xl)', lineHeight: 1.1 }}>
{s.value}
</span>
<span
className="inline-flex items-center gap-1"
style={{ fontSize: 'var(--t-sm)', fontWeight: 500, color: s.up ? 'var(--success)' : 'var(--danger)' }}
>
<Icon size={14} strokeWidth={1.75} aria-hidden="true" />
{s.delta}
</span>
</dd>
</div>
);
})}
</dl>
</aside>
</div>
</main>
</div>
);
}
Dashboard.jsx
TSX · React component
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Most AI-generated UI suffers from the "statistical median" problem: generic purple gradients, identical feature grids, and uniform spacing that immediately signals low-effort output. This skill replaces those defaults with deliberate design judgment, enforcing professional constraints and a build-critique-fix loop to ensure your frontend code looks like a human designed it.
What it does
- Enforces design tokens by establishing a strict spacing scale, typographic hierarchy, and semantic color roles before writing a single line of component code.
- Bans AI tells by identifying and removing common giveaways like
p-4 gap-4patterns, centered-only layouts, and generic glassmorphism. - Differentiates UI artifacts by adjusting layout density and expressiveness based on whether you are building a dashboard, landing page, or editorial site.
- Polishes interactive states by ensuring every component includes designed focus, hover, disabled, and loading states out of the box.
- Runs a critique loop that analyzes the generated code against a 13-point acceptance bar to catch generic patterns before delivery.
How it works
- Set the dials by defining the artifact type, density, and expressiveness to establish a layout grammar.
- Initialize tokens to define a 7-step spacing scale, 2-family type system, and semantic color roles.
- Execute the build to generate components that bypass banned defaults in favor of asymmetrical grids and weight-driven hierarchy.
- Run the critique against the acceptance bar to identify any remaining "AI tells" or contrast issues.
- Apply fixes in a recursive loop until the UI passes the convergence test.
Frameworks & tools
This skill is optimized for React and Tailwind CSS. It works with existing tailwind.config files and respects established DESIGN.md documentation if provided.
Why this beats prompting it yourself
Standard prompts usually result in Inter-font, rounded-lg layouts that feel like templates. This skill embeds a specific design vocabulary and a mandatory self-correction step that forces the LLM to deviate from its training averages for a more high-end, bespoke result.
Use cases
- Generating a dashboard that needs operator-grade density rather than marketing-site spacing.
- Refactoring generic "AI-style" landing pages into unique, high-contrast brand experiences.
- Building component libraries where every element needs consistent focus states and accessibility.
- Auditing existing UI code to identify and fix specific design debt or "slop" signals.
Known limitations
Does not support generating fake social proof like logos or testimonials. Requires React and Tailwind for the specific token-based workflows. Cannot verify visual output without a rendering environment.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.
Optimized for React and Tailwind CSS. Cannot hallucinate social proof (logos/quotes). Visual verification is limited to code analysis if no browser tool is present.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 10 days ago