diff --git a/assets/scss/styles.scss b/assets/scss/styles.scss index 7f58b9f93..9fd8277db 100644 --- a/assets/scss/styles.scss +++ b/assets/scss/styles.scss @@ -13,8 +13,8 @@ $responsiveWidth: 768px; } ::selection { - @apply bg-acColor; - @apply text-actColor; + @apply bg-accent; + @apply text-primary; } ::-webkit-scrollbar { @@ -22,20 +22,20 @@ $responsiveWidth: 768px; @apply w-2; &:hover { - @apply bg-bgDarkColor; + @apply bg-primaryDark; } } ::-webkit-scrollbar-thumb { - @apply bg-fgLightColor; + @apply bg-secondaryLight; &:hover { - @apply bg-fgColor; + @apply bg-secondary; } } ::placeholder { - @apply text-fgLightColor; + @apply text-secondaryLight; @apply opacity-25; } @@ -44,8 +44,8 @@ html { } body { - @apply bg-bgColor; - @apply text-fgColor; + @apply bg-primary; + @apply text-secondary; @apply text-base; @apply font-medium; @apply select-none; @@ -89,7 +89,7 @@ a { @apply outline-none; &.link { - @apply text-acColor; + @apply text-accent; } } @@ -169,7 +169,7 @@ p { hr { @apply border-b; @apply border-dashed; - @apply border-brdColor; + @apply border-divider; @apply my-4; } @@ -187,8 +187,8 @@ hr { @apply transition; @apply ease-in-out; @apply duration-150; - @apply bg-ttColor; - @apply text-fgColor; + @apply bg-tooltip; + @apply text-secondary; } .tooltip-arrow { @@ -197,7 +197,7 @@ hr { @apply border-solid; @apply absolute; @apply m-2; - @apply border-ttColor; + @apply border-tooltip; @apply z-30; @apply transition; @apply ease-in-out; @@ -274,8 +274,8 @@ hr { } .popover-inner { - @apply bg-ttColor; - @apply text-fgColor; + @apply bg-tooltip; + @apply text-secondary; @apply text-base; @apply p-2; @apply rounded-lg; @@ -301,7 +301,7 @@ hr { } .popover-arrow { - @apply border-ttColor; + @apply border-tooltip; } } @@ -324,7 +324,7 @@ hr { .info:not(.toasted) { @apply m-4; - @apply text-fgLightColor; + @apply text-secondaryLight; .material-icons { @apply align-middle; @@ -337,8 +337,8 @@ button { @apply items-center; @apply justify-center; @apply p-4; - @apply bg-acColor; - @apply text-actColor; + @apply bg-accent; + @apply text-primary; @apply font-bold; @apply transition; @apply ease-in-out; @@ -357,16 +357,16 @@ button { &:not([disabled]):hover, &:not([disabled]):active, &:not([disabled]):focus { - @apply text-actColor; + @apply text-primary; @apply fill-current; @apply outline-none; - box-shadow: inset 0 0 0 2px var(--fg-color); + box-shadow: inset 0 0 0 2px var(--secondary-color); } &.icon { @apply bg-transparent; - @apply text-fgLightColor; + @apply text-secondaryLight; @apply fill-current; @apply outline-none; @apply border-none; @@ -375,21 +375,21 @@ button { &:not([disabled]):hover, &:not([disabled]):active, &:not([disabled]):focus { - @apply text-fgColor; + @apply text-secondary; @apply fill-current; @apply shadow-none; } } &.primary { - @apply text-acColor; + @apply text-accent; @apply px-6; &:not([disabled]):hover, &:not([disabled]):active, &:not([disabled]):focus { - @apply bg-acColor; - @apply text-actColor; + @apply bg-accent; + @apply text-primary; } } } @@ -422,7 +422,7 @@ section:target { @keyframes highlight { 50% { - box-shadow: 0 0 0 2px var(--ac-color); + box-shadow: 0 0 0 2px var(--accent-color); } } @@ -451,8 +451,8 @@ pre, code { @apply flex; @apply p-4; - @apply bg-bgDarkColor; - @apply text-fgColor; + @apply bg-primaryDark; + @apply text-secondary; @apply font-mono; @apply font-normal; @apply transition; @@ -466,7 +466,7 @@ code { &:not([readonly]):not(.ace_editor):hover, &:not([readonly]):not(.ace_editor):active, &:not([readonly]):not(.ace_editor):focus { - box-shadow: inset 0 0 0 2px var(--fg-light-color); + box-shadow: inset 0 0 0 2px var(--secondary-light-color); } } @@ -479,7 +479,7 @@ code { &:hover, &:active, &:focus { - box-shadow: inset 0 0 0 2px var(--fg-light-color); + box-shadow: inset 0 0 0 2px var(--secondary-light-color); } } @@ -518,7 +518,7 @@ pre { @apply absolute; @apply pointer-events-none; @apply font-icon; - @apply text-fgLightColor; + @apply text-secondaryLight; content: "\e313"; top: 16px; @@ -538,7 +538,7 @@ select { } option { - @apply bg-bgColor; + @apply bg-primary; } input[type="checkbox"] { @@ -551,7 +551,7 @@ input[type="checkbox"] { &::before { @apply border; - @apply border-fgColor; + @apply border-secondary; @apply rounded-lg; @apply inline-flex; @apply items-center; @@ -569,29 +569,29 @@ input[type="checkbox"] { } &:checked + label::before { - @apply bg-acColor; - @apply border-acColor; - @apply text-actColor; + @apply bg-accent; + @apply border-accent; + @apply text-primary; } } .error:not(input), .disabled:not(input), [disabled] { - @apply bg-errColor; - @apply text-fgLightColor; + @apply bg-error; + @apply text-secondaryLight; @apply fill-current; @apply cursor-not-allowed; &.icon { - @apply text-errColor; + @apply text-error; @apply fill-current; } } label { @apply p-4; - @apply text-fgLightColor; + @apply text-secondaryLight; @apply text-sm; @apply transition; @apply ease-in-out; @@ -653,7 +653,7 @@ ol li { } .missing-data-response { - @apply text-fgLightColor; + @apply text-secondaryLight; } #response-details-wrapper { @@ -707,8 +707,8 @@ section { } .toasted.info { - background-color: var(--ac-color) !important; - color: var(--act-color) !important; + background-color: var(--accent-color) !important; + color: var(--primary-color) !important; font-weight: 700 !important; } diff --git a/assets/scss/themes.scss b/assets/scss/themes.scss index d9614513c..7f54c94c8 100644 --- a/assets/scss/themes.scss +++ b/assets/scss/themes.scss @@ -6,116 +6,110 @@ @mixin darkTheme { // Background color - --bg-color: rgba(32, 33, 36, 1); + --primary-color: rgba(32, 33, 36, 1); // Light Background color - --bg-light-color: rgba(255, 255, 255, 0.04); + --primary-light-color: rgba(255, 255, 255, 0.04); // Dark Background color - --bg-dark-color: rgba(0, 0, 0, 0.2); + --primary-dark-color: rgba(0, 0, 0, 0.2); // Text color - --fg-color: rgba(255, 255, 255, 0.9); + --secondary-color: rgba(255, 255, 255, 0.9); // Light Text color - --fg-light-color: rgba(255, 255, 255, 0.5); + --secondary-light-color: rgba(255, 255, 255, 0.5); // Border color - --brd-color: rgba(255, 255, 255, 0.05); + --divider-color: rgba(255, 255, 255, 0.05); // Error color - --err-color: rgba(255, 255, 255, 0.05); + --error-color: rgba(255, 255, 255, 0.05); // Tooltip color - --tt-color: rgba(48, 48, 48, 1); + --tooltip-color: rgba(48, 48, 48, 1); // Editor theme --editor-theme: "twilight"; - // Active text color - --act-color: rgba(32, 33, 36, 1); } @mixin lightTheme { // Background color - --bg-color: rgba(255, 255, 255, 1); + --primary-color: rgba(255, 255, 255, 1); // Light Background color - --bg-light-color: rgba(0, 0, 0, 0.05); + --primary-light-color: rgba(0, 0, 0, 0.05); // Dark Background color - --bg-dark-color: rgba(0, 0, 0, 0.02); + --primary-dark-color: rgba(0, 0, 0, 0.02); // Text color - --fg-color: rgba(0, 0, 0, 0.9); + --secondary-color: rgba(0, 0, 0, 0.9); // Light Text color - --fg-light-color: rgba(0, 0, 0, 0.6); + --secondary-light-color: rgba(0, 0, 0, 0.6); // Border color - --brd-color: rgba(0, 0, 0, 0.1); + --divider-color: rgba(0, 0, 0, 0.1); // Error color - --err-color: rgba(0, 0, 0, 0.1); + --error-color: rgba(0, 0, 0, 0.1); // Tooltip color - --tt-color: rgba(255, 255, 255, 1); + --tooltip-color: rgba(255, 255, 255, 1); // Editor theme --editor-theme: "iplastic"; - // Active text color - --act-color: rgba(255, 255, 255, 1); } @mixin blackTheme { // Background color - --bg-color: rgba(0, 0, 0, 1); + --primary-color: rgba(0, 0, 0, 1); // Light Background color - --bg-light-color: rgba(255, 255, 255, 0.02); + --primary-light-color: rgba(255, 255, 255, 0.02); // Dark Background color - --bg-dark-color: rgba(255, 255, 255, 0.07); + --primary-dark-color: rgba(255, 255, 255, 0.07); // Text color - --fg-color: rgba(255, 255, 255, 0.9); + --secondary-color: rgba(255, 255, 255, 0.9); // Light Text color - --fg-light-color: rgba(255, 255, 255, 0.5); + --secondary-light-color: rgba(255, 255, 255, 0.5); // Border color - --brd-color: rgba(255, 255, 255, 0.11); + --divider-color: rgba(255, 255, 255, 0.11); // Error color - --err-color: rgba(255, 255, 255, 0.05); + --error-color: rgba(255, 255, 255, 0.05); // Tooltip color - --tt-color: rgba(32, 32, 32, 1); + --tooltip-color: rgba(32, 32, 32, 1); // Editor theme --editor-theme: "vibrant_ink"; - // Active text color - --act-color: rgba(0, 0, 0, 1); } @mixin blueTheme { - // Acent color - --ac-color: theme("colors.blue.400"); + // Accent color + --accent-color: theme("colors.blue.400"); } @mixin greenTheme { - // Acent color - --ac-color: theme("colors.green.400"); + // Accent color + --accent-color: theme("colors.green.400"); } @mixin tealTheme { - // Acent color - --ac-color: theme("colors.teal.400"); + // Accent color + --accent-color: theme("colors.teal.400"); } @mixin indigoTheme { - // Acent color - --ac-color: theme("colors.indigo.400"); + // Accent color + --accent-color: theme("colors.indigo.400"); } @mixin purpleTheme { - // Acent color - --ac-color: theme("colors.purple.400"); + // Accent color + --accent-color: theme("colors.purple.400"); } @mixin orangeTheme { - // Acent color - --ac-color: theme("colors.orange.400"); + // Accent color + --accent-color: theme("colors.orange.400"); } @mixin pinkTheme { - // Acent color - --ac-color: theme("colors.pink.400"); + // Accent color + --accent-color: theme("colors.pink.400"); } @mixin redTheme { - // Acent color - --ac-color: theme("colors.red.400"); + // Accent color + --accent-color: theme("colors.red.400"); } @mixin yellowTheme { - // Acent color - --ac-color: theme("colors.yellow.400"); + // Accent color + --accent-color: theme("colors.yellow.400"); } :root { diff --git a/components/app/Footer.vue b/components/app/Footer.vue index 09db24e31..f2c61244d 100644 --- a/components/app/Footer.vue +++ b/components/app/Footer.vue @@ -87,11 +87,11 @@ export default { @apply flex-shrink-0; @apply my-2; @apply mx-4; - @apply text-fgLightColor; + @apply text-secondaryLight; @apply text-sm; &:hover { - @apply text-fgColor; + @apply text-secondary; } } diff --git a/components/app/Header.vue b/components/app/Header.vue index 67d6985b9..275d84a4f 100644 --- a/components/app/Header.vue +++ b/components/app/Header.vue @@ -30,7 +30,7 @@ font-mono text-sm rounded-md - bg-bgDarkColor + bg-primaryDark hide-on-small-screen " > @@ -309,7 +309,7 @@ $responsiveWidth: 768px; @apply duration-150; &:hover { - @apply text-acColor; + @apply text-accent; } } diff --git a/components/app/Section.vue b/components/app/Section.vue index 7366a6675..2bb6c204f 100644 --- a/components/app/Section.vue +++ b/components/app/Section.vue @@ -55,7 +55,7 @@ export default Vue.extend({ fieldset { @apply my-4; @apply rounded-lg; - @apply bg-bgDarkColor; + @apply bg-primaryDark; @apply transition; @apply ease-in-out; @apply duration-150; @@ -63,7 +63,7 @@ fieldset { legend { @apply px-4; - @apply text-fgColor; + @apply text-secondary; @apply font-bold; @apply cursor-pointer; @apply transition; diff --git a/components/app/Sidenav.vue b/components/app/Sidenav.vue index afd04c121..e81d47f9c 100644 --- a/components/app/Sidenav.vue +++ b/components/app/Sidenav.vue @@ -160,7 +160,7 @@ $responsiveWidth: 768px; @apply z-10; @apply h-screen; @apply p-2; - @apply bg-bgDarkColor; + @apply bg-primaryDark; @apply transition; @apply ease-in-out; @apply duration-150; @@ -187,16 +187,19 @@ nav.primary-nav { @apply flex-shrink-0; @apply p-4; @apply rounded-full; - @apply bg-bgLightColor; - @apply text-fgLightColor; + @apply bg-primaryLight; + @apply text-secondaryLight; @apply fill-current; @apply outline-none; @apply transition; @apply ease-in-out; @apply duration-150; + border-radius: 50%; + transition-property: all !important; + &:hover { - @apply text-fgColor; + @apply text-secondary; @apply fill-current; svg { @@ -205,8 +208,8 @@ nav.primary-nav { } &.nuxt-link-exact-active { - @apply bg-acColor; - @apply text-actColor; + @apply bg-accent; + @apply text-primary; @apply fill-current; border-radius: 16px; @@ -231,7 +234,7 @@ nav.secondary-nav { @apply justify-center; @apply border-t-2; @apply border-dashed; - @apply border-brdColor; + @apply border-divider; @apply pt-2; @apply space-y-2; @@ -242,8 +245,8 @@ nav.secondary-nav { @apply flex-shrink-0; @apply p-4; @apply rounded-full; - @apply bg-bgDarkColor; - @apply text-fgLightColor; + @apply bg-primaryDark; + @apply text-secondaryLight; @apply fill-current; @apply outline-none; @apply transition; @@ -251,12 +254,12 @@ nav.secondary-nav { @apply duration-150; &:hover { - @apply text-fgColor; + @apply text-secondary; @apply fill-current; } &.current { - @apply text-acColor; + @apply text-accent; @apply fill-current; } } @@ -270,7 +273,7 @@ nav.secondary-nav { @apply h-auto; @apply p-0; @apply w-full; - @apply bg-bgColor; + @apply bg-primary; @apply shadow-2xl; } @@ -278,7 +281,7 @@ nav.secondary-nav { @apply flex-row; @apply flex-nowrap; @apply overflow-auto; - @apply bg-bgDarkColor; + @apply bg-primaryDark; @apply space-y-0; padding-bottom: env(safe-area-inset-bottom); @@ -290,7 +293,7 @@ nav.secondary-nav { &.nuxt-link-exact-active { @apply bg-transparent; - @apply text-acColor; + @apply text-accent; @apply fill-current; svg { diff --git a/components/collections/graphql/Collection.vue b/components/collections/graphql/Collection.vue index a0571ace7..fef0716ae 100644 --- a/components/collections/graphql/Collection.vue +++ b/components/collections/graphql/Collection.vue @@ -3,7 +3,7 @@
not_interested diff --git a/components/collections/graphql/Folder.vue b/components/collections/graphql/Folder.vue index 812413712..f1d257537 100644 --- a/components/collections/graphql/Folder.vue +++ b/components/collections/graphql/Folder.vue @@ -3,7 +3,7 @@
not_interested {{ $t("folder_empty") }} diff --git a/components/collections/graphql/Request.vue b/components/collections/graphql/Request.vue index c22652938..3c1156604 100644 --- a/components/collections/graphql/Request.vue +++ b/components/collections/graphql/Request.vue @@ -3,7 +3,7 @@
-