diff --git a/docs/configuration.md b/docs/configuration.md index e43a8b8..ca33ac9 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -121,6 +121,7 @@ services: icon: "fas fa-code-branch" # A path to an image can also be provided. Note that icon take precedence if both icon and logo are set. # logo: "path/to/logo" + # class: "highlight-purple" # Optional css class to add on the service group. items: - name: "Awesome app" logo: "assets/tools/sample.png" diff --git a/docs/theming.md b/docs/theming.md index 8f8d570..7b10cc0 100644 --- a/docs/theming.md +++ b/docs/theming.md @@ -1,51 +1,76 @@ # Theming -## Customization from yaml configuration file +## Change theme -Some aspect of the theme can be customized using the yaml configuration file. +the default theme can be changed using the yaml configuration file + +```yaml +theme: default # 'default', 'walkxcode', or 'neon' see files in 'src/assets/themes'. +``` + +## Colors and background customization + +Default colors and background can be customized for each theme variant (light and dark), using either the yaml config file, or the css variables (cf "Additional stylesheets" below). + +### Available options + +| yaml | css | description | +| --------------------- | ----------------------- | --- | +| `highlight-primary` | `--highlight-primary` | header background, group title icons | +| `highlight-secondary` | `--highlight-secondary` | navbar background, default tag color | +| `highlight-hover` | `--highlight-hover` | navbar links hover, search input background | +| `background` | `--background` | page background color | +| `card-background` | `--card-background` | service card background color | +| `text` | `--text` | main text color | +| `text-header` | `--text-header` | header text color | +| `text-title` | `--text-title` | service card title color | +| `text-subtitle` | `--text-subtitle` | service card subtitle color | +| `card-shadow` | `--card-shadow` | Service card `box-shadow` | +| `link` | `--link` | Links color (footer & message), service card icon color | +| `link-hover` | `--link-hover` | Links hover color (footer & message), service card icon hover color | +| `background-image` | `--background-image` | page background image url (when used in css, set `url()` insted of just the url. see exemple below)| + + +yaml exemple ```yml colors: light: highlight-primary: "#3367d6" - highlight-secondary: "#4285f4" - highlight-hover: "#5a95f5" - background: "#f5f5f5" - card-background: "#ffffff" - text: "#363636" - text-header: "#424242" - text-title: "#303030" - text-subtitle: "#424242" - card-shadow: rgba(0, 0, 0, 0.1) - link: "#3273dc" - link-hover: "#363636" - background-image: "assets/your/light/bg.png" + background-image: "assets/your/light/bg.webp" + ... dark: highlight-primary: "#3367d6" - highlight-secondary: "#4285f4" - highlight-hover: "#5a95f5" - background: "#131313" - card-background: "#2b2b2b" - text: "#eaeaea" - text-header: "#ffffff" - text-title: "#fafafa" - text-subtitle: "#f5f5f5" - card-shadow: rgba(0, 0, 0, 0.4) - link: "#3273dc" - link-hover: "#ffdd57" - background-image: "assets/your/dark/bg.png" + background-image: "assets/your/dark/bg.webp" + ... +``` + +CSS exemple + +```css +.light { + --highlight-primary: #3367d6; + --background-image: url("assets/your/light/bg.webp"); + ... +} + +.dark { + --highlight-primary: #3367d6; + --background-image: url("assets/your/dark/bg.webp"); + ... +} ``` ## Additional stylesheets -One or more additional stylesheets can be loaded to add or override style from the current theme. Use the 'stylesheet' option in the yaml configuration file to add CSS file to be used. +One or more additional stylesheets can be loaded to add or override style from the current theme. Use the 'stylesheet' option in the yaml configuration file to load your own CSS file. ```yml stylesheet: - "assets/custom.css" ``` -### customization exemple +### Customization exemple #### Max width modification diff --git a/package.json b/package.json index 2c5ace4..845c332 100644 --- a/package.json +++ b/package.json @@ -11,10 +11,10 @@ }, "dependencies": { "@fortawesome/fontawesome-free": "^6.5.2", - "bulma": "^0.9.4", + "bulma": "^1.0.1", "lodash.merge": "^4.6.2", "vue": "^3.4.26", - "yaml": "^2.4.2" + "yaml": "^2.4.5" }, "devDependencies": { "@rushstack/eslint-patch": "^1.8.0", @@ -29,5 +29,5 @@ "vite-plugin-pwa": "^0.20.0" }, "license": "Apache-2.0", - "packageManager": "pnpm@9.1.4+sha512.9df9cf27c91715646c7d675d1c9c8e41f6fce88246f1318c1aa6a1ed1aeb3c4f032fcdf4ba63cc69c4fe6d634279176b5358727d8f2cc1e65b65f43ce2f8bfb0" + "packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 06f9484..335321c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^6.5.2 version: 6.5.2 bulma: - specifier: ^0.9.4 - version: 0.9.4 + specifier: ^1.0.1 + version: 1.0.1 lodash.merge: specifier: ^4.6.2 version: 4.6.2 @@ -21,8 +21,8 @@ importers: specifier: ^3.4.26 version: 3.4.26 yaml: - specifier: ^2.4.2 - version: 2.4.2 + specifier: ^2.4.5 + version: 2.4.5 devDependencies: '@rushstack/eslint-patch': specifier: ^1.8.0 @@ -1151,8 +1151,8 @@ packages: resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==} engines: {node: '>=6'} - bulma@0.9.4: - resolution: {integrity: sha512-86FlT5+1GrsgKbPLRRY7cGDg8fsJiP/jzTqXXVqiUZZ2aZT8uemEOHlU1CDU+TxklPEZ11HZNNWclRBBecP4CQ==} + bulma@1.0.1: + resolution: {integrity: sha512-+xv/BIAEQakHkR0QVz+s+RjNqfC53Mx9ZYexyaFNFo9wx5i76HXArNdwW7bccyJxa5mgV/T5DcVGqsAB19nBJQ==} call-bind@1.0.7: resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} @@ -2385,8 +2385,8 @@ packages: yallist@4.0.0: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} - yaml@2.4.2: - resolution: {integrity: sha512-B3VqDZ+JAg1nZpaEmWtTXUlBneoGx6CPM9b0TENK6aoSu5t73dItudwdgmi6tHlIZZId4dZ9skcAQ2UbcyAeVA==} + yaml@2.4.5: + resolution: {integrity: sha512-aBx2bnqDzVOyNKfsysjA2ms5ZlnjSAW2eG3/L5G/CSujfjLJTJsEw1bGw8kCf04KodQWk1pxlGnZ56CRxiawmg==} engines: {node: '>= 14'} hasBin: true @@ -3563,7 +3563,7 @@ snapshots: builtin-modules@3.3.0: {} - bulma@0.9.4: {} + bulma@1.0.1: {} call-bind@1.0.7: dependencies: @@ -4949,6 +4949,6 @@ snapshots: yallist@4.0.0: {} - yaml@2.4.2: {} + yaml@2.4.5: {} yocto-queue@0.1.0: {} diff --git a/public/assets/additional-page.yml.dist b/public/assets/additional-page.yml.dist index 5d377ee..7f01f48 100644 --- a/public/assets/additional-page.yml.dist +++ b/public/assets/additional-page.yml.dist @@ -24,7 +24,7 @@ links: url: "https://www.wikipedia.org/" services: - - name: "More applications on another page!" + - name: "More apps on another page!" icon: "fas fa-cloud" items: - name: "Awesome app on a second page!" diff --git a/public/assets/config-demo.yml.dist b/public/assets/config-demo.yml.dist index 39e4093..9197661 100644 --- a/public/assets/config-demo.yml.dist +++ b/public/assets/config-demo.yml.dist @@ -12,33 +12,6 @@ footer: '

Created with ❤️ with Created with ❤️ with - +

-
+
{{ config.subtitle }}

{{ config.title }}

@@ -77,6 +74,7 @@

@@ -92,7 +90,11 @@ :key="`service-${groupIndex}-${index}`" :item="item" :proxy="config.proxy" - :class="['column', `is-${12 / config.columns}`]" + :class="[ + 'column', + `is-${12 / config.columns}`, + `${item.class || group.class || ''}`, + ]" />

@@ -107,7 +109,7 @@ v-for="(group, groupIndex) in services" :key="groupIndex" > -

+

diff --git a/src/assets/app.scss b/src/assets/app.scss index 4ce417a..a2c7559 100644 --- a/src/assets/app.scss +++ b/src/assets/app.scss @@ -1,358 +1,12 @@ @charset "utf-8"; -@import "./webfonts/webfonts.scss"; -@import "../../node_modules/bulma/bulma"; -@import "./components/status.scss"; +// foncdation +@import url("@/assets/components/layers.scss"); +@import url("~/bulma/css/bulma.css") layer(framework); +@import url("@/assets/components/base.scss") layer(base); +@import url("@/assets/components/highlights.scss") layer(base); -// Themes import -@import "./themes/sui.scss"; - -@mixin ellipsis() { - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -html, body, body #app-mount, body #app { - height: 100%; - background-color: var(--background); -} - -body { - font-family: "Raleway", sans-serif; - - #app { - height: auto; - min-height: 100%; - background-image: var(--background-image); - background-size: cover; - background-position: center; - color: var(--text); - transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms; - - a { - color: var(--link); - &:hover { - color: var(--link-hover); - } - } - - .title { - color: var(--text-title); - } - .subtitle { - color: var(--text-subtitle); - } - - .card { - background-color: var(--card-background); - box-shadow: 0 2px 15px 0 var(--card-shadow); - &:hover { - background-color: var(--card-background); - } - } - - .message { - background-color: var(--card-background); - .message-body { - color: var(--text); - } - } - - .footer { - background-color: var(--card-background); - box-shadow: 0 2px 15px 0 var(--card-shadow); - } - } - - h1, - h2, - h3, - h4, - h5, - h6 { - font-family: "Lato", sans-serif; - } - - h1 { - font-size: 2rem; - } - - h2 { - font-size: 1.7rem; - margin-top: 2rem; - margin-bottom: 1rem; - - .fas, - .fab, - .far { - margin-right: 10px; - } - - span { - font-weight: bold; - color: var(--highlight-secondary); - } - } - - [v-cloak] { - display: none; - } - - #bighead { - color: var(--text-header); - - .dashboard-title { - padding: 6px 0 0 80px; - - &.no-logo { - padding-left: 0; - } - } - - .first-line { - min-height: 100px; - vertical-align: center; - background-color: var(--highlight-primary); - - h1 { - margin-top: -12px; - font-size: 2rem; - } - - .headline { - margin-top: 5px; - font-size: 0.9rem; - } - - .container { - min-height: 80px; - padding: 10px 0; - } - - .logo { - float: left; - i { - vertical-align: top; - padding: 8px 15px; - font-size: 50px; - } - - img { - padding: 10px; - max-height: 70px; - max-width: 70px; - } - } - } - .navbar { - background-color: var(--highlight-secondary); - - a { - color: var(--text-header); - padding: 8px 12px; - &:hover, - &:focus { - color: var(--text-header); - background-color: var(--highlight-hover); - } - } - .navbar-menu { - background-color: inherit; - } - } - .navbar-end { - text-align: right; - } - } - - #main-section { - padding: 0 0 2.5rem 0; - - h2 { - padding-bottom: 0px; - @include ellipsis(); - } - - .title { - font-size: 1.1em; - line-height: 1.2em; - @include ellipsis(); - } - - .subtitle { - font-size: 0.9em; - @include ellipsis(); - } - - .container { - padding: 1.2rem 0.75rem; - } - - .message { - margin-top: 45px; - box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); - - .message-header { - font-weight: bold; - } - - .message-body { - border: none; - } - } - } - - .media.no-subtitle { - display: flex; - align-items: center; - } - - .media-content { - overflow: hidden; - text-overflow: inherit; - } - - .tag { - color: var(--highlight-secondary); - background-color: var(--highlight-secondary); - position: absolute; - bottom: 1rem; - right: -0.2rem; - width: 3px; - overflow: hidden; - transition: all 0.2s ease-out; - padding: 0; - - .tag-text { - display: none; - } - } - - .card { - border: none; - box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); - transition: cubic-bezier(0.165, 0.84, 0.44, 1) 300ms; - overflow: visible; - - a { - outline: none; - } - } - - .card:hover { - transform: translate(0, -3px); - - .tag { - width: auto; - color: #ffffff; - padding: 0 0.75em; - - .tag-text { - display: block; - } - } - } - - .card-content { - height: 85px; - padding: 1.3rem; - } - - .layout-vertical { - .card { - border-radius: 0; - } - - .column div:first-of-type .card { - border-top-left-radius: 0.25rem; - border-top-right-radius: 0.25rem; - } - - .column div:last-child .card { - border-bottom-left-radius: 0.25rem; - border-bottom-right-radius: 0.25rem; - } - } - - .footer { - position: fixed; - left: 0; - right: 0; - bottom: 0; - padding: 0.5rem; - text-align: left; - color: #676767; - font-size: 0.85rem; - transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms; - } - - .no-footer { - #main-section { - padding-bottom: 0; - } - - .footer { - display: none; - } - } - - .search-bar { - position: relative; - display: inline-block; - input { - border: none; - background-color: var(--highlight-hover); - border-radius: 5px; - margin-top: 2px; - padding: 2px 12px 2px 30px; - transition: all 100ms linear; - color: #ffffff; - height: 30px; - width: 100px; - - &:focus { - color: #000000; - width: 250px; - background-color: #ffffff; - } - } - - .search-label::before { - font-family: "Font Awesome 5 Free"; - position: absolute; - top: 14px; - left: 16px; - content: "\f002"; - font-weight: 900; - width: 20px; - height: 20px; - color: #ffffff; - } - - &:focus-within .search-label::before { - color: #6e6e6e; - } - } - - .offline-message { - text-align: center; - margin: 35px 0; - - i { - font-size: 2rem; - } - - i.fa-redo-alt { - font-size: 1.3rem; - line-height: 1rem; - vertical-align: middle; - cursor: pointer; - color: #3273dc; - } - } -} - -.group-logo { - float: left; -} +// themes +@import url("@/assets/themes/classic.scss") layer(theme); +@import url("@/assets/themes/walkxcode.scss") layer(theme); +@import url("@/assets/themes/neon.scss") layer(theme); diff --git a/src/assets/components/base.scss b/src/assets/components/base.scss new file mode 100644 index 0000000..68ed22b --- /dev/null +++ b/src/assets/components/base.scss @@ -0,0 +1,446 @@ +@import url("~/@fortawesome/fontawesome-free/css/all.css") layer(base); +@import url("@/assets/components/status.scss") layer(base); +@import url("@/assets/webfonts/webfonts.scss") layer(base); + + +@mixin ellipsis() { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + @layer base { + html, body, body #app-mount, body #app { + height: 100%; + background-color: var(--background); + } + + body { + font-family: "Noto Sans", sans-serif; + font-optical-sizing: auto; + font-weight: 400; + font-style: normal; + font-variation-settings: "wdth" 100; + + #app { + height: auto; + min-height: 100%; + background-image: var(--background-image); + background-size: cover; + background-position: center; + color: var(--text); + transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms; + + a { + color: var(--link); + &:hover { + color: var(--link-hover); + } + } + + .title { + font-weight: 500; + color: var(--text-title); + } + .subtitle { + color: var(--text-subtitle); + } + + .card { + background-color: var(--card-background); + box-shadow: 0 2px 15px 0 var(--card-shadow); + &:hover { + background-color: var(--card-background); + } + } + + .message { + .message-body { + color: var(--text); + background-color: var(--card-background); + } + } + + .footer { + background-color: var(--card-background); + box-shadow: 0 2px 15px 0 var(--card-shadow); + } + } + + h1 { + font-size: 2rem; + } + + h2 { + font-size: 1.3rem; + margin-top: 1.2rem; + margin-bottom: 0.5rem; + + .fas, + .fab, + .far { + font-size: 1.4rem; + margin-right: 10px; + } + + span { + font-weight: bold; + color: var(--highlight-secondary); + } + } + + [v-cloak] { + display: none; + } + + #bighead { + color: var(--text-header); + + .dashboard-title { + padding-top: 6px; + } + + .first-line { + min-height: 100px; + vertical-align: center; + background-color: var(--highlight-primary); + + h1 { + margin-top: -12px; + font-size: 2rem; + } + + .headline { + margin-top: 5px; + font-size: 0.9rem; + } + + .container { + min-height: 80px; + padding: 10px 0; + } + + .logo { + float: left; + i { + vertical-align: top; + padding: 8px 15px; + font-size: 50px; + } + + img { + padding: 10px; + max-height: 70px; + max-width: 70px; + } + } + } + .navbar { + background-color: var(--highlight-secondary); + + a { + color: var(--text-header); + padding: 8px 12px; + &:hover, + &:focus { + color: var(--text-header); + background-color: var(--highlight-hover); + } + } + .navbar-menu { + background-color: inherit; + } + } + .navbar-end { + text-align: right; + } + } + + #main-section { + padding: 0 0 2.5rem 0; + + h2 { + padding-bottom: 0px; + @include ellipsis(); + i { + color: var(--highlight-primary); + } + } + .media.no-subtitle { + display: flex; + align-items: center; + } + + .media-left { + margin-inline-end: 0.5rem; + } + + .media-content { + overflow: hidden; + text-overflow: inherit; + } + + .tag { + color: var(--highlight-secondary); + background-color: var(--highlight-secondary); + position: absolute; + bottom: 1rem; + right: -0.2rem; + width: 3px; + overflow: hidden; + transition: all 0.2s ease-out; + padding: 0; + + .tag-text { + display: none; + } + } + + .card { + border: 1px solid transparent; + border-radius: 0.75rem; + box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); + transition: cubic-bezier(0.165, 0.84, 0.44, 1) 300ms; + overflow: visible; + + a { + outline: none; + } + } + + .card:hover { + transform: translate(0, -3px); + + .tag { + width: auto; + color: #ffffff; + padding: 0 0.75em; + + .tag-text { + display: block; + } + } + } + + .card-content { + height: 84px; + padding: 1.1rem; + } + + .layout-vertical { + h2.group-title { + padding-bottom: 0.75rem; + } + + .card { + border-radius: 0; + } + + .column div:first-of-type .card { + border-top-left-radius: 0.75rem; + border-top-right-radius: 0.75rem; + } + + .column div:last-child .card { + border-bottom-left-radius: 0.75rem; + border-bottom-right-radius: 0.75rem; + } + } + + .title { + font-size: 1.1em; + line-height: 1.2em; + font-weight: 500; + margin-bottom: 4px; + @include ellipsis(); + } + + .subtitle { + font-size: 0.9em; + font-weight: 300; + @include ellipsis(); + } + + .container { + padding: 1.2rem 0.75rem; + } + + .message { + margin-top: 45px; + box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); + + .message-header { + font-weight: bold; + } + + .message-body { + border: none; + } + } + + .media.no-subtitle { + display: flex; + align-items: center; + } + + .media-content { + overflow: hidden; + text-overflow: inherit; + } + + .tag { + color: var(--highlight-secondary); + background-color: var(--highlight-secondary); + position: absolute; + bottom: 1rem; + right: -0.2rem; + width: 3px; + overflow: hidden; + transition: all 0.2s ease-out; + padding: 0; + + .tag-text { + display: none; + } + } + + .card { + border: none; + border-radius: 0.75rem; + box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); + transition: cubic-bezier(0.165, 0.84, 0.44, 1) 300ms; + overflow: visible; + + a { + outline: none; + } + } + + .card:hover { + transform: translate(0, -3px); + + .tag { + width: auto; + color: #ffffff; + padding: 0 0.75em; + + .tag-text { + display: block; + } + } + } + + .card-content { + height: 85px; + padding: 1.3rem; + } + + .layout-vertical { + h2.group-title { + padding-bottom: 0.75rem; + } + + .card { + border-radius: 0; + } + + .column div:first-of-type .card { + border-top-left-radius: 0.75rem; + border-top-right-radius: 0.75rem; + } + + .column div:last-child .card { + border-bottom-left-radius: 0.75rem; + border-bottom-right-radius: 0.75rem; + } + } + } + + + .footer { + position: fixed; + left: 0; + right: 0; + bottom: 0; + padding: 0.5rem; + text-align: left; + color: #676767; + font-size: 0.85rem; + transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms; + } + + .no-footer { + #main-section { + padding-bottom: 0; + } + + .footer { + display: none; + } + } + + .search-bar { + position: relative; + display: inline-block; + input { + border: none; + background-color: var(--highlight-hover); + border-radius: 5px; + margin-top: 2px; + padding: 2px 12px 2px 30px; + transition: all 100ms linear; + color: #ffffff; + height: 30px; + width: 100px; + + &:focus { + color: #000000; + width: 250px; + background-color: #ffffff; + } + } + + .search-label::before { + font-family: "Font Awesome 6 Free"; + position: absolute; + top: 14px; + left: 16px; + content: "\f002"; + font-weight: 900; + width: 20px; + height: 20px; + color: #ffffff; + } + + &:focus-within .search-label::before { + color: #6e6e6e; + } + } + + .offline-message { + text-align: center; + margin: 35px 0; + + i { + font-size: 2rem; + } + + i.fa-redo-alt { + font-size: 1.3rem; + line-height: 1rem; + vertical-align: middle; + cursor: pointer; + color: #3273dc; + } + } + } + + .group-subtitle { + + } + + .group-logo { + float: left; + } + } + \ No newline at end of file diff --git a/src/assets/components/highlights.scss b/src/assets/components/highlights.scss new file mode 100644 index 0000000..b27f4f9 --- /dev/null +++ b/src/assets/components/highlights.scss @@ -0,0 +1,37 @@ +.highlight-primary { + --highlight-color: var(--highlight-primary); +} + +.highlight-green { + --highlight-color: var(--highlight-green); +} + +.highlight-orange { + --highlight-color: var(--highlight-orange); +} + +.highlight-pink { + --highlight-color: var(--highlight-pink); +} + +.highlight-purple { + --highlight-color: var(--highlight-purple); +} + +.highlight-red { + --highlight-color: var(--highlight-red); +} + +.highlight-blue { + --highlight-color: var(--highlight-blue); +} + +.highlight-inverted { + --highlight-color: var(--highlight-variant-inverted); +} + +*[class^="highlight-"], *[class*=" highlight-"] { + i { + color: var(--highlight-color); + } +} \ No newline at end of file diff --git a/src/assets/components/layers.scss b/src/assets/components/layers.scss new file mode 100644 index 0000000..0f9e9b9 --- /dev/null +++ b/src/assets/components/layers.scss @@ -0,0 +1 @@ +@layer framework, base, theme; \ No newline at end of file diff --git a/src/assets/defaults.yml b/src/assets/defaults.yml index 85f2698..b69eaa0 100644 --- a/src/assets/defaults.yml +++ b/src/assets/defaults.yml @@ -17,35 +17,7 @@ defaults: colorTheme: auto theme: default -colors: - light: - highlight-primary: "#3367d6" - highlight-secondary: "#4285f4" - highlight-hover: "#5a95f5" - background: "#f5f5f5" - card-background: "#ffffff" - text: "#363636" - text-header: "#ffffff" - text-title: "#303030" - text-subtitle: "#424242" - card-shadow: rgba(0, 0, 0, 0.1) - link: "#3273dc" - link-hover: "#363636" - background-image: "" - dark: - highlight-primary: "#3367d6" - highlight-secondary: "#4285f4" - highlight-hover: "#5a95f5" - background: "#131313" - card-background: "#2b2b2b" - text: "#eaeaea" - text-header: "#ffffff" - text-title: "#fafafa" - text-subtitle: "#f5f5f5" - card-shadow: rgba(0, 0, 0, 0.4) - link: "#3273dc" - link-hover: "#ffdd57" - background-image: "" +colors: ~ message: ~ links: [] diff --git a/src/assets/themes/classic.scss b/src/assets/themes/classic.scss new file mode 100644 index 0000000..8a05641 --- /dev/null +++ b/src/assets/themes/classic.scss @@ -0,0 +1,46 @@ + +// Theme colors +.light { + --highlight-primary: #3367d6; + --highlight-secondary: #4285f4; + --highlight-hover: #5a95f5; + --background: #f5f5f5; + --card-background: #ffffff; + --text: #363636; + --text-header: #ffffff; + --text-title: #303030; + --text-subtitle: #424242; + --card-shadow: rgba(0, 0, 0, 0.1); + --link: #3273dc; + --link-hover: #363636; + --background-image: none; + + --highlight-variant-inverted: #363636; +} + +.dark { + --highlight-primary: #3367d6; + --highlight-secondary: #4285f4; + --highlight-hover: #5a95f5; + --background: #131313; + --card-background: #282828; + --text: #eaeaea; + --text-header: #ffffff; + --text-title: #fafafa; + --text-subtitle: #b6b6b6; + --card-shadow: rgba(0, 0, 0, 0.4); + --link: #3273dc; + --link-hover: #144aa2; + --background-image: none; + + --highlight-variant-inverted: #f5f5f5; +} + +#app { + --highlight-blue: #444B6E; + --highlight-red: #C83E4D; + --highlight-pink: #FF6392; + --highlight-orange: #FF8A08; + --highlight-green: #22A699; + --highlight-purple: #711DB0; +} diff --git a/src/assets/themes/neon.scss b/src/assets/themes/neon.scss new file mode 100644 index 0000000..70cea6b --- /dev/null +++ b/src/assets/themes/neon.scss @@ -0,0 +1,114 @@ + +// Theme colors +.theme-neon.light { + --highlight-primary: #B5FF57; + --highlight-secondary: #B5FF57; + --highlight-hover: #e7e4e4; + --background: #ffffff; + --card-background: #ffffff; + --text: #363636; + --text-header: #1F2229; + --text-title: #303030; + --text-subtitle: #424242; + --card-shadow: rgba(46, 39, 39, 0.1); + --link: #B5FF57; + --link-hover: #8cce36; + --background-image: none; +} + +.theme-neon.dark { + --highlight-primary: #B5FF57; + --highlight-secondary: #B5FF57; + --highlight-hover: #1F2229; + --background: #14161A; + --card-background: #14161A; + --text: #eaeaea; + --text-header: #ffffff; + --text-title: #fafafa; + --text-subtitle: #768198; + --card-shadow: rgba(46, 39, 39, 0.1); + --link: #B5FF57; + --link-hover: #aeff45; + --background-image: none; +} + +// theme +.theme-neon { + --subtitle-color: #768198; + --border-radius: 0.75em; + + .first-line { + padding-top: 25px; + margin-bottom: 5px; + background-color: transparent; + + .headline { + color: var(--subtitle-color); + font-size: 1em; + } + + h1 { + font-size: 2.5em; + font-weight: bold; + } + + .dashboard-title::after { + content: ""; + position: absolute; + bottom: -4px; + width: 4em; + height: .25rem; + background-color: var(--highlight-primary); + border-radius: 2px; + } + } + + .navbar { + background-color: transparent; + } + + #bighead { + .logo { + display: none; + } + .navbar a { + color: var(--text); + + &:hover { + color: var(--text-header); + border-radius: var(--border-radius); + background-color: transparent; + } + } + } + + *[class^="highlight-"], *[class*=" highlight-"] { + .card:hover { + border: 1px solid var(--highlight-color); + } + } + + .tag { + color: var(--highlight-variant-inverted); + } + + .card { + box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1); + border: 1px solid hsl(221,14%,24%); + border-radius: var(--border-radius); + + .message { + border: 1px solid hsl(221,14%,24%); + border-radius: var(--border-radius); + } + } + + .layout-vertical .card { + margin-bottom: 0.75em; + } + + .message-body { + background-color: transparent; + } + +} \ No newline at end of file diff --git a/src/assets/themes/sui.scss b/src/assets/themes/sui.scss deleted file mode 100644 index 352fd78..0000000 --- a/src/assets/themes/sui.scss +++ /dev/null @@ -1,34 +0,0 @@ -/* - * SUI theme - * Inspired by the great https://github.com/jeroenpardon/sui start page - * Author: @bastienwirtz - */ -body #app.theme-sui { - #bighead .dashboard-title { - padding: 65px 0 0 12px; - - h1 { - margin-top: 0; - font-weight: bold; - font-size: 2.2rem; - } - } - - .navbar .navbar-item:hover { - background-color: transparent; - } - - .card, - .card:hover { - background-color: transparent; - box-shadow: none; - - .title { - font-weight: bold; - } - - .card-content { - padding: 0; - } - } -} diff --git a/src/assets/themes/walkxcode.scss b/src/assets/themes/walkxcode.scss new file mode 100644 index 0000000..5f66ae5 --- /dev/null +++ b/src/assets/themes/walkxcode.scss @@ -0,0 +1,84 @@ + +// Theme colors +.theme-walkxcode.light { + --highlight-primary: #111111; + --highlight-secondary: #fff5f2; + --highlight-hover: #bebebe; + --background: #fff5f2; + --card-background: rgba(255, 245, 242, 0.8); + --text: #000000; + --text-header: #000000; + --text-title: #000000; + --text-subtitle: #111111; + --card-shadow: rgba(0, 0, 0, 0.5) + --link: #3273dc; + --link-hover: #2e4053; + --background-image: url("assets/themes/walkxcode/wallpaper-light.webp"); +} + +.theme-walkxcode.dark { + --highlight-primary: #3367d6; + --highlight-secondary: #4285f4; + --highlight-hover: #1F2347; + --background: #12152B; + --card-background: rgba(24, 28, 58, 0.8); + --text: #eaeaea; + --text-header: #fafafa; + --text-title: #fafafa; + --text-subtitle: #8B8D9C; + --card-shadow: rgba(0, 0, 0, 0.5); + --link: #ffffff; + --link-hover: #fafafa; + --background-image: url("assets/themes/walkxcode/wallpaper.webp"); +} + +// theme +.theme-walkxcode { + --border-radius: 1rem; + + #bighead { + .first-line, .navbar, .navbar a:focus, .navbar a:hover { + background-color: rgba(0, 0, 0, 0); + } + .search-bar input { + opacity: 20%; + } + } + + .group-title { + font-family: Lato; + font-weight: 800; + } + + .titles { + font-weight: 700; + } + + .subtitle { + font-weight: 500; + } + + .card { + border-radius: var(--border-radius); + } + + .layout-vertical { + .card { + border-radius: 0; + } + + .column div:first-of-type .card { + border-top-left-radius: var(--border-radius); + border-top-right-radius: var(--border-radius); + } + + .column div:last-child .card { + border-bottom-left-radius: var(--border-radius); + border-bottom-right-radius: var(--border-radius); + } + } + + .tag { + color: var(--highlight-variant-inverted); + } +} \ No newline at end of file diff --git a/src/assets/webfonts/lato/lato-v16-latin-regular.woff b/src/assets/webfonts/lato/lato-v16-latin-regular.woff deleted file mode 100644 index 189a0fe..0000000 Binary files a/src/assets/webfonts/lato/lato-v16-latin-regular.woff and /dev/null differ diff --git a/src/assets/webfonts/lato/lato-v16-latin-regular.woff2 b/src/assets/webfonts/lato/lato-v16-latin-regular.woff2 deleted file mode 100644 index 6904b66..0000000 Binary files a/src/assets/webfonts/lato/lato-v16-latin-regular.woff2 and /dev/null differ diff --git a/src/assets/webfonts/lato/OFL.txt b/src/assets/webfonts/noto/OFL.txt similarity index 95% rename from src/assets/webfonts/lato/OFL.txt rename to src/assets/webfonts/noto/OFL.txt index dfca0da..09f020b 100644 --- a/src/assets/webfonts/lato/OFL.txt +++ b/src/assets/webfonts/noto/OFL.txt @@ -1,8 +1,8 @@ -Copyright (c) 2010-2014 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato" +Copyright 2022 The Noto Project Authors (https://github.com/notofonts/latin-greek-cyrillic) This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: -http://scripts.sil.org/OFL +https://openfontlicense.org ----------------------------------------------------------- diff --git a/src/assets/webfonts/noto/README.txt b/src/assets/webfonts/noto/README.txt new file mode 100644 index 0000000..4958bee --- /dev/null +++ b/src/assets/webfonts/noto/README.txt @@ -0,0 +1,136 @@ +Noto Sans Variable Font +======================= + +This download contains Noto Sans as both variable fonts and static fonts. + +Noto Sans is a variable font with these axes: + wdth + wght + +This means all the styles are contained in these files: + NotoSans-VariableFont_wdth,wght.ttf + NotoSans-Italic-VariableFont_wdth,wght.ttf + +If your app fully supports variable fonts, you can now pick intermediate styles +that aren’t available as static fonts. Not all apps support variable fonts, and +in those cases you can use the static font files for Noto Sans: + static/NotoSans_ExtraCondensed-Thin.ttf + static/NotoSans_ExtraCondensed-ExtraLight.ttf + static/NotoSans_ExtraCondensed-Light.ttf + static/NotoSans_ExtraCondensed-Regular.ttf + static/NotoSans_ExtraCondensed-Medium.ttf + static/NotoSans_ExtraCondensed-SemiBold.ttf + static/NotoSans_ExtraCondensed-Bold.ttf + static/NotoSans_ExtraCondensed-ExtraBold.ttf + static/NotoSans_ExtraCondensed-Black.ttf + static/NotoSans_Condensed-Thin.ttf + static/NotoSans_Condensed-ExtraLight.ttf + static/NotoSans_Condensed-Light.ttf + static/NotoSans_Condensed-Regular.ttf + static/NotoSans_Condensed-Medium.ttf + static/NotoSans_Condensed-SemiBold.ttf + static/NotoSans_Condensed-Bold.ttf + static/NotoSans_Condensed-ExtraBold.ttf + static/NotoSans_Condensed-Black.ttf + static/NotoSans_SemiCondensed-Thin.ttf + static/NotoSans_SemiCondensed-ExtraLight.ttf + static/NotoSans_SemiCondensed-Light.ttf + static/NotoSans_SemiCondensed-Regular.ttf + static/NotoSans_SemiCondensed-Medium.ttf + static/NotoSans_SemiCondensed-SemiBold.ttf + static/NotoSans_SemiCondensed-Bold.ttf + static/NotoSans_SemiCondensed-ExtraBold.ttf + static/NotoSans_SemiCondensed-Black.ttf + static/NotoSans-Thin.ttf + static/NotoSans-ExtraLight.ttf + static/NotoSans-Light.ttf + static/NotoSans-Regular.ttf + static/NotoSans-Medium.ttf + static/NotoSans-SemiBold.ttf + static/NotoSans-Bold.ttf + static/NotoSans-ExtraBold.ttf + static/NotoSans-Black.ttf + static/NotoSans_ExtraCondensed-ThinItalic.ttf + static/NotoSans_ExtraCondensed-ExtraLightItalic.ttf + static/NotoSans_ExtraCondensed-LightItalic.ttf + static/NotoSans_ExtraCondensed-Italic.ttf + static/NotoSans_ExtraCondensed-MediumItalic.ttf + static/NotoSans_ExtraCondensed-SemiBoldItalic.ttf + static/NotoSans_ExtraCondensed-BoldItalic.ttf + static/NotoSans_ExtraCondensed-ExtraBoldItalic.ttf + static/NotoSans_ExtraCondensed-BlackItalic.ttf + static/NotoSans_Condensed-ThinItalic.ttf + static/NotoSans_Condensed-ExtraLightItalic.ttf + static/NotoSans_Condensed-LightItalic.ttf + static/NotoSans_Condensed-Italic.ttf + static/NotoSans_Condensed-MediumItalic.ttf + static/NotoSans_Condensed-SemiBoldItalic.ttf + static/NotoSans_Condensed-BoldItalic.ttf + static/NotoSans_Condensed-ExtraBoldItalic.ttf + static/NotoSans_Condensed-BlackItalic.ttf + static/NotoSans_SemiCondensed-ThinItalic.ttf + static/NotoSans_SemiCondensed-ExtraLightItalic.ttf + static/NotoSans_SemiCondensed-LightItalic.ttf + static/NotoSans_SemiCondensed-Italic.ttf + static/NotoSans_SemiCondensed-MediumItalic.ttf + static/NotoSans_SemiCondensed-SemiBoldItalic.ttf + static/NotoSans_SemiCondensed-BoldItalic.ttf + static/NotoSans_SemiCondensed-ExtraBoldItalic.ttf + static/NotoSans_SemiCondensed-BlackItalic.ttf + static/NotoSans-ThinItalic.ttf + static/NotoSans-ExtraLightItalic.ttf + static/NotoSans-LightItalic.ttf + static/NotoSans-Italic.ttf + static/NotoSans-MediumItalic.ttf + static/NotoSans-SemiBoldItalic.ttf + static/NotoSans-BoldItalic.ttf + static/NotoSans-ExtraBoldItalic.ttf + static/NotoSans-BlackItalic.ttf + +Get started +----------- + +1. Install the font files you want to use + +2. Use your app's font picker to view the font family and all the +available styles + +Learn more about variable fonts +------------------------------- + + https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts + https://variablefonts.typenetwork.com + https://medium.com/variable-fonts + +In desktop apps + + https://theblog.adobe.com/can-variable-fonts-illustrator-cc + https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts + +Online + + https://developers.google.com/fonts/docs/getting_started + https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide + https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts + +Installing fonts + + MacOS: https://support.apple.com/en-us/HT201749 + Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux + Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows + +Android Apps + + https://developers.google.com/fonts/docs/android + https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts + +License +------- +Please read the full license text (OFL.txt) to understand the permissions, +restrictions and requirements for usage, redistribution, and modification. + +You can use them in your products & projects – print or digital, +commercial or otherwise. + +This isn't legal advice, please consider consulting a lawyer and see the full +license for all details. diff --git a/src/assets/webfonts/noto/noto-latin-normal.woff2 b/src/assets/webfonts/noto/noto-latin-normal.woff2 new file mode 100644 index 0000000..ec71ccd Binary files /dev/null and b/src/assets/webfonts/noto/noto-latin-normal.woff2 differ diff --git a/src/assets/webfonts/raleway/OFL.txt b/src/assets/webfonts/raleway/OFL.txt deleted file mode 100644 index 3219811..0000000 --- a/src/assets/webfonts/raleway/OFL.txt +++ /dev/null @@ -1,95 +0,0 @@ -Copyright (c) 2010, Matt McInerney (matt@pixelspread.com), -Copyright (c) 2011, Pablo Impallari (www.impallari.com|impallari@gmail.com), -Copyright (c) 2011, Rodrigo Fuenzalida (www.rfuenzalida.com|hello@rfuenzalida.com), with Reserved Font Name Raleway - -This Font Software is licensed under the SIL Open Font License, Version 1.1. -This license is copied below, and is also available with a FAQ at: -http://scripts.sil.org/OFL - - ------------------------------------------------------------ -SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 ------------------------------------------------------------ - -PREAMBLE -The goals of the Open Font License (OFL) are to stimulate worldwide -development of collaborative font projects, to support the font creation -efforts of academic and linguistic communities, and to provide a free and -open framework in which fonts may be shared and improved in partnership -with others. - -The OFL allows the licensed fonts to be used, studied, modified and -redistributed freely as long as they are not sold by themselves. The -fonts, including any derivative works, can be bundled, embedded, -redistributed and/or sold with any software provided that any reserved -names are not used by derivative works. The fonts and derivatives, -however, cannot be released under any other type of license. The -requirement for fonts to remain under this license does not apply -to any document created using the fonts or their derivatives. - -DEFINITIONS -"Font Software" refers to the set of files released by the Copyright -Holder(s) under this license and clearly marked as such. This may -include source files, build scripts and documentation. - -"Reserved Font Name" refers to any names specified as such after the -copyright statement(s). - -"Original Version" refers to the collection of Font Software components as -distributed by the Copyright Holder(s). - -"Modified Version" refers to any derivative made by adding to, deleting, -or substituting -- in part or in whole -- any of the components of the -Original Version, by changing formats or by porting the Font Software to a -new environment. - -"Author" refers to any designer, engineer, programmer, technical -writer or other person who contributed to the Font Software. - -PERMISSION & CONDITIONS -Permission is hereby granted, free of charge, to any person obtaining -a copy of the Font Software, to use, study, copy, merge, embed, modify, -redistribute, and sell modified and unmodified copies of the Font -Software, subject to the following conditions: - -1) Neither the Font Software nor any of its individual components, -in Original or Modified Versions, may be sold by itself. - -2) Original or Modified Versions of the Font Software may be bundled, -redistributed and/or sold with any software, provided that each copy -contains the above copyright notice and this license. These can be -included either as stand-alone text files, human-readable headers or -in the appropriate machine-readable metadata fields within text or -binary files as long as those fields can be easily viewed by the user. - -3) No Modified Version of the Font Software may use the Reserved Font -Name(s) unless explicit written permission is granted by the corresponding -Copyright Holder. This restriction only applies to the primary font name as -presented to the users. - -4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font -Software shall not be used to promote, endorse or advertise any -Modified Version, except to acknowledge the contribution(s) of the -Copyright Holder(s) and the Author(s) or with their explicit written -permission. - -5) The Font Software, modified or unmodified, in part or in whole, -must be distributed entirely under this license, and must not be -distributed under any other license. The requirement for fonts to -remain under this license does not apply to any document created -using the Font Software. - -TERMINATION -This license becomes null and void if any of the above conditions are -not met. - -DISCLAIMER -THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT -OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE -COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL -DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM -OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/src/assets/webfonts/raleway/raleway-v14-latin-regular.woff b/src/assets/webfonts/raleway/raleway-v14-latin-regular.woff deleted file mode 100644 index ab3a51b..0000000 Binary files a/src/assets/webfonts/raleway/raleway-v14-latin-regular.woff and /dev/null differ diff --git a/src/assets/webfonts/raleway/raleway-v14-latin-regular.woff2 b/src/assets/webfonts/raleway/raleway-v14-latin-regular.woff2 deleted file mode 100644 index 86b505e..0000000 Binary files a/src/assets/webfonts/raleway/raleway-v14-latin-regular.woff2 and /dev/null differ diff --git a/src/assets/webfonts/webfonts.scss b/src/assets/webfonts/webfonts.scss index df3b56b..3eccf00 100644 --- a/src/assets/webfonts/webfonts.scss +++ b/src/assets/webfonts/webfonts.scss @@ -1,23 +1,11 @@ -/* raleway-regular - latin */ +/* latin */ @font-face { - font-family: "Raleway"; + font-family: 'Noto Sans'; font-style: normal; - font-weight: 400; + font-weight: 100 900; + font-stretch: 100%; font-display: swap; - src: local("Raleway"), local("Raleway-Regular"), - url("./webfonts/raleway/raleway-v14-latin-regular.woff2") format("woff2"), - /* Chrome 26+, Opera 23+, Firefox 39+ */ - url("./webfonts/raleway/raleway-v14-latin-regular.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ + src: url("./noto/noto-latin-normal.woff2") format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } -/* lato-regular - latin */ -@font-face { - font-family: "Lato"; - font-style: normal; - font-weight: 400; - font-display: swap; - src: local("Lato Regular"), local("Lato-Regular"), - url("./webfonts/lato/lato-v16-latin-regular.woff2") format("woff2"), - /* Chrome 26+, Opera 23+, Firefox 39+ */ - url("./webfonts/lato/lato-v16-latin-regular.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ -} diff --git a/src/components/DynamicTheme.vue b/src/components/DynamicTheme.vue index 2d37fcb..913c112 100644 --- a/src/components/DynamicTheme.vue +++ b/src/components/DynamicTheme.vue @@ -1,11 +1,11 @@