π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: more theme variables
DarkPhoenix27041b0b363d7d72
diff --git a/packages/nc-gui/components/smartsheet/calendar/MonthView.vue b/packages/nc-gui/components/smartsheet/calendar/MonthView.vueindex 057043bfbe..741b28b74d 100644--- a/packages/nc-gui/components/smartsheet/calendar/MonthView.vue+++ b/packages/nc-gui/components/smartsheet/calendar/MonthView.vue@@ -759,7 +759,7 @@ const addRecord = (date: dayjs.Dayjs) => {<divv-for="(day, index) in days":key="index"- class="text-center bg-gray-50 py-1 border-r-1 last:border-r-0 border-gray-100 font-semibold leading-4 uppercase text-[10px] text-gray-500"+ class="text-center bg-nc-bg-gray-extra-light py-1 border-r-1 last:border-r-0 border-nc-border-gray-light font-semibold leading-4 uppercase text-[10px] text-nc-content-gray-muted">{{ day }}</div>@@ -787,12 +787,12 @@ const addRecord = (date: dayjs.Dayjs) => {:key="day.key":class="{'selected-date': isDateSelected(day.date) || (focusedDate && day.date.isSame(focusedDate, 'day')),- '!text-gray-400': !day.isInPagedMonth,- '!bg-gray-50 !hover:bg-gray-100 !border-gray-200': day.isWeekend,- '!border-r-gray-200': week.days[i + 1]?.isWeekend,+ '!text-nc-content-gray-disabled': !day.isInPagedMonth,+ '!bg-nc-bg-gray-extra-light !hover:bg-nc-bg-gray-light !border-nc-border-gray-medium': day.isWeekend,+ '!border-r-nc-border-gray-medium': week.days[i + 1]?.isWeekend,'border-t-1': week.weekIndex === 0,}"- class="text-right relative group last:border-r-0 transition text-sm h-full border-r-1 border-b-1 border-gray-100 font-medium hover:bg-gray-50 text-gray-800 bg-white"+ class="text-right relative group last:border-r-0 bg-nc-bg-default transition text-sm h-full border-r-1 border-b-1 border-nc-border-gray-light font-medium hover:bg-nc-bg-gray-extra-light text-nc-content-gray-default bg-white"data-testid="nc-calendar-month-day"@click="selectDate(day.date)"@dblclick="addRecord(day.date)"@@ -823,7 +823,7 @@ const addRecord = (date: dayjs.Dayjs) => {<NcMenuItemv-for="(range, index) in calendarRange":key="index"- class="text-gray-800 font-semibold text-sm"+ class="text-nc-content-gray-default font-semibold text-sm"@click="() => {const record = {@@ -887,7 +887,7 @@ const addRecord = (date: dayjs.Dayjs) => {</PermissionsTooltip><span:class="{- 'bg-brand-50 text-brand-500 !font-bold': day.isToday,+ 'bg-nc-bg-brand text-nc-content-brand !font-bold': day.isToday,}"class="px-1.3 py-1 text-[13px] text-sm leading-3 font-medium rounded-lg">@@ -905,7 +905,7 @@ const addRecord = (date: dayjs.Dayjs) => {><NcButtonv-e="`['c:calendar:month-view-more']`"- class="!absolute bottom-1 right-1 text-center min-w-4.5 mx-auto z-3 text-gray-500"+ class="!absolute bottom-1 right-1 text-center min-w-4.5 mx-auto z-3 text-nc-content-gray-muted"size="xxsmall"type="secondary"@click="viewMore(day.date)"@@ -931,7 +931,7 @@ const addRecord = (date: dayjs.Dayjs) => {<LazySmartsheetPlainCell v-model="record.row[displayField!.title!]" :column="displayField" /></template><template v-else>- <span class="text-gray-500"> - </span>+ <span class="text-nc-content-gray-muted"> - </span></template></LazySmartsheetCalendarSideRecordCard></div>@@ -977,7 +977,7 @@ const addRecord = (date: dayjs.Dayjs) => {@resize-start="onResizeStart"><template v-if="[UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime].includes(calDataType)" #time>- <span class="text-xs font-medium text-gray-400">+ <span class="text-xs font-medium text-nc-content-gray-disabled">{{timezoneDayjs.timezonize(record.row[record.rowMeta.range?.fk_from_col!.title!]).format('h:mma').slice(0, -1)}}diff --git a/packages/nc-gui/components/smartsheet/calendar/RecordCard.vue b/packages/nc-gui/components/smartsheet/calendar/RecordCard.vueindex 21b59404f0..3d8a9ba0b0 100644--- a/packages/nc-gui/components/smartsheet/calendar/RecordCard.vue+++ b/packages/nc-gui/components/smartsheet/calendar/RecordCard.vue@@ -37,13 +37,13 @@ const rowColorInfo = computed(() => {'rounded-r-[4px] !border-l-0 mr-1': position === 'rightRounded','rounded-[4px] ml-0.8 mr-1': position === 'rounded','rounded-none !border-x-0': position === 'none',- 'bg-maroon-50': color === 'maroon',- 'bg-blue-50': color === 'blue',- 'bg-green-50': color === 'green',- 'bg-yellow-50': color === 'yellow',- 'bg-pink-50': color === 'pink',- 'bg-purple-50': color === 'purple',- 'bg-white border-gray-300': color === 'gray',+ 'bg-nc-bg-coloured-marooon': color === 'maroon',+ 'bg-nc-bg-coloured-blue': color === 'blue',+ 'bg-nc-bg-coloured-green': color === 'green',+ 'bg-nc-bg-coloured-yellow': color === 'yellow',+ 'bg-nc-bg-coloured-pink': color === 'pink',+ 'bg-nc-bg-coloured-purple': color === 'purple',+ 'bg-nc-bg-default border-nc-border-gray-dark': color === 'gray','!bg-nc-bg-gray-light': hover || dragging,}":style="{@@ -59,15 +59,15 @@ const rowColorInfo = computed(() => {<divv-if="position === 'leftRounded' || position === 'rounded'":class="{- 'bg-maroon-500': color === 'maroon',- 'bg-blue-500': color === 'blue',- 'bg-green-500': color === 'green',- 'bg-yellow-500': color === 'yellow',- 'bg-pink-500': color === 'pink',- 'bg-purple-500': color === 'purple',- 'bg-gray-900': color === 'gray',+ 'bg-nc-fill-coloured-maroon-medium': props.color === 'maroon',+ 'bg-nc-fill-coloured-blue-medium': props.color === 'blue',+ 'bg-nc-fill-coloured-green-medium': props.color === 'green',+ 'bg-nc-fill-coloured-yellow-medium': props.color === 'yellow',+ 'bg-nc-fill-coloured-pink-medium': props.color === 'pink',+ 'bg-nc-fill-coloured-purple-medium': props.color === 'purple',+ 'bg-nc-gray-900': color === 'gray',}"- class="w-1 min-h-6.5 bg-blue-500"+ class="w-1 min-h-6.5":style="rowColorInfo.rowLeftBorderColor"></div>@@ -95,7 +95,7 @@ const rowColorInfo = computed(() => {show-on-truncate-onlywrap-child="span">- <slot class="text-sm text-nowrap text-gray-800 leading-7" />+ <slot class="text-sm text-nowrap text-nc-content-gray leading-7" /><template #title><slot /></template>@@ -120,7 +120,7 @@ const rowColorInfo = computed(() => {.plain-cell {line-height: 18px;.bold {- @apply !text-gray-800 font-bold;+ @apply !text-nc-content-gray font-bold;}}</style>diff --git a/packages/nc-gui/components/smartsheet/calendar/SideMenu.vue b/packages/nc-gui/components/smartsheet/calendar/SideMenu.vueindex 21d726f7f5..f2b107691c 100644--- a/packages/nc-gui/components/smartsheet/calendar/SideMenu.vue+++ b/packages/nc-gui/components/smartsheet/calendar/SideMenu.vue@@ -341,7 +341,7 @@ const selectOption = (option) => {'!min-w-[100svw]': props.visible && isMobileMode,'nc-calendar-side-menu-open': props.visible,}"- class="h-full relative border-l-1 min-w-[288px] border-gray-200 transition transition-all"+ class="h-full relative border-l-1 min-w-[288px] border-nc-border-gray-medium transition transition-all"data-testid="nc-calendar-side-menu"><div class="flex min-w-[288px] flex-col">