Packages

@nuxtjs/color-mode

4.1.0 · 27 Oct 2026MIT1.3M / weekRepositoryHomepagenpmAtom feed

Your version

48 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 4.x · latest line
  2. 4.1.0

    27 Oct 2026
    • Support nuxt v5

    • Allow cookieAttrs to be set and overridden via runtime config

  3. 4.0.1

    9 Jun 2026
    • Add cookie attributes

    • Avoid optional chaining

    • Client crash when disabled cookies and storage

  4. 4.0.0

    11 Nov 2025
    • Breaking

      Drop default classSuffix

    • Breaking

      Move to typesVersions, bump dependencies, and drop cjs support

    • Breaking

      Disallow setting colorMode.value + test types

  5. 3.x
  6. 3.5.2

    24 Oct 2024
  7. 3.5.1

    14 Sep 2024
    • Synchronize Vue 2 & 3 component behaviour

  8. 3.5.0

    13 Sep 2024
    • placeholder slot for <ColorScheme> component

    • cookie storage

  9. 3.4.4

    16 Aug 2024
    • Augment vue rather than @vue/runtime-core

  10. 3.4.2

    24 Jun 2024
    • Remove newline at end of minified script

  11. 3.4.1

    26 Apr 2024
    • Add tilde to css selector for tailwind integration

  12. 3.4.0

    11 Apr 2024
    • Add disableTransition option

    • Automatic integration with @nuxtjs/tailwindcss

  13. 3.3.3

    19 Mar 2024
    • Use minimiser for window.localStorage

    • Remove lodash.template usage

  14. 3.3.2

    15 Nov 2023
  15. 3.3.1

    15 Nov 2023
    • Fixes issue #202

    • Avoid setting color-mode when rendering islands

  16. 3.1.7 – 3.3.04 releases without a noteShow each
  17. 3.1.6

    22 Sep 2022
    • Inject color-mode script with nitro plugin (handles mixed spa/ssr)

  18. 3.1.5

    9 Sep 2022
    • Color mode in server

  19. 3.1.4

    9 Jun 2022
    • Works with ssr: false

  20. 3.1.3

    31 May 2022
    • Handle data attribute in script as well

  21. 3.1.2

    31 May 2022
    • Add missing imports in client-plugin

  22. 3.1.1

    31 May 2022
  23. 3.1.0

    31 May 2022
    • Add support for data-* attribute in <html> tag

  24. 3.0.3

    10 May 2022
    • Rename useMeta to useHead

    • plugin: Prevent infinite loop on watch

  25. 3.0.2

    7 Mar 2022
  26. 3.0.1

    21 Feb 2022
    • Move script to head and set forced color mode on <html> element

  27. 3.0.0

    16 Feb 2022
    • Breaking

      Use esbuild to minify the script - note: ⚠️ it's likely this raises the minimum browser target ⚠️

    • Breaking

      The main change between Nuxt 2 -> Nuxt 3 is that you will define your color mode at the page level with definePageMeta:

        <template>
          <h1>This page is forced with light mode</h1>
        </template>
        
        <script>
      - export default {
      -   colorMode: 'light',
      - }
      + definePageMeta({
      +   colorMode: 'light',
      + })
        </script>

      ⚠️ If you are using Nuxt Bridge, you should not use definePageMeta but instead continue using the component option colorMode.

    • Breaking

      The $colorMode helper remains the same, but there is also a new composable (useColorMode) which is the recommended way of accessing color mode information.

  28. 2.x
  29. 2.1.1

    2 Aug 2021
    • Add script to webpack build (in dev) for storybook support (#99) · 54b482b

  30. 2.1.0

    2 Aug 2021
  31. 2.0.10

    11 Jun 2021
  32. 2.0.5 – 2.0.94 releases without a noteShow each
  33. 2.0.4

    3 Mar 2021
    • Types compatible with nuxt-property-decorator

  34. 2.0.3

    25 Jan 2021
    • Don't use window in created (#59) · 9b47c6e

    • type-defs: Make interface ColorModeInstance extend Vue (#62) · bac6667

  35. 2.0.2

    4 Dec 2020
    • type-defs: make all options optional

  36. 2.0.1

    2 Dec 2020
    • type-defs: add types reference to package

  37. 2.0.0

    13 Oct 2020
    • Breaking

      ⚠️ The breaking change is only if you are using the cookie option in the V1, if you don't use it, you can upgrade easily.

    • 📘 Read the updated documentation

    • 🎮 Checkout the updated demo

  38. 1.x
  39. 1.1.1

    15 Sep 2020
    • types: add new options and include in package

  40. 1.1.0

    15 Sep 2020
    • Add classPrefix and classSuffix

    • Add types declaration (#27) (078d38f), closes #15

  41. 1.0.3

    4 Aug 2020
    • Handle spa fallback (regression) (b92d64b), closes #21

  42. 1.0.0 – 1.0.23 releases without a noteShow each
  43. 0.0.x
  44. 0.0.2

    15 Apr 2020
  45. 0.0.1

    15 Apr 2020

    Reading the note…

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.