diff --git a/packages/nc-gui-v2/app.vue b/packages/nc-gui-v2/app.vue index 241f5f526c..46c1784d71 100644 --- a/packages/nc-gui-v2/app.vue +++ b/packages/nc-gui-v2/app.vue @@ -1,11 +1,17 @@ diff --git a/packages/nc-gui-v2/assets/css/color.css b/packages/nc-gui-v2/assets/css/color.css deleted file mode 100644 index 4788c60656..0000000000 --- a/packages/nc-gui-v2/assets/css/color.css +++ /dev/null @@ -1,4 +0,0 @@ -:root { - --primary: #00b786; - --secondary: #8ceaf6; -} diff --git a/packages/nc-gui-v2/assets/css/global.css b/packages/nc-gui-v2/assets/css/global.css index fe1fd47c04..530ad1ccb5 100644 --- a/packages/nc-gui-v2/assets/css/global.css +++ b/packages/nc-gui-v2/assets/css/global.css @@ -1,4 +1,3 @@ -@import './color.css'; html { font-size: 16px; word-spacing: 1px; @@ -8,30 +7,10 @@ html { -webkit-font-smoothing: antialiased; box-sizing: border-box; } + body { font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, Vazirmatn, sans-serif; } -*, *:before, *:after { - box-sizing: border-box; - margin: 0; -} -.btn, .pointer { - cursor: pointer; -} -.primary { - color: var(--primary); -} -.secondary { - color: var(--secondary); -} -.btn-primary { - background-color: var(--primary); - color: #fff; -} -.btn-secondary { - background-color: var(--secondary); - color: #000; -} /* Apply Vazirmatn for rtl diff --git a/packages/nc-gui-v2/assets/style.css b/packages/nc-gui-v2/assets/style.css deleted file mode 100644 index 5feb4e1631..0000000000 --- a/packages/nc-gui-v2/assets/style.css +++ /dev/null @@ -1,19 +0,0 @@ -::-webkit-scrollbar { - width: .7em; - height: .7em -} - -::-webkit-scrollbar-button { - background: #77777722 -} - -::-webkit-scrollbar-track-piece { - background: #66666622 -} - -::-webkit-scrollbar-thumb { - background: #888; - border-radius: .7em; - border: .15em solid #00000000; - background-clip: padding-box; -} diff --git a/packages/nc-gui-v2/assets/style-v2.scss b/packages/nc-gui-v2/assets/style.scss similarity index 84% rename from packages/nc-gui-v2/assets/style-v2.scss rename to packages/nc-gui-v2/assets/style.scss index 2ff1b5e33b..8da9a28bda 100644 --- a/packages/nc-gui-v2/assets/style-v2.scss +++ b/packages/nc-gui-v2/assets/style.scss @@ -1,9 +1,9 @@ @import 'ant-design-vue/dist/antd.variable.min.css'; -@import 'ant-design-vue/dist/antd.min.css'; :root { --header-height: 50px; --toolbar-height: 48px; + --tw-text-opacity: 1; } .ant-layout-header { @@ -27,21 +27,8 @@ main { overflow-x: hidden; } -nav, -nav .v-list { - @apply dark:(!bg-gray-900 text-white) -} - -.v-divider { - @apply dark:bg-white -} - a { - @apply prose text-primary underline hover:opacity-75 dark:(text-secondary); -} - -h1, h2, h3, h4, h5, h6, p, label, button, textarea, select { - @apply dark:(!text-white); + @apply !text-primary !underline hover:!text-accent; } .nc-icon { @@ -62,7 +49,7 @@ h1, h2, h3, h4, h5, h6, p, label, button, textarea, select { &:hover { .nc-icon { - @apply text-pink-500; + @apply text-accent; } } } @@ -99,7 +86,7 @@ h1, h2, h3, h4, h5, h6, p, label, button, textarea, select { // for highlighting toolbar menu item .nc-active-btn > .ant-btn{ - @apply bg-primary/20 hover:(bg-primary/20); + @apply bg-primary bg-opacity-20 hover:(bg-primary bg-opacity-20); } .nc-locked-overlay { @@ -159,25 +146,24 @@ h1, h2, h3, h4, h5, h6, p, label, button, textarea, select { .page-leave-active, .layout-enter-active, .layout-leave-active { - @apply transition-opacity duration-300 ease-in-out; + @apply transition-opacity duration-400 ease-in-out; } -.page-enter-active, -.page-leave-active, -.layout-enter-active, -.layout-leave-active { +.page-enter-from, +.page-leave-to, +.layout-enter-from, +.layout-leave-to { @apply opacity-0; } .slide-enter-active, .slide-leave-active { @apply transition-all duration-200 ease-in-out; - transform: translate(100%, 0); } -.slide-enter, +.slide-enter-from, -.slide-leave-active { +.slide-leave-to { transform: translate(-100%, 0); } @@ -190,8 +176,8 @@ h1, h2, h3, h4, h5, h6, p, label, button, textarea, select { @apply ring ring-xl; } -.glow-enter, -.glow-leave-active { +.glow-enter-from, +.glow-leave-to { @apply opacity-0; } @@ -205,11 +191,11 @@ h1, h2, h3, h4, h5, h6, p, label, button, textarea, select { } &:hover::after { - @apply transform scale-110 ring ring-pink-500; + @apply transform scale-110 ring ring-accent; } &:active::after { - @apply ring ring-pink-500; + @apply ring ring-accent; } } @@ -246,7 +232,7 @@ h1, h2, h3, h4, h5, h6, p, label, button, textarea, select { } .ant-dropdown-menu-item, .ant-menu-item { - @apply !py-0 active:(ring ring-pink-500); + @apply !py-0 active:(ring ring-accent); } .ant-dropdown-menu-title-content, diff --git a/packages/nc-gui-v2/components.d.ts b/packages/nc-gui-v2/components.d.ts index 16738d7540..f6be04bfc0 100644 --- a/packages/nc-gui-v2/components.d.ts +++ b/packages/nc-gui-v2/components.d.ts @@ -19,6 +19,7 @@ declare module '@vue/runtime-core' { ACol: typeof import('ant-design-vue/es')['Col'] ACollapse: typeof import('ant-design-vue/es')['Collapse'] ACollapsePanel: typeof import('ant-design-vue/es')['CollapsePanel'] + AConfigProvider: typeof import('ant-design-vue/es')['ConfigProvider'] ADatePicker: typeof import('ant-design-vue/es')['DatePicker'] ADivider: typeof import('ant-design-vue/es')['Divider'] ADrawer: typeof import('ant-design-vue/es')['Drawer'] @@ -70,6 +71,9 @@ declare module '@vue/runtime-core' { BiFiletypeXlsx: typeof import('~icons/bi/filetype-xlsx')['default'] CilFullscreen: typeof import('~icons/cil/fullscreen')['default'] CilFullscreenExit: typeof import('~icons/cil/fullscreen-exit')['default'] + ClarityColorPickerLine: typeof import('~icons/clarity/color-picker-line')['default'] + ClarityColorPickerSolid: typeof import('~icons/clarity/color-picker-solid')['default'] + ClarityImageLine: typeof import('~icons/clarity/image-line')['default'] ClaritySuccessLine: typeof import('~icons/clarity/success-line')['default'] EvaEmailOutline: typeof import('~icons/eva/email-outline')['default'] IcBaselineMoreVert: typeof import('~icons/ic/baseline-more-vert')['default'] @@ -77,6 +81,7 @@ declare module '@vue/runtime-core' { IcRoundEdit: typeof import('~icons/ic/round-edit')['default'] IcRoundKeyboardArrowDown: typeof import('~icons/ic/round-keyboard-arrow-down')['default'] IcRoundSearch: typeof import('~icons/ic/round-search')['default'] + LogosGoogleGmail: typeof import('~icons/logos/google-gmail')['default'] MaterialSymbolsArrowCircleLeftRounded: typeof import('~icons/material-symbols/arrow-circle-left-rounded')['default'] MaterialSymbolsArrowCircleRightRounded: typeof import('~icons/material-symbols/arrow-circle-right-rounded')['default'] MaterialSymbolsAttachFile: typeof import('~icons/material-symbols/attach-file')['default'] @@ -148,6 +153,7 @@ declare module '@vue/runtime-core' { MdiFunction: typeof import('~icons/mdi/function')['default'] MdiGestureDoubleTap: typeof import('~icons/mdi/gesture-double-tap')['default'] MdiGithub: typeof import('~icons/mdi/github')['default'] + MdiGmail: typeof import('~icons/mdi/gmail')['default'] MdiGridLarge: typeof import('~icons/mdi/grid-large')['default'] MdiHeart: typeof import('~icons/mdi/heart')['default'] MdiHook: typeof import('~icons/mdi/hook')['default'] diff --git a/packages/nc-gui-v2/components/cell/Decimal.vue b/packages/nc-gui-v2/components/cell/Decimal.vue index 8b5c2db0ec..42c37612ee 100644 --- a/packages/nc-gui-v2/components/cell/Decimal.vue +++ b/packages/nc-gui-v2/components/cell/Decimal.vue @@ -27,7 +27,7 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus() v-if="editEnabled" :ref="focus" v-model="vModel" - class="outline-none pa-0 border-none w-full h-full prose-sm" + class="outline-none p-0 border-none w-full h-full prose-sm" type="number" step="0.1" @blur="editEnabled = false" diff --git a/packages/nc-gui-v2/components/cell/Float.vue b/packages/nc-gui-v2/components/cell/Float.vue index 4a4f4f724f..69e35c19fe 100644 --- a/packages/nc-gui-v2/components/cell/Float.vue +++ b/packages/nc-gui-v2/components/cell/Float.vue @@ -27,7 +27,7 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus() v-if="editEnabled" :ref="focus" v-model="vModel" - class="outline-none pa-0 border-none w-full h-full prose-sm" + class="outline-none p-0 border-none w-full h-full prose-sm" type="number" step="0.1" @blur="editEnabled = false" diff --git a/packages/nc-gui-v2/components/cell/Integer.vue b/packages/nc-gui-v2/components/cell/Integer.vue index ba6c1cd2e4..25d67997b9 100644 --- a/packages/nc-gui-v2/components/cell/Integer.vue +++ b/packages/nc-gui-v2/components/cell/Integer.vue @@ -31,7 +31,7 @@ function onKeyDown(evt: KeyboardEvent) { v-if="editEnabled" :ref="focus" v-model="vModel" - class="outline-none pa-0 border-none w-full h-full prose-sm" + class="outline-none p-0 border-none w-full h-full prose-sm" type="number" @blur="editEnabled = false" @keydown="onKeyDown" diff --git a/packages/nc-gui-v2/components/cell/attachment/Carousel.vue b/packages/nc-gui-v2/components/cell/attachment/Carousel.vue index e57c41520a..74fcf8deb9 100644 --- a/packages/nc-gui-v2/components/cell/attachment/Carousel.vue +++ b/packages/nc-gui-v2/components/cell/attachment/Carousel.vue @@ -55,7 +55,7 @@ onClickOutside(carouselRef, () => {

{{ selectedImage && selectedImage.title }}

@@ -133,7 +133,7 @@ onClickOutside(carouselRef, () => { } .ant-carousel :deep(.slick-arrow.custom-slick-arrow) { - @apply text-4xl text-white hover:text-primary active:text-pink-500 opacity-100 cursor-pointer z-1; + @apply text-4xl text-white hover:text-primary active:text-accent opacity-100 cursor-pointer z-1; } .ant-carousel :deep(.custom-slick-arrow:before) { display: none; diff --git a/packages/nc-gui-v2/components/cell/attachment/Modal.vue b/packages/nc-gui-v2/components/cell/attachment/Modal.vue index 58d6117ff6..8b754b4bfd 100644 --- a/packages/nc-gui-v2/components/cell/attachment/Modal.vue +++ b/packages/nc-gui-v2/components/cell/attachment/Modal.vue @@ -66,7 +66,7 @@ function onClick(item: Record) { class="nc-attach-file group" @click="open" > - + Attach File
@@ -83,9 +83,9 @@ function onClick(item: Record) { - +
Drop here
@@ -154,8 +154,8 @@ function onClick(item: Record) { .nc-attachment-modal { .nc-attach-file { @apply select-none cursor-pointer color-transition flex items-center gap-1 border-1 p-2 rounded - @apply hover:(bg-primary/10 text-primary ring); - @apply active:(ring-pink-500 bg-primary/20); + @apply hover:(bg-primary bg-opacity-10 text-primary ring); + @apply active:(ring-accent bg-primary bg-opacity-20); } .nc-attachment-item { @@ -176,7 +176,7 @@ function onClick(item: Record) { } &:active::after { - @apply ring ring-pink-500 shadow transform scale-103; + @apply ring ring-accent shadow transform scale-103; } } } @@ -185,7 +185,7 @@ function onClick(item: Record) { @apply bg-white absolute bottom-2 right-2; @apply transition-opacity duration-150 ease-in opacity-0 hover:ring; @apply cursor-pointer rounded shadow flex items-center p-1 border-1; - @apply active:(ring border-0 ring-pink-500); + @apply active:(ring border-0 ring-accent); } .nc-attachment-remove { diff --git a/packages/nc-gui-v2/components/cell/attachment/index.vue b/packages/nc-gui-v2/components/cell/attachment/index.vue index f2e47339b7..7d534b761a 100644 --- a/packages/nc-gui-v2/components/cell/attachment/index.vue +++ b/packages/nc-gui-v2/components/cell/attachment/index.vue @@ -100,16 +100,16 @@ const { isSharedForm } = useSmartsheetStoreOrThrow() v-model="isOverDropZone" inline :target="currentCellRef" - class="text-white text-lg ring ring-pink-500 bg-gray-700/75 flex items-center justify-center gap-2 backdrop-blur-xl" + class="text-white text-lg ring ring-accent bg-gray-700/75 flex items-center justify-center gap-2 backdrop-blur-xl" > - Drop here + Drop here
@@ -118,7 +118,7 @@ const { isSharedForm } = useSmartsheetStoreOrThrow()
- +
Add file(s)
@@ -160,14 +160,14 @@ const { isSharedForm } = useSmartsheetStoreOrThrow()
-
+
diff --git a/packages/nc-gui-v2/components/dashboard/TreeView.vue b/packages/nc-gui-v2/components/dashboard/TreeView.vue index 9e080fda65..33d08071a3 100644 --- a/packages/nc-gui-v2/components/dashboard/TreeView.vue +++ b/packages/nc-gui-v2/components/dashboard/TreeView.vue @@ -220,12 +220,9 @@ function openTableCreateDialog() { - + -
- +
+
@@ -424,7 +421,7 @@ function openTableCreateDialog() { } .nc-treeview-footer-item { - @apply cursor-pointer px-4 py-2 flex align-center hover:bg-gray-200/20 text-xs text-current; + @apply cursor-pointer px-4 py-2 flex items-center hover:bg-gray-200/20 text-xs text-current; } :deep(.nc-filter-input input::placeholder) { @@ -460,7 +457,7 @@ function openTableCreateDialog() { } .sortable-chosen { - @apply !bg-primary/25 text-primary; + @apply !bg-primary bg-opacity-25 text-primary; } } @@ -469,20 +466,20 @@ function openTableCreateDialog() { } .nc-tree-item svg { - @apply text-primary/60; + @apply text-primary text-opacity-60; } .nc-tree-item.active { - @apply !text-primary font-weight-bold after:(!opacity-20); - @apply border-r-3 border-indigo-500; + @apply text-primary font-weight-bold after:(!opacity-20); + @apply border-r-3 border-primary; svg { - @apply !text-primary; + @apply text-primary !text-opacity-100; } } .nc-tree-item:hover { - @apply !text-grey after:(!opacity-5); + @apply text-primary after:(!opacity-5); } :deep(.nc-filter-input) { @@ -508,7 +505,7 @@ function openTableCreateDialog() { } :deep(.ant-dropdown-menu-item) { - @apply !py-0 active:(ring ring-pink-500); + @apply !py-0 active:(ring ring-accent); } :deep(.ant-dropdown-menu-title-content) { diff --git a/packages/nc-gui-v2/components/dashboard/settings/AppStore.vue b/packages/nc-gui-v2/components/dashboard/settings/AppStore.vue index b649427120..327080ccf1 100644 --- a/packages/nc-gui-v2/components/dashboard/settings/AppStore.vue +++ b/packages/nc-gui-v2/components/dashboard/settings/AppStore.vue @@ -130,7 +130,7 @@ onMounted(async () => { />
-
+
{{ app.title }} {{ app.description }}
diff --git a/packages/nc-gui-v2/components/dashboard/settings/Metadata.vue b/packages/nc-gui-v2/components/dashboard/settings/Metadata.vue index 909fcad2a3..a1b992cac0 100644 --- a/packages/nc-gui-v2/components/dashboard/settings/Metadata.vue +++ b/packages/nc-gui-v2/components/dashboard/settings/Metadata.vue @@ -73,7 +73,7 @@ const columns = [