Skip to content

Commit

Permalink
fix: Consistent color transitions and Tailwind updates (#7179)
Browse files Browse the repository at this point in the history
fix: color transitions and tailwind updates
  • Loading branch information
canerakdas authored Nov 6, 2024
1 parent cb43b64 commit 9017bea
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
}

a {
@apply flex-shrink
flex-grow;
@apply shrink
grow;
}

&,
> a,
> a:hover {
@apply text-neutral-800
motion-safe:transition-colors
dark:text-neutral-200;
}

Expand All @@ -30,8 +31,8 @@
.separator {
@apply size-4
max-w-fit
flex-shrink-0
flex-grow
shrink-0
grow
text-neutral-600
dark:text-neutral-400;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.link {
@apply max-w-fit
@apply max-w-fit
truncate;

&.active {
Expand All @@ -9,6 +9,7 @@
py-1
font-semibold
text-white
motion-safe:transition-colors
dark:text-white;

&:hover {
Expand Down
3 changes: 2 additions & 1 deletion apps/site/components/Common/Button/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
gap-2
py-2.5
text-center
font-semibold;
font-semibold
motion-safe:transition-colors;

svg {
@apply size-5;
Expand Down
1 change: 1 addition & 0 deletions apps/site/components/Common/CodeTabs/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
gap-2
text-center
text-neutral-200
motion-safe:transition-colors
lg:flex;

& > .icon {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
rounded-md
p-2
text-neutral-700
motion-safe:transition-colors
dark:text-neutral-300;

&:hover {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
px-3
py-2.5
text-neutral-800
motion-safe:transition-colors
dark:text-neutral-200;

&:hover {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ a.item {

&:hover {
@apply text-neutral-900
motion-safe:transition-colors
dark:text-white;
}

svg {
@apply flex-shrink-0
@apply shrink-0
fill-neutral-200
stroke-white
stroke-[4]
Expand Down
1 change: 1 addition & 0 deletions apps/site/components/Common/ThemeToggle/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
rounded-md
p-2
text-neutral-700
motion-safe:transition-colors
dark:text-neutral-300;

&:hover {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
gap-2
rounded
px-3
py-2;
py-2
motion-safe:transition-colors;

.label {
@apply text-base
Expand Down
3 changes: 1 addition & 2 deletions apps/site/styles/base.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
* {
@apply subpixel-antialiased
motion-safe:transition-colors;
@apply subpixel-antialiased;
}

html,
Expand Down
2 changes: 1 addition & 1 deletion apps/site/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default {
},
},
},
darkMode: ['class', '[data-theme="dark"]'],
darkMode: ['selector', '[data-theme="dark"]'],
plugins: [
require('@savvywombat/tailwindcss-grid-areas'),
require('@tailwindcss/container-queries'),
Expand Down

0 comments on commit 9017bea

Please sign in to comment.