Files
SupplierSystem/skills/design-kungfu/techniques/interactive-border-gradient-glow.md
T
Ubuntu deb3e72750
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s
chore: 以 AI 生鲜配送系统 当前版本作为 SupplierSystem 起点
来源仓库:jxc/ai-fresh-delivery
来源提交:f0b1a180e2deb7e4673b9d1c8542619f7bc0f73d
快照树:  09f679334ff38f0ff25e907961c94a8223bcaedd(与来源 HEAD 工作树逐字节一致,3801 个文件)

按约定本仓库不带任何历史提交:来源仓库的历史中含真实凭据
(生产 SSH 私钥 deploy/id_rsa_tencent、server/.env、.env.tencent/.env.production/.env.gitea、
deploy/小程序AppSecret.txt,其中 MP_APPSECRET / S3 AccessKey 经哈希比对与线上同值),
整包推送会把这些凭据永久带入本仓库,故只取「当前版本」的单提交快照。
供应商系统后续开发自本提交开始。
2026-10-08 17:35:43 +08:00

3.5 KiB
Raw Blame History

name, type, version, source, source_url, tier, neuform_usage_count, neuform_rank, keywords, applicable_to, compatible_styles, ai_slop_risk, ai_slop_note
name type version source source_url tier neuform_usage_count neuform_rank keywords applicable_to compatible_styles ai_slop_risk ai_slop_note
interactive-border-gradient-glow technique 1.0.0 neuform-skill https://neuform.ai/skill/interactive-border-gradient-glow-wnu6m4 bronze 45 47
border
glow
gradient
interactive
button
card
container
hero
linear-style vercel-style raycast-style laserflow-dashboard aurelis-intelligence lumina-ai-marketing swiss-style brutalist-web medieval-manuscript
yes yes yes yes yes yes no no no
medium 含 gradient 元素,可能与反 AI slop 风格产生紧张关系,建议低饱和、克制使用

Interactive Border Gradient Glow

What

  • Structure components with a multi-layered shell: an outer 1px padding container for the border and a nested content surface.
  • Apply a static base border using a linear-gradient(to bottom, #262626, transparent) on the padding container.
  • Implement a dynamic 'flashlight' edge effect using a conic-gradient tied to a CSS variable for rotation angle.
  • Use a secondary absolute layer with inset-[-12px] and 12px blur to create a soft glow aura that follows the border focus.
  • Map cursor proximity to the card edge to a 0-1 scale variable to drive the opacity of the glow layers.
  • Calculate the rotation angle of the conic-gradient using Math.atan2 based on the cursor position relative to the card center.
  • Ensure all glow layers use rounded-[inherit] to maintain a perfect 24px (3xl) corner radius alignment.
  • Transition the glow opacity over 300ms to ensure smooth entry/exit when the pointer interacts with the card surface.
  • Keep the inner content background solid and dark to provide maximum contrast for the hairline border glow.
  • Code pattern:

When to use

  • Use for premium dark feature cards, CTA panels, and hero modules that need a subtle interactive edge.
  • Use when the card is important enough to justify pointer-reactive state and extra DOM layers.
  • Use with one or two accent colors derived from the active style.
  • Avoid strict Swiss, raw brutalist, and historical/paper styles.
  • Avoid dense grids where dozens of animated borders would feel noisy or expensive.

Recipe

  • Use an outer 1px shell, dynamic conic-gradient layer, blurred glow layer, and solid inner surface.
  • Keep inner content background stable; the animation belongs to the edge only.
  • Update the cursor angle CSS variable on pointer move and transition opacity over roughly 300ms.
  • Preserve rounded-[inherit] across all nested layers to avoid halo mismatch.
  • Use a static gradient-border fallback on mobile and reduced-motion.

Compatible Styles

  • Best fit: linear-style, vercel-style, raycast-style, laserflow-dashboard, aurelis-intelligence, lumina-ai-marketing.
  • Use as an accent technique, not the primary style identity.
  • Avoid swiss-style, brutalist-web, and medieval-manuscript, where animated glow conflicts with the system.

References