From d72339e8552c15660a7b9ec3bc9b1ed1612eb01f Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Wed, 30 Aug 2023 10:44:55 +0530 Subject: [PATCH 1/7] chore: swap palette for espresso colors - use uicolors in COA --- colors.json | 209 ++++++++++++++++++++-------------- src/pages/ChartOfAccounts.vue | 19 ++-- 2 files changed, 136 insertions(+), 92 deletions(-) diff --git a/colors.json b/colors.json index 545a2261..221f5fb0 100644 --- a/colors.json +++ b/colors.json @@ -1,83 +1,88 @@ { "black": "#1E293B", "gray": { - "25": "#fcfcfd", - "50": "#f8f9fc", - "100": "#f2f4f8", - "200": "#ebeff5", - "300": "#e2e8f0", - "400": "#cad5e2", - "500": "#9aa8bc", - "600": "#8493a9", - "700": "#64748b", - "800": "#475569", - "900": "#334155" + "50": "#F8F8F8", + "100": "#F3F3F3", + "200": "#EDEDED", + "300": "#E2E2E2", + "400": "#C7C7C7", + "500": "#999999", + "600": "#7C7C7C", + "700": "#525252", + "800": "#383838", + "900": "#171717" }, "red": { - "100": "#fff5f5", - "200": "#fed7d7", - "300": "#feb2b2", - "400": "#fc8181", - "500": "#f56565", - "600": "#e53e3e", - "700": "#c53030", - "800": "#9b2c2c", - "900": "#742a2a" + "50": "#FFF7F7", + "100": "#FFF0F0", + "200": "#FCD7D7", + "300": "#F9C6C6", + "400": "#EB9091", + "500": "#E03636", + "600": "#CC2929", + "700": "#B52A2A", + "800": "#941F1F", + "900": "#6B1515" }, "orange": { - "100": "#fffaf0", - "200": "#feebc8", - "300": "#fbd38d", - "400": "#f6ad55", - "500": "#ed8936", - "600": "#dd6b20", - "700": "#c05621", - "800": "#9c4221", - "900": "#7b341e" + "50": "#FFF9F5", + "100": "#FFF1E7", + "200": "#FCE6D5", + "300": "#F7D6BD", + "400": "#F0B58B", + "500": "#E86C13", + "600": "#D45A08", + "700": "#BD3E0C", + "800": "#9E3513", + "900": "#6B2711" }, "yellow": { - "100": "#fffff0", - "200": "#fefcbf", - "300": "#faf089", - "400": "#f6e05e", - "500": "#ecc94b", - "600": "#d69e2e", - "700": "#b7791f", - "800": "#975a16", - "900": "#744210" + "50": "#FFFCEF", + "100": "#FFF7D3", + "200": "#F7E9A8", + "300": "#F5E171", + "400": "#F2D14B", + "500": "#EDBA13", + "600": "#D1930D", + "700": "#AB6E05", + "800": "#8C5600", + "900": "#733F12" }, "green": { - "100": "#f0fff4", - "200": "#c6f6d5", - "300": "#9ae6b4", - "400": "#68d391", - "500": "#48bb78", - "600": "#38a169", - "700": "#2f855a", - "800": "#276749", - "900": "#22543d" + "50": "#F3FCF5", + "100": "#E4F5E9", + "200": "#DAF0E1", + "300": "#CAE5D4", + "400": "#B6DEC5", + "500": "#59BA8B", + "600": "#30A66D", + "700": "#278F5E", + "800": "#16794C", + "900": "#173B2C" }, "teal": { - "100": "#e6fffa", - "200": "#b2f5ea", - "300": "#81e6d9", - "400": "#4fd1c5", - "500": "#38b2ac", - "600": "#319795", - "700": "#2c7a7b", - "800": "#285e61", - "900": "#234e52" + "50": "#F0FDFA", + "100": "#E6F7F4", + "200": "#BAE8E1", + "300": "#97DED4", + "400": "#73D1C4", + "500": "#36BAAD", + "600": "#0B9E92", + "700": "#0F736B", + "800": "#115C57", + "900": "#114541" }, "blue": { - "100": "#e5f3ff", - "200": "#cce7ff", - "300": "#99d0ff", - "400": "#66b8ff", - "500": "#33a1ff", - "600": "#2490ef", - "700": "#006ecc", - "800": "#005299", - "900": "#003766" + "50": "#F7FBFD", + "100": "#EDF6FD", + "200": "#E3F1FD", + "300": "#C9E7FC", + "400": "#70B6F0", + "500": "#0289F7", + "600": "#007BE0", + "700": "#0070CC", + "800": "#005CA3", + "900": "#004880" }, "indigo": { "100": "#ebf4ff", @@ -91,25 +96,63 @@ "900": "#3c366b" }, "purple": { - "100": "#faf5ff", - "200": "#e9d8fd", - "300": "#d6bcfa", - "400": "#b794f4", - "500": "#9f7aea", - "600": "#805ad5", - "700": "#6b46c1", - "800": "#553c9a", - "900": "#44337a" + "50": "#FDFAFF", + "100": "#F9F0FF", + "200": "#F1E5FA", + "300": "#E9D6F5", + "400": "#D6C1E6", + "500": "#9C45E3", + "600": "#8642C2", + "700": "#6E399D", + "800": "#5C2F83", + "900": "#401863" }, "pink": { - "100": "#fdf7f8", - "200": "#fbeef1", - "300": "#f7dee5", - "400": "#eec3d2", - "500": "#df9eb8", - "600": "#cf82a7", - "700": "#ac688b", - "800": "#8f5b79", - "900": "#70485f" + "50": "#FFF7FC", + "100": "#FEEEF8", + "200": "#F8E2F0", + "300": "#F2D4E6", + "400": "#E9C4DA", + "500": "#E34AA6", + "600": "#CF3A96", + "700": "#9C2671", + "800": "#801458", + "900": "#570F3E" + }, + "violet": { + "50": "#FBFAFF", + "100": "#F5F2FF", + "200": "#E5E1FA", + "300": "#DAD2F7", + "400": "#BDB1F0", + "500": "#6846E3", + "600": "#5F46C7", + "700": "#4F3DA1", + "800": "#392980", + "900": "#251959" + }, + "cyan": { + "50": "#F5FBFC", + "100": "#E0F8FF", + "200": "#B3ECFC", + "300": "#94E6FF", + "400": "#6BD3F2", + "500": "#34BAE3", + "600": "#32A4C7", + "700": "#267A94", + "800": "#125C73", + "900": "#164759" + }, + "amber": { + "50": "#FDFAED", + "100": "#FCF3CF", + "200": "#F7E28D", + "300": "#F5D261", + "400": "#F2BE3A", + "500": "#E79913", + "600": "#DB7706", + "700": "#B35309", + "800": "#91400D", + "900": "#763813" } } diff --git a/src/pages/ChartOfAccounts.vue b/src/pages/ChartOfAccounts.vue index 1d4169a8..7be17b02 100644 --- a/src/pages/ChartOfAccounts.vue +++ b/src/pages/ChartOfAccounts.vue @@ -157,6 +157,7 @@ import { AccountRootType, AccountType } from 'models/baseModels/Account/types'; import { TreeViewSettings } from 'fyo/model/types'; import { Doc } from 'fyo/model/doc'; import { Component } from 'vue'; +import { uicolors } from 'src/utils/colors'; type AccountItem = { name: string; @@ -487,33 +488,33 @@ export default defineComponent({ let icons = { 'Application of Funds (Assets)': ` - - + + `, Expenses: ` - + `, Income: ` - - + + `, 'Source of Funds (Liabilities)': ` - - + + `, }; let leaf = ` - + `; let folder = ` - + `; let icon = isGroup ? folder : leaf; From 5635772f8f924f3c630bb2554137631686c4474b Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Fri, 1 Sep 2023 13:52:47 +0530 Subject: [PATCH 2/7] chore: adjust UI colors - buttons, tabs, sidebar - search, etc --- src/components/Button.vue | 2 +- src/components/FormContainer.vue | 4 ++-- src/components/Icons/base.vue | 4 ++-- src/components/Loading.vue | 3 ++- src/components/SearchBar.vue | 6 +++--- src/components/Sidebar.vue | 14 +++++++------- src/pages/CommonForm/CommonForm.vue | 4 ++-- src/pages/Settings/Settings.vue | 4 ++-- src/pages/TemplateBuilder/TemplateBuilderHint.vue | 8 ++++---- src/utils/search.ts | 2 +- 10 files changed, 26 insertions(+), 25 deletions(-) diff --git a/src/components/Button.vue b/src/components/Button.vue index 78f0b738..7b3c05fe 100644 --- a/src/components/Button.vue +++ b/src/components/Button.vue @@ -40,7 +40,7 @@ export default defineComponent({ return { 'opacity-50 cursor-not-allowed pointer-events-none': this.disabled, 'text-white': this.type === 'primary', - 'bg-blue-500': this.type === 'primary' && this.background, + 'bg-black': this.type === 'primary' && this.background, 'text-gray-700': this.type !== 'primary', 'bg-gray-200': this.type !== 'primary' && this.background, 'h-8': this.background, diff --git a/src/components/FormContainer.vue b/src/components/FormContainer.vue index a41c6b09..13ebdd8d 100644 --- a/src/components/FormContainer.vue +++ b/src/components/FormContainer.vue @@ -5,7 +5,7 @@