feat(aitm-website): GitHub dark theme to match gitgram web

Re-skin the AITimeMachine marketing site (93 pages) to GitHub's dark palette so
both products feel like one family: #0a0c10/#161b22 surfaces, #30363d borders,
#c9d1d9/#8b949e text, #58a6ff link blue, #238636/#2ea043 CTA green. Adds CSS
vars + Tailwind tokens mirroring gitgram/web, remaps default gray/blue/green
scales onto the GitHub palette, flattens off-brand gradients/glows, Space Grotesk
font + GitHub-style scrollbars. tsc clean, next build green (93/93 pages).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
caelum0x 2026-06-29 02:23:48 +03:00
parent 7aa69d0864
commit 76d8f69185
8 changed files with 282 additions and 29 deletions

View File

@ -1,9 +1,111 @@
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
body {
/*
* GitHub dark theme — mirrors gitgram/web so AITimeMachine's marketing site
* feels like the same product family. Tailwind color scales are remapped onto
* this palette in tailwind.config.js; these CSS variables back the named
* tokens (bg-background, text-foreground, border-border, ...).
*/
:root {
/* Surfaces */
--background: #0a0c10; /* page background */
--background-light: #161b22; /* section background */
--background-dark: #010409; /* deepest background */
--surface: #161b22; /* card background */
--surface-secondary: #21262d; /* hover / secondary surface */
--surface-dark: #0d1117; /* darker surface */
/* Border */
--border: #30363d;
/* Text */
--foreground: #c9d1d9; /* primary text */
--foreground-secondary: #8b949e; /* secondary text */
/* Accents */
--primary: #58a6ff; /* GitHub blue — links */
--primary-hover: #79c0ff;
--accent: #238636; /* GitHub green — primary CTA */
--accent-hover: #2ea043;
/* Semantic */
--success: #238636;
--success-hover: #2ea043;
--error: #da3633;
--warning: #d29922;
}
* {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
box-sizing: border-box;
border-color: var(--border);
}
html,
body {
height: 100%;
}
body {
color: var(--foreground);
background: var(--background);
font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI',
'Noto Sans', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Mono for code, matching GitHub. */
code,
pre,
kbd,
samp {
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
'Liberation Mono', monospace;
}
/* GitHub-style links default to the accent blue. */
a {
color: inherit;
text-decoration: none;
}
/* Subtle, GitHub-like scrollbars on dark surfaces. */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: var(--surface-dark);
}
::-webkit-scrollbar-thumb {
background: #30363d;
border-radius: 6px;
border: 2px solid var(--surface-dark);
}
::-webkit-scrollbar-thumb:hover {
background: #484f58;
}
/* Accessibility helpers carried over from the design. */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.focus-visible:focus {
outline: 2px solid var(--primary);
outline-offset: 2px;
}

View File

@ -69,23 +69,19 @@ const integrations = [
export default function LandingPage() {
return (
<div className="min-h-screen bg-gray-950 text-white">
<div className="min-h-screen bg-background text-foreground">
<Navbar />
{/* Hero */}
<section className="relative overflow-hidden">
{/* Background gradient */}
<div className="absolute inset-0 bg-gradient-to-b from-blue-900/20 via-transparent to-transparent" />
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-[800px] h-[800px] bg-blue-500/10 rounded-full blur-3xl" />
<section className="relative overflow-hidden border-b border-gray-800">
<div className="relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-24 sm:py-32 text-center">
<div className="inline-flex items-center gap-2 bg-gray-800/50 border border-gray-700 rounded-full px-4 py-1.5 text-sm mb-8">
<div className="inline-flex items-center gap-2 bg-gray-900 border border-gray-800 rounded-full px-4 py-1.5 text-sm mb-8">
<span className="w-2 h-2 bg-green-500 rounded-full animate-pulse" />
<span className="text-gray-300">Now with Claude Code integration</span>
</div>
<h1 className="text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-bold tracking-tight mb-6">
<span className="bg-clip-text text-transparent bg-gradient-to-r from-blue-400 via-purple-400 to-pink-400">
<span className="text-primary">
Git versions code.
</span>
<br />
@ -298,8 +294,7 @@ export default function LandingPage() {
{/* CTA */}
<section className="py-20 sm:py-24">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="relative overflow-hidden bg-gradient-to-r from-blue-900/50 to-purple-900/50 border border-gray-800 rounded-3xl p-8 sm:p-12 text-center">
<div className="absolute inset-0 bg-gradient-to-r from-blue-500/10 to-purple-500/10" />
<div className="relative overflow-hidden bg-gray-900 border border-gray-800 rounded-2xl p-8 sm:p-12 text-center">
<div className="relative">
<h2 className="text-3xl sm:text-4xl font-bold mb-4">Ready to Time Travel?</h2>
<p className="text-gray-400 mb-8 max-w-xl mx-auto">

View File

@ -620,8 +620,7 @@ export default function PricingPage() {
{/* Final CTA */}
<section className="py-20 sm:py-24">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="relative overflow-hidden bg-gradient-to-r from-blue-900/50 to-purple-900/50 border border-gray-800 rounded-3xl p-10 sm:p-14 text-center">
<div className="absolute inset-0 bg-gradient-to-r from-blue-500/10 to-purple-500/10 pointer-events-none" />
<div className="relative overflow-hidden bg-gray-900 border border-gray-800 rounded-2xl p-10 sm:p-14 text-center">
<div className="relative">
<h2 className="text-3xl sm:text-4xl font-bold mb-4">
Start before your next AI session breaks something

View File

@ -32,13 +32,13 @@ const footerLinks = {
export function Footer() {
return (
<footer className="border-t border-gray-800 bg-gray-950">
<footer className="border-t border-gray-800 bg-background">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
<div className="grid grid-cols-2 md:grid-cols-5 gap-8">
{/* Brand */}
<div className="col-span-2 md:col-span-1">
<Link href="/" className="flex items-center gap-2 mb-4">
<div className="w-8 h-8 rounded-lg bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center text-lg font-bold">
<div className="w-8 h-8 rounded-md bg-accent flex items-center justify-center text-lg font-bold text-white">
A
</div>
<span className="text-lg font-bold text-white">Gitgram TimeMachine</span>

View File

@ -32,13 +32,13 @@ export function Navbar() {
);
return (
<nav className="sticky top-0 z-50 border-b border-gray-800 bg-gray-950/80 backdrop-blur-xl">
<nav className="sticky top-0 z-50 border-b border-gray-800 bg-background/80 backdrop-blur-xl">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex h-16 items-center justify-between">
{/* Logo */}
<div className="flex items-center">
<Link href="/" className="flex items-center gap-2">
<div className="w-8 h-8 rounded-lg bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center text-lg font-bold">
<div className="w-8 h-8 rounded-md bg-accent flex items-center justify-center text-lg font-bold text-white">
A
</div>
<span className="text-xl font-bold text-white hidden sm:block">
@ -209,7 +209,7 @@ export function Navbar() {
<Link
href="/sign-up"
onClick={() => setMobileMenuOpen(false)}
className="block mx-4 text-center bg-blue-600 hover:bg-blue-500 px-4 py-2 rounded-lg text-sm font-medium"
className="block mx-4 text-center bg-accent hover:bg-accent-hover px-4 py-2 rounded-md text-sm font-medium text-white"
>
Get Started
</Link>

View File

@ -4,21 +4,22 @@ import { cva, type VariantProps } from "class-variance-authority";
import { cn } from "@/lib/utils";
const buttonVariants = cva(
"inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-blue-500 disabled:pointer-events-none disabled:opacity-50",
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:pointer-events-none disabled:opacity-50",
{
variants: {
variant: {
default: "bg-blue-600 text-white hover:bg-blue-500",
destructive: "bg-red-600 text-white hover:bg-red-500",
outline: "border border-gray-700 bg-transparent hover:bg-gray-800 hover:text-white",
secondary: "bg-gray-800 text-white hover:bg-gray-700",
ghost: "hover:bg-gray-800 hover:text-white",
link: "text-blue-400 underline-offset-4 hover:underline",
// GitHub primary CTA is green (#238636 → hover #2ea043).
default: "bg-accent text-white hover:bg-accent-hover",
destructive: "bg-error text-white hover:bg-red-500",
outline: "border border-border bg-transparent text-foreground hover:bg-surface-secondary hover:text-white",
secondary: "bg-surface-secondary text-foreground hover:bg-border",
ghost: "text-foreground-secondary hover:bg-surface-secondary hover:text-white",
link: "text-primary underline-offset-4 hover:underline",
},
size: {
default: "h-10 px-4 py-2",
sm: "h-8 rounded-md px-3 text-xs",
lg: "h-12 rounded-lg px-8",
lg: "h-12 rounded-md px-8",
icon: "h-10 w-10",
},
},

View File

@ -1,12 +1,168 @@
/** @type {import('tailwindcss').Config} */
/*
* GitHub dark palette — mirrored from gitgram/web so AITimeMachine's marketing
* site feels like the same product family.
*
* The site was originally built on Tailwind's default `gray`/`blue`/`green`/...
* scales. Rather than hand-editing hundreds of class names, we remap those
* scales onto GitHub's restrained dark palette here. Named tokens
* (background/surface/border/foreground/primary/accent) are also exposed for
* new, intentional usage.
*/
// GitHub dark neutral ramp. Indices are chosen so the darkest shades (used as
// page/section backgrounds in the original design) land on GitHub's dark
// surfaces and the lightest shades land on GitHub's text colors.
const githubGray = {
50: '#f0f6fc',
100: '#c9d1d9', // primary text
200: '#b1bac4',
300: '#8b949e', // secondary text
400: '#6e7681', // muted text
500: '#484f58', // disabled / faint text
600: '#30363d', // borders / dividers
700: '#30363d', // borders
800: '#21262d', // hover surface / card border
900: '#161b22', // surface / card background
950: '#0d1117', // deep surface
};
// GitHub blue (links / accents).
const githubBlue = {
100: '#cae8ff',
200: '#a5d6ff',
300: '#79c0ff',
400: '#58a6ff', // primary link
500: '#388bfd',
600: '#1f6feb',
700: '#1158c7',
800: '#0d419d',
900: '#0c2d6b',
950: '#051d4d',
};
// GitHub green (primary CTA buttons / success).
const githubGreen = {
100: '#aff5b4',
200: '#7ee787',
300: '#56d364',
400: '#3fb950',
500: '#2ea043', // hover
600: '#238636', // primary
700: '#196c2e',
800: '#0f5323',
900: '#033a16',
950: '#04260f',
};
// GitHub red (danger / error).
const githubRed = {
100: '#ffdcd7',
200: '#ffc1ba',
300: '#ffa198',
400: '#ff7b72',
500: '#f85149',
600: '#da3633', // primary error
700: '#b62324',
800: '#8e1519',
900: '#67060c',
950: '#490202',
};
// GitHub yellow/amber (warning).
const githubYellow = {
100: '#f8e3a1',
200: '#f2cc60',
300: '#e3b341',
400: '#d29922', // warning
500: '#bb8009',
600: '#9e6a03',
700: '#845306',
800: '#693e00',
900: '#4b2900',
950: '#341a00',
};
module.exports = {
darkMode: 'class',
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {},
extend: {
colors: {
// Remap default scales used throughout the site onto GitHub's palette.
gray: githubGray,
slate: githubGray,
zinc: githubGray,
neutral: githubGray,
blue: githubBlue,
indigo: githubBlue,
// Fold the accent hues onto GitHub blue/green so existing gradients and
// accent chips stay on-palette instead of introducing off-brand colors.
purple: githubBlue,
violet: githubBlue,
pink: githubBlue,
green: githubGreen,
emerald: githubGreen,
teal: githubGreen,
red: githubRed,
rose: githubRed,
orange: githubYellow,
amber: githubYellow,
yellow: githubYellow,
// Named GitHub tokens (mirrors gitgram/web conventions).
background: 'var(--background)',
'background-light': 'var(--background-light)',
'background-dark': 'var(--background-dark)',
surface: 'var(--surface)',
'surface-secondary': 'var(--surface-secondary)',
'surface-dark': 'var(--surface-dark)',
border: 'var(--border)',
foreground: 'var(--foreground)',
'foreground-secondary': 'var(--foreground-secondary)',
primary: 'var(--primary)',
'primary-hover': 'var(--primary-hover)',
accent: 'var(--accent)',
'accent-hover': 'var(--accent-hover)',
success: 'var(--success)',
'success-hover': 'var(--success-hover)',
error: 'var(--error)',
warning: 'var(--warning)',
},
fontFamily: {
sans: [
'Space Grotesk',
'-apple-system',
'BlinkMacSystemFont',
'Segoe UI',
'Noto Sans',
'Helvetica',
'Arial',
'sans-serif',
],
mono: [
'ui-monospace',
'SFMono-Regular',
'SF Mono',
'Menlo',
'Consolas',
'Liberation Mono',
'monospace',
],
},
borderRadius: {
// GitHub uses subtle 6px rounding; soften the design's large radii.
lg: '0.5rem',
xl: '0.625rem',
'2xl': '0.75rem',
'3xl': '1rem',
},
},
},
plugins: [],
};

File diff suppressed because one or more lines are too long