0.2.29 • Published 2 years ago

digitaltolk-ui v0.2.29

Weekly downloads
-
License
-
Repository
-
Last release
2 years 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

2 years ago

0.2.27

2 years ago

0.2.26

2 years ago

0.2.25

2 years ago

0.2.28

2 years ago

0.2.24

2 years ago

0.2.23

2 years ago

0.2.21

2 years ago

0.2.20

2 years ago

0.2.19

2 years ago

0.2.18

2 years ago

0.2.17

2 years ago

0.2.16

2 years ago

0.2.15

2 years ago

0.2.14

2 years ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.79

2 years ago

0.1.78

2 years ago

0.1.77

2 years ago

0.1.76

2 years ago

0.1.75

2 years ago

0.1.74

2 years ago

0.1.73

2 years ago

0.1.72

2 years ago

0.1.71

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago