Skip to content

Commit 430ae7b

Browse files
committed
Color names refactor
1 parent 954aa63 commit 430ae7b

File tree

19 files changed

+93
-49
lines changed

19 files changed

+93
-49
lines changed

resources/css/components/pagination.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99

1010
.pagination-button {
11-
@apply !font-semibold !font-sans !border !border-border !rounded !bg-white !text-neutral !shadow;
11+
@apply !font-semibold !font-sans !border !border-border !rounded !bg-white !text !shadow;
1212
}
1313

1414
.pagination-button.active {

resources/css/components/price-slider.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ div.vue-slider {
44

55
div.vue-slider-process,
66
div.vue-slider-rail {
7-
@apply h-2 bg-neutral !important;
7+
@apply h-2 bg !important;
88
}
99

1010
div.vue-slider-rail {
11-
@apply bg-highlight !important;
11+
@apply bg-emphasis !important;
1212
}
1313

1414
div.vue-slider .vue-slider-dot {
1515
@apply size-6 !important;
1616
}
1717

1818
div.vue-slider-dot-tooltip-inner {
19-
@apply bg-white text-neutral border-border border px-1.5 !important;
19+
@apply bg-white text border border-default px-1.5 !important;
2020
}
2121

2222
span.vue-slider-dot-tooltip-text {
23-
@apply font-medium font-sans text-neutral;
23+
@apply font-medium font-sans text;
2424
}
2525

2626
div.vue-slider-dot-tooltip::before {

resources/css/theme-variables.css

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
:root {
2-
--primary: 47 188 133;
3-
--primary-text: 255 255 255;
4-
--secondary: 249 115 22;
5-
--secondary-text: 255 255 255;
6-
--neutral: 51 65 85;
7-
--inactive: 100 116 139;
8-
--highlight: 241 245 249;
9-
--border: 231 235 239;
2+
--primary: #2fbc85;
3+
--primary-text: #ffffff;
4+
5+
--secondary: #202F60;
6+
--secondary-text: #ffffff;
7+
8+
/*
9+
Optionally you could define/overwrite
10+
more variables in this file:
11+
12+
--foreground: #334155;
13+
--border: #e7ebef;
14+
--background: #f1f5f9;
15+
*/
1016
}

resources/views/components/button/base.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<x-tag
99
is="{{ $tag }}"
1010
{{ $attributes->merge([
11-
'class' => 'flex items-center justify-center font-semibold py-2 px-4 border rounded disabled:opacity-50 disabled:cursor-not-allowed hover:opacity-75 whitespace-nowrap transition',
11+
'class' => 'flex items-center justify-center font-semibold py-2 px-4 rounded disabled:opacity-50 disabled:cursor-not-allowed hover:opacity-75 whitespace-nowrap transition',
1212
':disabled' => $attributes->has('href') || $attributes->has(':href') || !$disableWhenLoading ? null : '$root.loading' ]) }}
1313
>
1414
{{ $slot }}

resources/views/components/button/cart.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<x-rapidez::button {{ $attributes->merge([
1+
<x-rapidez::button.secondary {{ $attributes->merge([
22
'type' => 'submit',
33
'dusk' => 'add-to-cart',
4-
])->class('flex items-center') }}>
4+
]) }}>
55
<x-heroicon-o-shopping-cart class="mr-2 h-5 w-5" v-if="!addToCart.adding && !addToCart.added" />
66
<x-heroicon-o-arrow-path class="mr-2 h-5 w-5 animate-spin" v-if="addToCart.adding" v-cloak />
77
<x-heroicon-o-check class="mr-2 h-5 w-5" v-if="addToCart.added" v-cloak />
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<x-rapidez::button.base {{ $attributes->class('bg-inactive text-white') }}>
1+
<x-rapidez::button.base {{ $attributes->class('border') }}>
22
{{ $slot }}
33
</x-rapidez::button.base>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<x-rapidez::button.base {{ $attributes->class('bg-transparent hover:bg-neutral text-neutral hover:text-white border-neutral hover:border-transparent') }}>
1+
<x-rapidez::button.base {{ $attributes->class('bg-transparent hover:bg text hover:text border hover:border-transparent') }}>
22
{{ $slot }}
33
</x-rapidez::button.base>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<x-rapidez::button.base {{ $attributes->class('bg-secondary text-secondary-text') }}>
2+
{{ $slot }}
3+
</x-rapidez::button.base>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<label class="flex items-center">
2-
<input type="checkbox" {{ $attributes->merge(['class' => 'focus:ring-neutral h-4 w-4 text-neutral border rounded']) }}>
3-
<div class="ml-2 text-neutral">
2+
<input type="checkbox" {{ $attributes->merge(['class' => 'focus:ring-current h-4 w-4 text border rounded']) }}>
3+
<div class="ml-2 text">
44
{{ $slot }}
55
</div>
66
</label>

resources/views/components/input.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'type' => 'text',
1414
'placeholder' => __($placeholder ?? ''),
1515
'dusk' => $attributes->get('v-bind:dusk') ? null : $name,
16-
'class' => 'w-full py-2 px-3 border-border rounded !ring-0 focus:!border-inactive sm:text-sm text-neutral',
16+
'class' => 'w-full py-2 px-3 border border-default rounded !ring-0 focus:border-emphasis sm:text-sm',
1717
]) }}
1818
>
1919
</div>

0 commit comments

Comments
 (0)