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(minor): add bud.wp.json.removeDefaultSuffix #2627

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

kellymears
Copy link
Contributor

Add: bud.wp.json.removeDefaultSuffix method.

Tailwind uses DEFAULT to define a color value without a shade (e.g. .blue instead of .blue-500). This ends up in generated theme.json files.

Example:

{
  "color": "#f7fafc",
  "name": "Gray Default",
  "slug": "gray-default"
}

If the method is called, the generated value looks like this:

{
  "color": "#f7fafc",
  "name": "Gray",
  "slug": "gray"
}

Type of change

PATCH: backwards compatible change

@kellymears kellymears self-assigned this Jul 25, 2024
@kellymears kellymears added the 🚀! automerge label Jul 25, 2024
@kodiakhq kodiakhq bot merged commit 1a943ed into main Jul 25, 2024
8 checks passed
@kodiakhq kodiakhq bot deleted the filter-default-suffix branch July 25, 2024 19:28
@johanmolen
Copy link

🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants