From 9f6c410bd4189571f7df988de82e5c757e704d73 Mon Sep 17 00:00:00 2001 From: Goran Jovanovic Date: Sun, 28 Nov 2021 12:13:14 +0100 Subject: [PATCH] Cosmetics - Add new default themes purple, violet dark and light version --- packages/angular/package.json | 4 +- packages/core/package.json | 4 +- .../core/src/app/components/app-config.js | 21 ++ packages/core/src/components/badge/badge.scss | 10 +- .../core/src/components/button/button.scss | 2 +- .../src/components/input-text/input-text.scss | 4 + packages/core/src/index.html | 2 +- packages/core/src/themes/anywhere.global.scss | 3 + .../anywhere.theme.default.dark-purple.scss | 271 ++++++++++++++++++ .../anywhere.theme.default.dark-violet.scss | 269 +++++++++++++++++ .../anywhere.theme.default.light-purple.scss | 151 ++++++++++ .../src/themes/anywhere.theme.default.scss | 4 +- packages/react/package.json | 4 +- packages/vue/package.json | 4 +- 14 files changed, 736 insertions(+), 17 deletions(-) create mode 100644 packages/core/src/themes/anywhere.theme.default.dark-purple.scss create mode 100644 packages/core/src/themes/anywhere.theme.default.dark-violet.scss create mode 100644 packages/core/src/themes/anywhere.theme.default.light-purple.scss diff --git a/packages/angular/package.json b/packages/angular/package.json index 223b9f1..4ba0b77 100644 --- a/packages/angular/package.json +++ b/packages/angular/package.json @@ -1,6 +1,6 @@ { "name": "@anywhere-ui/angular", - "version": "0.2.0+6", + "version": "0.2.0+7", "scripts": { "ng": "ng", "start": "ng serve", @@ -42,5 +42,5 @@ "tslint": "~6.1.0", "typescript": "~4.4.4" }, - "buildnum": "6" + "buildnum": "7" } \ No newline at end of file diff --git a/packages/core/package.json b/packages/core/package.json index 08895ed..2b10ba3 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@anywhere-ui/core", - "version": "0.2.0+6", + "version": "0.2.0+7", "description": "AnywhereUI", "main": "dist/index.cjs.js", "module": "dist/index.js", @@ -62,5 +62,5 @@ "build": "^0.1.4", "run": "^1.4.0" }, - "buildnum": "6" + "buildnum": "7" } \ No newline at end of file diff --git a/packages/core/src/app/components/app-config.js b/packages/core/src/app/components/app-config.js index 72473f4..a0195dc 100644 --- a/packages/core/src/app/components/app-config.js +++ b/packages/core/src/app/components/app-config.js @@ -175,6 +175,24 @@ template.innerHTML = ` Violet +
+ + Purple +
+
+ + Violet +
+
+ + Purple +
Bootstrap
@@ -213,6 +231,9 @@ class AppConfig extends HTMLElement { super(); this.logoMap = { 'anywhere-default': 'anywhere-default-violet.png', + 'anywhere-default-dark-violet': 'anywhere-dark-violet.png', + 'anywhere-default-dark-purple': 'anywhere-dark-purple.png', + 'anywhere-default-light-purple': 'anywhere-light-purple.png', 'bootstrap4-light-blue': 'bootstrap4-light-blue.svg', 'bootstrap4-light-purple': 'bootstrap4-light-purple.svg', 'bootstrap4-dark-blue': 'bootstrap4-dark-blue.svg', diff --git a/packages/core/src/components/badge/badge.scss b/packages/core/src/components/badge/badge.scss index 26df8a4..2d0f625 100644 --- a/packages/core/src/components/badge/badge.scss +++ b/packages/core/src/components/badge/badge.scss @@ -48,27 +48,27 @@ .any-badge.any-badge-secondary { background-color: var(--secondaryButtonBg) !important; - color: var(--badgeTextColor) !important; + color: var(--secondaryButtonTextColor) !important; } .any-badge.any-badge-success { background-color: var(--successButtonBg) !important; - color: var(--badgeTextColor) !important; + color: var(--successButtonTextColor) !important; } .any-badge.any-badge-info { background-color: var(--infoButtonBg) !important; - color: var(--badgeTextColor) !important; + color: var(--infoButtonTextColor) !important; } .any-badge.any-badge-warning { background-color: var(--warningButtonBg) !important; - color: var(--textColor) !important; + color: var(--warningButtonTextColor) !important; } .any-badge.any-badge-danger { background-color: var(--dangerButtonBg) !important; - color: var(--badgeTextColor) !important; + color: var(--dangerButtonTextColor) !important; } .any-badge.any-badge-lg { diff --git a/packages/core/src/components/button/button.scss b/packages/core/src/components/button/button.scss index 79b7440..71c1980 100644 --- a/packages/core/src/components/button/button.scss +++ b/packages/core/src/components/button/button.scss @@ -775,7 +775,7 @@ .any-button.any-button-link:enabled:active { background: transparent; - color: var(--buttonActiveBg); + color: var(--buttonBg); border-color: transparent; } } \ No newline at end of file diff --git a/packages/core/src/components/input-text/input-text.scss b/packages/core/src/components/input-text/input-text.scss index 4ee6a12..1dcb32a 100644 --- a/packages/core/src/components/input-text/input-text.scss +++ b/packages/core/src/components/input-text/input-text.scss @@ -20,6 +20,10 @@ margin: 0; outline: medium none; + &::placeholder { + color: var(--inputPlaceholderTextColor); + } + &:not([disabled]) { &:hover { border-color: var(--inputHoverBorderColor); diff --git a/packages/core/src/index.html b/packages/core/src/index.html index 7d5e334..a5be22c 100644 --- a/packages/core/src/index.html +++ b/packages/core/src/index.html @@ -100,7 +100,7 @@