resofire / cosmos-theme
Deep Cosmos — a dark, modern theme for Flarum.
Package info
github.com/ResofireV2/cosmos-theme
Language:CSS
Type:flarum-extension
pkg:composer/resofire/cosmos-theme
Requires
- flarum/core: ^1.8
- dev-main
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.9.9
- v1.9.8
- v1.9.7
- v1.9.6
- v1.9.5
- v1.9.4
- v1.9.3
- v1.9.2
- v1.9.1
- v1.9.0
- v1.8.9
- v1.8.8
- v1.8.7
- v1.8.6
- v1.8.5
- v1.8.4
- v1.8.3
- v1.8.2
- v1.8.1
- v1.8.0
- v1.7.9
- v1.7.8
- v1.7.7
- v1.7.6
- v1.7.5
- v1.7.4
- v1.7.3
- v1.7.2
- v1.7.1
- v1.7.0
- v1.6.9
- v1.6.8
- v1.6.7
- v1.6.6
- v1.6.5
- v1.6.4
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.9
- v1.5.8
- v1.5.7
- v1.5.6
- v1.5.5
- v1.5.4
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.9
- v1.4.8
- v1.4.7
- v1.4.6
- v1.4.5
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.9
- v1.3.8
- v1.3.7
- v1.3.6
- v1.3.5
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.9
- v1.2.8
- v1.2.7
- v1.2.6
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.9
- v1.1.8
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v0.9.9
- v0.9.8
- v0.9.7
- v0.9.6
- v0.9.5
- v0.9.4
- v0.9.3
- v0.9.2
- v0.9.1
- v0.9.0
- v0.8.9
- v0.8.8
- v0.8.7
- v0.8.6
- v0.8.5
- v0.8.4
- v0.8.3
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.9
- v0.7.8
- v0.7.7
- v0.7.6
- v0.7.5
- v0.7.4
- v0.7.3
- v0.7.2
- v0.7.1
- v0.7.0
- v0.6.9
- v0.6.8
- v0.6.7
- v0.6.6
- v0.6.5
- v0.6.4
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.9
- v0.5.8
- v0.5.7
- v0.5.6
- v0.5.5
- v0.5.4
- v0.5.3
- v0.5.2
- v0.5.1
- v0.5.0
- v0.4.9
- v0.4.8
- v0.4.7
- v0.4.6
- v0.4.5
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.9
- v0.3.8
- v0.3.7
- v0.3.6
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.9
- v0.2.8
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- v0.0.9
- v0.0.8
- v0.0.7
- v0.0.6
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
This package is auto-updated.
Last update: 2026-03-22 13:27:29 UTC
README
A deep-space dark theme for Flarum with a built-in day/night toggle, ambient star fields, and a fully styled post interaction system.
Features
Palette & Typography
- Deep space dark palette (
#080c14background, teal#69c6b9primary accent) - Matching day mode (light) stylesheet that mirrors all structure — only colours flip
- Font picker in admin: choose from Outfit (default), Space Grotesk, DM Sans, Sora, Plus Jakarta Sans, Nunito, or System UI. Code blocks always use DM Mono regardless of font choice
Day / Night Toggle
- Self-contained theme switcher — no dependency on fof/nightmode
- Three modes: Auto (follows OS dark/light preference), Day, Night
- Preference persisted per user account via Flarum's prefs API; falls back to a cookie for guests
- Admin can set the forum-wide default mode (Auto / Day / Night)
- Toggle button always visible in the header; also accessible from the session dropdown and user settings page
Visual Effects
- Ambient radial glow bloom behind the hero and page
- CSS star field (box-shadow technique, no images) on hero and discussion page
- Star fields and glow effects can be disabled globally from admin settings (e.g. for accessibility or performance)
- Avatar ring glow that picks up the user's avatar colour
- Connector line between posts in the avatar column on desktop
Hero / Welcome Area
- Cosmos-styled hero with star field layer and gradient wash
- Optional image slider replacing the hero — configurable entirely from admin:
- Enable/disable globally
- Disable on mobile (falls back to default hero)
- Hide on tag/category pages
- Desktop and mobile height (px)
- Autoplay interval (0 = manual only)
Discussion List
- Unread indicator via left accent band
- Styled discussion item controls (3-dot menu)
- Pinned discussion highlighting (compatible with flarum/sticky)
- Styled "Load more" button
User Profile Hero
The profile hero is redesigned to match the rest of the Cosmos aesthetic:
- Background gradient blended from the user's avatar colour into the Cosmos dark, using the same technique as the discussion hero
- Animated star field tinted from the avatar colour (suppressed when the effects toggle is off)
- Ambient glow bloom from the avatar colour on the left, teal counter-bloom on the right
- Avatar ring glow using the avatar's dominant colour
- Stat pills displayed below the user info: posts, discussions, and likes received (likes shown only when
flarum/likesis active) - Both dark and light mode fully themed
Post Stream
- Styled post headers, body, blockquotes, code blocks, tables, and images
- Event posts (renamed, tagged, etc.) in muted style
- Post number accent in secondary colour
Post Controls (flarum/likes + fof/reactions)
Fully styled to match the Cosmos aesthetic:
- Reply button — dimmed at rest, teal on hover
- Like button — dimmed at rest, teal on hover and when active (already liked)
- Reaction count pills — rounded-rect pills with a subtle border; teal tint on hover; stronger teal border + fill for your own active reaction
- React smiley button — ghost button, teal on hover; inline SVG icon inherits
currentColor - Reaction picker dropdown — dark surface card (
#131b2e) with deep shadow in night mode; white card with soft shadow in day mode - Emoji buttons inside picker — teal-tinted background + scale pop on hover
- All styles applied in both dark (
forum.css) and light (forum-day.css)
Extension Compatibility
Tested and styled for:
flarum/tags— tag pills styled as flat dark pills; white text overrides in heroflarum/sticky— pinned discussion highlightflarum/likes— like button with active statefof/reactions— reaction pills, picker dropdown, emoji buttons, react triggerfof/user-directory— 2-column card grid with star field, avatar glow, ambient colour bloom per card- Blog/cards extensions — card grid layout with image wrapper, body, footer, author, controls
Admin Settings
All settings are available in Admin → Extensions → Cosmos Theme:
| Setting | Description |
|---|---|
| Forum Font | Font applied globally (code blocks always use DM Mono) |
| Default Colour Theme | Forum-wide default: Auto, Day, or Night |
| Star Fields & Glow Effects | Enable/disable all star and glow visual effects |
| Always Show Post Controls | Show Like, Reply, and Reactions buttons permanently on every post (default: visible on hover only) |
| Enable Cosmos Slider | Replace the hero with an image slider |
| Disable Slider on Mobile | Show default hero on mobile instead of slider |
| Hide Slider on Tag Pages | Show default hero on tag/category pages |
| Slider Height — Desktop (px) | Height of the slider on desktop viewports |
| Slider Height — Mobile (px) | Height of the slider on mobile viewports |
| Autoplay Interval (seconds) | Slide autoplay speed; 0 disables autoplay |
Mobile (acpl/mobile-tab compatible)
The theme includes a full mobile pass targeting phone viewports (≤844px):
- MobileTab bar — Cosmos surface treatment with top border and shadow, Outfit font on labels
- Profile tab highlight fix — the session dropdown toggle no longer inherits the desktop
.Dropdown-toggleborder/background, so the Profile tab only highlights when active - Reaction picker overflow — the picker is anchored to the right edge of its trigger and capped to the viewport width so it never clips on narrow screens
- Touch reaction state —
.mobile-showreceives the same Cosmos card styling as the hover state - Body bottom padding — page content clears the 54px tab bar (+ safe area inset) so the last post is never hidden behind it
- Discussion hero — star field animation paused on phone for performance
- Post stream connector line — hidden on phone where the avatar column layout doesn't apply
- User profile stat pills — tighter sizing and gap for narrow viewports
Requirements
- Flarum
^1.8 - PHP 8.3+
Installation
Install via Composer:
composer require resofire/cosmos-theme
Then enable the extension in your Flarum admin panel.
Optional Extensions
The theme works without these but includes explicit styling for them:
flarum/likesfof/reactionsfof/user-directoryflarum/stickyflarum/tags
License
MIT