Skip to content

Add test coverage for property-specific colors #17436

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

Merged
merged 11 commits into from
Apr 11, 2025
45 changes: 45 additions & 0 deletions packages/tailwindcss/src/__snapshots__/utilities.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ exports[`border-* 1`] = `

:root, :host {
--color-red-500: #ef4444;
--border-color-blue-500: #3b82f6;
}

.border {
Expand Down Expand Up @@ -111,6 +112,10 @@ exports[`border-* 1`] = `
}
}

.border-blue-500 {
border-color: var(--border-color-blue-500);
}

.border-current, .border-current\\/50 {
border-color: currentColor;
}
Expand Down Expand Up @@ -191,6 +196,7 @@ exports[`border-b-* 1`] = `

:root, :host {
--color-red-500: #ef4444;
--border-color-blue-500: #3b82f6;
}

.border-b {
Expand Down Expand Up @@ -291,6 +297,10 @@ exports[`border-b-* 1`] = `
}
}

.border-b-blue-500 {
border-bottom-color: var(--border-color-blue-500);
}

.border-b-current, .border-b-current\\/50 {
border-bottom-color: currentColor;
}
Expand Down Expand Up @@ -371,6 +381,7 @@ exports[`border-e-* 1`] = `

:root, :host {
--color-red-500: #ef4444;
--border-color-blue-500: #3b82f6;
}

.border-e {
Expand Down Expand Up @@ -471,6 +482,10 @@ exports[`border-e-* 1`] = `
}
}

.border-e-blue-500 {
border-inline-end-color: var(--border-color-blue-500);
}

.border-e-current, .border-e-current\\/50 {
border-inline-end-color: currentColor;
}
Expand Down Expand Up @@ -551,6 +566,7 @@ exports[`border-l-* 1`] = `

:root, :host {
--color-red-500: #ef4444;
--border-color-blue-500: #3b82f6;
}

.border-l {
Expand Down Expand Up @@ -651,6 +667,10 @@ exports[`border-l-* 1`] = `
}
}

.border-l-blue-500 {
border-left-color: var(--border-color-blue-500);
}

.border-l-current, .border-l-current\\/50 {
border-left-color: currentColor;
}
Expand Down Expand Up @@ -731,6 +751,7 @@ exports[`border-r-* 1`] = `

:root, :host {
--color-red-500: #ef4444;
--border-color-blue-500: #3b82f6;
}

.border-r {
Expand Down Expand Up @@ -831,6 +852,10 @@ exports[`border-r-* 1`] = `
}
}

.border-r-blue-500 {
border-right-color: var(--border-color-blue-500);
}

.border-r-current, .border-r-current\\/50 {
border-right-color: currentColor;
}
Expand Down Expand Up @@ -911,6 +936,7 @@ exports[`border-s-* 1`] = `

:root, :host {
--color-red-500: #ef4444;
--border-color-blue-500: #3b82f6;
}

.border-s {
Expand Down Expand Up @@ -1011,6 +1037,10 @@ exports[`border-s-* 1`] = `
}
}

.border-s-blue-500 {
border-inline-start-color: var(--border-color-blue-500);
}

.border-s-current, .border-s-current\\/50 {
border-inline-start-color: currentColor;
}
Expand Down Expand Up @@ -1091,6 +1121,7 @@ exports[`border-t-* 1`] = `

:root, :host {
--color-red-500: #ef4444;
--border-color-blue-500: #3b82f6;
}

.border-t {
Expand Down Expand Up @@ -1191,6 +1222,10 @@ exports[`border-t-* 1`] = `
}
}

.border-t-blue-500 {
border-top-color: var(--border-color-blue-500);
}

.border-t-current, .border-t-current\\/50 {
border-top-color: currentColor;
}
Expand Down Expand Up @@ -1271,6 +1306,7 @@ exports[`border-x-* 1`] = `

:root, :host {
--color-red-500: #ef4444;
--border-color-blue-500: #3b82f6;
}

.border-x {
Expand Down Expand Up @@ -1371,6 +1407,10 @@ exports[`border-x-* 1`] = `
}
}

.border-x-blue-500 {
border-inline-color: var(--border-color-blue-500);
}

.border-x-current, .border-x-current\\/50 {
border-inline-color: currentColor;
}
Expand Down Expand Up @@ -1451,6 +1491,7 @@ exports[`border-y-* 1`] = `

:root, :host {
--color-red-500: #ef4444;
--border-color-blue-500: #3b82f6;
}

.border-y {
Expand Down Expand Up @@ -1551,6 +1592,10 @@ exports[`border-y-* 1`] = `
}
}

.border-y-blue-500 {
border-block-color: var(--border-color-blue-500);
}

.border-y-current, .border-y-current\\/50 {
border-block-color: currentColor;
}
Expand Down
Loading