AI-native design editor. Open-source Figma alternative.
fix(app): use theme warning colors
Danila Poyarkova54c94c6a88c
diff --git a/src/app.css b/src/app.cssindex 996f7a1ed..31e5d2f5e 100644--- a/src/app.css+++ b/src/app.css@@ -38,6 +38,10 @@--color-muted: #888888;--color-input: #1e1e1e;--color-component: #9747ff;+ --color-warning-bg: rgb(245 158 11 / 0.1);+ --color-warning-border: rgb(245 158 11 / 0.3);+ --color-warning-text: #fde68a;+ --color-warning-action: #fcd34d;}html[data-theme='light'] {@@ -50,6 +54,10 @@ html[data-theme='light'] {--color-muted: #6b7280;--color-input: #ffffff;--color-component: #7c3aed;+ --color-warning-bg: rgb(245 158 11 / 0.14);+ --color-warning-border: rgb(245 158 11 / 0.32);+ --color-warning-text: #92400e;+ --color-warning-action: #78350f;}html,diff --git a/src/components/ColorPickerPanel/OkhclFields.vue b/src/components/ColorPickerPanel/OkhclFields.vueindex 70dee1be0..64a1ed64f 100644--- a/src/components/ColorPickerPanel/OkhclFields.vue+++ b/src/components/ColorPickerPanel/OkhclFields.vue@@ -87,7 +87,7 @@ const ctx = useColorPickerPanelContext(){{ ctx.okhcl.previewColorSpace }}</span></div>- <p v-if="ctx.okhcl.clipped" class="text-[10px] leading-4 text-amber-400">+ <p v-if="ctx.okhcl.clipped" class="text-[10px] leading-4 text-[var(--color-warning-text)]">{{ ctx.panels.colorPreviewClipped({ space: ctx.okhcl.previewColorSpace ?? 'display-p3' }) }}</p></div>diff --git a/src/components/SafariBanner.vue b/src/components/SafariBanner.vueindex 6762b4723..50447acc1 100644--- a/src/components/SafariBanner.vue+++ b/src/components/SafariBanner.vue@@ -11,7 +11,7 @@ const show = !IS_TAURI && IS_BROWSER && !window.showSaveFilePicker<divv-if="show && !dismissed"data-test-id="safari-banner"- class="flex items-center gap-2 border-b border-amber-500/30 bg-amber-500/10 px-3 py-1.5 text-xs text-amber-800 dark:text-amber-200"+ class="flex items-center gap-2 border-b border-[var(--color-warning-border)] bg-[var(--color-warning-bg)] px-3 py-1.5 text-xs text-[var(--color-warning-text)]"><span class="flex-1">Your browser doesn't support the local file API. Files will be downloaded instead of saved in@@ -21,7 +21,7 @@ const show = !IS_TAURI && IS_BROWSER && !window.showSaveFilePicker</span><buttondata-test-id="safari-banner-dismiss"- class="shrink-0 rounded px-1.5 py-0.5 font-medium text-amber-900 transition-colors hover:bg-amber-500/20 dark:text-amber-300"+ class="shrink-0 rounded px-1.5 py-0.5 font-medium text-[var(--color-warning-action)] transition-colors hover:bg-amber-500/20"@click="dismissed = true">Dismissdiff --git a/src/components/properties/TypographySection.vue b/src/components/properties/TypographySection.vueindex acc4329e9..d3bc1b6dc 100644--- a/src/components/properties/TypographySection.vue+++ b/src/components/properties/TypographySection.vue@@ -36,7 +36,7 @@ const sectionCls = useSectionUI()><icon-lucide-alert-triangledata-test-id="typography-missing-font"- class="size-3.5 shrink-0 text-amber-400"+ class="size-3.5 shrink-0 text-[var(--color-warning-action)]"/></Tip></div>