[Theme] Prism

Started by Deaks, Nov 28, 2026, 12:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Deaks

PRISM
Six accent colours. Light and dark in every shade.
A theme for SMF 2.1 by BoredSkull  •  Version 1.0.0



Preview and download Prism on the SMF Theme Site



A different view of your forum

Prism moves your logo, main menu and member card into a side rail, giving the board index room to breathe. On wide screens, boards sit side by side in a two-column card layout. Prefer a compact index? One theme setting switches the boards to a single-column list.

A slim top bar stays in reach as you scroll, with search, messages, alerts and your profile together in one place. Tablet and phone layouts adapt to the smaller screen.



Pick your palette

● Indigo  ● Teal  ● Rose
● Amber  ● Violet  ● Emerald

Set a signature colour for your community, or let members choose their favourite. Every accent works in both light and dark mode, so someone who likes Teal can keep it whether they read during the day or late at night.

By default, Prism follows the visitor's device setting. The sun/moon button lets them switch modes at any time, and their browser remembers the choice for their next visit.



Make Prism your own

Open Admin → Themes and Layout → Theme Settings to configure Prism.

  • Accent colour — Choose the forum default. Leave Disable user variant selection unticked if you want members to choose their own accent.
  • Default colour mode — Follow the visitor's device, or start the theme in Light or Dark.
  • Board layout — Choose the two-column card layout on wide screens or enable Board list for a single column.
  • Home and Forum links — If your forum is part of a larger site, enter an Extra "Home" button URL. Visitors can then use Home for your main site and Forum for the board index.
  • Forum branding — The standard SMF settings for your logo image, slogan and random news line still work.



Installing Prism

  • Download Prism.zip from the SMF Theme Site.
  • Go to Admin → Themes and Layout → Install a new theme and upload the ZIP. SMF installs it as Prism.
  • Open Prism's Theme Settings to choose your accent, colour mode and board layout.



Built for people who like to customise

Prism is built almost entirely in CSS. Its default logo, board icons, avatar badges, search icon and sun/moon control are all drawn in CSS. Other icons come from SMF's default theme.

Want to add your own accent? Each variant sets one colour, [tt]--p-accent[/tt], and Prism calculates the lighter and darker tints from it. A new accent takes a three-line stylesheet and one entry in [tt]$settings['theme_variants'][/tt] in [tt]index.template.php[/tt].

  • [tt]index.template.php[/tt] — Side rail, top bar and footer.
  • [tt]Settings.template.php[/tt] — Theme defaults and Prism's admin options.
  • [tt]css/prism.css[/tt] — Main styling, loaded after SMF's default [tt]index.css[/tt].
  • [tt]css/index_*.css[/tt] — The six accent variants.
  • [tt]css/prism_responsive.css[/tt] — Tablet and phone layouts.
  • [tt]scripts/prism.js[/tt] — Light/dark switch. The [tt]scripts/[/tt] directory also holds SMF's minified JavaScript output.
  • [tt]languages/ThemeStrings.english.php[/tt] — Prism's interface text, ready to copy for translation.
  • [tt]languages/Settings.english.php[/tt] — Theme description and accent names.

Other templates, stylesheets, scripts and images fall back to SMF's default theme automatically.

Browser support — Chrome and Edge 123+, Firefox 120+ and Safari 17.5+. Prism uses [tt]light-dark()[/tt], [tt]color-mix()[/tt] and [tt]:focus-visible[/tt]. In dark mode, the post editor's writing area keeps SMF's standard light appearance.



Get Prism for SMF 2.1
Released under the ISC Licence  •  See [tt]LICENSE.txt[/tt]

Build your forum, your way!
  • 0 reactions

    Members who reacted