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-tabs/component.js
View on GitHub// fx-tabs: the indicator pill is the effect host; it glides to the chosen tab. The effect is a still,
// low-contrast grain in the accent (no motion, no sheen), so the pill reads as a flat accent with a
// printed texture and the label stays clear. Being still, it is drawn once and kept as a picture (no
// WebGL context at rest). Full keyboard support (arrows, Home, End) with roving
// tabindex, as the ARIA tabs pattern asks.
import { still, palette, accentPalette, bag } from '../shared.js';
export default function init(root) {
const b = bag();
const bar = root.querySelector('[role="tablist"]');
const ind = root.querySelector('.cx-tabs__ind');
const tabs = [...bar.querySelectorAll('[role="tab"]')];
const page = palette(root);
const effect = root.dataset.cxEffect || 'grain-gradient';
// 'flat' mounts nothing: the pill keeps its plain accent fill
if (effect !== 'flat') {
b.add(still(ind, effect, {
palette: accentPalette(page, { lift: 0.05 }),
seed: root.dataset.cxSeed,
params: { speed: 0, grainMotion: 0, grain: 0.32, contrast: 0.18, tint: 0.4, softness: 0.8, warp: 0.3, calm: 0 },
}));
}
const place = (tab, animate = true) => {
if (!animate) ind.style.transition = 'none';
ind.style.setProperty('--x', `${tab.offsetLeft}px`);
ind.style.setProperty('--w', `${tab.offsetWidth}px`);
if (!animate) requestAnimationFrame(() => { ind.style.transition = ''; });
};
const choose = (tab, focus = true) => {
tabs.forEach(t => {
const on = t === tab;
t.setAttribute('aria-selected', String(on));
t.tabIndex = on ? 0 : -1;
const panel = root.querySelector('#' + t.getAttribute('aria-controls'));
if (panel) panel.hidden = !on;
});
place(tab);
if (focus) tab.focus();
tab.scrollIntoView({ block: 'nearest', inline: 'nearest' });
};
const click = e => { const t = e.target.closest('[role="tab"]'); if (t) choose(t, false); };
const key = e => {
const i = tabs.indexOf(document.activeElement);
if (i < 0) return;
const n = e.key === 'ArrowRight' ? i + 1 : e.key === 'ArrowLeft' ? i - 1 : e.key === 'Home' ? 0 : e.key === 'End' ? tabs.length - 1 : null;
if (n == null) return;
e.preventDefault();
choose(tabs[(n + tabs.length) % tabs.length]);
};
bar.addEventListener('click', click);
bar.addEventListener('keydown', key);
// the faded far edge shows only while there is more bar to scroll to
const scroller = root.querySelector('.cx-tabs__scroll');
const edge = () => scroller.classList.toggle('is-end', scroller.scrollLeft + scroller.clientWidth >= scroller.scrollWidth - 2);
scroller.addEventListener('scroll', edge, { passive: true });
const current = () => tabs.find(t => t.getAttribute('aria-selected') === 'true') || tabs[0];
place(current(), false);
const ro = new ResizeObserver(() => { place(current(), false); edge(); });
ro.observe(bar);
ro.observe(scroller);
document.fonts?.ready.then(() => { place(current(), false); edge(); });
edge();
b.add(() => { ro.disconnect(); bar.removeEventListener('click', click); bar.removeEventListener('keydown', key); scroller.removeEventListener('scroll', edge); });
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 |