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

Kds 1611 fix border config #4256

Merged
merged 48 commits into from
Nov 8, 2023
Merged

Kds 1611 fix border config #4256

merged 48 commits into from
Nov 8, 2023

Conversation

JakePitman
Copy link
Contributor

@JakePitman JakePitman commented Nov 2, 2023

Why

Currently, adding a border with our TW preset involves writing six utility classes, as seen in this example. This is a source of constant frustration to our consumers, who report that they keep forgetting how to add a border, or end up saving it as a code-snippet. It also just adds bloat to consumer code, making components less readable.

This solution reduces the utility classes needed to create a border from six, to one, as seen in this example.

What

  • Updates the @kaizen/tailwind package with some sensible DEFAULT values for border styles.
  • Creates a new @kaizen/reset package, that exports a css reset that enables more efficient TW border utilities.
  • Updates the link to our TW-Play instance with one that reflects these changes
  • Adds instructions for adding @kaizen/reset to a project in the app starter

Copy link

changeset-bot bot commented Nov 2, 2023

🦋 Changeset detected

Latest commit: 30a1ac1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@kaizen/tailwind Major
@kaizen/reset.css Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JakePitman JakePitman force-pushed the KDS-1611-fix-border-config branch from a6fbd6d to b0942eb Compare November 2, 2023 05:16
@JakePitman JakePitman marked this pull request as ready for review November 2, 2023 05:27
@JakePitman JakePitman requested a review from a team as a code owner November 2, 2023 05:27
Copy link
Contributor

github-actions bot commented Nov 2, 2023

✨ Here is your branch preview! ✨

Last updated for commit 30a1ac1: Merge branch 'main' into KDS-1611-fix-border-config

Comment on lines +1 to +7
*,
::before,
::after {
border-width: 0;
border-style: solid;
border-color: var(--border-solid-border-color, "currentColor");
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main addition

package.json Outdated Show resolved Hide resolved
docs/app-starter.stories.mdx Show resolved Hide resolved
docs/app-starter.stories.mdx Show resolved Hide resolved
docs/Systems/Tailwind/working-with-tailwind.mdx Outdated Show resolved Hide resolved
.changeset/gold-carrots-notice.md Show resolved Hide resolved
.changeset/quiet-poems-hammer.md Show resolved Hide resolved
@gyfchong gyfchong merged commit 6e22e0a into main Nov 8, 2023
15 checks passed
@gyfchong gyfchong deleted the KDS-1611-fix-border-config branch November 8, 2023 21:49
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 this pull request may close these issues.

3 participants