npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

fortalynx-theme-engine

v1.1.1

Published

⚠️ OLDER VERSIONS BELOW ARE DEPRECATED. PLEASE USE THIS STABLE VERSION

Downloads

9

Readme

🌗 Fortalynx Theme Engine

⚠️ OLDER VERSIONS BELOW ARE DEPRECATED. PLEASE USE THIS STABLE VERSION

Version: v1.1.1

A lightweight, scalable, and fully customizable Dark & Light Theme Engine for modern React projects — powered by CSS variables and designed for flexibility.


📌 About

The Fortalynx Theme Engine is a plug-and-play dark/light mode system built using native CSS variables and React context. It ensures smooth theme switching, tokenized design control, and optional transition effects across your app — with a future-proof override system for custom color theming.


✨ Features

  • ✅ Easy integration into any React app
  • 🎨 Pre-defined CSS tokens for background, text, border, icons & transitions
  • 🌗 Seamless dark/light mode switching with localStorage memory
  • 🧩 Customizable via override file (fortalynx-override.css)
  • 🔁 Built-in transition support
  • 🔧 Token-based architecture for scalable design systems
  • 📦 Minimal dependencies

📦 Installation

Install via npm or yarn:

npm install fortalynx-theme-engine
# or
yarn add fortalynx-theme-engine

---

**⚙️ Integration Steps**

*🔧 Step 1: Wrap your app with the Theme Provider

# import FortalynxThemeProvider from 'fortalynx-theme-engine';

# <FortalynxThemeProvider>
#   <App />
# </FortalynxThemeProvider>

*🔘 Step 2: Add the Theme Toggle Button 

# import ThemeToggleIcon from 'fortalynx-theme-engine';

# <ThemeToggleIcon />

*🎨 Step 3: Apply CSS Tokens in your stylesheet

**Use the provided tokens from engine.css like this**

# .section {
#   background-color: var(--bg-color);
#   color: var(--text-color);
#   border: 1px solid var(--border-color);
# }

---

*🎨 Custom Theming via Override CSS To customize themes:

*1-Create a file named fortalynx-override.css in your src/ folder
*2-Copy the override template provided in the docs or package
*3-Override any token like this:

# :root {
#   --text-color: #1a1a1a;
#   --bg-color: #ffffff;
# }

# [data-theme='dark'] {
#   --text-color: #ff4f4f;
#   --bg-color: #121212;
# }

*Just override the color code in override fortalynx template but dont edit the tokens
*This will override colors globally throughout your app wherever tokens are used.

---

*📘 Important Guidelines

*✅ Do:
*Use var(--token-name) inside your CSS or Tailwind styles
*Import engine.css before fortalynx-override.css
*Stick to provided token names or add your own in future updates
*Use data-theme="dark" on <html> (handled automatically)

*❌ Don’t:
*Manually modify files inside node_modules/fortalynx-theme-engine
*Change token names directly — change only their values via override

---

**⚠️ You may notice a white flash when switching to or refreshing in dark mode.**
*This happens because the saved theme is applied after your app loads.

**➡️ To fix this, Add this script **before your app loads** (in `public/index.html`):

# ```html
# <script>
#   try {
#     const theme = localStorage.getItem("fortalynx-theme");
#     if (theme) {
#       document.documentElement.setAttribute("data-theme", theme);
#     }
#   } catch (e) {}
# </script>


---

**👤 Author**

*Muhammad Taha
*🏢 Founder of MTGL
*🧠 Founder of MTGL | Creator of Fortalynx
*📧 Email: [email protected]

---

**💬 Notes for Developers**

# Fortalynx Theme Engine was originally created to power theming in the Fortalynx Web Builder. However, recognizing the need for clean, scalable theming in modern projects, it is now publicly available.
# Whether you're building personal portfolios, SaaS dashboards, or startup UIs — this engine is designed to make your theming simple, flexible, and future-proof.

---

**💬 Support or Contributions**

*This engine was made to simplify dark/light mode setup for all React devs, without bloated configs or complex setups.

*1 Feel free to use it in any commercial or personal project.
*2 Contributions for advanced features (like typography tokens, animation control, etc.) are welcome.
*3 If you want to contribute, open an issue or fork the repo.

---

**🧾 Version**

# - **Current Version:** `v1.1.1`#
* Initial release of Fortalynx Theme Engine
* Future updates will include:
  - More theme tokens
  - Smoother transition management
  - Auto detection of system theme
  - Improved developer experience

**Keep checking for updates** 

---

**🧾 Credits**

- Icons used via [`react-icons`](https://react-icons.github.io/react-icons/) package  
  Licensed under [MIT](https://github.com/react-icons/react-icons/blob/master/LICENSE)