<template>
<Modal
ref="modal"
- :class="{ 'border border-l-4 border-l-theme-failure': isDanger }"
+ :class="{ 'border-l-theme-danger border border-l-4': isDanger }"
:closeHandler="cancelHandler"
>
<!-- Title -->
<!-- Buttons -->
<div class="flex justify-end">
<CustomButton label="Cancel" @click="cancelHandler" class="mr-2" />
- <CustomButton label="Confirm" @click="confirmHandler" isCta />
+ <CustomButton :label="confirmButtonText" @click="confirmHandler" danger />
</div>
</Modal>
</template>
const props = defineProps({
title: { type: String, default: "Confirmation" },
message: String,
+ confirmButtonText: { type: String, default: "Confirm" },
isDanger: Boolean,
});
const emit = defineEmits(["confirm", "cancel"]);
<template>
<button
- class="rounded px-2 py-1 hover:bg-theme-background-tint hover:dark:bg-theme-background-elevated"
+ class="rounded px-2 py-1"
:class="{
- 'text-theme-text-muted': !isCta,
- 'border border-theme-border': isCta,
+ 'bg-theme-background text-theme-text-muted hover:bg-theme-background-elevated':
+ !danger,
+ 'bg-theme-danger hover:bg-theme-danger/80 text-slate-50': danger,
}"
>
<IconLabel :iconPath="iconPath" :iconSize="iconSize" :label="label" />
iconPath: String,
iconSize: String,
label: String,
- isCta: Boolean,
+ danger: Boolean,
});
</script>
<!-- Mask -->
<div
v-if="isVisible"
- class="fixed left-0 top-0 z-50 flex h-dvh w-dvw items-center justify-center bg-theme-background-tint/40 backdrop-blur-sm"
+ class="fixed left-0 top-0 z-50 flex h-dvh w-dvw items-center justify-center backdrop-blur-sm"
>
<!-- Modal -->
<div
menuitem: ({ context }) => ({
class: [
"text-theme-text-muted rounded px-2 py-1",
- "hover:bg-theme-background-tint hover:dark:bg-theme-background-elevated hover:cursor-pointer",
+ "hover:bg-theme-background-elevated hover:cursor-pointer",
{
- "bg-theme-background-tint dark:bg-theme-background-elevated":
+ "bg-theme-background-elevated":
context.focused,
},
],
container: ({ props }) => ({
class: [
"mt-2 px-3 py-2 rounded-lg max-w-96",
- "bg-theme-background-elevated border border-l-2 border-theme-border shadow-md",
+ "dark:bg-theme-background-elevated border border-l-2 border-theme-border shadow-md",
{
"border-l-theme-success": props.message.severity == "success",
- "border-l-theme-failure": props.message.severity == "error",
+ "border-l-theme-danger": props.message.severity == "error",
},
],
}),
<template>
<input
type="text"
- class="w-full rounded border border-theme-border bg-theme-background-elevated px-3 py-2 focus:outline-none focus:ring-1"
+ class="w-full rounded border border-theme-border px-3 py-2 focus:outline-none focus:ring-1 dark:bg-theme-background-elevated"
placeholder="Search"
v-model="model"
ref="input"
// Code Block
.toastui-editor-contents pre,
.toastui-editor-md-code-block-line-background {
- background-color: rgb(var(--theme-background-tint));
+ background-color: rgb(var(--theme-background-elevated));
}
.dark-theme .toastui-editor-contents pre,
// Tables
.toastui-editor-contents table th {
color: rgb(var(--theme-text));
- background-color: rgb(var(--theme-background-tint));
+ background-color: rgb(var(--theme-background-elevated));
}
.toastui-editor-contents table {
}
.toastui-editor-defaultUI .tab-item {
- background-color: rgb(var(--theme-background-tint));
+ background-color: rgb(var(--theme-background-elevated));
color: rgb(var(--theme-text-muted));
border-color: rgb(var(--theme-border));
}
}
.toastui-editor-defaultUI-toolbar button:not(:disabled):hover {
- background-color: rgb(var(--theme-background-tint));
+ background-color: rgb(var(--theme-background-elevated));
border: 1px solid rgb(var(--theme-background));
}
.toastui-editor-md-code,
.toastui-editor-contents code {
- background-color: rgb(var(--theme-background-tint));
+ background-color: rgb(var(--theme-background-elevated));
}
.dark-theme .toastui-editor-md-code,
}
.toastui-editor-popup-add-heading ul li:hover {
- background-color: rgb(var(--theme-background-highlight));
+ background-color: rgb(var(--theme-background-elevated));
}
.toastui-editor-popup-add-image .toastui-editor-tabs .tab-item {
--theme-brand: 248 166 107;\r
\r
--theme-background: 255 255 255;\r
- --theme-background-elevated: 255 255 255;\r
- --theme-background-tint: 243 244 245;\r
- --theme-background-highlight: 239 243 255;\r
+ --theme-background-elevated: 243 244 245;\r
\r
--theme-text: 44 49 57;\r
--theme-text-muted: 136 145 161;\r
\r
--theme-background: 34 38 44;\r
--theme-background-elevated: 44 49 57;\r
- --theme-background-tint: 34 38 44;\r
- --theme-background-highlight: 136 145 161;\r
\r
--theme-text: 193 199 208;\r
--theme-text-muted: 136 145 161;\r
ref="deleteConfirmModal"
title="Confirm Deletion"
:message="`Are you sure you want to delete the note '${note.title}'?`"
+ confirmButtonText="Delete"
isDanger
@confirm="deleteConfirmedHandler"
/>
<LoadingIndicator ref="loadingIndicator" class="max-w-[700px] flex-1">
<div
v-for="result in results"
- class="mb-4 cursor-pointer rounded px-2 py-1 hover:bg-theme-background-tint dark:hover:bg-theme-background-elevated"
+ class="mb-4 cursor-pointer rounded px-2 py-1 hover:bg-theme-background-elevated"
>
<RouterLink :to="result.href">
<!-- Title and Tags -->
"theme-background": "rgb(var(--theme-background) / <alpha-value>)",\r
"theme-background-elevated":\r
"rgb(var(--theme-background-elevated) / <alpha-value>)",\r
- "theme-background-tint":\r
- "rgb(var(--theme-background-tint) / <alpha-value>)",\r
- "theme-background-highlight":\r
- "rgb(var(--theme-background-highlight) / <alpha-value>)",\r
"theme-text": "rgb(var(--theme-text) / <alpha-value>)",\r
"theme-text-muted": "rgb(var(--theme-text-muted) / <alpha-value>)",\r
"theme-text-very-muted":\r
"theme-border": "rgb(var(--theme-border) / <alpha-value>)",\r
// Static\r
"theme-success": colors.emerald[500],\r
- "theme-failure": colors.red[500],\r
+ "theme-danger": colors.rose[600],\r
},\r
},\r
},\r