Fix template editor dark theme and add #8fb6ba accent color

- Fix field type buttons in template editor sidebar: add dark background
  fallback (#252525) when no submitter color is set, preventing browser
  default white button backgrounds
- Fix submitter dropdown menu: change fallback from white to dark (#252525)
- Update primary and accent color to #8fb6ba for subtle blue detail
  throughout the interface
- Make action buttons (base-button) use primary color instead of neutral
- Add primary color focus states to input fields and textareas
- Add subtle primary hover border to outline buttons

https://claude.ai/code/session_01SMJoL1Hzz3b5qqDhyD63jF
pull/580/head
Claude 2 months ago
parent 770f840790
commit 9fa4e7d228
No known key found for this signature in database

@ -48,19 +48,19 @@ button[disabled] .enabled, button.btn-disabled .enabled {
} }
.base-input { .base-input {
@apply input input-bordered bg-base-300; @apply input input-bordered bg-base-300 focus:border-primary/50;
} }
.base-textarea { .base-textarea {
@apply textarea textarea-bordered bg-base-300 rounded-3xl; @apply textarea textarea-bordered bg-base-300 rounded-3xl focus:border-primary/50;
} }
.base-button { .base-button {
@apply btn btn-neutral text-white text-base; @apply btn btn-primary text-base-100 text-base;
} }
.white-button { .white-button {
@apply btn btn-outline text-base bg-base-300 border-2; @apply btn btn-outline text-base bg-base-300 border-2 hover:border-primary/50 hover:bg-base-200;
} }
.base-checkbox { .base-checkbox {

@ -48,7 +48,7 @@ button[disabled] .enabled, button.btn-disabled .enabled {
} }
.base-textarea { .base-textarea {
@apply textarea textarea-bordered bg-base-300 rounded-3xl; @apply textarea textarea-bordered bg-base-300 rounded-3xl focus:border-primary/50;
} }
.btn { .btn {
@ -56,15 +56,15 @@ button[disabled] .enabled, button.btn-disabled .enabled {
} }
.base-input { .base-input {
@apply input input-bordered bg-base-300; @apply input input-bordered bg-base-300 focus:border-primary/50;
} }
.base-button { .base-button {
@apply btn btn-neutral text-white text-base; @apply btn btn-primary text-base-100 text-base;
} }
.white-button { .white-button {
@apply btn btn-outline text-base bg-base-300 border-2; @apply btn btn-outline text-base bg-base-300 border-2 hover:border-primary/50 hover:bg-base-200;
} }
.base-checkbox { .base-checkbox {

@ -56,7 +56,7 @@
id="title_container" id="title_container"
class="flex justify-between py-1.5 items-center pr-4 top-0 z-10 title-container" class="flex justify-between py-1.5 items-center pr-4 top-0 z-10 title-container"
:class="{ sticky: withStickySubmitters || isBreakpointLg }" :class="{ sticky: withStickySubmitters || isBreakpointLg }"
:style="{ backgroundColor }" :style="{ backgroundColor: backgroundColor || '' }"
> >
<div class="flex items-center space-x-3"> <div class="flex items-center space-x-3">
<a <a
@ -285,7 +285,7 @@
/> />
<div <div
class="sticky bottom-0 py-2 space-y-2" class="sticky bottom-0 py-2 space-y-2"
:style="{ backgroundColor }" :style="{ backgroundColor: backgroundColor || '' }"
> >
<Upload <Upload
v-if="editable && withUploadButton" v-if="editable && withUploadButton"
@ -445,7 +445,7 @@
<div <div
v-if="showDrawField || drawField || drawCustomField" v-if="showDrawField || drawField || drawCustomField"
class="sticky inset-0 h-full z-20" class="sticky inset-0 h-full z-20"
:style="{ backgroundColor }" :style="{ backgroundColor: backgroundColor || '' }"
> >
<div class="bg-base-200 rounded-lg p-5 text-center space-y-4 draw-field-container"> <div class="bg-base-200 rounded-lg p-5 text-center space-y-4 draw-field-container">
<p v-if="(drawField?.type || drawFieldType || drawCustomField?.type) === 'strikethrough'"> <p v-if="(drawField?.type || drawFieldType || drawCustomField?.type) === 'strikethrough'">

@ -5,7 +5,7 @@
class="roles-dropdown w-full rounded-lg roles-dropdown" class="roles-dropdown w-full rounded-lg roles-dropdown"
:style="withStickySubmitters ? { backgroundColor } : {}" :style="withStickySubmitters ? { backgroundColor } : {}"
:submitters="submitters" :submitters="submitters"
:menu-style="{ overflow: 'auto', display: 'flex', flexDirection: 'row', maxHeight: 'calc(100vh - 120px)', backgroundColor: ['', null, 'transparent'].includes(backgroundColor) ? 'white' : backgroundColor }" :menu-style="{ overflow: 'auto', display: 'flex', flexDirection: 'row', maxHeight: 'calc(100vh - 120px)', backgroundColor: ['', null, 'transparent'].includes(backgroundColor) ? '#252525' : backgroundColor }"
:editable="editable && !defaultSubmitters.length" :editable="editable && !defaultSubmitters.length"
@new-submitter="save" @new-submitter="save"
@remove="removeSubmitter" @remove="removeSubmitter"
@ -79,7 +79,7 @@
:key="field.name" :key="field.name"
> >
<div <div
:style="{ backgroundColor }" :style="{ backgroundColor: backgroundColor || '#252525' }"
draggable="true" draggable="true"
class="border border-base-300 rounded relative group mb-2 default-field fields-list-item" class="border border-base-300 rounded relative group mb-2 default-field fields-list-item"
@dragstart="onDragstart($event, field)" @dragstart="onDragstart($event, field)"
@ -208,7 +208,7 @@
:id="`${type}_type_field_button`" :id="`${type}_type_field_button`"
draggable="true" draggable="true"
class="field-type-button group flex items-center justify-center border border-dashed w-full rounded relative fields-grid-item" class="field-type-button group flex items-center justify-center border border-dashed w-full rounded relative fields-grid-item"
:style="{ backgroundColor }" :style="{ backgroundColor: backgroundColor || '#252525' }"
:class="drawFieldType === type ? 'border-base-content/40' : 'border-base-300 hover:border-base-content/20'" :class="drawFieldType === type ? 'border-base-content/40' : 'border-base-300 hover:border-base-content/20'"
@dragstart="onDragstart($event, { type: type })" @dragstart="onDragstart($event, { type: type })"
@dragend="$emit('drag-end')" @dragend="$emit('drag-end')"
@ -237,7 +237,7 @@
href="https://www.docuseal.com/pricing" href="https://www.docuseal.com/pricing"
target="_blank" target="_blank"
class="opacity-50 flex items-center justify-center border border-dashed border-base-300 w-full rounded relative fields-grid-item" class="opacity-50 flex items-center justify-center border border-dashed border-base-300 w-full rounded relative fields-grid-item"
:style="{ backgroundColor }" :style="{ backgroundColor: backgroundColor || '#252525' }"
> >
<div class="w-0 absolute left-0"> <div class="w-0 absolute left-0">
<IconLock <IconLock
@ -263,7 +263,7 @@
href="https://www.docuseal.com/qualified-electronic-signature" href="https://www.docuseal.com/qualified-electronic-signature"
target="_blank" target="_blank"
class="opacity-50 flex items-center justify-center border border-dashed border-base-300 w-full rounded relative fields-grid-item" class="opacity-50 flex items-center justify-center border border-dashed border-base-300 w-full rounded relative fields-grid-item"
:style="{ backgroundColor }" :style="{ backgroundColor: backgroundColor || '#252525' }"
> >
<div class="w-0 absolute left-0"> <div class="w-0 absolute left-0">
<IconLock <IconLock

@ -7,9 +7,9 @@ module.exports = {
{ {
docuseal: { docuseal: {
'color-scheme': 'dark', 'color-scheme': 'dark',
primary: '#93bec7', primary: '#8fb6ba',
secondary: '#97b0b4', secondary: '#97b0b4',
accent: '#adada2', accent: '#8fb6ba',
neutral: '#2a2a2a', neutral: '#2a2a2a',
'neutral-content': '#ededde', 'neutral-content': '#ededde',
'base-100': '#1a1a1a', 'base-100': '#1a1a1a',

Loading…
Cancel
Save