Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nightwind doesn't invert custom weights #60

Open
ghiculescu opened this issue Apr 7, 2022 · 0 comments · May be fixed by #61
Open

Nightwind doesn't invert custom weights #60

ghiculescu opened this issue Apr 7, 2022 · 0 comments · May be fixed by #61

Comments

@ghiculescu
Copy link

We have a theme that looks like this:

  theme: {
    colors: {
      blue: {
        "25": "#FAFEFF",
        "50": "#EDFAFF",
        "75": "#DDF2FA",
        "100": "#CAEFFC",
        "200": "#A7E4FA",
        "300": "#84D7F5",
        "400": "#5EC5EB",
        "500": "#3FAFD7",
        DEFAULT: "#3FAFD7",
        "600": "#329DC7",
        "700": "#288BB5",
        "800": "#1F77A6",
        "900": "#186294",
        "950": "#114669",
      },
    },
  }

The 25 colour isn't being inverted, even with this setting:

  theme: {
    nightwind: {
      colorScale: {
        25: 900,
      },
    },
  }

It seems like this is happening because colorClasses is built based on the hardcoded list of weights. I don't see any way to customise that.

Is that intended or is there appetite to change this?

@ghiculescu ghiculescu linked a pull request Apr 7, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant