@kayord/ui 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -50
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -9,6 +9,7 @@ Pnpm command to install ui library.
9
9
  ```bash
10
10
  # create a new project in the current directory
11
11
  pnpm add -D @kayord/ui
12
+ pnpm add -D @kayord/tw-plugin
12
13
  ```
13
14
 
14
15
  ### Manual Setup New Project
@@ -16,7 +17,6 @@ pnpm add -D @kayord/ui
16
17
  ```bash
17
18
  # Setup new sveltekit project
18
19
  npm create svelte@latest my-app
19
-
20
20
  npx svelte-add@latest tailwindcss
21
21
  pnpm i
22
22
  ```
@@ -35,63 +35,17 @@ module.exports = {
35
35
  ```
36
36
 
37
37
  ```ts
38
+ // tailwind.config.ts
39
+
38
40
  import type { Config } from "tailwindcss";
39
41
  import { fontFamily } from "tailwindcss/defaultTheme";
40
- import { kayordPlugin } from "@kayord/ui";
41
- // import forms from '@tailwindcss/forms';
42
+ import { kayordPlugin } from '@kayord/tw-plugin';
42
43
 
43
44
  export default {
44
45
  darkMode: ["class"],
45
46
  content: ["./src/**/*.{html,js,svelte,ts}", "./node_modules/@kayord/ui/**/*.{html,js,svelte,ts}"],
46
47
  theme: {
47
- container: {
48
- center: true,
49
- padding: "2rem",
50
- screens: {
51
- "2xl": "1400px",
52
- },
53
- },
54
48
  extend: {
55
- colors: {
56
- border: "hsl(var(--border))",
57
- input: "hsl(var(--input))",
58
- ring: "hsl(var(--ring))",
59
- background: "hsl(var(--background))",
60
- foreground: "hsl(var(--foreground))",
61
- primary: {
62
- DEFAULT: "hsl(var(--primary))",
63
- foreground: "hsl(var(--primary-foreground))",
64
- },
65
- secondary: {
66
- DEFAULT: "hsl(var(--secondary))",
67
- foreground: "hsl(var(--secondary-foreground))",
68
- },
69
- destructive: {
70
- DEFAULT: "hsl(var(--destructive))",
71
- foreground: "hsl(var(--destructive-foreground))",
72
- },
73
- muted: {
74
- DEFAULT: "hsl(var(--muted))",
75
- foreground: "hsl(var(--muted-foreground))",
76
- },
77
- accent: {
78
- DEFAULT: "hsl(var(--accent))",
79
- foreground: "hsl(var(--accent-foreground))",
80
- },
81
- popover: {
82
- DEFAULT: "hsl(var(--popover))",
83
- foreground: "hsl(var(--popover-foreground))",
84
- },
85
- card: {
86
- DEFAULT: "hsl(var(--card))",
87
- foreground: "hsl(var(--card-foreground))",
88
- },
89
- },
90
- borderRadius: {
91
- lg: "var(--radius)",
92
- md: "calc(var(--radius) - 2px)",
93
- sm: "calc(var(--radius) - 4px)",
94
- },
95
49
  fontFamily: {
96
50
  sans: [...fontFamily.sans],
97
51
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kayord/ui",
3
3
  "private": false,
4
- "version": "0.0.16",
4
+ "version": "0.0.17",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -25,6 +25,7 @@
25
25
  "clsx": "^2.0.0",
26
26
  "formsnap": "^0.2.1",
27
27
  "lucide-svelte": "^0.290.0",
28
+ "mode-watcher": "^0.0.5",
28
29
  "sveltekit-superforms": "^1.8.0",
29
30
  "tailwind-merge": "^2.0.0",
30
31
  "tailwind-variants": "^0.1.18",
@@ -41,7 +42,6 @@
41
42
  "eslint": "^8.52.0",
42
43
  "eslint-config-prettier": "^9.0.0",
43
44
  "eslint-plugin-svelte": "^2.34.0",
44
- "mode-watcher": "^0.0.5",
45
45
  "postcss": "^8.4.31",
46
46
  "postcss-load-config": "^4.0.1",
47
47
  "prettier": "^3.0.3",