Skip to content

Commit

Permalink
fix(settings/appearance): Removed inset-shadow & created new theme va…
Browse files Browse the repository at this point in the history
…riable
  • Loading branch information
boidushya committed Feb 3, 2024
1 parent aba1237 commit d4ba87f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pages/parts/settings/ThemePart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function ThemePreview(props: {
<span className="font-medium text-white">{props.name}</span>
<span
className={classNames(
"inline-block px-3 py-1 leading-tight text-sm transition-opacity duration-150 rounded-full bg-pill-background text-white/85 shadow-[rgba(255,255,255,0.15)_0_1px_0_inset,rgba(46,54,80,0.075)_0_1px_1px]",
"inline-block px-3 py-1 leading-tight text-sm transition-opacity duration-150 rounded-full bg-pill-activeBackground text-white/85",
props.active ? "opacity-100" : "opacity-0 pointer-events-none",
)}
>
Expand Down
2 changes: 2 additions & 0 deletions themes/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ export const defaultTheme = {
background: tokens.shade.c300,
backgroundHover: tokens.shade.c200,
highlight: tokens.blue.c200,

activeBackground: tokens.shade.c300,
},

// meta data for the theme itself
Expand Down
4 changes: 3 additions & 1 deletion themes/list/blue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ export default createTheme({
pill: {
background: tokens.shade.c300,
backgroundHover: tokens.shade.c200,
highlight: tokens.blue.c200
highlight: tokens.blue.c200,

activeBackground: tokens.shade.c300,
},

global: {
Expand Down
4 changes: 3 additions & 1 deletion themes/list/gray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ export default createTheme({
pill: {
background: tokens.shade.c300,
backgroundHover: tokens.shade.c200,
highlight: tokens.blue.c200
highlight: tokens.blue.c200,

activeBackground: tokens.shade.c300,
},

global: {
Expand Down
4 changes: 3 additions & 1 deletion themes/list/red.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ export default createTheme({
pill: {
background: tokens.shade.c300,
backgroundHover: tokens.shade.c200,
highlight: tokens.blue.c200
highlight: tokens.blue.c200,

activeBackground: tokens.shade.c300,
},

global: {
Expand Down
4 changes: 3 additions & 1 deletion themes/list/teal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ export default createTheme({
pill: {
background: tokens.shade.c300,
backgroundHover: tokens.shade.c200,
highlight: tokens.blue.c200
highlight: tokens.blue.c200,

activeBackground: tokens.shade.c300,
},

global: {
Expand Down

0 comments on commit d4ba87f

Please sign in to comment.