Skip to content

halfmoon-v1.1.0

Compare
Choose a tag to compare
@halfmoonui halfmoonui released this 16 Sep 16:12
· 7 commits to master since this release
b649d66

Halfmoon v1.1.0 release. Includes the following files:

  • halfmoon-variables.css (compiled and minified)
  • halfmoon.css (compiled and minified)
  • halfmoon.js (compiled and minified)
  • halfmoon-module.js (halfmoon.js as a module, used for the npm package)
  • starter-template.html

Major change

The biggest change in v1.1.0 is that the entire framework is now built using CSS variables (also known as CSS custom properties). There are close to 1,500 CSS variables, which means that almost everything can be customized by overriding a property, making it very easy to theme Halfmoon to fit your brand. To better understand what this means, it is highly recommended that you read this docs page: https://www.gethalfmoon.com/docs/customize/.

New components and utilities

This version also brings in a lot of new components and utilities. These are listed below.

Components

Utilities

Bug fixes

  • Inconsistent transition speeds during dark mode toggle fixed (#34)
  • Dark mode cookie implementation improved (#14 and #30)
  • Fixed input group focus effect (border was hidden previously)
  • Corrected margins for containers with breakpoints
  • Other minor changes and fixes

No breaking changes

There are no breaking changes in this version of Halfmoon. However, please take note of the following things:

  • The cookie for storing the user's preferred mode was previously named darkModeOn, with possible values of "yes" or "no". As of v1.1.0, the cookie has been renamed to halfmoon_preferredMode, with possible values of "light-mode" and "dark-mode".
  • The attribute for setting the preferred mode on load has been renamed to data-set-preferred-mode-onload (previously it was data-set-preferred-theme-onload). The previous name still works for the sake of backward compatibility.

Please give this docs page a quick read: https://www.gethalfmoon.com/docs/core-javascript-library/. The changes are minor and should be very easy to understand once you have read that page.