Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@phun-ky/moebius

phun-ky835MIT2.0.36TypeScript support: included

@phun-ky/moebius is a versatile JavaScript library that automatically generates visually pleasing and customizable color palettes from a given base color. Whether you're building data visualizations, UIs, or design systems, Möbius offers various harmony m

color, colors, palette, palettes, color-palette, color-generator, palette-generator, color-scheme, color-schemes, design, ui-design, css, javascript, typescript, color-theory, color-harmony, analogous, complementary, split-complementary, triad, triadic, tetrad, tetradic, pentad, pentadic, hexad, hexadic, monochrome, monochromatic, interpolate, luminance, diverging, chroma, chromatic, color-manipulation, color-utils, accessibility, a11y, visualization, data-visualization, theme-generator, web-design, creative-coding

readme

möbius

logo

Generate harmonious, customizable color palettes from a single base color - instantly and programmatically.

Commitizen friendly PRs Welcome SemVer 2.0 npm version issues license size npm GitHub Repo stars codecov build

About

Möbius is a color palette generation tool designed for developers and designers who need quick, consistent, and attractive color schemes. It supports a wide variety of palette types and exports color data in multiple formats - RGB, HSL, LAB, CMYK, and more - making it ideal for both web design and data visualization.

Features

  • Generate palettes using:
    • Interpolation
    • Luminance shifts
    • Monochromatic, Complementary, Analogous, Triadic, Tetradic, etc.
  • Output in multiple color spaces: RGB, HSL, LCH, CMYK, etc.
  • Randomized or lightness-corrected options
  • Diverging palette support
  • TypeScript-friendly API

Documentation

Checkout the documentation at https://möbius.dev.

Try it online

You can check out the online-generator at moebius.wtf.

Contributing

Want to contribute? Please read the CONTRIBUTING.md and CODE_OF_CONDUCT.md

License

This project is licensed under the MIT License - see the LICENSE file for details.

Changelog

See the CHANGELOG.md for details on the latest updates.

I'm an Open Source evangelist, creating stuff that does not exist yet to help get rid of secondary activities and to enhance systems already in place, be it documentation or web sites.

The sponsorship is an unique opportunity to alleviate more hours for me to maintain my projects, create new ones and contribute to the large community we're all part of :)

Support me on GitHub Sponsors.

logo

p.s. Ukraine is still under brutal Russian invasion. A lot of Ukrainian people are hurt, without shelter and need help. You can help in various ways, for instance, directly helping refugees, spreading awareness, putting pressure on your local government or companies. You can also support Ukraine by donating e.g. to Red Cross, Ukraine humanitarian organisation or donate Ambulances for Ukraine.

changelog

Changelog

2.0.35 (2025-11-17)

Tasks

  • 🤖 bump @rollup/plugin-commonjs in the major-updates group (01c5f4f)
  • 🤖 bump the minor-and-patch group with 7 updates (df155a2)
  • 🤖 clean directory (9ef4ada)
  • 🤖 reinstall (51b331a)

2.0.34 (2025-10-27)

Tasks

  • 🤖 bump the minor-and-patch group with 5 updates (a920328)

2.0.33 (2025-10-20)

Tasks

  • 🤖 bump the minor-and-patch group with 8 updates (75379aa)
  • 🤖 Reinstall with clean package-lock.json (0ec554b)

Documentation

Bug

2.0.32 (2025-10-13)

Tasks

  • 🤖 bump the minor-and-patch group with 5 updates (c356075)

2.0.31 (2025-10-11)

Tasks

  • 🤖 bump the major-updates group with 2 updates (d097ac3)

2.0.30 (2025-10-11)

Tasks

  • 🤖 Add missing triggers for workflow (a162e79)

Bug

  • 🐛 Use correct link to domain (aff5411)

2.0.29 (2025-10-10)

Tasks

  • 🤖 Add .vitepress to .gitignore (c2b0bf6)

Documentation

  • ✏️ Use correct links (751a1b7)

2.0.28 (2025-10-10)

Documentation

2.0.27 (2025-09-29)

Tasks

  • 🤖 bump the minor-and-patch group with 3 updates (00ae077)

2.0.26 (2025-09-23)

Tasks

  • 🤖 bump the minor-and-patch group with 8 updates (dff55d6)

2.0.25 (2025-09-15)

Tasks

  • 🤖 bump the minor-and-patch group with 5 updates (863aa65)

2.0.24 (2025-09-09)

Tasks

  • 🤖 bump @phun-ky/typeof in the major-updates group (32eb58f)

2.0.23 (2025-09-08)

Tasks

  • 🤖 bump the minor-and-patch group with 5 updates (a2f1fbf)

2.0.22 (2025-09-01)

Tasks

  • 🤖 bump the minor-and-patch group with 5 updates (d49f7c9)

2.0.21 (2025-08-26)

Tasks

  • 🤖 bump the minor-and-patch group with 9 updates (0e2ac78)

2.0.20 (2025-08-19)

Tasks

  • 🤖 bump the minor-and-patch group with 8 updates (b6accd6)

2.0.19 (2025-08-11)

Tasks

  • 🤖 bump the minor-and-patch group with 6 updates (17d637b)

2.0.18 (2025-08-04)

Tasks

  • 🤖 bump the minor-and-patch group with 7 updates (c221fa0)

2.0.17 (2025-07-28)

Tasks

  • 🤖 bump the minor-and-patch group with 10 updates (3663ebf)

2.0.16 (2025-07-22)

Tasks

  • 🤖 bump the minor-and-patch group with 7 updates (35aa99a)

2.0.15 (2025-07-20)

Tasks

  • 🤖 bump the minor-and-patch group with 6 updates (005c298)

2.0.14 (2025-07-07)

Tasks

  • 🤖 bump the minor-and-patch group across 1 directory with 9 updates (d8afa70)

2.0.13 (2025-06-23)

Tasks

  • 🤖 bump the minor-and-patch group with 6 updates (b2567ee)

2.0.12 (2025-06-16)

Tasks

  • 🤖 bump the minor-and-patch group across 1 directory with 9 updates (8d624e1)

2.0.11 (2025-06-16)

Tasks

  • 🤖 bump @types/node in the major-updates group (09e0e2d)

2.0.10 (2025-06-09)

Tasks

  • 🤖 bump the minor-and-patch group with 5 updates (7ed7e89)

2.0.9 (2025-06-02)

Tasks

  • 🤖 bump the minor-and-patch group with 9 updates (7ea834c)

2.0.8 (2025-05-26)

Tasks

  • 🤖 bump the minor-and-patch group with 5 updates (59715e2)

2.0.7 (2025-05-19)

Documentation

  • ✏️ Improve docs (7f380ca)
  • ✏️ Regenerate (a02105e)
  • ✏️ Update README.md and package.json (5593c83)

2.0.6 (2025-05-19)

Tasks

  • 🤖 bump the minor-and-patch group with 6 updates (bb6bef6)

2.0.5 (2025-05-12)

Tasks

  • 🤖 bump the minor-and-patch group with 5 updates (cfa3ad9)

2.0.4 (2025-05-12)

Bug

  • 🐛 Stringify the labels (d66cfea)

2.0.3 (2025-05-08)

Tasks

  • 🤖 Adjust labels from workflows (7c3952d)

Documentation

2.0.2 (2025-05-06)

Tasks

  • 🤖 Use new dep for eslint config (60fc739)

2.0.1 (2025-05-05)

Tasks

  • 🤖 bump the major-updates group across 1 directory with 7 updates (4cecb98)
  • 🤖 Reinstall (293c6f2)

2.0.0 (2025-05-05)

⚠ BREAKING CHANGES

  • 🧨 Forgot this in a previous change, but darkmode is now renamed to darkMode

Tasks

  • 🤖 bump postcss from 8.4.36 to 8.4.38 (da4d54d)
  • 🤖 bump prettier from 3.5.1 to 3.5.3 in the minor-and-patch group (712ffbe)
  • 🤖 Disabled rules for markdown files (94e6567)
  • 🤖 Updated permissions for labeler (7af2cd2)

Documentation

  • ✏️ Update README.md (3ad0785)
  • ✏️ Update documentation generation (425849d)

Refactoring

  • 💡 First commit with new tooling (0bdf9ad)
  • 💡 Use dep for type checking (1a2cf39)

1.0.6 (2024-03-19)

Tasks

  • 🤖 bump postcss from 8.4.35 to 8.4.36 (b57e16b)

1.0.5 (2024-03-19)

Tasks

  • 🤖 bump putout from 35.5.1 to 35.7.5 (59a716e)

1.0.4 (2024-03-19)

Tasks

  • 🤖 bump typedoc-plugin-mdn-links from 3.1.17 to 3.1.18 (39eec96)

1.0.3 (2024-03-19)

Tasks

  • 🤖 bump typedoc from 0.25.9 to 0.25.12 (fb7b657)

1.0.2 (2024-03-13)

Tasks

  • 🤖 bump stylus from 0.62.0 to 0.63.0 (f79141a)

1.0.1 (2024-02-28)

Tasks

  • 🤖 Remove references to speccer (e74ccf8)

1.0.0 (2024-02-28)

⚠ BREAKING CHANGES

  • 🧨 Exported functions unitHSL and unitHSLFloat are renamed to UnitHSL and UnitHSLFloat to reflect the current nomenclature standard

Tasks

  • 🤖 Remove config file for postCSS (976c269)
  • 🤖 Update configuration files (041902e)
  • 🤖 Update dependencies and build to a more modern setup (0adbf78)
  • 🤖 Update workflows (5586c46)

Documentation

  • ✏️ Fix typo (03c774a)
  • ✏️ Update README.md and add community files (213ee96)

Refactoring

  • 💡 Add try catch to return empty array (6197a7d)
  • 💡 Rename unitHSL and unitHSLFloat (de874d6)

0.2.4 (2023-12-08)

Bug

  • 🐛 Direction of monochrome is opposite of palettes (f103fb8)

0.2.3 (2023-12-08)

Documentation

Bug

  • 🐛 Remove darkmode from palettes (53f6e56)

0.2.2 (2023-12-08)

Documentation

Bug

  • 🐛 Remove paths check (c5b9c57)
  • 🐛 Use a separate themes property (e37842f)

0.2.1 (2023-12-08)

Documentation

  • ✏️ Add missing docs (8fd35ee)
  • ✏️ Generate documentation (9d9bb1f)

Bug

  • 🐛 Forgot to hook darkmode palette up to MoebiusPalettes (d1059dd)

0.2.0 (2023-12-08)

Feature

  • 🎸 Add new feature: darkmode-palette (7b744c5)

0.1.4 (2023-12-05)

Bug

  • 🐛 Add missing rgbFloat and hslFloat (127a407)
  • 🐛 Guard against NaN (c0cf948)
  • 🐛 Unique (5b90bd4)

0.1.3 (2023-11-27)

Bug

0.1.2 (2023-11-24)

Documentation

0.1.1 (2023-11-24)

Tasks

  • 🤖 bump release-it and @release-it/conventional-changelog (f2588d1)
  • 🤖 Do not use fixed types (49f746e)
  • 🤖 No need to expose MoebiusAccentColors (3065878)
  • 🤖 Remove dep (37f41f6)

Documentation

  • ✏️ Update README.md, add description to package.json (5e79958)

Bug

  • 🐛 Use correct parameter type for color (1b09722)
  • 🐛 Use default export (8ac2444)

0.1.0 (2023-11-23)

Tasks

  • 🤖 Update action deps (ff2680f)
  • 🤖 use @rollup/plugin-terser, remove jest crap (84cba5a)

Feature

  • 🎸 first version of @phun-ky/moebius (dabb3e2)

Bug