mirror of
https://github.com/layer-systems/website.git
synced 2026-09-13 06:07:29 +02:00
Reworks the site around a signature "layer stack" motif — the relay is literally one layer between a client and the wider Nostr network, so the brand mark is that stack rather than a logo standing in for it. - New color/type/spacing tokens (src/index.css, tailwind.config.ts): cool "Paper" light surface, deep "Ink" dark surface, relay-amber accent, navy/cyan structural colors; JetBrains Mono as the display face for headlines and data, Inter for body copy (both self-hosted via fontsource to satisfy the existing font-src 'self' CSP). - New brand components: LayerStack (hero signature), LayerDivider, Wordmark, SiteHeader/SiteFooter, shared across the landing page, legal pages, and the new styleguide. - Reworked the landing page hero, feature grid, and connection steps with benefit-first, plain-voice copy. - Added docs/DESIGN_STYLEGUIDE.md and a live /styleguide route documenting the system. - Fixed structural gaps: /messages had no route, and Explore/Messages had no sidebar navigation entry despite being real pages; both now sit in the same app shell as Dashboard. Closes #8 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FvaqCkYtksTvsEKGzjGcde
142 lines
3.8 KiB
TypeScript
142 lines
3.8 KiB
TypeScript
import type { Config } from "tailwindcss";
|
|
import tailwindcssAnimate from "tailwindcss-animate";
|
|
|
|
export default {
|
|
darkMode: ["class"],
|
|
content: [
|
|
"./pages/**/*.{ts,tsx}",
|
|
"./components/**/*.{ts,tsx}",
|
|
"./app/**/*.{ts,tsx}",
|
|
"./src/**/*.{ts,tsx}",
|
|
],
|
|
prefix: "",
|
|
theme: {
|
|
container: {
|
|
center: true,
|
|
padding: '2rem',
|
|
screens: {
|
|
'2xl': '1400px'
|
|
}
|
|
},
|
|
extend: {
|
|
fontFamily: {
|
|
sans: ['var(--font-sans)'],
|
|
display: ['var(--font-display)'],
|
|
mono: ['var(--font-mono)'],
|
|
},
|
|
colors: {
|
|
border: 'hsl(var(--border))',
|
|
input: 'hsl(var(--input))',
|
|
ring: 'hsl(var(--ring))',
|
|
background: 'hsl(var(--background))',
|
|
foreground: 'hsl(var(--foreground))',
|
|
primary: {
|
|
DEFAULT: 'hsl(var(--primary))',
|
|
foreground: 'hsl(var(--primary-foreground))'
|
|
},
|
|
secondary: {
|
|
DEFAULT: 'hsl(var(--secondary))',
|
|
foreground: 'hsl(var(--secondary-foreground))'
|
|
},
|
|
destructive: {
|
|
DEFAULT: 'hsl(var(--destructive))',
|
|
foreground: 'hsl(var(--destructive-foreground))'
|
|
},
|
|
muted: {
|
|
DEFAULT: 'hsl(var(--muted))',
|
|
foreground: 'hsl(var(--muted-foreground))'
|
|
},
|
|
accent: {
|
|
DEFAULT: 'hsl(var(--accent))',
|
|
foreground: 'hsl(var(--accent-foreground))'
|
|
},
|
|
popover: {
|
|
DEFAULT: 'hsl(var(--popover))',
|
|
foreground: 'hsl(var(--popover-foreground))'
|
|
},
|
|
card: {
|
|
DEFAULT: 'hsl(var(--card))',
|
|
foreground: 'hsl(var(--card-foreground))'
|
|
},
|
|
brand: {
|
|
ink: 'hsl(var(--brand-ink))',
|
|
'ink-raised': 'hsl(var(--brand-ink-raised))',
|
|
navy: 'hsl(var(--brand-navy))',
|
|
'navy-light': 'hsl(var(--brand-navy-light))',
|
|
cyan: 'hsl(var(--brand-cyan))',
|
|
amber: 'hsl(var(--brand-amber))'
|
|
},
|
|
sidebar: {
|
|
DEFAULT: 'hsl(var(--sidebar))',
|
|
foreground: 'hsl(var(--sidebar-foreground))',
|
|
primary: 'hsl(var(--sidebar-primary))',
|
|
'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',
|
|
accent: 'hsl(var(--sidebar-accent))',
|
|
'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',
|
|
border: 'hsl(var(--sidebar-border))',
|
|
ring: 'hsl(var(--sidebar-ring))'
|
|
}
|
|
},
|
|
borderRadius: {
|
|
lg: 'var(--radius)',
|
|
md: 'calc(var(--radius) - 2px)',
|
|
sm: 'calc(var(--radius) - 4px)'
|
|
},
|
|
keyframes: {
|
|
'accordion-down': {
|
|
from: {
|
|
height: '0'
|
|
},
|
|
to: {
|
|
height: 'var(--radix-accordion-content-height)'
|
|
}
|
|
},
|
|
'accordion-up': {
|
|
from: {
|
|
height: 'var(--radix-accordion-content-height)'
|
|
},
|
|
to: {
|
|
height: '0'
|
|
}
|
|
},
|
|
'layer-settle': {
|
|
from: {
|
|
transform: 'translateY(var(--settle-offset, -14px))',
|
|
opacity: '0'
|
|
},
|
|
to: {
|
|
transform: 'translateY(0)',
|
|
opacity: '1'
|
|
}
|
|
},
|
|
'signal-pulse': {
|
|
'0%, 100%': {
|
|
opacity: '0.5'
|
|
},
|
|
'50%': {
|
|
opacity: '1'
|
|
}
|
|
},
|
|
'fade-up': {
|
|
from: {
|
|
transform: 'translateY(10px)',
|
|
opacity: '0'
|
|
},
|
|
to: {
|
|
transform: 'translateY(0)',
|
|
opacity: '1'
|
|
}
|
|
}
|
|
},
|
|
animation: {
|
|
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
'accordion-up': 'accordion-up 0.2s ease-out',
|
|
'layer-settle': 'layer-settle 0.7s cubic-bezier(0.16, 1, 0.3, 1) both',
|
|
'signal-pulse': 'signal-pulse 2.4s ease-in-out infinite',
|
|
'fade-up': 'fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both'
|
|
}
|
|
}
|
|
},
|
|
plugins: [tailwindcssAnimate],
|
|
} satisfies Config;
|