You've already forked Atomcms-edit
3d5f94f9b9
- Add CSS variable support to dusk theme components for dynamic text colors - Fix low-contrast preset color combinations (cyberpunk, neon, magma, forest, obsidian, space) - Add text-shadow utility classes and apply to site header and backgrounds - Style logout buttons as proper buttons matching other button styles - Fix hardcoded text colors in atom theme components
15 lines
877 B
PHP
Executable File
15 lines
877 B
PHP
Executable File
@props(['errorBag' => '', 'classes' => '', 'name', 'type' => 'text', 'value' => '', 'placeholder' => '', 'required' => true, 'autofocus' => false, 'readonly' => false])
|
|
|
|
<input
|
|
class="{{ $classes }} focus:ring-0 border-2 rounded w-full @error($name, $errorBag) !border-red-600 ring-red-500 @enderror" style="border-color: var(--input-border-color, #4b5563); background-color: var(--input-background, #21242e); color: var(--input-text-color, #e2e8f0);"
|
|
id="{{ $name }}" type="{{ $type }}" name="{{ $name }}" value="{{ $value }}"
|
|
autocomplete="{{ $name }}" placeholder="{{ $placeholder }}" @if ($readonly) required @endif
|
|
@if ($autofocus) autofocus="{{ $name }}" @endif
|
|
@if ($readonly) readonly @endif>
|
|
|
|
@error($name, $errorBag)
|
|
<p class="mt-1 text-xs italic" style="color: var(--button-danger-color, #ef4444);">
|
|
{{ $message }}
|
|
</p>
|
|
@enderror
|