Skip to content

Commit d2baa52

Browse files
committed
feat: Add premium-frontend-ui Awwwards-quality aesthetic skill
1 parent 8d91380 commit d2baa52

1 file changed

Lines changed: 110 additions & 0 deletions

File tree

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
---
2+
name: premium-frontend-ui
3+
description: 'A comprehensive guide for GitHub Copilot to craft immersive, high-performance web experiences with advanced motion, typography, and architectural craftsmanship.'
4+
---
5+
6+
# Immersive Frontend UI Craftsmanship
7+
8+
As an AI engineering assistant, your role when building premium frontend experiences goes beyond outputting functional HTML and CSS. You must architect **immersive digital environments**. This skill provides the blueprint for generating highly intentional, award-level web applications that prioritize aesthetic quality, deep interactivity, and flawless performance.
9+
10+
When a user requests a high-end landing page, an interactive portfolio, or a specialized component that requires top-tier visual polish, apply the following rigorous standards to every line of code you generate.
11+
12+
---
13+
14+
## 1. Establishing the Creative Foundation
15+
16+
Before generating layout code, ensure you understand the core emotional resonance the UI should deliver. Do not default to generic, unopinionated code.
17+
18+
Commit to a strong visual identity in your CSS and component structure:
19+
- **Editorial Brutalism**: High-contrast monochromatic palettes, oversized typography, sharp rectangular edges, and raw grid structures.
20+
- **Organic Fluidity**: Soft gradients, deeply rounded corners, glassmorphism overlays, and bouncy spring-based physics.
21+
- **Cyber / Technical**: Dark mode dominance, glowing neon accents, monospaced typography, and rapid, staggered reveal animations.
22+
- **Cinematic Pacing**: Full-viewport imagery, slow cross-fades, profound use of negative space, and scroll-dependent storytelling.
23+
24+
---
25+
26+
## 2. Structural Requirements for Immersive UI
27+
28+
When scaffolding a page or generating core components, include the following architectural layers to transform a standard page into an experience.
29+
30+
### 2.1 The Entry Sequence (Preloading & Initialization)
31+
A blank screen is unacceptable. The user's first interaction must set expectations.
32+
- **Implementation**: Generate a lightweight preloader component that handles asset resolution (fonts, initial images, 3D models).
33+
- **Animation**: Output code that transitions the preloader away fluidly—such as a split-door reveal, a scale-up zoom, or a staggered text sweep.
34+
35+
### 2.2 The Hero Architecture
36+
The top fold must command attention immediately.
37+
- **Visuals**: Output code that implements full-bleed containers (`100vh`/`100dvh`).
38+
- **Typography Engine**: Ensure headlines are broken down syntactically (e.g., span wrapping by word or character) to allow for cascading entrance animations.
39+
- **Depth**: Utilize subtle floating elements or background clipping paths to create a sense of scale and depth behind the primary copy.
40+
41+
### 2.3 Fluid & Contextual Navigation
42+
- **Implementation**: Do not generate standard static navbars. Output sticky headers that react toscroll direction (hide on scroll down, reveal on scroll up).
43+
- **Interactivity**: Include hover states that reveal rich content (e.g., mega-menus that display image previews of the hovered link).
44+
45+
---
46+
47+
## 3. The Motion Design System
48+
49+
Animation is not an afterthought; it is the connective tissue of a premium site. Always implement the following motion principles:
50+
51+
### 3.1 Scroll-Driven Narratives
52+
Generate code utilizing modern scroll libraries (like GSAP's ScrollTrigger) to tie animations to user progress.
53+
- **Pinned Containers**: Create sections that lock into the viewport while secondary content flows past or reveals itself.
54+
- **Horizontal Journeys**: Translate vertical scroll data into horizontal movement for specific galleries or showcases.
55+
- **Parallax Mapping**: Assign subtle, varying scroll-speeds to background elements, midground text, and foreground imagery.
56+
57+
### 3.2 High-Fidelity Micro-Interactions
58+
The cursor is the user's avatar. Build interactions around it.
59+
- **Magnetic Components**: Write logic that calculates the distance between the mouse pointer and a button, pulling the button towards the cursor dynamically.
60+
- **Custom Tracking Elements**: Generate custom cursor components that follow the mouse with calculated interpolation (lerp) for a smooth drag effect.
61+
- **Dimensional Hover States**: Use CSS Transforms (`scale`, `rotateX`, `translate3d`) to give interactive elements weight and tactile feedback.
62+
63+
---
64+
65+
## 4. Typography & Visual Texture
66+
67+
The aesthetics of your generated code must reflect premium craftsmanship.
68+
69+
- **Type Hierarchy**: Enforce massive contrast in scale. Headlines should utilize extreme sizing (`clamp()` functions spanning up to `12vw`), while body copy remains incredibly crisp (`16px-18px` minimum).
70+
- **Font Selection**: Always recommend or implement highly specified variable fonts or premium typefaces over system defaults.
71+
- **Atmospheric Filters**: Implement CSS/SVG noise overlays (`mix-blend-mode: overlay`, opacity `0.02 - 0.05`) to remove digital sterility and add photographic grain.
72+
- **Lighting & Glass**: Utilize `backdrop-filter: blur(x)` combined with ultra-thin, semi-transparent borders to create modern, frosted-glass depth.
73+
74+
---
75+
76+
## 5. The Performance Imperative
77+
78+
A beautiful site that stutters is a failure. Enforce strict performance guardrails in all generated code:
79+
80+
- **Hardware Acceleration**: Only animate properties that do not trigger layout recalculations: `transform` and `opacity`. Code that animates `width`, `height`, `top`, or `margin` should be fiercely avoided.
81+
- **Render Optimization**: Apply `will-change: transform` intelligently on complex moving elements, but remove it post-animation to conserve memory.
82+
- **Responsive Degradation**: Wrap custom cursor logic and heavy hover animations in `@media (hover: hover) and (pointer: fine)` to ensure pristine performance on touch devices.
83+
- **Accessibility**: Wrap heavy continuous animations in `@media (prefers-reduced-motion: no-preference)`. Never sacrifice user accessibility for aesthetic flair.
84+
85+
---
86+
87+
## 6. Implementation Ecosystem
88+
89+
When the user asks you to implement these patterns, leverage industry-standard libraries tailored to their framework:
90+
91+
### For React / Next.js Targets
92+
- Structure the application to support **Framer Motion** for layout transitions and spring physics.
93+
- Recommend **Lenis** (`@studio-freight/lenis`) for smooth scrolling context.
94+
- Implement **React Three Fiber** (`@react-three/fiber`) if webGL or 3D interactions are requested.
95+
96+
### For Vanilla / HTML / Astro Targets
97+
- Rely heavily on **GSAP** (GreenSock Animation Platform) for timeline sequencing.
98+
- Utilize vanilla **Lenis** via CDN for scroll hijacking and smoothing.
99+
- Use **SplitType** for safe, accessible typography chunking.
100+
101+
---
102+
103+
## Summary of Action
104+
105+
Whenever you receive a prompt to "Build a premium landing page," "Create an Awwwards-style component," or "Design an immersive UI," you must automatically:
106+
1. Wrap the output in a robust, scroll-smoothed architecture.
107+
2. Provide CSS that guarantees perfect performance using composited layers.
108+
3. Integrate sweeping, staggered component entrances.
109+
4. Elevate the typography using fluid scales.
110+
5. Create an intentional, memorable aesthetic footprint.

0 commit comments

Comments
 (0)