@jarrodmedrano/ui 0.1.7 → 0.1.8

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/package.json +4 -2
  2. package/styles/theme.css +52 -0
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@jarrodmedrano/ui",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
9
  "files": [
10
- "dist"
10
+ "dist",
11
+ "styles/theme.css"
11
12
  ],
12
13
  "exports": {
13
14
  "./components/lightbox": {
@@ -51,6 +52,7 @@
51
52
  "require": "./dist/types/*.cjs"
52
53
  },
53
54
  "./styles.css": "./dist/styles.css",
55
+ "./theme.css": "./styles/theme.css",
54
56
  "./package.json": "./package.json"
55
57
  },
56
58
  "publishConfig": {
@@ -0,0 +1,52 @@
1
+ /* Import this in your app's CSS after @import 'tailwindcss'
2
+ It registers the dark variant and semantic color tokens so
3
+ classes like bg-background, text-muted-foreground etc. work
4
+ in your own source files alongside @jarrodmedrano/ui components. */
5
+
6
+ @custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
7
+
8
+ @theme inline {
9
+ --color-background: hsl(var(--background));
10
+ --color-foreground: hsl(var(--foreground));
11
+ --color-border: hsl(var(--border));
12
+ --color-input: hsl(var(--input));
13
+ --color-ring: hsl(var(--ring));
14
+
15
+ --color-primary: hsl(var(--primary));
16
+ --color-primary-foreground: hsl(var(--primary-foreground));
17
+ --color-primary-50: hsl(var(--primary-50));
18
+ --color-primary-100: hsl(var(--primary-100));
19
+ --color-primary-200: hsl(var(--primary-200));
20
+ --color-primary-300: hsl(var(--primary-300));
21
+ --color-primary-400: hsl(var(--primary-400));
22
+ --color-primary-500: hsl(var(--primary-500));
23
+ --color-primary-600: hsl(var(--primary-600));
24
+ --color-primary-700: hsl(var(--primary-700));
25
+ --color-primary-800: hsl(var(--primary-800));
26
+ --color-primary-900: hsl(var(--primary-900));
27
+
28
+ --color-secondary: hsl(var(--secondary));
29
+ --color-secondary-foreground: hsl(var(--secondary-foreground));
30
+
31
+ --color-destructive: hsl(var(--destructive));
32
+ --color-destructive-foreground: hsl(var(--destructive-foreground));
33
+
34
+ --color-muted: hsl(var(--muted));
35
+ --color-muted-foreground: hsl(var(--muted-foreground));
36
+
37
+ --color-accent: hsl(var(--accent));
38
+ --color-accent-foreground: hsl(var(--accent-foreground));
39
+
40
+ --color-popover: hsl(var(--popover));
41
+ --color-popover-foreground: hsl(var(--popover-foreground));
42
+
43
+ --color-card: hsl(var(--card));
44
+ --color-card-foreground: hsl(var(--card-foreground));
45
+
46
+ --radius-sm: calc(var(--radius) - 4px);
47
+ --radius-md: calc(var(--radius) - 2px);
48
+ --radius-lg: var(--radius);
49
+ --radius-xl: calc(var(--radius) + 4px);
50
+ --radius-2xl: calc(var(--radius) + 8px);
51
+ --radius-3xl: calc(var(--radius) + 16px);
52
+ }