Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: dark mode corrections

DarkPhoenix2704350ed0f82d70
diff --git a/packages/nc-gui/components/cell/RichText/SelectedBubbleMenu.vue b/packages/nc-gui/components/cell/RichText/SelectedBubbleMenu.vue
index f5d78ce1f8..4b19994bb8 100644
--- a/packages/nc-gui/components/cell/RichText/SelectedBubbleMenu.vue
+++ b/packages/nc-gui/components/cell/RichText/SelectedBubbleMenu.vue
@@ -131,7 +131,7 @@ const closeTextArea = () => {
class="bubble-menu flex-row gap-x-1 rounded-lg"
:class="{
'nc-form-field-bubble-menu inline-flex py-0': isFormField,
- 'flex bg-gray-100 px-1 py-1': !isFormField,
+ 'flex bg-nc-bg-gray-light px-1 py-1': !isFormField,
'embed-mode': embedMode,
'full-mode': !embedMode,
'edit-column-mode': isEditColumn,
@@ -418,7 +418,7 @@ const closeTextArea = () => {
</NcButton>
</NcTooltip>
- <div v-if="enableCloseButton" class="!sticky right-0 pr-0.5 bg-white">
+ <div v-if="enableCloseButton" class="!sticky right-0 pr-0.5 bg-nc-bg-default">
<NcButton type="text" size="small" @click="closeTextArea">
<GeneralIcon icon="close" />
</NcButton>
@@ -438,16 +438,16 @@ const closeTextArea = () => {
}
.bubble-text-format-button-icon {
- @apply px-1.5 py-0 border-1 border-gray-300 rounded-sm items-center justify-center;
+ @apply px-1.5 py-0 border-1 border-nc-border-gray-dark rounded-sm items-center justify-center;
font-size: 0.8rem;
font-weight: 600;
}
.bubble-text-format-button {
- @apply rounded-md py-1 my-0 pl-2.5 pr-3 cursor-pointer items-center gap-x-2.5 hover:bg-gray-100;
+ @apply rounded-md py-1 my-0 pl-2.5 pr-3 cursor-pointer items-center gap-x-2.5 hover:bg-nc-bg-gray-light;
}
.bubble-menu.full-mode {
- @apply border-gray-100
+ @apply border-nc-border-gray-light
box-shadow: 0px 0px 1.2rem 0 rgb(230, 230, 230) !important;
}
@@ -462,7 +462,7 @@ const closeTextArea = () => {
@apply !py-0 !my-0 !border-0;
.divider {
- @apply my-0 !h-11 border-gray-100;
+ @apply my-0 !h-11 border-nc-border-gray-light;
}
.nc-button {
@@ -472,22 +472,22 @@ const closeTextArea = () => {
.bubble-menu {
// shadow
- @apply bg-white;
+ @apply bg-nc-bg-default;
border-width: 1px;
&.nc-form-field-bubble-menu {
.divider {
- @apply border-r-1 border-gray-200 my-0;
+ @apply border-r-1 border-nc-border-gray-medium my-0;
}
}
.nc-button.is-active {
- @apply !hover:outline-gray-200 bg-gray-100 text-brand-500;
+ @apply !hover:outline-nc-gray-200 bg-nc-bg-gray-light text-nc-content-brand;
outline: 1px;
}
&:not(.nc-form-field-bubble-menu) {
.divider {
- @apply border-r-1 border-gray-200 !h-6 !mx-0.5 my-1;
+ @apply border-r-1 border-nc-border-gray-medium !h-6 !mx-0.5 my-1;
}
}
.ant-select-selector {
diff --git a/packages/nc-gui/components/general/ChromeWrapper.vue b/packages/nc-gui/components/general/ChromeWrapper.vue
index 46d4ef3002..1ee6f1ba63 100644
--- a/packages/nc-gui/components/general/ChromeWrapper.vue
+++ b/packages/nc-gui/components/general/ChromeWrapper.vue
@@ -25,3 +25,13 @@ const picked = computed({
<template>
<Chrome v-model="picked" />
</template>
+
+<style lang="scss">
+.vc-chrome-body {
+ @apply bg-nc-bg-default;
+
+ .vc-input__input {
+ @apply rounded-lg border-1 !border-nc-border-gray-extra-light shadow-none;
+ }
+}
+</style>
diff --git a/packages/nc-gui/components/nc/Select.vue b/packages/nc-gui/components/nc/Select.vue
index 5d3f979b6b..fc674eca62 100644
--- a/packages/nc-gui/components/nc/Select.vue
+++ b/packages/nc-gui/components/nc/Select.vue
@@ -57,7 +57,7 @@ const onChange = (value: string) => {
:placeholder="placeholder"
:show-search="showSearch"
:max-tag-count="maxTagCount"
- class="nc-select"
+ class="nc-select nc-select-shadow"
@change="onChange as any"
>
<template #suffixIcon>
@@ -88,7 +88,7 @@ const onChange = (value: string) => {
height: fit-content;
.ant-select-selector {
box-shadow: 0px 5px 3px -2px rgba(0, 0, 0, 0.02), 0px 3px 1px -2px rgba(0, 0, 0, 0.06);
- @apply border-1 border-gray-200 rounded-lg shadow-default;
+ @apply border-1 border-nc-border-gray-medium rounded-lg shadow-default;
}
.ant-select-selection-item {
@@ -96,10 +96,10 @@ const onChange = (value: string) => {
}
.ant-select-selection-placeholder {
- @apply text-gray-600;
+ @apply text-nc-content-gray-subtle2;
}
.ant-select-selection-item-remove {
- @apply text-gray-800 !pb-1;
+ @apply text-nc-content-gray !pb-1;
}
.ant-select-clear {
@@ -111,11 +111,11 @@ const onChange = (value: string) => {
}
}
.nc-select.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {
- @apply border-brand-500;
+ @apply border-nc-border-brand;
}
.nc-select.ant-select.ant-select-disabled .nc-select-expand-btn {
- @apply text-gray-300;
+ @apply text-nc-content-brand-hover;
}
.nc-select-dropdown {
@@ -142,10 +142,10 @@ const onChange = (value: string) => {
}
&::-webkit-scrollbar-thumb {
width: 4px;
- @apply bg-gray-300 rounded-md;
+ @apply bg-nc-bg-gray-dark rounded-md;
}
&::-webkit-scrollbar-thumb:hover {
- @apply bg-gray-400;
+ @apply bg-nc-bg-gray-extra-dark;
}
}
}