Browse Source

fix(settings/appearance): Removed inset-shadow & created new theme variable

pull/874/head
Boidushya Bhattacharya 1 year ago
parent
commit
d4ba87f95e
  1. 2
      src/pages/parts/settings/ThemePart.tsx
  2. 2
      themes/default.ts
  3. 4
      themes/list/blue.ts
  4. 4
      themes/list/gray.ts
  5. 4
      themes/list/red.ts
  6. 4
      themes/list/teal.ts

2
src/pages/parts/settings/ThemePart.tsx

@ -104,7 +104,7 @@ function ThemePreview(props: { @@ -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",
)}
>

2
themes/default.ts

@ -97,6 +97,8 @@ export const defaultTheme = { @@ -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

4
themes/list/blue.ts

@ -63,7 +63,9 @@ export default createTheme({ @@ -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: {

4
themes/list/gray.ts

@ -63,7 +63,9 @@ export default createTheme({ @@ -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: {

4
themes/list/red.ts

@ -63,7 +63,9 @@ export default createTheme({ @@ -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: {

4
themes/list/teal.ts

@ -63,7 +63,9 @@ export default createTheme({ @@ -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: {

Loading…
Cancel
Save