Found a neat trick using Outpost's CSS custom properties to create glassmorphism-style topic cards that automatically adapt to light/dark mode. Drop this into your community's custom CSS:
.topic-card {
background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
backdrop-filter: blur(12px);
border: 1px solid var(--glass-border);
border-radius: 16px;
box-shadow: 0 4px 24px var(--shadow-color, rgba(0,0,0,0.08));
}
The color-mix function with the theme variable means it automatically picks up whatever background color the admin has set, with 80% opacity. No need to hardcode colors!
Works great with the accent glow too:
.topic-card:hover {
box-shadow: 0 8px 32px var(--accent-glow);
}
💡 This adapts to light and dark mode automatically since it references CSS custom properties.