Skip to content

Commit 2c6401c

Browse files
✨ Refactor icon components to use CSS variables for colors and improve consistency
1 parent 55043b8 commit 2c6401c

File tree

4 files changed

+66
-33
lines changed

4 files changed

+66
-33
lines changed

resources/views/components/home/explainer.blade.php

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,14 @@ class="flex items-center gap-3 rounded-2xl bg-white/50 py-3 pr-5 pl-3 font-mediu
445445
<div
446446
class="grid size-10 shrink-0 place-items-center rounded-xl bg-blue-100 dark:bg-blue-500/20"
447447
>
448-
<x-icons.home.document
449-
class="size-5"
450-
aria-hidden="true"
451-
/>
448+
<div
449+
class="[--icon-bg:#F9FBF0] [--icon-dot:#BEDBFF] [--icon-stroke:#155DFC] dark:[--icon-bg:--alpha(var(--color-blue-400)/30%)] dark:[--icon-dot:--alpha(var(--color-blue-400)/70%)] dark:[--icon-stroke:--alpha(var(--color-blue-300)/80%)]"
450+
>
451+
<x-icons.home.document
452+
class="size-5"
453+
aria-hidden="true"
454+
/>
455+
</div>
452456
</div>
453457
<span class="text-gray-400 dark:text-zinc-400">1.</span>
454458
<span class="text-gray-800 dark:text-white">
@@ -461,10 +465,14 @@ class="flex items-center gap-3 rounded-2xl bg-white/50 py-3 pr-5 pl-3 font-mediu
461465
<div
462466
class="grid size-10 shrink-0 place-items-center rounded-xl bg-violet-100 dark:bg-violet-500/20"
463467
>
464-
<x-icons.home.browser
465-
class="size-5"
466-
aria-hidden="true"
467-
/>
468+
<div
469+
class="[--icon-bg:#fff] [--icon-dot:#DDD6FF] [--icon-stroke:#7F22FE] dark:[--icon-bg:--alpha(var(--color-violet-400)/30%)] dark:[--icon-dot:--alpha(var(--color-violet-400)/70%)] dark:[--icon-stroke:--alpha(var(--color-violet-300)/80%)]"
470+
>
471+
<x-icons.home.browser
472+
class="size-5"
473+
aria-hidden="true"
474+
/>
475+
</div>
468476
</div>
469477
<span class="text-gray-400 dark:text-zinc-400">2.</span>
470478
<span class="text-gray-800 dark:text-white">
@@ -477,10 +485,14 @@ class="flex items-center gap-3 rounded-2xl bg-white/50 py-3 pr-5 pl-3 font-mediu
477485
<div
478486
class="grid size-10 shrink-0 place-items-center rounded-xl bg-cyan-100 dark:bg-cyan-500/20"
479487
>
480-
<x-icons.home.startup
481-
class="size-5"
482-
aria-hidden="true"
483-
/>
488+
<div
489+
class="[--icon-bg:#fff] [--icon-dot:#CEFAFE] [--icon-stroke:#0092B8] dark:[--icon-bg:--alpha(var(--color-sky-400)/30%)] dark:[--icon-dot:--alpha(var(--color-sky-400)/70%)] dark:[--icon-stroke:--alpha(var(--color-sky-300)/80%)]"
490+
>
491+
<x-icons.home.startup
492+
class="size-5"
493+
aria-hidden="true"
494+
/>
495+
</div>
484496
</div>
485497
<span class="text-gray-400 dark:text-zinc-400">3.</span>
486498
<span class="text-gray-800 dark:text-white">

resources/views/components/icons/home/browser.blade.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,42 @@
66
>
77
<path
88
d="M2.44403 14.861C2.64958 16.7833 4.19483 18.3294 6.11516 18.5435C9.06482 18.8724 11.9335 18.8724 14.8831 18.5435C16.8035 18.3294 18.3487 16.7833 18.5543 14.861C18.8677 11.9304 18.8677 9.06965 18.5543 6.13893C18.3487 4.21672 16.8035 2.67071 14.8831 2.45655C11.9335 2.1276 9.06482 2.1276 6.11516 2.45655C4.19483 2.67071 2.64958 4.21672 2.44403 6.13893C2.13064 9.06965 2.13064 11.9304 2.44403 14.861Z"
9-
fill="white"
9+
fill="currentColor"
10+
class="text-[var(--icon-bg)]"
1011
/>
1112
<path
1213
d="M2.44403 14.861C2.64958 16.7833 4.19483 18.3294 6.11516 18.5435C9.06482 18.8724 11.9335 18.8724 14.8831 18.5435C16.8035 18.3294 18.3487 16.7833 18.5543 14.861C18.8677 11.9304 18.8677 9.06965 18.5543 6.13893C18.3487 4.21672 16.8035 2.67071 14.8831 2.45655C11.9335 2.1276 9.06482 2.1276 6.11516 2.45655C4.19483 2.67071 2.64958 4.21672 2.44403 6.13893C2.13064 9.06965 2.13064 11.9304 2.44403 14.861Z"
13-
stroke="#7F22FE"
14+
stroke="currentColor"
15+
class="text-[var(--icon-stroke)]"
1416
stroke-width="1.43"
1517
stroke-linecap="round"
1618
stroke-linejoin="round"
1719
/>
1820
<path
1921
d="M18.5918 6.49723H2.40625C2.4186 6.37753 2.43117 6.2581 2.44392 6.13893C2.64947 4.21672 4.19472 2.67071 6.11504 2.45655C9.0647 2.1276 11.9334 2.1276 14.883 2.45655C16.8034 2.67071 18.3487 4.21672 18.5542 6.13893C18.5669 6.2581 18.5795 6.37753 18.5918 6.49723Z"
20-
fill="#DDD6FF"
22+
fill="currentColor"
23+
class="text-[var(--icon-dot)]"
2124
/>
2225
<path
2326
d="M18.5918 6.49723H2.40625C2.4186 6.37753 2.43117 6.2581 2.44392 6.13893C2.64947 4.21672 4.19472 2.67071 6.11504 2.45655C9.0647 2.1276 11.9334 2.1276 14.883 2.45655C16.8034 2.67071 18.3487 4.21672 18.5542 6.13893C18.5669 6.2581 18.5795 6.37753 18.5918 6.49723Z"
24-
stroke="#7F22FE"
27+
stroke="currentColor"
28+
class="text-[var(--icon-stroke)]"
2529
stroke-width="1.43"
2630
stroke-linecap="round"
2731
stroke-linejoin="round"
2832
/>
2933
<path
3034
d="M11.9315 12.3135H15.4749"
31-
stroke="#7F22FE"
35+
stroke="currentColor"
36+
class="text-[var(--icon-stroke)]"
3237
stroke-width="1.43"
3338
stroke-linecap="round"
3439
stroke-linejoin="round"
3540
/>
3641
<path
3742
d="M6.29297 14.9968C7.36629 14.4602 8.43961 13.3869 8.97627 12.3136C8.43961 11.2402 7.36629 10.1669 6.29297 9.63025"
38-
stroke="#7F22FE"
43+
stroke="currentColor"
44+
class="text-[var(--icon-stroke)]"
3945
stroke-width="1.43"
4046
stroke-linecap="round"
4147
stroke-linejoin="round"

resources/views/components/icons/home/document.blade.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,42 @@
88
fill-rule="evenodd"
99
clip-rule="evenodd"
1010
d="M17.4125 2.39445C14.357 2.15444 10.2704 2.14265 7.2276 2.39325C6.60573 2.44447 6.11779 2.93951 6.0675 3.56146C5.80814 6.7693 5.84035 9.93441 6.16412 13.1529V13.6738C8.62109 13.6062 11.2628 13.6843 13.2927 13.9083C12.3444 16.1322 13.3767 18.7236 15.8563 18.7889H16.0375C17.4352 18.7889 18.5962 17.7048 18.6601 16.3087C18.8546 12.0708 18.8311 7.85195 18.59 3.60947C18.5533 2.96602 18.055 2.44492 17.4125 2.39445Z"
11-
fill="white"
11+
fill="currentColor"
12+
class="text-[var(--icon-bg)]"
1213
/>
1314
<path
1415
d="M2.49515 13.9083C2.08213 15.4289 1.59128 18.7902 5.14725 18.7902H15.9531C13.4041 18.7902 12.3328 16.1608 13.2933 13.9083C10.1752 13.5643 5.61329 13.5643 2.49515 13.9083Z"
15-
fill="#BEDBFF"
16+
fill="currentColor"
17+
class="text-[var(--icon-dot)]"
1618
/>
1719
<path
1820
d="M2.49515 13.9083C2.08213 15.4289 1.59128 18.7902 5.14725 18.7902H15.9531C13.4041 18.7902 12.3328 16.1608 13.2933 13.9083C10.1752 13.5643 5.61329 13.5643 2.49515 13.9083Z"
19-
stroke="#155DFC"
21+
stroke="currentColor"
22+
class="text-[var(--icon-stroke)]"
2023
stroke-width="1.43"
2124
stroke-linecap="round"
2225
stroke-linejoin="round"
2326
/>
2427
<path
2528
d="M9.63275 6.40674H15.0519"
26-
stroke="#155DFC"
29+
stroke="currentColor"
30+
class="text-[var(--icon-stroke)]"
2731
stroke-width="1.43"
2832
stroke-linecap="round"
2933
stroke-linejoin="round"
3034
/>
3135
<path
3236
d="M9.63275 9.93005H15.0519"
33-
stroke="#155DFC"
37+
stroke="currentColor"
38+
class="text-[var(--icon-stroke)]"
3439
stroke-width="1.43"
3540
stroke-linecap="round"
3641
stroke-linejoin="round"
3742
/>
3843
<path
3944
d="M14.3498 18.7889H16.0375C17.4352 18.7889 18.5962 17.7048 18.6601 16.3087C18.8546 12.0708 18.8311 7.85195 18.59 3.60947C18.5533 2.96602 18.055 2.44492 17.4125 2.39445C14.357 2.15444 10.2704 2.14265 7.2276 2.39325C6.60573 2.44447 6.11779 2.93951 6.0675 3.56146C5.80814 6.7693 5.84035 9.93441 6.16412 13.1529"
40-
stroke="#155DFC"
45+
stroke="currentColor"
46+
class="text-[var(--icon-stroke)]"
4147
stroke-width="1.43"
4248
stroke-linecap="round"
4349
stroke-linejoin="round"

resources/views/components/icons/home/startup.blade.php

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,51 +6,60 @@
66
>
77
<path
88
d="M6.16893 18.0078C5.75859 18.404 4.67333 18.78 3.64212 19.0668C2.58061 19.3619 1.63867 18.4199 1.93378 17.3583C2.22046 16.3272 2.5966 15.2419 2.99281 14.8316C3.19855 14.6108 3.44665 14.4337 3.7223 14.3109C3.99796 14.1881 4.29555 14.122 4.59728 14.1167C4.89902 14.1114 5.19875 14.1669 5.47858 14.2799C5.7584 14.3929 6.01258 14.5612 6.22598 14.7746C6.43937 14.9879 6.6076 15.2422 6.72063 15.5219C6.83366 15.8018 6.88917 16.1016 6.88383 16.4032C6.87852 16.7049 6.81247 17.0026 6.68964 17.2782C6.56682 17.5539 6.38973 17.802 6.16893 18.0078Z"
9-
fill="white"
9+
fill="currentColor"
10+
class="text-[var(--icon-bg)]"
1011
/>
1112
<path
1213
d="M6.01172 11.3994L6.04533 11.4202C7.4944 12.3146 8.71272 13.5373 9.60188 14.9895C12.474 13.269 15.739 11.6026 17.2293 10.0582C20.4537 6.83382 18.5841 2.41724 18.5841 2.41724C18.5841 2.41724 14.1675 0.547643 10.9431 3.77201C9.39866 5.26227 7.71874 8.54084 6.01172 11.3994Z"
13-
fill="#CEFAFE"
14+
fill="currentColor"
15+
class="text-[var(--icon-dot)]"
1416
/>
1517
<path
1618
d="M9.59375 14.9947L11.8052 18.9945C14.8518 17.3982 15.5942 14.2674 14.928 11.8473L9.59375 14.9947Z"
17-
fill="white"
19+
fill="currentColor"
20+
class="text-[var(--icon-bg)]"
1821
/>
1922
<path
2023
d="M6.01152 11.4129L2.01172 9.20144C3.60574 6.1446 6.74458 5.40485 9.1664 6.07704L6.01152 11.4129Z"
21-
fill="white"
24+
fill="currentColor"
25+
class="text-[var(--icon-bg)]"
2226
/>
2327
<path
2428
d="M6.01152 11.4129L2.01172 9.20144C3.60574 6.1446 6.74458 5.40485 9.1664 6.07704"
25-
stroke="#0092B8"
29+
stroke="currentColor"
30+
class="text-[var(--icon-stroke)]"
2631
stroke-width="1.43"
2732
stroke-linecap="round"
2833
stroke-linejoin="round"
2934
/>
3035
<path
3136
d="M9.59375 14.9947L11.8052 18.9945C14.8518 17.3982 15.5942 14.2674 14.928 11.8473"
32-
stroke="#0092B8"
37+
stroke="currentColor"
38+
class="text-[var(--icon-stroke)]"
3339
stroke-width="1.43"
3440
stroke-linecap="round"
3541
stroke-linejoin="round"
3642
/>
3743
<path
3844
d="M6.01172 11.3994L6.04533 11.4202C7.4944 12.3146 8.71272 13.5373 9.60188 14.9895C12.474 13.269 15.739 11.6026 17.2293 10.0582C20.4537 6.83382 18.5841 2.41724 18.5841 2.41724C18.5841 2.41724 14.1675 0.547643 10.9431 3.77201C9.39866 5.26227 7.71874 8.54084 6.01172 11.3994Z"
39-
stroke="#0092B8"
45+
stroke="currentColor"
46+
class="text-[var(--icon-stroke)]"
4047
stroke-width="1.43"
4148
stroke-linecap="round"
4249
stroke-linejoin="round"
4350
/>
4451
<path
4552
d="M6.16893 18.0078C5.75859 18.404 4.67333 18.78 3.64212 19.0668C2.58061 19.3619 1.63867 18.4199 1.93378 17.3583C2.22046 16.3272 2.5966 15.2419 2.99281 14.8316C3.19855 14.6108 3.44665 14.4337 3.7223 14.3109C3.99796 14.1881 4.29555 14.122 4.59728 14.1167C4.89902 14.1114 5.19875 14.1669 5.47858 14.2799C5.7584 14.3929 6.01258 14.5612 6.22598 14.7746C6.43937 14.9879 6.60761 15.2422 6.72063 15.5219C6.83366 15.8018 6.88917 16.1016 6.88383 16.4032C6.87852 16.7049 6.81247 17.0026 6.68964 17.2782C6.56682 17.5539 6.38973 17.802 6.16893 18.0078Z"
46-
stroke="#0092B8"
53+
stroke="currentColor"
54+
class="text-[var(--icon-stroke)]"
4755
stroke-width="1.43"
4856
stroke-linecap="round"
4957
stroke-linejoin="round"
5058
/>
5159
<path
5260
d="M14.2949 6.70558L14.793 6.20752"
53-
stroke="#0092B8"
61+
stroke="currentColor"
62+
class="text-[var(--icon-stroke)]"
5463
stroke-width="1.43"
5564
stroke-linecap="round"
5665
stroke-linejoin="round"

0 commit comments

Comments
 (0)