0.2.29 • Published 5 months ago

digitaltolk-ui v0.2.29

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

Vue 3 + Vite UI Library

This component library is built using the Naive-UI framework, serving as a comprehensive UI toolkit tailored for Digitaltolk applications.

Quickstart

Install this library with peer dependencies:

npm i digitaltolk-ui

Then, import and use individual components:

<template>
	<base-radio label="Confirm" :value="true" />
</template>

<script setup>
import {
	BaseAutoComplete,
	BaseButton,
	BaseCheckbox,
	BaseDatePicker,
	BaseForm,
	BaseFormItem,
	BaseFormItemGi,
	BaseIcons,
	BasePagination,
	BaseRadio,
	BaseSelect,
	BaseSwitch,
	BaseTextField,
	BaseTimePicker,
	BaseTooltip,
	BaseUpload,
	BaseModalDialog,
} from "digitaltolk-ui";
import "digitaltolk-ui/dist/style.css";
</script>

You can also setup Theme colors.

import { configureTheme } from "digitaltolk-ui";

configureTheme({
	colors: {
		primaryColor: "#d63968",
		primaryTextColor: "#fff",
		primaryTextOutlineColor: "#231f20",
		primaryColorHover: "color-hover",
		primaryColorPressed: "color-pressed",
		primaryColorLoading: "color-loading",

		secondaryColor: "#231f20",
		secondaryTextColor: "#231f20",
		secondaryTextOutlineColor: "#231f20",
		secondaryColorHover: "your-color",
		secondaryColorLoading: "your-color",

		disabledColor: "#ced0de",
		defaultColor: "#d9d9d9",

		darkGray: "#231f20",
		lightGray: "#626272",
		lighterGray: "#a0a0a0",
		lightestGray: "#eaeaea",
		nextLightestGray: "#f6f6f6",
	},
});

Notes

Our theming system supports the following color formats:

  1. HEX Color Codes Example: #ff5733, #FFF
  2. RGB and RGBA RGB Example: rgb(255, 87, 51) RGBA Example: rgba(255, 87, 51, 0.5) (where the last number is the alpha channel for opacity)
  3. HSL and HSLA HSL Example: hsl(9, 100%, 60%) HSLA Example: hsla(9, 100%, 60%, 0.5)

Docs

0.2.29

5 months ago

0.2.27

5 months ago

0.2.26

5 months ago

0.2.25

5 months ago

0.2.28

5 months ago

0.2.24

5 months ago

0.2.23

5 months ago

0.2.21

5 months ago

0.2.20

5 months ago

0.2.19

5 months ago

0.2.18

5 months ago

0.2.17

5 months ago

0.2.16

5 months ago

0.2.15

6 months ago

0.2.14

6 months ago

0.2.13

6 months ago

0.2.12

6 months ago

0.2.11

6 months ago

0.2.1

6 months ago

0.2.0

6 months ago

0.1.79

6 months ago

0.1.78

6 months ago

0.1.77

6 months ago

0.1.76

6 months ago

0.1.75

6 months ago

0.1.74

6 months ago

0.1.73

6 months ago

0.1.72

6 months ago

0.1.71

6 months ago

0.1.7

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.1.1

9 months ago

0.1.0

9 months ago