feat: Phase 1 Aether Drift — mobile-first grid layout and token migration
Replace Discord flex layout with CSS Grid on desktop (312px sidebar + 1fr main) and overlay drawer on mobile. Migrate all discord-* class references to Aether Drift design tokens across 15 files (~200 refs). Layout: ServerSidebar becomes a fixed glass strip (md:glass-strip), ChannelSidebar gets pl-[72px] offset, bottom bar is a glass-bubble (z-105), MessageInput floats as absolute glass pill on desktop (z-110). MemberSidebar/ActivityPanel hidden on mobile via hidden md:block. Z-index stack: MobileNav backdrop z-35, sidebar z-40, glass strip z-100, bottom bar z-105, input bubble z-110, hamburger z-120, profile popout z-145, device panels z-150, modals z-200.
This commit is contained in:
@@ -7,6 +7,7 @@ export default {
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
// ── LEGACY (preserved until Phase 5 removal) ──
|
||||
discord: {
|
||||
// Backgrounds (darkest → lightest) — Discord "Dark" theme
|
||||
'bg-floating': '#080a0b',
|
||||
@@ -60,14 +61,70 @@ export default {
|
||||
'modifier-selected': 'rgba(255,255,255,0.20)',
|
||||
'modifier-accent': 'rgba(255,255,255,0.12)',
|
||||
},
|
||||
|
||||
// ── AETHER DRIFT TOKENS ──
|
||||
surface: {
|
||||
base: 'var(--bg-base)',
|
||||
channel: 'var(--bg-channel)',
|
||||
chat: 'var(--bg-chat)',
|
||||
members: 'var(--bg-members)',
|
||||
elevated: 'var(--bg-elevated)',
|
||||
input: 'var(--bg-input)',
|
||||
overlay: 'var(--bg-overlay)',
|
||||
},
|
||||
border: {
|
||||
hard: 'var(--border-hard)',
|
||||
soft: 'var(--border-soft)',
|
||||
},
|
||||
accent: {
|
||||
mint: 'var(--accent-mint)',
|
||||
peach: 'var(--accent-peach)',
|
||||
lavender: 'var(--accent-lavender)',
|
||||
sky: 'var(--accent-sky)',
|
||||
amber: 'var(--accent-amber)',
|
||||
rose: 'var(--accent-rose)',
|
||||
coral: 'var(--accent-coral)',
|
||||
primary: 'var(--accent-primary)',
|
||||
'primary-hover': 'var(--accent-primary-hover)',
|
||||
'primary-active':'var(--accent-primary-active)',
|
||||
},
|
||||
txt: {
|
||||
primary: 'var(--text-primary)',
|
||||
secondary: 'var(--text-secondary)',
|
||||
tertiary: 'var(--text-tertiary)',
|
||||
message: 'var(--text-message)',
|
||||
link: 'var(--text-link)',
|
||||
positive: 'var(--text-positive)',
|
||||
warning: 'var(--text-warning)',
|
||||
danger: 'var(--text-danger)',
|
||||
},
|
||||
interactive: {
|
||||
hover: 'var(--interactive-hover)',
|
||||
active: 'var(--interactive-active)',
|
||||
selected: 'var(--interactive-selected)',
|
||||
muted: 'var(--interactive-muted)',
|
||||
},
|
||||
status: {
|
||||
online: 'var(--status-online)',
|
||||
idle: 'var(--status-idle)',
|
||||
dnd: 'var(--status-dnd)',
|
||||
offline: 'var(--status-offline)',
|
||||
},
|
||||
glass: {
|
||||
bg: 'var(--glass-bg)',
|
||||
border: 'var(--glass-border)',
|
||||
highlight: 'var(--glass-highlight)',
|
||||
},
|
||||
notification: 'var(--notification)',
|
||||
},
|
||||
boxShadow: {
|
||||
'header': '0 1px 0 rgba(4, 4, 5, 0.2), 0 1.5px 0 rgba(6, 6, 7, 0.05), 0 2px 0 rgba(4, 4, 5, 0.05)',
|
||||
'elevation-low': '0 1px 0 rgba(4, 4, 5, 0.2), 0 1.5px 0 rgba(6, 6, 7, 0.05), 0 2px 0 rgba(4, 4, 5, 0.05)',
|
||||
'elevation-high': '0 8px 16px rgba(0, 0, 0, 0.24)',
|
||||
'glass': '0 2px 8px rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.15), inset 0 1px 0 var(--glass-highlight)',
|
||||
},
|
||||
fontFamily: {
|
||||
sans: ['"gg sans"', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif'],
|
||||
sans: ['Inter', '-apple-system', 'BlinkMacSystemFont', 'system-ui', 'sans-serif'],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user