@cagatay these changes arenāt published anywhere presently, so nothing for you to do.
Theming support in Sudonix
-
For a long time (well, it certainly feels like forever as Iām writing code as and when I have time in between my day job), Iāve been working on a theming engine (something similar but not quite the same as the code provided for @DownPW) that will be in the soon to be released theme set for Sudonix.
The most pertinent of these themes (and likely the primary if you choose dark mode, or have it set as default in your OS) is Midnight. This particular theme makes extensive use of CSS modifications, and also changes the layout somewhat - moving away from the ātraditionalā NodeBB stock Persona theme.
Without further ado, the Midnight theme looks like this
Changing the actual theme itself to one of the defined is shown below
Youāll notice that Iāve hooked into the
main-nav
area for this, as itās better suited here in my viewThe look and feel is consistent across the entire platform
Even the profile page hasnāt escaped
Hope you like the new logoā¦
Weāre also doing āmore with lessā - in the sense that this new CSS file uses variables to simplify it.
Ideally, Iād like views / input etc. in terms of colours, layouts, etcā¦
-
@phenomlab this is awesome! Great job!!
-
@Madchatthew thanks. Much appreciated
-
A bit more eye candy from the mobile perspective
Several changes in the mobile viewport to make the most of limited screen estate, yet retaining a much functionality as possible.
The search applet has been modified to make it look more modern on mobile devices. Anything over 767px remains unchanged.
-
Itās worth noting at this point that all new themes leverage Font Awesome 6 Pro (I have a paid subscription) to make the most of the newly available icons. Of course, itās perfectly feasible to use the free version, although this will require the replacement of various icons from Pro if they arenāt available in the free version. Another issue here is that you can only use the solid icons.
-
In addition to the theming support, Iām also going to be branding the email templates, so they look as follows
This uses the new logo, new layout (based on Midnight, as this is the flagship theme if you use Dark Mode by default). The Welcome template has been completed so far, and we have some way to go to complete all of the templates - but as soon as we do, the PROD instance of Sudonix will get the update
-
Theming support in Sudonix is now live !!!
Enjoy. if youāre using dark mode on your operating system, then the newer
midnight
theme is now active. The originaldark
theme is still there, but will be revamped shortly. -
-
** NEW *** NORD theme added - enjoy
-
** NEW ** SLATE theme added - enjoy
-
*** NEW *** Superhero (from Bootstrap 3 because I think the colours from v4 are hideous ) theme added - enjoy
-
*** NEW *** Darkly theme added (supersedes previous ādarkā theme) - enjoy
-
Great Job Bro Mark @phenomlab
-
@DownPW thanks
-
I canāt believe I actually missed this part - the icon where the magic happens ! To change the swatch to something else, use the āswatchā icon as shown below
Select the swatch youād like and the site will reload with the new colours.
-
Something of a slight deviation here in the sense that Iām developing a new stock light theme that will override the default. Itās designed to be easy on the eye, appealing from the layout perspective, and to be engagingā¦ Here goesā¦
Itās not quite ready yet as it needs some final polish before it gets officially released. However, Iāll let you into a secret. If you click on the swatch icon, youāll see āLightā in the list which is the working title for this theme
Give it a spin, and let me know what you think. Just remember that this is a moving target currently and still has bugs
Let me know if you find anything major (aside from what @crazycells has already reported which relates to the modified core CSS)
-
Small addition of sexy looking gradient popular tags
This is part of the
light
theme Iāve been working on, and is designed to match the progress barSeriously falling in love with this new design. Itās clean, sharp, and attractive all at once
-
Beautiful
-
For anyone following this thread or using the ālightā theme, itās been renamed to āDaylightā to more accurately reflect the colour scheme in use. If you are using this, when you reload, the default theme will probably be loaded. This is expected because the cookie is storing ālightā and there will no longer be a match.
If you select āDaylightā, then you should be good to go.
-
I spent some more time this afternoon / evening reviewing the overall structure of the themes, and had a lightbulb moment in the sense that it could (and should) be leaner / quicker. The big mistake here is duplicating the CSS in each Swatch (note Iām using the word āSwatchā here because the āthemeā is undergoing major refactoring) makes the initial loading slower than it really should be as the entire page has to be reloaded to remove the previous CSS classes.
From a design perspective, this didnāt make any sense the more I thought about it. So, off to Dev I went and began refactoring. The end result (in Dev at least) is that there is now one ācommonā CSS file that gets loaded once, and the āswatchesā are just CSS variables (rather like mixins) where the existing ones are replaced with a new set on selection.
Instead of adding another large CSS file, and effectively increasing the load time, we now simply call around 15 mixins and inject these into the head with an Ajax request. This means the Swatch changes instantly, and the site no longer needs to be reloaded to clear out any odd looking artefacts.
Admittedly, this has now ābrokenā the daylight theme in the sense that I have to restructure it as it was experiential at the time, and something of a deviation in that the mixins used do not align properly as they do in the other swatches. This was more about attempting to achieve a specific look.
I succeeded on that front as per the previous post, but now have to rework it based on the changes Iāve made to the other swatches in order to streamline them. One thing I did take from the daylight Swatch is the user posting style (giving an illusion of threaded replies) that makes the overall reading experience better in my view - this is now sewn into all swatches meaning a consistent viewing experience throughout.
Tomorrow will hopefully allow me time to get the daylight Swatch working again. Once done and tested, Iāll implement it in production.
Related Topics
-
-
-
-
-
-
NodeBB templates
Locked Chitchat -
-