
name: cyber-y2kdescription: Web and App implementation guide for Cyber Y2K. Trigger when user wants modern Y2K, holographic visuals, and glitch aesthetics.date_added: “2026-06-17”risk: safesource: selfsource_type: self网络千年虫“千年虫但透过扭曲的现代视角来看。更黑暗、更故障化并且高度全息化。”何时使用当用户的请求与上述描述的美学匹配时使用此子风格。这是design-it技能的子引用不能直接触发。核心原则全息渐变彩虹色油膜般的调色板随着你的移动而变化。故障艺术看起来损坏、分成 RGB 通道或出现卡顿的文本或图像。部落与部落科技向量图锐利、侵略性的向量图形想象早期2000年代的部落纹身与电路板的结合。视觉DNA颜色深黑色背景。高光是全息的紫色、青色、酸橙绿、亮粉色混合成流动的渐变。排版极其粗体、拉伸的字体或高度技术化的等宽字体。视觉效果CD-ROM反光、带刺铁丝网图形以及严重的色差。网页实现使用 CSS 动画来实现故障效果和动画背景渐变。CSS 示例:body{background-color:#050505;color:#fff;}/* Holographic button */.cyber-y2k-btn{background:linear-gradient(124deg,#ff2400,#e81d1d,#e8b71d,#e3e81d,#1de840,#1ddde8,#2b1de8,#dd00f3,#dd00f3);background-size:1800% 1800%;animation:rainbow 18s ease infinite;color:#fff;font-weight:900;text-transform:uppercase;border:1px solidrgba(255,255,255,0.5);border-radius:30px;padding:16px 32px;mix-blend-mode:screen;/* Makes it interact with background */}keyframesrainbow{0%{background-position:0% 82%}50%{background-position:100% 19%}100%{background-position:0% 82%}}/* RGB Split text effect */.glitch-text{position:relative;font-family:Courier New,monospace;font-size:3rem;font-weight:bold;}.glitch-text::before, .glitch-text::after{content:attr(data-text);position:absolute;top:0;left:0;opacity:0.8;}.glitch-text::before{color:#0ff;z-index:-1;transform:translate(-3px,2px);}.glitch-text::after{color:#f0f;z-index:-2;transform:translate(3px,-2px);}应用程序实现SwiftUIstructCyberY2KView:View{Stateprivatevarrotation:Double0varbody:someView{ZStack{Color.black.ignoresSafeArea()VStack(spacing:40){// Glitch TextZStack{Text(SYSTEM.ERROR).font(.custom(Courier New,size:40).bold()).foregroundColor(.cyan).offset(x:-3,y:2)// RGB split channel 1Text(SYSTEM.ERROR).font(.custom(Courier New,size:40).bold()).foregroundColor(.pink).offset(x:3,y:-2)// RGB split channel 2Text(SYSTEM.ERROR).font(.custom(Courier New,size:40).bold()).foregroundColor(.white)}// Holographic ButtonButton(action:{}){Text(ENTER MATRIX).font(.headline.weight(.black)).foregroundColor(.white).padding(.horizontal,32).padding(.vertical,16).background(AngularGradient(gradient:Gradient(colors:[.red,.yellow,.green,.cyan,.blue,.purple,.red]),center:.center,angle:.degrees(rotation))).cornerRadius(30).overlay(RoundedRectangle(cornerRadius:30).stroke(Color.white.opacity(0.5),lineWidth:1))}.onAppear{withAnimation(.linear(duration:5).repeatForever(autoreverses:false)){rotation360}}}}}}在 SwiftUI 中RGB 故障效果非常简单在ZStack中叠加三个相同的Text视图。给底部的视图设置.cyan和.pink颜色并稍微使用.offset()偏移它们。使用绑定到旋转State变量的AngularGradient来实现彩虹 CD-ROM 全息效果。FlutterclassCyberY2KScreenextendsStatefulWidget{overrideStateCyberY2KScreencreateState()_CyberY2KScreenState();}class_CyberY2KScreenStateextendsStateCyberY2KScreenwithSingleTickerProviderStateMixin{lateAnimationController_controller;overridevoidinitState(){super.initState();_controllerAnimationController(vsync:this,duration:constDuration(seconds:5))..repeat();}overrideWidgetbuild(BuildContextcontext){returnScaffold(backgroundColor:Colors.black,body:Center(child:Column(mainAxisAlignment:MainAxisAlignment.center,children:[// Glitch TextStack(children:[Transform.translate(offset:constOffset(-3,2),child:constText(SYSTEM.ERROR,style:TextStyle(color:Colors.cyan,fontSize:40,fontFamily:Courier,fontWeight:FontWeight.bold))),Transform.translate(offset:constOffset(3,-2),child:constText(SYSTEM.ERROR,style:TextStyle(color:Colors.pinkAccent,fontSize:40,fontFamily:Courier,fontWeight:FontWeight.bold))),constText(SYSTEM.ERROR,style:TextStyle(color:Colors.white,fontSize:40,fontFamily:Courier,fontWeight:FontWeight.bold)),],),constSizedBox(height:60),// Holographic Button via ShaderMaskAnimatedBuilder(animation:_controller,builder:(context,child){returnShaderMask(shaderCallback:(Rectbounds){returnSweepGradient(colors:const[Colors.red,Colors.yellow,Colors.green,Colors.cyan,Colors.blue,Colors.purple,Colors.red],transform:GradientRotation(_controller.value*2*3.14159),// Rotate through 360 degrees).createShader(bounds);},child:Container(decoration:BoxDecoration(color:Colors.white,// Color to be masked by shaderborderRadius:BorderRadius.circular(30),border:Border.all(color:Colors.white.withOpacity(0.5)),),padding:constEdgeInsets.symmetric(horizontal:32,vertical:16),child:constText(ENTER MATRIX,style:TextStyle(color:Colors.black,fontWeight:FontWeight.w900)),),);},),],),),);}}在 Flutter 中将ShaderMask与SweepGradient结合使用并附加到AnimationController可以在任何小部件上创建完美且高性能的油膜全息效果。使用Stack和Transform.translate来构建 RGB 故障文字。React Native// Requires react-native-linear-gradient for complex gradients import LinearGradient from react-native-linear-gradient; const GlitchText ({ text }) { const baseStyle { fontSize: 40, fontFamily: Courier, fontWeight: bold, position: absolute }; return ( View style{{ alignItems: center, height: 50, justifyContent: center }} Text style{[baseStyle, { color: #00FFFF, transform: [{ translateX: -3 }, { translateY: 2 }] }]}{text}/Text Text style{[baseStyle, { color: #FF00FF, transform: [{ translateX: 3 }, { translateY: -2 }] }]}{text}/Text Text style{[baseStyle, { color: #FFF }]}{text}/Text /View ); }; const CyberY2KScreen () { return ( View style{{ flex: 1, backgroundColor: #050505, justifyContent: center, alignItems: center }} GlitchText textSYSTEM.ERROR / View style{{ marginTop: 60 }} {/* React Native cannot easily animate gradient angles natively. Use a complex LinearGradient to simulate the iridescent shine. */} LinearGradient colors{[#ff2400, #e8b71d, #1de840, #1ddde8, #dd00f3]} start{{ x: 0, y: 0 }} end{{ x: 1, y: 1 }} style{{ borderRadius: 30, padding: 16, paddingHorizontal: 32, borderWidth: 1, borderColor: rgba(255,255,255,0.5) }} Text style{{ color: #FFF, fontWeight: 900 }}ENTER MATRIX/Text /LinearGradient /View /View ); };堆叠的绝对Text节点可以很好地处理 RGB 分离故障。真正的动画全息渐变例如 Sweep/Angular需要shopify/react-native-skia。如果 Skia 不可用可以使用静态多停点LinearGradient作为替代。Jetpack ComposeComposablefunGlitchText(text:String){Box(contentAlignmentAlignment.Center){Text(text,colorColor.Cyan,fontSize40.sp,fontFamilyFontFamily.Monospace,fontWeightFontWeight.Bold,modifierModifier.offset(x(-3).dp,y2.dp))Text(text,colorColor.Magenta,fontSize40.sp,fontFamilyFontFamily.Monospace,fontWeightFontWeight.Bold,modifierModifier.offset(x3.dp,y(-2).dp))Text(text,colorColor.White,fontSize40.sp,fontFamilyFontFamily.Monospace,fontWeightFontWeight.Bold)}}ComposablefunCyberY2KScreen(){valinfiniteTransitionrememberInfiniteTransition()valrotationbyinfiniteTransition.animateFloat(initialValue0f,targetValue360f,animationSpecinfiniteRepeatable(animationtween(5000,easingLinearEasing)))Column(modifierModifier.fillMaxSize().background(Color.Black),horizontalAlignmentAlignment.CenterHorizontally,verticalArrangementArrangement.Center){GlitchText(SYSTEM.ERROR)Spacer(Modifier.height(60.dp))// Holographic ButtonBox(modifierModifier.background(brushBrush.sweepGradient(colorslistOf(Color.Red,Color.Yellow,Color.Green,Color.Cyan,Color.Blue,Color.Magenta,Color.Red),centerOffset.Unspecified),shapeRoundedCornerShape(30.dp)).graphicsLayer{rotationZrotation}// Note: This rotates the whole button.// To rotate ONLY the gradient brush requires custom ShaderBrush or drawing the rect manually in drawBehind with a rotating matrix..border(1.dp,Color.White.copy(alpha0.5f),RoundedCornerShape(30.dp)).padding(horizontal32.dp,vertical16.dp)){Text(ENTER MATRIX,colorColor.White,fontWeightFontWeight.Black)}}}像其他框架一样使用Box来堆叠文本并用Modifier.offset()来实现故障效果。Brush.sweepGradient可以创建全息 CD-ROM 色彩不过要在 Compose 中旋转画笔本身而不是整个组件需要在ShaderBrush内进行一些高级的Matrix操作。注意事项和禁忌做加入看起来像原始 HTML/CSS 的 UI 元素例如可见的表格或跑马灯标签以讽刺性地致敬早期网页。不要使用干净、现代的几何布局。Cyber Y2K 风格混乱且叛逆。限制这是一个样式参考不可替代针对具体环境的验证、无障碍测试或专家审查。确保适当的对比度比率和响应行为分别得到验证。