Skip to content

Theming support in Sudonix

Moved Announcements
  • Over the past couple of days, Iā€™ve been making significant headway with this, and the performance benefits are huge. Hoping to release to production in the coming weeks.

  • Itā€™s been a while so I thought Iā€™d provide an update. Bar a couple of small bugs, Iā€™m almost complete with the refactoring of the theming engine and associated code.

    During testing, this is a game changer in terms of loading speed. There are essentially two main components

    • A ā€œglobalā€ CSS file that essentially provides the foundation for all themes.
    • The addition of a Swatch - based on CSS variables which contains no CSS. This means that no additional CSS is loaded or removed during theme changes, and also means there is no need to reload the site.
    • With minification, the global CSS theme (once unneeded elements are removed) comes in at around 10kb. The Swatch files are literally less than 1Kb

    Once Iā€™ve moved this into production, Iā€™ll share the code.

  • Hi All,

    I just implemented a raft of new code from DEV to PROD. You will need to reload your browser (ideally a hard refresh) to pick up the new code, styles, and swatches. Itā€™ll be worth the effort - trust me šŸ™‚

  • Ughā€¦ Spotted some (really minor) šŸ› but nothing thatā€™s not easily fixed. I need to implement the final stages also - most of which are code refactoring, and minification.

    Iā€™ll post the completed code plus documentation as soon as itā€™s finished šŸ

  • @JAC thanks

  • *** NEW *** ā€œFaceTubeā€ theme added

    Like the YouTube and Facebook Dark themes ? Well, you can now have both here !!

    ec896468-5960-42c0-97ff-b45f3c9f041d-image.png

    Enjoy

  • @Sampo2910 thanks. Iā€™m going to be cleaning up the code and proving a new post with instructions etc soon. Fully stable now with (I hope) no bugs, so ready for release once Iā€™ve finished the cleanup.

  • *** NEW *** Greybird theme added
    For those who like the Ubuntu theme of the same name, this is for you. Not entirely a replica, but pretty close šŸ™‚

    602b2b7d-7604-43f9-bc38-d69bf83808c7-image.png

  • *** NEW *** Tempest theme added

    A nice blend of dark colors. Easy on the eyes, and perfect for those who like a bit of darkness in their lives šŸ™‚

    5f72aebb-0c38-474d-9deb-5f91814b5844-image.png

  • Some minor tweaks have been added to better support mobile views, and also layouts on desktops with larger screens. Most of these will probably go unnoticed, but Iā€™ve spotted them šŸ™‚

  • Iā€™m planning on making the theme CSS a bit more flexible in terms of individual assets as one variable currently will change multiple assets - not great from the overall control perspective, so need to address that.

    This issue doesnā€™t manifest itself under dark themes, but is very much visible under light - particular when you want to use a dark header with light text - currently, itā€™s not visible. I could be selfish and say that light themes are no longer supportedā€¦ (just kidding) šŸ™‚

  • *** NEW *** Twitter (Dim) theme added

    For those who like the Twitteresque dim theme.

    830055ab-068a-4872-adcf-eb7e938018e2-image.png

  • *** NEW *** Anthracite theme added

    For those who like a bit of darkness in their lives, but not too much of it šŸ™‚

    1a71f4dd-6103-42df-888e-8026148e0676-image.png

  • I thought Iā€™d better come by here with an update so everyone knows that the Swatch project isnā€™t abandoned, or has simply ā€œgone coldā€. In fact, quite the opposite.

    Iā€™ve setup a dev instance on my home network which Iā€™m currently developing against. Iā€™ll put some screenshots up soon, but the Swatch code is currently enjoying a rewrite. The great news is that youā€™ll get ten times the flexibility you have now meaning greater support for light themes, although the downside is that there isnā€™t that much backwards compatibility meaning some of my own themes even need to be completely redesigned.

    However, this isnā€™t the end of the world. Once youā€™re familiar with the classes, it really doesnā€™t take long at all to create your own themes.

    More to follow.

  • Isnā€™t it annoying when some of the best UI and color schemes come to you out of frustration rather than planning? šŸ™‚

    Iā€™ll just leave this here

    3d67aa94-feab-4d68-9633-06ca51aeb715-image.png

  • @phenomlab said in Theming support in Sudonix:

    I thought Iā€™d better come by here with an update so everyone knows that the Swatch project isnā€™t abandoned, or has simply ā€œgone coldā€. In fact, quite the opposite.

    Iā€™ve setup a dev instance on my home network which Iā€™m currently developing against. Iā€™ll put some screenshots up soon, but the Swatch code is currently enjoying a rewrite. The great news is that youā€™ll get ten times the flexibility you have now meaning greater support for light themes, although the downside is that there isnā€™t that much backwards compatibility meaning some of my own themes even need to be completely redesigned.

    However, this isnā€™t the end of the world. Once youā€™re familiar with the classes, it really doesnā€™t take long at all to create your own themes.

    More to follow.

    Iā€™ll be putting together a video of what the revamped theme will look like very soon - just got some small issues to iron out, and code cleanup beforehandā€¦


Related Topics
  • Ch..ch..ch..ch..changes!

    Announcements
    16
    15 Votes
    16 Posts
    222 Views

    @phenomlab of course, to be recognised is fantastic.

    @phenomlab said in Ch..ch..ch..ch..changes!:

    Sadly, no. Web crawlers and scrapers are often JS based and read text only, so styles donā€™t have any bearing.

    Iā€™ve read mixed things about this, but no that does make sense, it was something I read a many years back when using Wordpress.

  • Swatch / Theme Changer

    Code Respository
    8
    3 Votes
    8 Posts
    2k Views

    @veronikya it might flicker on load, yes, and thatā€™s normal. Itā€™s because the CSS and JS are loaded before the custom elements, but it shouldnā€™t be too bad on reasonable links.

    It shouldnā€™t flicker at all navigating through the site though as the CSS and JS are already loaded.

  • Theme retirement

    Announcements
    21
    16 Votes
    21 Posts
    1k Views

    I relented somewhat here and added another swatch - one I missed, which was previous called ā€œblackoutā€. This specific one has been adapted to work on the new theming engine, but the others have been reclassified, and renamed to suit.

    image.png

    As a result, the theme you might have had will probably be reflecting something else, so you (might) need to change your themes accordingly. The changes are as follows

    Light -> No Change
    Cloudy -> Is now the old ā€œDimā€
    Dim -> Is now the old ā€œDarkā€
    Dark -> Now a new theme based on the revamped ā€œBlackoutā€

  • Want to use Sudonix themes ?

    Chitchat
    75
    33 Votes
    75 Posts
    3k Views

    @cagatay Not to my knowledge.

  • Sudonix Branding

    Announcements
    2
    5 Votes
    2 Posts
    443 Views

    Thank you mark @phenomlab for sharing šŸ‘
    And good job for the new logo šŸ™‚

  • NodeBB templates

    Locked Chitchat
    12
    4 Votes
    12 Posts
    1k Views

    Placing this here for reference
    https://sudonix.com/topic/216/nodebb-js-script-css-theme-switcher

    Further information and posts can be found at this link

  • Theme changes

    Announcements
    6
    10 Votes
    6 Posts
    551 Views

    Thereā€™s still some very minor bugs in the two themes (light and dark) but these will be resolved in the coming days. Some are specific to firefox, and well require special attention, but will still be resolved nonetheless.

  • Support for Apple Emojis

    Announcements
    3
    0 Votes
    3 Posts
    296 Views

    @jac šŸ˜ž Seems not