Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions resources/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
::backdrop,
::file-selector-button {
border-color: var(--color-gray-300, currentColor);
[data-contrast="increased"] & {
border-color: var(--color-gray-500, currentColor);
}
}
.dark {
*,
Expand Down
2 changes: 1 addition & 1 deletion resources/css/components/fieldtypes/bard.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@layer ui {
/* .grid-cell, [data-ui-input-group] are exceptions for Bard fieldtypes inside a Grid fieldtype, since these cause double borders */
.bard-fieldtype:not(.form-group, .grid-cell, [data-ui-input-group]) {
@apply relative rounded-lg border outline-hidden dark:border-gray-700;
@apply relative rounded-lg border outline-hidden dark:border-gray-700 with-contrast:border-gray-500;
}
}
/* BARD / EDITOR
Expand Down
6 changes: 3 additions & 3 deletions resources/css/components/fieldtypes/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Table Fieldtype
========================================================================== */

.table-contained {
@apply relative mb-4 w-full rounded-lg border shadow-ui-sm outline-hidden dark:border-gray-700 text-start;
@apply relative mb-4 w-full rounded-lg border shadow-ui-sm outline-hidden dark:border-gray-700 with-contrast:border-gray-500 text-start;
border-collapse: separate;
border-spacing: 0;
table-layout: fixed;
Expand All @@ -15,7 +15,7 @@ Table Fieldtype
dark:bg-gray-925
border-b bg-gray-50
not-last:border-e overflow-hidden
dark:border-gray-800 dark:border-b-gray-700
dark:border-gray-800 dark:border-b-gray-700 with-contrast:border-gray-500
text-sm font-medium text-gray-900
dark:text-gray-100
-top-2
Expand Down Expand Up @@ -97,7 +97,7 @@ Table Fieldtype
}

td {
@apply border-b p-0 dark:border-gray-700 border-e;
@apply border-b p-0 dark:border-gray-700 border-e with-contrast:border-gray-500;

&:first-child.grid-cell {
@apply ps-4;
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/fields/WidthSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const selected = computed(() => {
})

const wrapperClasses = cva({
base: 'relative text-gray-600 dark:text-gray-400 font-mono antialiased bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-700 overflow-hidden flex cursor-pointer',
base: 'relative text-gray-600 dark:text-gray-400 font-mono antialiased bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-700 with-contrast:border-gray-500 overflow-hidden flex cursor-pointer',
variants: {
size: {
base: 'h-6 w-14 text-xs rounded-md',
Expand Down
4 changes: 2 additions & 2 deletions resources/js/components/fieldtypes/ColorFieldtype.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="flex items-center">
<!-- <div class="input-group w-auto" :class="{ 'max-w-[130px]': config.allow_any }"> -->
<div class="flex items-center rounded-full relative border shadow-ui-sm">
<div class="flex items-center rounded-full relative border shadow-ui-sm with-contrast:border-gray-500">
<ui-popover
ref="colorPopover"
name="swatches"
Expand All @@ -12,7 +12,7 @@
@update:open="popoverOpen = $event"
>
<template #trigger>
<button type="button" class="cursor-pointer size-9 border rounded-full flex items-center justify-center" :aria-label="__('Pick Color')">
<button type="button" class="cursor-pointer size-9 border rounded-full flex items-center justify-center with-contrast:border-gray-500" :aria-label="__('Pick Color')">
<div
class="size-8 rounded-full"
:class="{ 'cursor-not-allowed': isReadOnly }"
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/fieldtypes/RangeFieldtype.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="flex items-center gap-2 bg-gray-50 dark:bg-gray-800 rounded-lg p-2 @lg:px-4 @lg:py-3">
<div class="flex items-center gap-2 bg-gray-50 dark:bg-gray-800 rounded-lg p-2 @lg:px-4 @lg:py-3 with-contrast:border with-contrast:border-gray-500">
<ui-subheading size="lg" v-if="config.prepend" :text="__(config.prepend)" class="whitespace-nowrap" />
<input
class="min-w-0 flex-1 w-full"
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/themes/Themes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ defineExpose({
v-for="theme in results"
:key="theme.id"
class="p-1 rounded-xl hover:bg-blue-100 dark:hover:bg-blue-900"
:class="{ 'bg-blue-400! dark:bg-blue-500!': isActive(theme) }"
:class="{ 'bg-blue-600!': isActive(theme) }"
@click="selectTheme(theme)"
>
<Preview :theme="theme" />
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/ui/Button/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const buttonClasses = computed(() => {
variants: {
variant: {
default: [
'bg-linear-to-b from-white to-gray-50 hover:to-gray-100 hover:bg-gray-50 text-gray-900 border border-gray-300 shadow-ui-sm',
'bg-linear-to-b from-white to-gray-50 hover:to-gray-100 hover:bg-gray-50 text-gray-900 border border-gray-300 with-contrast:border-gray-500 shadow-ui-sm',
'dark:from-gray-850 dark:to-gray-900 dark:hover:to-gray-850 dark:hover:bg-gray-900 dark:border-gray-700/80 dark:text-gray-300 dark:shadow-ui-md',
],
primary: [
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/ui/Checkbox/Item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const handleKeydown = (event) => {
const checkboxClasses = computed(() => {
return cva({
base: [
'shadow-ui-xs mt-0.5 cursor-default rounded-sm border border-gray-400/75 bg-white',
'shadow-ui-xs mt-0.5 cursor-default rounded-sm border border-gray-400/75 with-contrast:border-gray-500 bg-white',
'dark:bg-gray-500 dark:border-gray-900',
'data-[state=checked]:border-ui-accent-bg data-[state=checked]:bg-ui-accent-bg',
'data-[state=indeterminate]:border-ui-accent-bg data-[state=indeterminate]:bg-ui-accent-bg',
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/ui/Combobox/Combobox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const triggerClasses = cva({
variants: {
variant: {
default: [
'bg-linear-to-b from-white to-gray-50 text-gray-900 border border-gray-300 shadow-ui-sm focus-within:focus-outline',
'bg-linear-to-b from-white to-gray-50 text-gray-900 border border-gray-300 with-contrast:border-gray-500 shadow-ui-sm focus-within:focus-outline',
'dark:from-gray-850 dark:to-gray-900 dark:border-gray-700 dark:text-gray-300 dark:shadow-ui-md',
],
filled: 'bg-black/5 hover:bg-black/10 text-gray-900 border-none dark:bg-white/15 dark:hover:bg-white/20 dark:text-white focus-within:focus-outline dark:placeholder:text-red-500/60',
Expand Down
1 change: 1 addition & 0 deletions resources/js/components/ui/Input/GroupAppend.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const props = defineProps({
'flex items-center justify-center',
'shadow-ui-sm disabled:shadow-none',
'border border-gray-300 bg-gray-50 text-gray-600 antialiased dark:border-gray-700 dark:bg-gray-925 dark:text-gray-300',
'with-contrast:border-gray-500',
'rounded-e-lg px-3 text-sm leading-[1.375rem] shrink-0',
]"
data-ui-input-group-append
Expand Down
1 change: 1 addition & 0 deletions resources/js/components/ui/Input/GroupPrepend.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const props = defineProps({
'flex items-center justify-center',
'shadow-ui-sm disabled:shadow-none',
'border border-gray-300 bg-gray-50 text-gray-600 antialiased dark:border-gray-700 dark:bg-gray-925 dark:text-gray-300',
'with-contrast:border-gray-500',
'rounded-s-lg px-3 text-sm leading-[1.375rem] shrink-0',
]"
data-ui-input-group-prepend
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/ui/Input/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const inputClasses = computed(() => {
const classes = cva({
base: [
'w-full block bg-white dark:bg-gray-900',
'border border-gray-300 with-contrast:border-gray-500 dark:border-gray-700 dark:inset-shadow-2xs dark:inset-shadow-black',
'border border-gray-300 with-contrast:border-gray-500 dark:border-gray-700 dark:with-contrast:border-gray-500 dark:inset-shadow-2xs dark:inset-shadow-black',
'text-gray-925 dark:text-gray-300 placeholder:text-gray-500 dark:placeholder:text-gray-400/85',
'appearance-none antialiased shadow-ui-sm disabled:shadow-none disabled:opacity-50 read-only:border-dashed not-prose',
],
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/ui/Radio/Item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const id = useId();
:disabled
class="
shadow-ui-xs mt-0.5 size-4 cursor-default rounded-full
focus:focus-outline border border-gray-400/75 dark:border-none bg-white outline-hidden
focus:focus-outline border border-gray-400/75 dark:border-none with-contrast:border-gray-100 bg-white outline-hidden
data-[state=checked]:border-ui-accent-bg data-[disabled]:opacity-50
dark:bg-gray-500 dark:data-[state=checked]:border-none dark:data-[state=checked]:bg-gray-300
"
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/ui/Switch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defineEmits(['update:modelValue']);

const switchRootClasses = cva({
base: [
'relative flex rounded-full shrink-0 border-2',
'relative flex rounded-full shrink-0 border-2 with-contrast:border-1 with-contrast:border-gray-500!',
'transition-colors cursor-pointer',
'data-[state=checked]:shadow-inner data-[state=checked]:border-switch-bg data-[state=checked]:bg-switch-bg',
'data-[state=unchecked]:border-transparent',
Expand Down