fix: card color theme

This commit is contained in:
Zephyruso 2023-09-01 10:02:47 +08:00
parent 414bdd5b97
commit 4e5c8bfe8d
2 changed files with 4 additions and 4 deletions

View File

@ -42,8 +42,8 @@ export default (props: {
return (
<div
class={twMerge(
'card card-bordered tooltip tooltip-bottom card-compact flex gap-1 border-primary p-3',
isSelected && 'border-success bg-success-content text-success',
'card card-bordered tooltip tooltip-bottom card-compact flex gap-1 border-neutral-focus bg-neutral p-3 text-neutral-content',
isSelected && 'border-primary bg-primary-content text-primary',
onClick && 'cursor-pointer',
)}
onClick={() => onClick?.()}

View File

@ -29,7 +29,7 @@ export default () => {
<div class="grid grid-cols-1 gap-2 sm:grid-cols-1">
<For each={rules()}>
{(rule) => (
<div class="card card-bordered card-compact border-primary p-4">
<div class="card card-bordered card-compact border-neutral-focus bg-neutral p-4 text-neutral-content">
<div class="break-all">{rule.payload}</div>
<div class="text-xs text-slate-500">
{rule.type} :: {rule.proxy}
@ -46,7 +46,7 @@ export default () => {
<div class="grid grid-cols-1 gap-2 sm:grid-cols-1">
<For each={rulesProviders()}>
{(rulesProvider) => (
<div class="card card-bordered card-compact border-secondary p-4">
<div class="card card-bordered card-compact border-neutral-focus bg-neutral p-4 text-neutral-content">
<div>{rulesProvider.name}</div>
<div class="text-xs text-slate-500">
{rulesProvider.vehicleType} :: {rulesProvider.behavior} (