From e583c51a542fe8bb232d3a54ccd902b36ac428cc Mon Sep 17 00:00:00 2001 From: upsiflu Date: Mon, 16 Dec 2024 00:07:09 +0100 Subject: [PATCH] feat(ui): color (see "using color" in dev:ui-docs) --- front/package.json | 1 + front/src/components/ui/Alert.vue | 11 +- front/src/components/ui/Button.vue | 121 ++++++-- front/src/components/ui/Card.vue | 14 +- front/src/components/ui/Link.vue | 26 +- front/src/components/ui/Modal.vue | 2 +- front/src/components/ui/Pill.vue | 7 +- front/src/components/ui/Textarea.vue | 14 +- front/src/components/ui/alert.scss | 50 ++-- front/src/components/ui/pill.scss | 12 +- front/src/composables/colors.ts | 71 +++-- front/src/style/colors.scss | 257 ++++++++++++---- front/src/ui/components/Sidebar.vue | 5 +- front/src/ui/components/UploadModal.vue | 2 +- front/ui-docs/components/ui/alert.md | 38 +-- front/ui-docs/components/ui/button.md | 80 +++-- front/ui-docs/components/ui/layout/spacer.md | 57 ++-- front/ui-docs/components/ui/modal.md | 24 +- front/ui-docs/components/ui/pill.md | 50 +--- front/ui-docs/using-color.md | 291 +++++++++++++++++++ front/ui-docs/using-components.md | 91 +++++- front/yarn.lock | 5 + 22 files changed, 932 insertions(+), 297 deletions(-) diff --git a/front/package.json b/front/package.json index d187eb33f..b13542d99 100644 --- a/front/package.json +++ b/front/package.json @@ -52,6 +52,7 @@ "standardized-audio-context": "25.3.60", "text-clipper": "2.2.0", "transliteration": "2.3.5", + "type-fest": "4.30.1", "universal-cookie": "4.0.4", "vite-plugin-pwa": "0.14.4", "vue": "3.5.13", diff --git a/front/src/components/ui/Alert.vue b/front/src/components/ui/Alert.vue index 2a6a10300..d16d309b5 100644 --- a/front/src/components/ui/Alert.vue +++ b/front/src/components/ui/Alert.vue @@ -1,14 +1,15 @@