Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use simpler colors
  • Loading branch information
adamwathan committed Oct 21, 2024
commit 33ba015cfb53962d599d4b3695a4fac04c7df272
18 changes: 9 additions & 9 deletions packages/tailwindcss/src/css-functions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -849,10 +849,10 @@ describe('in plugins', () => {
@layer base, utilities;
@plugin "my-plugin";
@theme reference {
--color-red: red;
--color-orange: orange;
--color-blue: blue;
--color-pink: pink;
--color-red: oklch(62% 0.25 30);
--color-orange: oklch(79% 0.17 70);
--color-blue: oklch(45% 0.31 264);
--color-pink: oklch(87% 0.07 7);
}
@layer utilities {
@tailwind utilities;
Expand Down Expand Up @@ -886,16 +886,16 @@ describe('in plugins', () => {
expect(optimizeCss(compiled.build(['my-utility'])).trim()).toMatchInlineSnapshot(`
"@layer base {
.my-base-rule {
color: red;
background-color: #00f;
border-color: oklch(86.7739% .073542 7.08554 / .1);
outline-color: oklch(79.2689% .171026 70.6699 / .15);
color: oklch(62% .25 30);
background-color: oklch(45% .31 264);
border-color: oklch(87% .07 7 / .1);
outline-color: oklch(79% .17 70 / .15);
}
}

@layer utilities {
.my-utility {
color: red;
color: oklch(62% .25 30);
}
}"
`)
Expand Down