diff --git a/.eslintrc.js b/.eslintrc.js index f36ff8c..d02edce 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -10,7 +10,8 @@ module.exports = { defineEmits: true, defineProps: true, __APP_ENV__: true, - __basedir: true + __basedir: true, + __tailwindCSSTaxonPagesConfigPath: true }, rules: { 'vue/no-v-html': 'off' diff --git a/config/header.yml b/config/header.yml index 9c9aa06..977c427 100644 --- a/config/header.yml +++ b/config/header.yml @@ -1,8 +1,6 @@ --- header_logo_url: https://i.ibb.co/5n5jMWL/SiteLogo.jpg header_logo_text: Orthoptera Species File - header_class: bg-[#89a741] - header_link_class: text-white header_links: - label: Home link: / diff --git a/config/vendor/tailwind.config.js b/config/vendor/tailwind.config.js index e56c9cb..5e5c87d 100644 --- a/config/vendor/tailwind.config.js +++ b/config/vendor/tailwind.config.js @@ -1,5 +1,5 @@ module.exports = { presets: [ - require(__basedir + '/tailwind.config.js') + require(__tailwindCSSTaxonPagesConfigPath) ] } diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 5eb6aba..b3b853e 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -2,25 +2,3 @@ @import 'leaflet/dist/leaflet.css'; @import '@/assets/css/leaflet.css'; @import '@/assets/css/webkit.css'; - -* { - box-sizing: content-box; -} - -body { - background-color: #f5f7fb; - @apply - font-main - dark:bg-slate-900 - dark:text-slate-400; -} - -a { - @apply - text-primary-500 - hover:text-gray-900; -} - -.dark { - color-scheme: dark; -} diff --git a/src/assets/css/tailwind.css b/src/assets/css/tailwind.css index b5c61c9..dc6e7c3 100644 --- a/src/assets/css/tailwind.css +++ b/src/assets/css/tailwind.css @@ -1,3 +1,54 @@ @tailwind base; @tailwind components; @tailwind utilities; + +@layer base { + :root { + --color-primary: 137, 167, 65; + --color-primary-content: 255, 255, 255; + + --color-secondary: 14, 165, 233; + --color-secondary-content: 255, 255, 255; + + --color-base-0: 255, 255, 255; + --color-base-100: 245, 247, 251; + --color-base-200: 226, 232, 240; + --color-base-300: 203, 213, 225; + --color-base-content: 0, 0, 0; + } + + .dark { + --color-primary: 14, 165, 233; + --color-primary-content: 255, 255, 255; + + --color-secondary: 14, 165, 233; + --color-secondary-content: 255, 255, 255; + + --color-base-0: 17,24,39; + --color-base-100: 15, 23, 42; + --color-base-200: 30, 41, 59; + --color-base-300: 30, 41, 59; + --color-base-content: 255, 255, 255; + } + + * { + box-sizing: content-box; + } + + body { + @apply + font-main + bg-base-100 + dark:text-slate-400; + } + + a { + @apply + text-secondary-color; + hover:text-gray-900; + } + + .dark { + color-scheme: dark; + } +} \ No newline at end of file diff --git a/src/components/Autocomplete/Autocomplete.global.vue b/src/components/Autocomplete/Autocomplete.global.vue index 2ddb645..8007f47 100644 --- a/src/components/Autocomplete/Autocomplete.global.vue +++ b/src/components/Autocomplete/Autocomplete.global.vue @@ -9,18 +9,7 @@ w-fit" >