diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css index cc15915f..92c5e0c9 100644 --- a/assets/css/tailwind.css +++ b/assets/css/tailwind.css @@ -6,10 +6,11 @@ color: var(--color-info); background-color: rgb(27, 42, 56); } */ -:root { +:root, .defaultTheme { --color-primary: #0b192e; --color-secondary: #182b45; --color-tertiary: #0b3341; + --color-quaternary: #1c3250; --color-accent: #0cc9ab; --color-black: #202121; @@ -28,6 +29,52 @@ --color-info: #177edc; } +@layer base { + html[data-theme="accessibility"], .accessibilityTheme{ + --color-primary: #fff; + --color-secondary: #f1f5f9; + --color-tertiary: #e2e8f0; + --color-quaternary: #cbd5e1; + --color-accent: #055E4F; /* 7.04:1 contrast to #f1f5f9 */ + + --color-black: #fff; + --color-dark: #000; + /*--color-transparent: #fff;*/ + --color-light: lime; + --color-white: #000; + /* text*/ + --color-heading: #777; + --color-subheading: #333; + --color-body: #555; + /* + --color-error: #ff0000; + --color-success: ; + --color-info: ; + --color-warning: ; + */ + + + * { + font-family: "Lexend" !important; + /* font-size: clamp(20px, 1em, 100px) !important; */ + line-height: 1.6 !important; + letter-spacing: 2.5px !important; + } + p,a,label,h1,h2,h3,h4,h5,h6 { + color: #000; + } + /* + .text-heading-4, .text-body-1, .text-body-2, .text-subheading, .text-subheading-1, p, a, button { + font-size: 20px !important; + } + */ + :focus { + outline: none; + box-shadow: 0 0 0 5px #FFD700; + } + } +} + /* ======================================================= Fonts */ @font-face { font-family: "Ubuntu Mono"; @@ -51,6 +98,14 @@ U+FEFF, U+FFFD; } +@font-face { + font-family: "Lexend"; + src: url(~/public/fonts/Lexend/Lexend-Regular.ttf) format("truetype"); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, + U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, + U+FEFF, U+FFFD; +} + /* ======================================================= Transitions */ .slide-up-enter-active, .slide-up-leave-active { @@ -493,4 +548,4 @@ [data-tooltip=""]::after { display: none !important; } -} +} \ No newline at end of file diff --git a/components/Dialog.vue b/components/Dialog.vue index 43222f81..570b1004 100644 --- a/components/Dialog.vue +++ b/components/Dialog.vue @@ -22,7 +22,7 @@ -
+
@@ -59,6 +59,13 @@ import { defineComponent } from 'vue'; import { useI18n } from 'vue-i18n'; export default defineComponent({ + computed: { + logoSrc() { + return document.documentElement.getAttribute('data-theme') === 'accessibility' + ? '/images/logo-black-text.png' + : '/images/logo-text.png'; + } + }, setup() { const { t } = useI18n(); @@ -103,6 +110,6 @@ export default defineComponent({ diff --git a/components/Navbar.vue b/components/Navbar.vue index 68438a67..02325dc8 100644 --- a/components/Navbar.vue +++ b/components/Navbar.vue @@ -3,7 +3,7 @@