Leonxlnx/taste-skill / skills/taste-skill
design-taste-frontend
Verifiedtasteskill 2.5.1, the anti-slop frontend skill. Builds professional company websites at the level of figma.com and x.ai: plain copy in a voice of its own, one system, one section per screen, equal edges, real photographs and real product UI (licensed stand-in photographs when the client has none; a product render only when the brief asks for 3D), a hero entrance and one or two dealt moments on every page, shader effects and scenes only on tech, gaming and software pages, quiet micro-interactions, and a checker and finish gate that enforce it in a real browser. Use this whenever you build, design, redesign, restyle, polish or review a landing page, company, product, shop, cafe, hotel, studio, SaaS, AI, developer-tool or game site, as static HTML/CSS or inside an existing React, Next.js, Vue, Svelte, Astro or Tailwind project, or when the user says a page looks generic, templated or "AI-made".
assets/components/fx-button/component.js
View on GitHub// fx-button: an effect fades into the button's fill or border on hover and focus, and runs only then.
// At rest a button holds no WebGL context: the effect is mounted on the first hover or focus, paused
// half a second after the pointer leaves and removed (its context freed) a few seconds later.
import { mount, palette, accentPalette, bag, paramsOf, color } from '../shared.js';
// the fill is even across the button: low contrast, no blobs that settle at one end, a fine grain that
// moves while it is pointed at (the button's own params can override)
const FILL = { speed: 0.35, tint: 0.22, contrast: 0.1, grain: 0.3, softness: 1, scatter: 0, warp: 0.15, grainMotion: 1, calm: 0 };
export default function init(root) {
const b = bag();
root.querySelectorAll('[data-cx-btn]').forEach(btn => {
const host = btn.querySelector('.cx-fxbtn__fx');
const page = palette(btn);
const edge = btn.classList.contains('cx-fxbtn--edge');
// the fill is one even step off the accent (lighter under a dark label, deeper under a light one;
// the label keeps 4.5:1) with a fine grain; the edge is drawn brighter than the ground so it reads
// as light
const ap = accentPalette(page, { lift: 0.07 });
const pal = edge
? { ...accentPalette(page, { min: 1, lift: 0.14 }), bg: color.mix(page.accent, page.bg, 0.15) }
: { ...ap, bg: ap.accent };
const params = edge ? paramsOf(btn) : { ...FILL, ...(paramsOf(btn) || {}) };
let ctrl = null, pending = null, dead = false, pauseT = 0, freeT = 0;
const lit = () => btn.classList.contains('is-lit');
const ensure = () => {
if (ctrl || pending) return;
pending = mount(host, btn.dataset.cxBtn, { palette: pal, seed: btn.dataset.cxSeed, params })
.then(c => {
pending = null;
if (dead) { c.destroy(); return; }
ctrl = c;
if (!lit()) c.pause();
}, err => { pending = null; console.warn('fx-button:', err); });
};
const free = () => { ctrl?.destroy(); ctrl = null; };
const on = () => {
clearTimeout(pauseT);
clearTimeout(freeT);
btn.classList.add('is-lit');
ensure();
ctrl?.resume();
};
const off = () => {
if (btn.matches(':hover') || btn.matches(':focus-visible')) return;
btn.classList.remove('is-lit');
clearTimeout(pauseT);
clearTimeout(freeT);
pauseT = setTimeout(() => ctrl?.pause(), 500);
freeT = setTimeout(free, 4000);
};
const focus = () => { if (btn.matches(':focus-visible')) on(); };
btn.addEventListener('pointerenter', on);
btn.addEventListener('pointerleave', off);
btn.addEventListener('focus', focus);
btn.addEventListener('blur', off);
b.add(() => {
dead = true;
clearTimeout(pauseT);
clearTimeout(freeT);
free();
btn.classList.remove('is-lit');
btn.removeEventListener('pointerenter', on);
btn.removeEventListener('pointerleave', off);
btn.removeEventListener('focus', focus);
btn.removeEventListener('blur', off);
});
});
return b;
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |