Adding skills
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2026 Vipul Gupta
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,49 @@
|
||||
---
|
||||
name: frontend-design
|
||||
description: Create distinctive, production-grade frontend interfaces with high design quality. Use when building or refining web components, pages, or apps (HTML/CSS/JS/React) with bold aesthetics, purposeful layouts, motion, and accessibility. Avoid generic AI-looking output.
|
||||
---
|
||||
|
||||
# Frontend Design
|
||||
|
||||
## Overview
|
||||
|
||||
Build memorable, functional interfaces with a clear aesthetic direction (no generic templates). Focus on bold typography, cohesive palettes, purposeful motion, semantic structure, and accessibility.
|
||||
|
||||
## Quick Start
|
||||
- Collect intent: purpose, audience, platform constraints, framework, delivery format (HTML/React/Vue).
|
||||
- Choose an aesthetic direction and signature move (stripe, glow, grain, magazine stack). See `references/aesthetic-playbook.md`.
|
||||
- Define tokens: fonts, palette, shadows, radii, spacing scale. Load fonts early.
|
||||
- Plan layout: hero + supporting sections, data/timeline rails, cards; pick grid system and motion plan.
|
||||
- Build semantic markup, wire CSS variables, add motion with staggered reveals, then run accessibility and responsive checks.
|
||||
|
||||
## Workflow
|
||||
|
||||
### 1) Define intent and aesthetic
|
||||
- Ask for: target users, tone (brutalist, editorial, neon, soft craft, industrial, etc.), content types (cards, forms, charts), performance constraints.
|
||||
- Pick a single memorable gesture and stick to it. Avoid mixed-font chaos unless the style calls for it.
|
||||
- If the user is vague, propose 2–3 aesthetic directions from `references/aesthetic-playbook.md` and confirm.
|
||||
|
||||
### 2) Plan structure and tokens
|
||||
- Establish CSS variables for palette, shadows, radii, spacing, and motion curve. Keep accent count to 1–2.
|
||||
- Choose font pairing (display + body, optional mono). Provide fallbacks after custom fonts.
|
||||
- Map sections and micro-interactions. For vanilla builds, start from semantic HTML; for React, break into composable pieces (Hero, FeatureList, Timeline, CTA Rail).
|
||||
- Reference `references/implementation-patterns.md` for layout, motion, accessibility, and responsive patterns.
|
||||
|
||||
### 3) Build and animate
|
||||
- Markup: semantic headings, skip links, ARIA labels for interactive elements, descriptive alt text.
|
||||
- Layout: prefer CSS Grid for macro and Flexbox for clusters. Break the grid deliberately (asymmetry, overlaps) while preserving readability.
|
||||
- Styling: use custom backgrounds (gradient meshes, grain, hatch) to avoid flat color; design buttons and cards with intentional borders/shadows.
|
||||
- Motion: orchestrate a few meaningful animations (page-load stagger, hover magnetic lift, scroll reveals). Guard with `prefers-reduced-motion`.
|
||||
- Data-driven UI: define arrays of content (cards, metrics, steps) to keep components DRY and easy to restyle.
|
||||
|
||||
### 4) Polish and QA
|
||||
- Responsive: collapse grids, maintain padding, ensure CTAs remain prominent on mobile, swap hover cues for focus/active styles.
|
||||
- Accessibility: one `h1`, logical heading order, focus styles, contrast AA+, labeled inputs, `aria-live` where status changes.
|
||||
- Performance: avoid heavy shadows on mobile, compress/limit assets, use font-display swap, prefer CSS animations over JS-heavy effects.
|
||||
|
||||
## References
|
||||
- `references/aesthetic-playbook.md`: Pick strong aesthetic directions with fonts, colors, layout, and motion cues.
|
||||
- `references/implementation-patterns.md`: HTML/React patterns, tokens, motion recipes, responsive and accessibility guidance.
|
||||
|
||||
## Assets
|
||||
- `assets/vanilla-starter/`: Ready-to-run vanilla HTML/CSS/JS concept (avant studio theme) with gradients, grain, staggered reveals, skip link, and accessible structure. Copy and retheme by updating CSS variables, fonts, and content.
|
||||
@@ -0,0 +1,131 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Avant Studio</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;700&family=Newsreader:opsz,wght@6..72,400;600&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="./style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<a class="skip-link" href="#main">Skip to content</a>
|
||||
<div class="grain"></div>
|
||||
<header class="top-bar">
|
||||
<div class="logo">Avant Studio</div>
|
||||
<nav>
|
||||
<a href="#main">Work</a>
|
||||
<a href="#process">Process</a>
|
||||
<a href="#contact">Contact</a>
|
||||
</nav>
|
||||
<button class="cta">Start a project</button>
|
||||
</header>
|
||||
|
||||
<main id="main">
|
||||
<section class="hero">
|
||||
<div class="hero-copy">
|
||||
<p class="eyebrow">Design lab</p>
|
||||
<h1>Striking, production-ready frontends without the generic glaze.</h1>
|
||||
<p class="lede">We craft visceral digital spaces that move fast, feel tactile, and stay memorable. Built with intent, tuned for launch.</p>
|
||||
<div class="actions">
|
||||
<button class="cta primary">See capabilities</button>
|
||||
<button class="ghost">View a live concept</button>
|
||||
</div>
|
||||
<div class="stats">
|
||||
<div><span>42</span> shipped sites</div>
|
||||
<div><span>95%</span> lighthouse perf</div>
|
||||
<div><span>0</span> generic templates</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hero-card reveal">
|
||||
<div class="tag">Now launching</div>
|
||||
<div class="card-body">
|
||||
<h2>Neon Observatory</h2>
|
||||
<p>A retro-futurist control room with live telemetry, aurora gradients, and glitch hover states.</p>
|
||||
<div class="pill">CSS Grid</div>
|
||||
<div class="pill">Framer Motion</div>
|
||||
<div class="pill">ARIA-first</div>
|
||||
<div class="line"></div>
|
||||
<div class="meta">
|
||||
<span>ETA: 2 weeks</span>
|
||||
<span>Visual QA locked</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="grid" id="process">
|
||||
<article class="panel reveal">
|
||||
<p class="eyebrow">01 / Intent</p>
|
||||
<h3>Pick a bold narrative, define the signature move, lock the palette.</h3>
|
||||
<p>We interrogate purpose, audience, and constraints. Each build commits to one unmistakable gesture—stripe, glow, or grain—and sticks to it.</p>
|
||||
</article>
|
||||
<article class="panel reveal">
|
||||
<p class="eyebrow">02 / Build</p>
|
||||
<h3>Real code: semantic HTML, layered CSS, purposeful motion.</h3>
|
||||
<p>CSS variables for theming, responsive grids, progressive enhancement. Animations gated by prefers-reduced-motion.</p>
|
||||
</article>
|
||||
<article class="panel reveal">
|
||||
<p class="eyebrow">03 / Polish</p>
|
||||
<h3>Accessibility, performance, and tactile interactions.</h3>
|
||||
<p>Contrast checks, keyboard navigation, tuned shadows, intentional hover states. We avoid boilerplate aesthetics at all costs.</p>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section class="timeline" id="contact">
|
||||
<div class="timeline-head">
|
||||
<p class="eyebrow">Field notes</p>
|
||||
<h3>Recent drops</h3>
|
||||
</div>
|
||||
<div class="timeline-rail">
|
||||
<div class="dot"></div>
|
||||
<div class="dot"></div>
|
||||
<div class="dot"></div>
|
||||
</div>
|
||||
<div class="timeline-items">
|
||||
<div class="timeline-card reveal">
|
||||
<p class="label">2024</p>
|
||||
<h4>Aerial atlas</h4>
|
||||
<p>Editorial map portal with split-screen narrative and scroll-synced chapters.</p>
|
||||
</div>
|
||||
<div class="timeline-card reveal">
|
||||
<p class="label">2023</p>
|
||||
<h4>Glassfoundry</h4>
|
||||
<p>Industrial dashboard with translucent panels, border glows, and live system vitals.</p>
|
||||
</div>
|
||||
<div class="timeline-card reveal">
|
||||
<p class="label">2022</p>
|
||||
<h4>Islands</h4>
|
||||
<p>Pastel travel companion with hand-drawn dividers, slow float animations, and tactile cards.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="marquee" aria-hidden="true">
|
||||
<span>Distinctive frontends · Real code · No generic glaze · </span>
|
||||
<span>Distinctive frontends · Real code · No generic glaze · </span>
|
||||
<span>Distinctive frontends · Real code · No generic glaze · </span>
|
||||
</div>
|
||||
<div class="footer-grid">
|
||||
<div>
|
||||
<p class="eyebrow">Contact</p>
|
||||
<a href="mailto:hello@avant.studio">hello@avant.studio</a>
|
||||
</div>
|
||||
<div>
|
||||
<p class="eyebrow">Social</p>
|
||||
<a href="#">Are.na</a>
|
||||
<a href="#">Behance</a>
|
||||
</div>
|
||||
<div>
|
||||
<p class="eyebrow">Collab</p>
|
||||
<p>We ship components, pages, systems, and microsites.</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="./script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,13 @@
|
||||
const observer = new IntersectionObserver(
|
||||
entries => {
|
||||
entries.forEach(entry => {
|
||||
if (entry.isIntersecting) {
|
||||
entry.target.classList.add('visible');
|
||||
observer.unobserve(entry.target);
|
||||
}
|
||||
});
|
||||
},
|
||||
{ threshold: 0.2 }
|
||||
);
|
||||
|
||||
document.querySelectorAll('.reveal').forEach(el => observer.observe(el));
|
||||
@@ -0,0 +1,425 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;700&family=Newsreader:opsz,wght@6..72,400;600&display=swap');
|
||||
|
||||
:root {
|
||||
--bg: #0b0c10;
|
||||
--fg: #f6f1e6;
|
||||
--muted: #a7acba;
|
||||
--accent: #ff6b4a;
|
||||
--accent-2: #6b9bff;
|
||||
--card: rgba(255, 255, 255, 0.03);
|
||||
--stroke: rgba(255, 255, 255, 0.12);
|
||||
--radius: 18px;
|
||||
--shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
|
||||
--ease: cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'Newsreader', 'Times New Roman', serif;
|
||||
color: var(--fg);
|
||||
background: var(--bg);
|
||||
min-height: 100vh;
|
||||
line-height: 1.7;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
background-image:
|
||||
radial-gradient(1200px at 15% 20%, rgba(107, 155, 255, 0.25), transparent 50%),
|
||||
radial-gradient(1400px at 80% 0%, rgba(255, 107, 74, 0.2), transparent 50%),
|
||||
linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
|
||||
}
|
||||
|
||||
.grain {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
background:
|
||||
radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04), transparent 35%),
|
||||
repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 3px);
|
||||
mix-blend-mode: soft-light;
|
||||
opacity: 0.7;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.skip-link {
|
||||
position: absolute;
|
||||
left: -999px;
|
||||
top: 0;
|
||||
padding: 12px 16px;
|
||||
background: var(--accent);
|
||||
color: #0b0c10;
|
||||
border-radius: 8px;
|
||||
font-weight: 700;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.skip-link:focus {
|
||||
left: 16px;
|
||||
top: 16px;
|
||||
}
|
||||
|
||||
.top-bar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 18px 36px;
|
||||
backdrop-filter: blur(10px);
|
||||
background: rgba(11, 12, 16, 0.75);
|
||||
border-bottom: 1px solid var(--stroke);
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-family: 'Bricolage Grotesque', 'Arial Black', sans-serif;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
nav {
|
||||
display: flex;
|
||||
gap: 18px;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
nav a {
|
||||
padding: 8px 12px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid transparent;
|
||||
transition: border-color 220ms var(--ease), color 220ms var(--ease);
|
||||
}
|
||||
|
||||
nav a:hover,
|
||||
nav a:focus-visible {
|
||||
border-color: var(--stroke);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
button {
|
||||
font-family: 'Bricolage Grotesque', sans-serif;
|
||||
font-weight: 700;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.cta {
|
||||
padding: 12px 18px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(120deg, var(--accent), var(--accent-2));
|
||||
color: #0b0c10;
|
||||
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
|
||||
transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
|
||||
}
|
||||
|
||||
.cta:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
.hero {
|
||||
display: grid;
|
||||
grid-template-columns: 1.2fr 0.8fr;
|
||||
gap: 32px;
|
||||
padding: 96px 36px 48px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.hero-copy h1 {
|
||||
font-family: 'Bricolage Grotesque', sans-serif;
|
||||
font-size: clamp(2.4rem, 5vw, 3.6rem);
|
||||
line-height: 1.1;
|
||||
letter-spacing: -0.03em;
|
||||
margin: 12px 0;
|
||||
}
|
||||
|
||||
.hero .lede {
|
||||
max-width: 56ch;
|
||||
color: var(--muted);
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.18em;
|
||||
font-size: 0.78rem;
|
||||
color: var(--accent);
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
margin: 24px 0 18px;
|
||||
}
|
||||
|
||||
.ghost {
|
||||
padding: 12px 16px;
|
||||
border-radius: 999px;
|
||||
background: transparent;
|
||||
border: 1.5px solid var(--stroke);
|
||||
color: var(--fg);
|
||||
transition: border-color 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
|
||||
}
|
||||
|
||||
.ghost:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
||||
gap: 12px;
|
||||
margin-top: 20px;
|
||||
color: var(--muted);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.stats span {
|
||||
display: block;
|
||||
font-family: 'Bricolage Grotesque', sans-serif;
|
||||
font-size: 1.5rem;
|
||||
color: var(--fg);
|
||||
}
|
||||
|
||||
.hero-card {
|
||||
background: var(--card);
|
||||
border: 1px solid var(--stroke);
|
||||
border-radius: 22px;
|
||||
padding: 24px;
|
||||
box-shadow: var(--shadow);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.hero-card::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -30%;
|
||||
background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.04), transparent 45%);
|
||||
transform: rotate(8deg);
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.hero-card .tag {
|
||||
display: inline-block;
|
||||
padding: 8px 12px;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.07);
|
||||
color: var(--accent);
|
||||
font-size: 0.85rem;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.hero-card .card-body {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.hero-card h2 {
|
||||
font-family: 'Bricolage Grotesque', sans-serif;
|
||||
margin: 12px 0 8px;
|
||||
}
|
||||
|
||||
.hero-card p {
|
||||
color: var(--muted);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.pill {
|
||||
display: inline-block;
|
||||
padding: 8px 12px;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid var(--stroke);
|
||||
margin: 4px 6px 4px 0;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.line {
|
||||
margin: 16px 0;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, var(--accent), transparent);
|
||||
}
|
||||
|
||||
.meta {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
color: var(--muted);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 18px;
|
||||
padding: 48px 36px;
|
||||
}
|
||||
|
||||
.panel {
|
||||
border: 1px solid var(--stroke);
|
||||
border-radius: var(--radius);
|
||||
padding: 22px;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
|
||||
.panel h3 {
|
||||
margin: 6px 0 10px;
|
||||
font-family: 'Bricolage Grotesque', sans-serif;
|
||||
}
|
||||
|
||||
.panel p {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.timeline {
|
||||
padding: 24px 36px 80px;
|
||||
border-top: 1px solid var(--stroke);
|
||||
}
|
||||
|
||||
.timeline-head h3 {
|
||||
font-family: 'Bricolage Grotesque', sans-serif;
|
||||
margin: 8px 0 16px;
|
||||
}
|
||||
|
||||
.timeline-rail {
|
||||
position: relative;
|
||||
height: 3px;
|
||||
background: var(--stroke);
|
||||
border-radius: 999px;
|
||||
margin: 24px 0 32px;
|
||||
}
|
||||
|
||||
.timeline-rail .dot {
|
||||
position: absolute;
|
||||
top: -6px;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
background: var(--accent);
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 0 6px rgba(255, 107, 74, 0.15);
|
||||
}
|
||||
|
||||
.timeline-rail .dot:nth-child(1) { left: 8%; }
|
||||
.timeline-rail .dot:nth-child(2) { left: 50%; }
|
||||
.timeline-rail .dot:nth-child(3) { left: 88%; }
|
||||
|
||||
.timeline-items {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.timeline-card {
|
||||
border: 1px solid var(--stroke);
|
||||
border-radius: var(--radius);
|
||||
padding: 18px;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.timeline-card .label {
|
||||
font-size: 0.9rem;
|
||||
letter-spacing: 0.12em;
|
||||
color: var(--accent);
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.timeline-card h4 {
|
||||
margin: 4px 0 8px;
|
||||
font-family: 'Bricolage Grotesque', sans-serif;
|
||||
}
|
||||
|
||||
.timeline-card p {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.footer {
|
||||
border-top: 1px solid var(--stroke);
|
||||
padding: 28px 36px 48px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.marquee {
|
||||
display: grid;
|
||||
grid-auto-flow: column;
|
||||
gap: 16px;
|
||||
font-family: 'Bricolage Grotesque', sans-serif;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.14em;
|
||||
color: var(--muted);
|
||||
animation: scroll 18s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes scroll {
|
||||
from { transform: translateX(0); }
|
||||
to { transform: translateX(-50%); }
|
||||
}
|
||||
|
||||
.footer-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
gap: 12px;
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.footer-grid a {
|
||||
display: block;
|
||||
color: var(--fg);
|
||||
text-decoration: underline;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.reveal {
|
||||
opacity: 0;
|
||||
transform: translateY(22px);
|
||||
transition: transform 320ms var(--ease), opacity 320ms var(--ease);
|
||||
}
|
||||
|
||||
.reveal.visible {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.hero {
|
||||
grid-template-columns: 1fr;
|
||||
padding-top: 72px;
|
||||
}
|
||||
|
||||
.top-bar {
|
||||
position: sticky;
|
||||
}
|
||||
|
||||
nav {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.actions {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
* {
|
||||
animation: none !important;
|
||||
transition: none !important;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
# Aesthetic Playbook
|
||||
|
||||
Use these ready-to-go directions to avoid generic looks. Pick one and commit; swap fonts/colors as needed but keep the intent.
|
||||
|
||||
## Brutalist Raw
|
||||
- Fonts: Display `Bricolage Grotesque` or `Migra`; Body `IBM Plex Sans` or `Atkinson Hyperlegible`.
|
||||
- Colors: Harsh contrast (charcoal/ivory) with one acidic accent (#ff5c39 or #f2ff49). Keep surfaces flat with thick borders.
|
||||
- Layout: Grid-breaking blocks, oversized headings, visible rules, obvious gutters. Use all-caps labels and numeric tags.
|
||||
- Motion: Snappy entrance (0.35s) with slight overshoot; hover states that invert colors or reveal underlines.
|
||||
- Backgrounds: Checkerboard, dotted patterns, or single bold stripe angled across the hero.
|
||||
|
||||
## Editorial / Magazine
|
||||
- Fonts: Display `Canela`, `Fraunces`, or `Cormorant Garamond`; Body `Newsreader` or `Source Serif 4`; Accents `DM Mono`.
|
||||
- Colors: Muted palettes (deep ink, warm off-white, burnt orange accents). Let photos bleed to the edge.
|
||||
- Layout: Tall columns, asymmetrical whitespace, floating pull-quotes, generous line-height. Use hairline rules and small caps.
|
||||
- Motion: Slow fades (0.6s) and subtle parallax on hero imagery. Stagger text reveals by 80–120ms.
|
||||
- Backgrounds: Fine grain or paper texture overlay with low opacity.
|
||||
|
||||
## Retro-Futuristic Neon
|
||||
- Fonts: Display `Space Mono` or `Bungee`; Body `Sora` or `DM Sans`.
|
||||
- Colors: Dark base (#05060e) with neon accents (#61f4de, #ff6ad5, #8af5ff). High glow shadows.
|
||||
- Layout: Angled cards, pill buttons, floating ribbons, console-style stats. Use thin outlines and scanlines.
|
||||
- Motion: Glitch keyframes, sweep highlights on hover, marquee strips for metadata.
|
||||
- Backgrounds: Gradient mesh with cyan/magenta, layered with transparent grid lines or starfield dots.
|
||||
|
||||
## Soft Craft / Pastel
|
||||
- Fonts: Display `Clash Display` or `Epilogue`; Body `Manrope` or `Sen`.
|
||||
- Colors: Warm pastel base (#f6ede3) with clay/terracotta (#d96b52) and sage (#8ca28f) accents.
|
||||
- Layout: Rounded blobs, gentle shadows (20–30px blur), stacked cards with stitched borders, hand-drawn icons if available.
|
||||
- Motion: Ease-in-out float (2–4s) on background shapes; hover lifts with shadow color shifts.
|
||||
- Backgrounds: Irregular gradient blobs, subtle noise at 8–12% opacity to avoid flatness.
|
||||
|
||||
## Industrial / Utilitarian
|
||||
- Fonts: Display `Compacta` or `Archivo Black`; Body `Barlow` or `Work Sans`; Numerics `JetBrains Mono`.
|
||||
- Colors: Cold neutrals (#101010, #e6e6e6) with hazard accents (#ffb400 or #2de1c2). Use muted teal for secondary.
|
||||
- Layout: Rigid grids, labeled panels, visible coordinates and data tags, boxed callouts with corner ticks.
|
||||
- Motion: Linear 0.25–0.35s transitions; sliding panels; progress bars with stripes.
|
||||
- Backgrounds: Carbon fiber or diagonal hatch via CSS repeating-linear-gradients; add soft inner glow for depth.
|
||||
|
||||
## How to Choose
|
||||
1. Identify the emotional goal (edgy, luxe, calm, industrial, playful).
|
||||
2. Pick fonts first, then colors that suit the fonts’ character.
|
||||
3. Decide on a single signature move (checkerboard stripe, neon glow, magazine pull-quote). Everything else supports it.
|
||||
@@ -0,0 +1,50 @@
|
||||
# Implementation Patterns
|
||||
|
||||
Use these patterns to move quickly while keeping the aesthetic sharp. Load only sections you need.
|
||||
|
||||
## Vanilla HTML/CSS/JS Workflow
|
||||
- Start with semantic structure: `header`, `main`, `section`, `article`, `footer`. Keep nav skip-links (`a.skip-nav` to `#main`).
|
||||
- Define theme tokens up top:
|
||||
```css
|
||||
:root { --bg: #0b0c10; --fg: #f7f2e9; --accent: #ff6b4a; --muted: #9aa1b5; --radius: 18px; --shadow: 0 18px 40px rgba(0,0,0,0.35); }
|
||||
```
|
||||
- Load fonts via `<link>` or `@import`; set base styles on `body` (smooth scrolling, background texture, max width handling).
|
||||
- Layout: use CSS Grid for macro layout, Flexbox for inline clusters. Mix asymmetry: stagger column widths (e.g., `grid-template-columns: 1.1fr 0.9fr`).
|
||||
- Motion: prefer CSS keyframes and `transition: transform 320ms var(--ease)`; orchestrate with delays on child elements. Use `prefers-reduced-motion` guards.
|
||||
- Interactivity: lean on small JS to toggle classes, e.g., IntersectionObserver for reveal animations.
|
||||
|
||||
## React Patterns
|
||||
- Create a `Theme` object for tokens and pass via context or props. Keep components focused (Hero, FeatureList, TestimonialRail).
|
||||
- Use CSS Modules, styled-components, or Tailwind? If Tailwind is mandated, extend the config with custom fonts, gradients, and shadows; avoid defaults-only look.
|
||||
- Animations: prefer Framer Motion for page-load + hover effects; stagger `variants` and keep durations <0.5s.
|
||||
- Data-driven UI: define arrays for cards, metrics, timelines; map to components to keep markup DRY and easily themeable.
|
||||
- Accessibility: forward refs for focusable elements; use `aria-live` for status, `aria-pressed` for toggles, and proper `alt` text for imagery.
|
||||
|
||||
## Layout & Spacing
|
||||
- Hero patterns: split-screen with oversized headline and vertical nav stripe; magazine stack with overlapping cards; timeline rail with labeled markers.
|
||||
- Micro-layout: use 4/8 spacing scale; keep heading-to-body ratio ~1.6–1.8; limit max-width of prose to 68–76ch.
|
||||
- Negative space vs density: if maximalist, constrain chaos inside frames; if minimal, increase margins and align to a visible grid.
|
||||
|
||||
## Color, Texture, and Backgrounds
|
||||
- Always define CSS variables for palette. Keep 1–2 primary + 1 accent. Add noise overlays to avoid sterile flatness:
|
||||
```css
|
||||
.grain { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.04), transparent 40%), repeating-linear-gradient(90deg, rgba(255,255,255,.018), rgba(255,255,255,.018) 1px, transparent 1px, transparent 3px); mix-blend-mode: soft-light; opacity: 0.7; }
|
||||
```
|
||||
- Gradient mesh idea: layer multiple radial gradients with different sizes and opacities; rotate a pseudo-element slowly.
|
||||
- Borders: try 1.5–2px strokes with `border-image` gradients for subtle sheen.
|
||||
|
||||
## Motion Recipes
|
||||
- Staggered reveal: apply `transform: translateY(20px); opacity: 0;` then add `.visible` to animate to neutral.
|
||||
- Magnetic hover: on buttons/cards, use `transition: transform 220ms ease, box-shadow 220ms ease;` and slightly rotate/translate toward cursor.
|
||||
- Hero load: fade-in background first, then text with 80ms steps, then accent lines sliding in from edges.
|
||||
|
||||
## Responsive Guidance
|
||||
- Collapse grids to single column below 900px; center align key text; maintain comfortable padding (min 18–22px).
|
||||
- Replace hover-dependent cues with clear focus/active styles. Increase tap targets to 44px minimum.
|
||||
- Test with viewport meta tag, clamp() for font sizes, and avoid fixed heights; use `minmax` grids.
|
||||
|
||||
## QA Checklist
|
||||
- Color contrast passes WCAG AA for text/background. Verify focus order and skip link.
|
||||
- Assets load with sensible fallbacks (system font stack declared after customs).
|
||||
- Animations respect `prefers-reduced-motion: reduce`.
|
||||
- Verify semantics: one `h1`, landmarks defined, inputs labeled, buttons not masquerading as links.
|
||||
Reference in New Issue
Block a user