来源仓库: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 经哈希比对与线上同值), 整包推送会把这些凭据永久带入本仓库,故只取「当前版本」的单提交快照。 供应商系统后续开发自本提交开始。
59 lines
2.4 KiB
Markdown
59 lines
2.4 KiB
Markdown
---
|
||
name: css-border-gradient
|
||
type: technique
|
||
version: 1.0.0
|
||
source: neuform-skill
|
||
source_url: "https://neuform.ai/skill/css-border-gradient"
|
||
tier: gold
|
||
neuform_usage_count: 10756
|
||
neuform_rank: 1
|
||
keywords: ['border', 'css', 'gradient']
|
||
applicable_to: ['button', 'card', 'container', 'hero']
|
||
compatible_styles:
|
||
vercel-style: yes
|
||
linear-style: yes
|
||
raycast-style: yes
|
||
framer-style: yes
|
||
supabase-style: yes
|
||
cyberpunk-neon: yes
|
||
sendwave-cold-outreach: yes
|
||
swiss-style: no
|
||
brutalist-web: no
|
||
bauhaus: no
|
||
ai_slop_risk: medium
|
||
ai_slop_note: |
|
||
含 gradient 元素,可能与反 AI slop 风格产生紧张关系,建议低饱和、克制使用
|
||
---
|
||
|
||
# Border Gradients
|
||
|
||
## What
|
||
|
||
- Border Gradients: Apply subtle gradient-border treatments for premium surfaces.
|
||
|
||
## When to use
|
||
|
||
- Use on premium hero cards, pricing cards, command palettes, and CTA containers that need a quiet edge highlight.
|
||
- Use when the base style already accepts luminous or high-polish surfaces, especially dark SaaS, developer-tool, and cyber interface systems.
|
||
- Avoid on strict Swiss, Bauhaus, or raw brutalist layouts where the border should stay flat, objective, and non-decorative.
|
||
- Avoid full-page rainbow frames; the gradient should live on one or two focal surfaces only.
|
||
|
||
## Recipe
|
||
|
||
- Use a wrapper with `p-px rounded-[inherit] bg-[linear-gradient(...)]`, then place the real surface inside with the same radius.
|
||
- Keep stops close to the active style tokens: neutral gray plus one restrained primary/accent color.
|
||
- Tailwind pattern: `rounded-2xl bg-[linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.04),rgba(99,102,241,.28))] p-px`.
|
||
- Inner surface pattern: `rounded-[calc(1rem-1px)] bg-[var(--surface)]`.
|
||
- For buttons, animate opacity or background-position only; do not animate layout or border width.
|
||
|
||
## Compatible Styles
|
||
|
||
- Best fit: `vercel-style`, `linear-style`, `raycast-style`, `framer-style`, `supabase-style`, `cyberpunk-neon`, `sendwave-cold-outreach`.
|
||
- Use sparingly with warm editorial systems such as `claude-style`: one hero input or one card stack is enough.
|
||
- Do not apply to `swiss-style`, `brutalist-web`, or `bauhaus`; those systems rely on flat rules, hard borders, and minimal effects.
|
||
|
||
## References
|
||
|
||
- **Neuform 原 skill 页** — [https://neuform.ai/skill/css-border-gradient](https://neuform.ai/skill/css-border-gradient)
|
||
- **使用量**:10756 (Neuform 站内 rank 1)
|