π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(nc-gui): update ai base create modal colors
Ramesh Mane0d4f86fa42f4
diff --git a/packages/nc-gui/assets/css/theme-overrides.scss b/packages/nc-gui/assets/css/theme-overrides.scssindex 1018723e8d..875c945c84 100644--- a/packages/nc-gui/assets/css/theme-overrides.scss+++ b/packages/nc-gui/assets/css/theme-overrides.scss@@ -37,6 +37,10 @@ body {}}+.ant-collapse-content {+ @apply bg-nc-bg-default text-nc-content-gray;+}+/* windicss layer base */@layer base {[theme='dark'] {diff --git a/packages/nc-gui/components/ai/WizardCard.vue b/packages/nc-gui/components/ai/WizardCard.vueindex d863b0966b..267f8ca99d 100644--- a/packages/nc-gui/components/ai/WizardCard.vue+++ b/packages/nc-gui/components/ai/WizardCard.vue@@ -67,19 +67,19 @@ const handleChangeTab = (tab: string) => {<style lang="scss" scoped>.nc-ai-wizard-card {- @apply border-1 border-purple-200 rounded-lg overflow-y-auto nc-scrollbar-thin transition-colors relative;+ @apply border-1 border-nc-border-purple-medium rounded-lg overflow-y-auto nc-scrollbar-thin transition-colors relative;.nc-ai-wizard-card-tab-header {- @apply bg-nc-bg-purple-light flex justify-between h-10 -mt-[1px] -ml-[1px] border-b-1 border-purple-200 sticky -top-[1px] z-1;+ @apply bg-nc-bg-purple-light flex justify-between h-10 -mt-[1px] -ml-[1px] border-b-1 border-nc-border-purple-medium sticky -top-[1px] z-1;.nc-ai-wizard-card-tab {@apply relative px-4 py-2 text-sm cursor-pointer rounded-t-lg border-t-1 border-x-1;&.active-tab {- @apply text-nc-content-purple-dark bg-white border-purple-200 font-semibold;+ @apply text-nc-content-purple-dark bg-nc-bg-default border-nc-border-purple-medium font-semibold;&::after {- @apply absolute content-[''] -bottom-[1px] left-0 right-0 border-b-1 border-white;+ @apply absolute content-[''] -bottom-[1px] left-0 right-0 border-b-1 border-nc-bg-default;}}&:not(.active-tab) {@@ -93,7 +93,7 @@ const handleChangeTab = (tab: string) => {}.nc-ai-wizard-card-tab-content {- @apply bg-white;+ @apply bg-nc-bg-default;}}</style>diff --git a/packages/nc-gui/components/workspace/project/AiCreateProject.vue b/packages/nc-gui/components/workspace/project/AiCreateProject.vueindex d561ac3ec1..c037e96652 100644--- a/packages/nc-gui/components/workspace/project/AiCreateProject.vue+++ b/packages/nc-gui/components/workspace/project/AiCreateProject.vue@@ -358,26 +358,26 @@ onMounted(() => {<template><div class="h-full">- <div class="flex items-center gap-2.5 px-4 py-2 border-b-1 border-purple-100">+ <div class="flex items-center gap-2.5 px-4 py-2 border-b-1 border-nc-border-purple-light"><div class="flex-1 flex items-center gap-3 text-nc-content-purple-dark"><GeneralIcon icon="ncAutoAwesome" class="flex-none h-5 w-5 !text-current" /><div class="text-base leading-8 font-bold">{{ $t('title.nocoAiBaseBuilder') }}</div></div><NcButton size="small" type="text" @click.stop="dialogShow = false">- <GeneralIcon icon="close" class="text-gray-600" />+ <GeneralIcon icon="close" class="text-nc-content-gray-subtle2" /></NcButton></div><div class="h-[calc(100%_-_49px)] flex"><divref="leftPaneContentRef"- class="w-[480px] h-full relative flex flex-col nc-scrollbar-thin border-r-1 border-purple-100"+ class="w-[480px] h-full relative flex flex-col nc-scrollbar-thin border-r-1 border-nc-border-purple-light"><!-- create base config panel --><div class="flex-1 p-6 flex flex-col gap-6"><div class="text-sm font-bold text-nc-content-purple-dark">Tell us more about your usecase</div>- <div class="flex flex-wrap gap-3 max-h-[188px] nc-scrollbar-thin">+ <div class="flex flex-wrap gap-3 max-h-[188px] nc-scrollbar-thin pt-1"><!-- Predefined tags --><template v-for="prompt of predefinedBasePrompts" :key="prompt.tag">@@ -397,12 +397,12 @@ onMounted(() => {</div><divv-if="prompt.description === aiFormState.prompt.trim()"- class="bg-nc-fill-purple-dark text-white rounded-full absolute -right-[3px] -top-[4px] h-3 w-3 grid place-items-center"+ class="bg-nc-fill-purple-dark text-nc-content-inverted-primary rounded-full absolute -right-[3px] -top-[4px] h-3 w-3 grid place-items-center"><svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8" fill="none"><pathd="M6.66659 2L2.99992 5.66667L1.33325 4"- stroke="white"+ stroke="currentColor"stroke-width="1.33333"stroke-linecap="round"stroke-linejoin="round"@@ -461,7 +461,7 @@ onMounted(() => {<div class="flex flex-col gap-6 pt-6"><div v-for="field of additionalDetails" :key="field.title" class="flex items-center gap-2">- <div class="min-w-[120px]">{{ field.title }}</div>+ <div class="min-w-[120px] text-nc-content-gray">{{ field.title }}</div><a-inputv-model:value="aiFormState[field.key]"class="nc-input-sm nc-input-shadow nc-ai-input"@@ -475,7 +475,7 @@ onMounted(() => {</a-collapse></div><div- class="sticky bottom-0 w-full bg-white px-6 pt-3 pb-6 border-t-1 flex flex-col gap-3"+ class="sticky bottom-0 w-full bg-nc-bg-default px-6 pt-3 pb-6 border-t-1 flex flex-col gap-3":class="{'border-nc-border-gray-medium': showBtnTopBorder,'border-transparent': !showBtnTopBorder,@@ -559,11 +559,11 @@ onMounted(() => {<div v-if="loadingText.length === loadingMessages[idx]?.length" class="nc-animate-dots"></div></div>- <div class="rounded-xl border-1 border-purple-100">+ <div class="rounded-xl border-1 border-nc-border-purple-light"><divv-for="idx in 7":key="idx"- class="px-3 py-2 flex items-center gap-2 border-b-1 border-purple-100 !last-of-type:border-b-0"+ class="px-3 py-2 flex items-center gap-2 border-b-1 border-nc-border-purple-light !last-of-type:border-b-0"><div class="flex-1 flex items-center gap-2"><a-skeleton-input@@ -586,7 +586,7 @@ onMounted(() => {</div></template><div v-else class="flex-1 grid place-items-center">- <GeneralIcon icon="ncAutoAwesome" class="h-[188px] w-[188px] !text-purple-100" />+ <GeneralIcon icon="ncAutoAwesome" class="h-[188px] w-[188px] !text-nc-purple-100" /></div></template><template v-if="aiStep === AI_STEP.MODIFY">@@ -722,6 +722,6 @@ onMounted(() => {}.nc-show-more-tags-btn {- @apply !bg-gray-100 !hover:bg-gray-200;+ @apply !bg-nc-bg-gray-light !hover:bg-nc-bg-gray-medium;}</style>diff --git a/packages/nc-gui/utils/colorsUtils.ts b/packages/nc-gui/utils/colorsUtils.tsindex 615222521f..b837550e0e 100644--- a/packages/nc-gui/utils/colorsUtils.ts+++ b/packages/nc-gui/utils/colorsUtils.ts@@ -718,6 +718,7 @@ export const themeVariables = {'nc-border-purple': {DEFAULT: themeV4Colors.purple[500],medium: themeV4Colors.purple[200],+ light: themeV4Colors.purple[100],},'nc-border-pink': {DEFAULT: themeV4Colors.pink[500],