Skip to content

Commit 389de28

Browse files
authored
Style and color tweaks (#20)
1 parent cea3cda commit 389de28

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

src/components/ProductCategoryRow/ProductCategoryRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type Props = {
77
export default function ProductCategoryRow(props: Props) {
88
return (
99
<tr className={props.className}>
10-
<th className="pb-[1px] pt-[2px] md:pb-[2px] md:pt-[4px]" colSpan={2}>
10+
<th className="pb-[1px] pt-[5px] md:pb-[2px] md:pt-[7px]" colSpan={2}>
1111
{props.name}
1212
</th>
1313
</tr>

src/components/SearchBar/SearchBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function SearchBar(props: Props) {
3838
placeholder="Search..."
3939
value={localSearchText}
4040
onInput={handler}
41-
className={"placeholder:text-licorice-500 pl-2 max-w-72 mb-5 "+style.licorice_border}
41+
className={"placeholder:text-licorice-500/50 pl-2 max-w-72 mb-5 "+style.licorice_border}
4242
/>
4343
<div>
4444
<CheckInput id_name="only-in-stock" />

src/main.css

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,10 @@
88
If we ever want to remove these styles, we need to add an explicit border
99
color utility to any element that depends on these defaults.
1010
*/
11-
@layer base {
12-
*,
13-
::after,
14-
::before,
15-
::backdrop,
16-
::file-selector-button {
17-
border-color: var(--color-gray-200, currentColor);
18-
}
19-
}
2011

2112
@theme {
22-
--color-licorice-500: oklch(18.38% 0.03 318.24);
23-
--color-magnolia-500: oklch(97.34% 0.0151 302.56);
13+
--color-licorice-500: oklch(8.38% 0.03 318.24);
14+
--color-magnolia-500: oklch(98.78% 0.0151 302.56);
2415
--color-sgbus-green-500: oklch(79.24% 0.2231 140.62);
2516
--color-lemon-lime-500: oklch(95.06% 0.207 116.67);
2617
--color-orange-peel-500: oklch(77.21% 0.1727 64.17);
@@ -46,3 +37,20 @@
4637
-webkit-font-smoothing: antialiased;
4738
-moz-osx-font-smoothing: grayscale;
4839
}
40+
41+
@layer base {
42+
*,
43+
::after,
44+
::before,
45+
::backdrop,
46+
::file-selector-button {
47+
border-color: var(--color-gray-200, currentColor);
48+
}
49+
50+
input:focus {
51+
outline-style: solid;
52+
outline-width: 2px;
53+
outline-color: var(--color-lemon-lime-500);
54+
outline-offset: 1px;
55+
}
56+
}

0 commit comments

Comments
 (0)