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

✨ feat(patch): support nested tailwindcss color groups #1341

Merged
merged 6 commits into from Apr 26, 2022

Conversation

kellymears
Copy link
Member

Overview

  • Adds support for nested tailwindcss color groupings.
  • Adds unit test to cover color records transform.
{
  blue: {
    shade: {
      hue: {
        '50': '#add8e6',
      },
    },
    group: {
      sky: '#87ceeb',
    },
  },
  tomato: '#ff4500',
}

transforms to:

{
  name: 'Blue Shade Hue 50',
  slug: 'blue-shade-hue-50',
  color: '#add8e6',
},
{
  name: 'Blue Group Sky',
  slug: 'blue-group-sky',
  color: '#87ceeb',
},
{
  name: 'Tomato',
  slug: 'tomato',
  color: '#ff4500',
}

closes:

Type of change

  • PATCH: Backwards compatible bug fix

This PR includes breaking changes to the following core packages:

  • none

This PR includes breaking changes to the follow extensions:

  • none

Dependencies

Adds

  • none

Removes

  • none

@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Apr 26, 2022
@kellymears kellymears merged commit b6868f0 into main Apr 26, 2022
@kellymears kellymears deleted the feat-nested-tailwindcss-to-theme branch April 26, 2022 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] Tailwind Colors transformPalette not reducing nested values
1 participant