npm nativescript-theme-core 2.0.12
2.0.12 beta

latest releases: 1.0.7, 2.0.24, 2.0.23...
5 years ago

Features

  • Add scss/variables folder with SCSS skin variables for easier import
  • Add variable map for generic variables, accessible with const()
  • Add toggleMode to the API with optional boolean state enforcer, used like this:
    import Theme from 'nativescript-theme-core';

    Theme.toggleMode(); // to toggle between the modes

    // or

    Theme.toggleMode(true);  // to ensure dark mode
    Theme.toggleMode(false); // to ensure light mode

Fixes

  • Fix dark mode for Switches and several other components
  • Fix ActionBar Label title background, fix dark buttons
  • Fix the colorize function to produce better organized code, to work with consts and to properly
    prepend .ns-dark on root classes

Don't miss a new nativescript-theme-core release

NewReleases is sending notifications on new releases.