Modes

Modes are predefined "themes" that consist of backgroud and text colors, typefaces, and font sizes.

You can use the agastya.reset() method to reset the mode. You can also also add your own custom modes by logging into the Agastya dashboard.

Night Mode

The night mode inverts your webpage into a high-contrast white-on-black color combination for strain-free reading in the dark. This mode changes the font color based on your webpage's default color. You can use the following method for this mode:

agastya.night();

Yellow Mode

In some studies, it is found that a black-on-yellow color combination makes it easier for people with learning disorders such as dyslexia read, and this mode does exactly that. You can use the following method for this mode:

agastya.yellow();

Sepia Mode

Just like the f.lux program, this mode adjusts the color temperature of your webpage to a warmer shade to reduce eye strain during night-time use and reduce disruption of sleep patterns. It reduces the prominence of white–blue light at night and thusly improves the effectiveness of sleep. You can use the following method for this mode:

agastya.yellow();