Skip to content

Commit

Permalink
replace gray shade with secondary
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Jul 31, 2024
1 parent 8bb6f27 commit 5f622d0
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 14 deletions.
10 changes: 6 additions & 4 deletions src/Components/LogUpdate/Sections/IOBalance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ export default logUpdateSection(
<div key={j} className="flex items-end gap-4">
<div className="flex-1">
{j == 0 && (
<div className="mb-2 text-sm text-gray-800">Type</div>
<div className="mb-2 text-sm text-secondary-800">
Type
</div>
)}
<SelectMenuV2
options={field.options
Expand Down Expand Up @@ -119,7 +121,7 @@ export default logUpdateSection(
}
label={
j == 0 && (
<div className="text-sm text-gray-800">
<div className="text-sm text-secondary-800">
Quantity
</div>
)
Expand All @@ -143,7 +145,7 @@ export default logUpdateSection(
)}
<ButtonV2
variant="secondary"
className="bg-gray-200"
className="bg-secondary-200"
onClick={() =>
onChange({
[field.key]: [
Expand All @@ -163,7 +165,7 @@ export default logUpdateSection(
</ButtonV2>
</div>
))}
<div className="flex items-center justify-between border-b-2 border-b-gray-400 pb-2">
<div className="flex items-center justify-between border-b-2 border-b-secondary-400 pb-2">
<h4>Total</h4>
<div>
{fields
Expand Down
4 changes: 2 additions & 2 deletions src/Components/LogUpdate/Sections/NeurologicalMonitoring.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default logUpdateSection(

return (
<div>
<div className="mt-4 flex items-center justify-between rounded-lg bg-gray-200 p-4">
<div className="mt-4 flex items-center justify-between rounded-lg bg-secondary-200 p-4">
<CheckBoxFormField
name="in_prone_position"
label="The patient is in prone position"
Expand Down Expand Up @@ -129,7 +129,7 @@ export default logUpdateSection(
<div className="flex items-center justify-between">
<h3>Glasgow Coma Scale</h3>
<div>
<span className="text-xs text-gray-700">Total&nbsp;</span>
<span className="text-xs text-secondary-700">Total&nbsp;</span>
<span className="text-5xl font-bold text-primary-400">
{(log.glasgow_eye_open || 0) +
(log.glasgow_verbal_response || 0) +
Expand Down
2 changes: 1 addition & 1 deletion src/Components/LogUpdate/Sections/NursingCare.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default logUpdateSection(

return (
<div key={i}>
<div className="overflow-hidden rounded-lg border border-gray-400 bg-gray-200 ring-0 ring-primary-400 transition-all focus-within:ring-2">
<div className="overflow-hidden rounded-lg border border-secondary-400 bg-secondary-200 ring-0 ring-primary-400 transition-all focus-within:ring-2">
<div className="p-4">
<CheckBoxFormField
label={field.desc}
Expand Down
2 changes: 1 addition & 1 deletion src/Components/LogUpdate/Sections/PressureSore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default logUpdateSection(
till: 0,
color: "#ECECEC",
text: "",
className: "bg-gray-300 border border-gray-400",
className: "bg-secondary-300 border border-secondary-400",
},
{
till: 3,
Expand Down
2 changes: 1 addition & 1 deletion src/Components/LogUpdate/Sections/RespiratorySupport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default logUpdateSection(
})
}
/>
<div className="border-l-2 border-l-gray-400 pl-4">
<div className="border-l-2 border-l-secondary-400 pl-4">
{
RESPIRATORY_SUPPORT_OPTIONS.find(
(o) => o.value === log.ventilator_interface,
Expand Down
4 changes: 2 additions & 2 deletions src/Components/LogUpdate/Sections/Vitals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default logUpdateSection(
{ text: "Normal", className: "text-green-500" },
]}
/>
<hr className="my-8 border border-gray-400" />
<hr className="my-8 border border-secondary-400" />
<RangeFormField
label="Temperature"
name="temperature"
Expand Down Expand Up @@ -137,7 +137,7 @@ export default logUpdateSection(
}
onChange={(pain_scale_enhanced) => onChange({ pain_scale_enhanced })}
/>
<hr className="my-8 border border-gray-400" />
<hr className="my-8 border border-secondary-400" />
<RadioFormField
label="Heartbeat Rhythm"
name="heartbeat-rythm"
Expand Down
2 changes: 1 addition & 1 deletion src/Components/LogUpdate/components/PainChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function PainChart(props: {
till: 0,
color: "#ECECEC",
text: "No Pain",
className: "bg-gray-300 border border-gray-400",
className: "bg-secondary-300 border border-secondary-400",
},
{
till: 3,
Expand Down
4 changes: 2 additions & 2 deletions src/Components/LogUpdate/components/PupilSizeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export default function PupilSizeSelect(props: {
<button
disabled={!onChange}
key={size}
//className={`h-10 flex items-center justify-center aspect-square rounded-full border border-black/20 ${size === pupilSize ? "bg-gray-300" : "bg-white"}`}
className={`flex aspect-square h-20 flex-col items-center justify-between rounded-lg border py-2 transition-all ${size === pupilSize ? "border-primary-500 bg-gray-300 bg-primary-500/10" : "border-gray-300 bg-white hover:bg-gray-200"}`}
//className={`h-10 flex items-center justify-center aspect-square rounded-full border border-black/20 ${size === pupilSize ? "bg-secondary-300" : "bg-white"}`}
className={`flex aspect-square h-20 flex-col items-center justify-between rounded-lg border py-2 transition-all ${size === pupilSize ? "border-primary-500 bg-primary-500/10 bg-secondary-300" : "border-secondary-300 bg-white hover:bg-secondary-200"}`}
onClick={() => onChange?.(size)}
>
<div
Expand Down

0 comments on commit 5f622d0

Please sign in to comment.