diff --git a/front/src/composables/colors.ts b/front/src/composables/colors.ts index f6faca3f5..460549037 100644 --- a/front/src/composables/colors.ts +++ b/front/src/composables/colors.ts @@ -1,6 +1,4 @@ -import { toValue, type MaybeRefOrGetter } from "@vueuse/core" -import type { Entry, Join, KeysOfUnion, RequireExactlyOne, RequireOneOrNone, Simplify, SingleKeyObject, UnionToIntersection } from "type-fest" -import { computed } from 'vue' +import type { KeysOfUnion } from "type-fest" export type DefaultProps = | { default?: true } diff --git a/front/ui-docs/using-color.md b/front/ui-docs/using-color.md index 5dd24d72c..a60c49f55 100644 --- a/front/ui-docs/using-color.md +++ b/front/ui-docs/using-color.md @@ -2,6 +2,8 @@ import { color } from "~/composables/colors.ts" import Button from "~/components/ui/Button.vue" import Card from "~/components/ui/Card.vue" +import Layout from "~/components/ui/Layout.vue" +import Spacer from "~/components/ui/layout/Spacer.vue" # Using Color @@ -10,21 +12,29 @@ import Card from "~/components/ui/Card.vue" [Alerts](components/ui/alert) support [Pastel](#pastel) attributes. [Buttons](components/ui/button) accept [Color](#color) and [Variant](#variant) attributes. [Cards](components/ui/card) accept [Pastel](#pastel), [Variant](#variant), [Neutral](#neutral) and [Raised](#raised) attributes. + + ```vue-html - + ``` - +
+ +
+ +
## Add color to a any component or Html tag -1. Choose a +1. Choose either: - [base color](#colors) (`primary | secondary | destructive`) or - [pastel color](#pastel) (`blue | red | green | yellow`) or - [neutral beige or gray](#neutral) (`default`) for surfaces 2. Choose a [variant](#color-variants) (`solid | ghost | outline`) 3. Add [interactivity and raise the surface](#interactive-andor-raised) + + ```vue