Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Add an Info color to the theme

天舟f685c5271967
diff --git a/frontend/src/assets/css/tailwind.css b/frontend/src/assets/css/tailwind.css
index 08fbe15aba..8a355737a8 100644
--- a/frontend/src/assets/css/tailwind.css
+++ b/frontend/src/assets/css/tailwind.css
@@ -33,6 +33,11 @@
/* gray-400 */
--color-control-placeholder: #a1a1aa;
+ /* blue-600 */
+ --color-info: #2563eb;
+ /* blue-700 */
+ --color-info-hover: #1d4ed8;
+
/* yellow-600 */
--color-warning: #d97706;
/* yellow-700 */
diff --git a/frontend/src/components/BackupTable.vue b/frontend/src/components/BackupTable.vue
index 842633e6ba..0fe1b40225 100644
--- a/frontend/src/components/BackupTable.vue
+++ b/frontend/src/components/BackupTable.vue
@@ -31,7 +31,7 @@
>
<template v-if="backup.status == 'PENDING_CREATE'">
<span
- class="h-2 w-2 bg-blue-600 hover:bg-blue-700 rounded-full"
+ class="h-2 w-2 bg-info hover:bg-info-hover rounded-full"
style="
animation: pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
"
@@ -236,7 +236,7 @@ export default {
case "PENDING_CREATE":
return (
iconClass +
- " bg-white border-2 border-blue-600 text-blue-600 hover:text-blue-700 hover:border-blue-700"
+ " bg-white border-2 border-info text-info hover:text-info-hover hover:border-info-hover"
);
case "DONE":
return iconClass + " bg-success hover:bg-success-hover text-white";
diff --git a/frontend/src/components/IssueStatusIcon.vue b/frontend/src/components/IssueStatusIcon.vue
index 8ecbb35d33..d595077ea7 100644
--- a/frontend/src/components/IssueStatusIcon.vue
+++ b/frontend/src/components/IssueStatusIcon.vue
@@ -6,7 +6,7 @@
<template v-if="issueStatus === `OPEN`">
<span
v-if="taskStatus === 'RUNNING'"
- class="h-2 w-2 bg-blue-600 hover:bg-blue-700 rounded-full"
+ class="h-2 w-2 bg-info hover:bg-info-hover rounded-full"
style="animation: pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite"
aria-hidden="true"
></span>
@@ -18,7 +18,7 @@
>
<span
v-else
- class="h-1.5 w-1.5 bg-blue-600 hover:bg-blue-700 rounded-full"
+ class="h-1.5 w-1.5 bg-info hover:bg-info-hover rounded-full"
aria-hidden="true"
></span>
</template>
@@ -92,7 +92,7 @@ export default {
}
return (
iconClass +
- " bg-white border-2 border-blue-600 text-blue-600 hover:text-blue-700 hover:border-blue-700"
+ " bg-white border-2 border-info text-info hover:text-info-hover hover:border-info-hover"
);
case "CANCELED":
return (
diff --git a/frontend/src/components/Quickstart.vue b/frontend/src/components/Quickstart.vue
index b660f0496d..4e28483d13 100644
--- a/frontend/src/components/Quickstart.vue
+++ b/frontend/src/components/Quickstart.vue
@@ -60,7 +60,7 @@
class="absolute h-4 w-4 rounded-full bg-blue-200"
></span>
<span
- class="relative block w-2 h-2 bg-blue-600 rounded-full"
+ class="relative block w-2 h-2 bg-info rounded-full"
></span>
</template>
<template v-else>
diff --git a/frontend/src/components/TaskRunTable.vue b/frontend/src/components/TaskRunTable.vue
index 2ad8146064..b232bd8f34 100644
--- a/frontend/src/components/TaskRunTable.vue
+++ b/frontend/src/components/TaskRunTable.vue
@@ -25,7 +25,7 @@
>
<template v-if="taskRun.status == 'RUNNING'">
<span
- class="h-2.5 w-2.5 bg-blue-600 rounded-full"
+ class="h-2.5 w-2.5 bg-info rounded-full"
style="
animation: pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
"
@@ -135,7 +135,7 @@ export default {
const statusIconClass = (status: TaskRunStatus) => {
switch (status) {
case "RUNNING":
- return "bg-white border-2 border-blue-600 text-blue-600";
+ return "bg-white border-2 border-info text-info";
case "DONE":
return "bg-success text-white";
case "FAILED":
diff --git a/frontend/src/views/PipelineSimpleFlow.vue b/frontend/src/views/PipelineSimpleFlow.vue
index 381c63b154..0c11a33ccf 100644
--- a/frontend/src/views/PipelineSimpleFlow.vue
+++ b/frontend/src/views/PipelineSimpleFlow.vue
@@ -4,8 +4,7 @@
class="
border-t border-b border-block-border
divide-y divide-gray-300
- lg:flex
- lg:divide-y-0
+ lg:flex lg:divide-y-0
"
>
<li
@@ -33,7 +32,7 @@
<template v-if="item.taskStatus === 'PENDING'">
<span
v-if="activeTask(pipeline).id === item.taskId"
- class="h-2 w-2 bg-blue-600 rounded-full"
+ class="h-2 w-2 bg-info rounded-full"
aria-hidden="true"
></span>
<span
@@ -60,7 +59,7 @@
</template>
<template v-else-if="item.taskStatus == 'RUNNING'">
<span
- class="h-2.5 w-2.5 bg-blue-600 rounded-full"
+ class="h-2.5 w-2.5 bg-info rounded-full"
style="
animation: pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
"
@@ -103,8 +102,7 @@
hidden
cursor-pointer
hover:underline
- lg:ml-4
- lg:flex lg:flex-col
+ lg:ml-4 lg:flex lg:flex-col
"
:class="flowItemTextClass(item)"
@click.prevent="clickItem(item)"
@@ -254,7 +252,7 @@ export default {
!props.create &&
activeTask(props.pipeline as Pipeline).id === item.taskId
) {
- return "bg-white border-2 border-blue-600 text-blue-600 ";
+ return "bg-white border-2 border-info text-info ";
}
return "bg-white border-2 border-control";
case "PENDING_APPROVAL":
@@ -262,11 +260,11 @@ export default {
!props.create &&
activeTask(props.pipeline as Pipeline).id === item.taskId
) {
- return "bg-white border-2 border-blue-600 text-blue-600";
+ return "bg-white border-2 border-info text-info";
}
return "bg-white border-2 border-control";
case "RUNNING":
- return "bg-white border-2 border-blue-600 text-blue-600";
+ return "bg-white border-2 border-info text-info";
case "DONE":
return "bg-success text-white";
case "FAILED":
@@ -298,11 +296,11 @@ export default {
!props.create &&
activeTask(props.pipeline as Pipeline).id === item.taskId
) {
- return textClass + "text-blue-600";
+ return textClass + "text-info";
}
return textClass + "text-control";
case "RUNNING":
- return textClass + "text-blue-600";
+ return textClass + "text-info";
case "FAILED":
return textClass + "text-red-500";
}
diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js
index 45b4962e36..842de031ad 100644
--- a/frontend/tailwind.config.js
+++ b/frontend/tailwind.config.js
@@ -35,12 +35,15 @@ module.exports = {
"control-placeholder": "var(--color-control-placeholder)",
- error: "var(--color-error)",
- "error-hover": "var(--color-error-hover)",
+ info: "var(--color-info)",
+ "info-hover": "var(--color-info-hover)",
warning: "var(--color-warning)",
"warning-hover": "var(--color-warning-hover)",
+ error: "var(--color-error)",
+ "error-hover": "var(--color-error-hover)",
+
success: "var(--color-success)",
"success-hover": "var(--color-success-hover)",