bmj-ui 1.0.7 → 1.0.9

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.
package/README.md CHANGED
@@ -1,7 +1,170 @@
1
- #Installation
1
+ # Installation
2
2
 
3
3
  Install the library and its peer dependencies via your preferred package manager.
4
4
 
5
5
  `npm install bmj-ui lucide-react motion recharts`
6
6
 
7
7
  Ensure you have tailwindcss and typescript configured in your project.
8
+
9
+ # css setup:
10
+
11
+ please add the following css to your index.css or your main css file:
12
+
13
+ ```
14
+ @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");
15
+ @import "tailwindcss";
16
+ @import "tw-animate-css";
17
+ @import "shadcn/tailwind.css";
18
+
19
+ @custom-variant dark (&:is(.dark *));
20
+
21
+ @theme inline {
22
+ --font-heading: "Inter", var(--font-sans);
23
+ --font-sans: "Inter", sans-serif;
24
+ --font-mono: "JetBrains Mono", monospace;
25
+ --color-sidebar-ring: var(--sidebar-ring);
26
+ --color-sidebar-border: var(--sidebar-border);
27
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
28
+ --color-sidebar-accent: var(--sidebar-accent);
29
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
30
+ --color-sidebar-primary: var(--sidebar-primary);
31
+ --color-sidebar-foreground: var(--sidebar-foreground);
32
+ --color-sidebar: var(--sidebar);
33
+ --color-chart-5: var(--chart-5);
34
+ --color-chart-4: var(--chart-4);
35
+ --color-chart-3: var(--chart-3);
36
+ --color-chart-2: var(--chart-2);
37
+ --color-chart-1: var(--chart-1);
38
+ --color-ring: var(--ring);
39
+ --color-input: var(--input);
40
+ --color-border: var(--border);
41
+ --color-destructive: var(--destructive);
42
+ --color-accent-foreground: var(--accent-foreground);
43
+ --color-accent: var(--accent);
44
+ --color-muted-foreground: var(--muted-foreground);
45
+ --color-muted: var(--muted);
46
+ --color-secondary-foreground: var(--secondary-foreground);
47
+ --color-secondary: var(--secondary);
48
+ --color-primary-foreground: var(--primary-foreground);
49
+ --color-primary: var(--primary);
50
+ --color-popover-foreground: var(--popover-foreground);
51
+ --color-popover: var(--popover);
52
+ --color-card-foreground: var(--card-foreground);
53
+ --color-card: var(--card);
54
+ --color-foreground: var(--foreground);
55
+ --color-background: var(--background);
56
+ --radius-sm: calc(var(--radius) * 0.6);
57
+ --radius-md: calc(var(--radius) * 0.8);
58
+ --radius-lg: var(--radius);
59
+ --radius-xl: calc(var(--radius) * 1.4);
60
+ --radius-2xl: calc(var(--radius) * 1.8);
61
+ --radius-3xl: calc(var(--radius) * 2.2);
62
+ --radius-4xl: calc(var(--radius) * 2.6);
63
+
64
+ --breakpoint-xs: 480px;
65
+ }
66
+
67
+ :root {
68
+ --background: oklch(1 0 0);
69
+ --foreground: oklch(0.145 0 0);
70
+ --card: oklch(1 0 0);
71
+ --card-foreground: oklch(0.145 0 0);
72
+ --popover: oklch(1 0 0);
73
+ --popover-foreground: oklch(0.145 0 0);
74
+ --primary: oklch(0.205 0 0);
75
+ --primary-foreground: oklch(0.985 0 0);
76
+ --secondary: oklch(0.97 0 0);
77
+ --secondary-foreground: oklch(0.205 0 0);
78
+ --muted: oklch(0.97 0 0);
79
+ --muted-foreground: oklch(0.556 0 0);
80
+ --accent: oklch(0.97 0 0);
81
+ --accent-foreground: oklch(0.205 0 0);
82
+ --destructive: oklch(0.577 0.245 27.325);
83
+ --border: oklch(0.922 0 0);
84
+ --input: oklch(0.922 0 0);
85
+ --ring: oklch(0.708 0 0);
86
+ --chart-1: oklch(0.87 0 0);
87
+ --chart-2: oklch(0.556 0 0);
88
+ --chart-3: oklch(0.439 0 0);
89
+ --chart-4: oklch(0.371 0 0);
90
+ --chart-5: oklch(0.269 0 0);
91
+ --radius: 0.625rem;
92
+ --sidebar: oklch(0.985 0 0);
93
+ --sidebar-foreground: oklch(0.145 0 0);
94
+ --sidebar-primary: oklch(0.205 0 0);
95
+ --sidebar-primary-foreground: oklch(0.985 0 0);
96
+ --sidebar-accent: oklch(0.97 0 0);
97
+ --sidebar-accent-foreground: oklch(0.205 0 0);
98
+ --sidebar-border: oklch(0.922 0 0);
99
+ --sidebar-ring: oklch(0.708 0 0);
100
+ }
101
+
102
+ .dark {
103
+ --background: oklch(0.145 0 0);
104
+ --foreground: oklch(0.985 0 0);
105
+ --card: oklch(0.205 0 0);
106
+ --card-foreground: oklch(0.985 0 0);
107
+ --popover: oklch(0.205 0 0);
108
+ --popover-foreground: oklch(0.985 0 0);
109
+ --primary: oklch(0.922 0 0);
110
+ --primary-foreground: oklch(0.205 0 0);
111
+ --secondary: oklch(0.269 0 0);
112
+ --secondary-foreground: oklch(0.985 0 0);
113
+ --muted: oklch(0.269 0 0);
114
+ --muted-foreground: oklch(0.708 0 0);
115
+ --accent: oklch(0.269 0 0);
116
+ --accent-foreground: oklch(0.985 0 0);
117
+ --destructive: oklch(0.704 0.191 22.216);
118
+ --border: oklch(1 0 0 / 10%);
119
+ --input: oklch(1 0 0 / 15%);
120
+ --ring: oklch(0.556 0 0);
121
+ --chart-1: oklch(0.87 0 0);
122
+ --chart-2: oklch(0.556 0 0);
123
+ --chart-3: oklch(0.439 0 0);
124
+ --chart-4: oklch(0.371 0 0);
125
+ --chart-5: oklch(0.269 0 0);
126
+ --sidebar: oklch(0.205 0 0);
127
+ --sidebar-foreground: oklch(0.985 0 0);
128
+ --sidebar-primary: oklch(0.488 0.243 264.376);
129
+ --sidebar-primary-foreground: oklch(0.985 0 0);
130
+ --sidebar-accent: oklch(0.269 0 0);
131
+ --sidebar-accent-foreground: oklch(0.985 0 0);
132
+ --sidebar-border: oklch(1 0 0 / 10%);
133
+ --sidebar-ring: oklch(0.556 0 0);
134
+ }
135
+
136
+ @layer base {
137
+ * {
138
+ @apply border-border outline-ring/50;
139
+ }
140
+ body {
141
+ @apply bg-background text-foreground;
142
+ }
143
+ html {
144
+ @apply font-sans antialiased;
145
+ }
146
+ }
147
+
148
+ @layer utilities {
149
+ .bmj-glass {
150
+ @apply bg-background/60 backdrop-blur-md border border-border/50;
151
+ }
152
+
153
+ .bmj-card-hover {
154
+ @apply transition-all duration-300 hover:shadow-lg hover:shadow-primary/5 hover:-translate-y-1;
155
+ }
156
+
157
+ .bmj-gradient-text {
158
+ @apply bg-clip-text text-transparent bg-linear-to-br from-foreground to-foreground/60;
159
+ }
160
+
161
+ .scrollbar-hide {
162
+ -ms-overflow-style: none;
163
+ scrollbar-width: none;
164
+ }
165
+ .scrollbar-hide::-webkit-scrollbar {
166
+ display: none;
167
+ }
168
+ }
169
+
170
+ ```