@raxrai/stylelab-ui 0.1.0

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/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@raxrai/stylelab-ui",
3
+ "version": "0.1.0",
4
+ "description": "Themeable UI library with 8 themes: Minimal, Night, Glass, Neubrutal, Clay, Cyberpunk, Retro, Motion",
5
+ "sideEffects": false,
6
+ "scripts": {
7
+ "dev": "next dev",
8
+ "build": "next build",
9
+ "build:lib": "tsup",
10
+ "start": "next start",
11
+ "lint": "next lint",
12
+ "prepublishOnly": "npm run build:lib"
13
+ },
14
+ "main": "./dist/index.cjs",
15
+ "module": "./dist/index.mjs",
16
+ "types": "./dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.mjs",
21
+ "require": "./dist/index.cjs",
22
+ "default": "./dist/index.mjs"
23
+ },
24
+ "./styles": "./styles/stylelab.css",
25
+ "./package.json": "./package.json"
26
+ },
27
+ "files": [
28
+ "dist",
29
+ "styles"
30
+ ],
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
34
+ "peerDependencies": {
35
+ "react": ">=18.0.0",
36
+ "react-dom": ">=18.0.0"
37
+ },
38
+ "devDependencies": {
39
+ "@tailwindcss/postcss": "^4",
40
+ "@types/node": "^20",
41
+ "@types/react": "^19",
42
+ "@types/react-dom": "^19",
43
+ "class-variance-authority": "^0.7.1",
44
+ "clsx": "^2.1.1",
45
+ "eslint": "^9",
46
+ "eslint-config-next": "^15.5.12",
47
+ "framer-motion": "^11.18.2",
48
+ "lucide-react": "^0.577.0",
49
+ "next": "^15.5.12",
50
+ "tailwind-merge": "^3.5.0",
51
+ "tailwindcss": "^4",
52
+ "tsup": "^8.5.1",
53
+ "typescript": "^5"
54
+ },
55
+ "keywords": [
56
+ "react",
57
+ "ui",
58
+ "components",
59
+ "design-system",
60
+ "themes",
61
+ "tailwind",
62
+ "glassmorphism",
63
+ "neubrutalism"
64
+ ],
65
+ "license": "MIT"
66
+ }
@@ -0,0 +1,107 @@
1
+ /**
2
+ * StyleLab design tokens for Tailwind CSS v4.
3
+ * Import this after Tailwind in your app's global CSS, e.g.:
4
+ * @import "tailwindcss";
5
+ * @import "@raxrai/stylelab-ui/styles";
6
+ */
7
+
8
+ /* StyleLab Design Tokens */
9
+ @theme inline {
10
+ /* Custom shadows */
11
+ --shadow-neubrutal: 8px 8px 0px 0px rgba(0, 0, 0, 1);
12
+ --shadow-clay-outer: 10px 10px 20px rgba(0, 0, 0, 0.1);
13
+ --shadow-clay-inner: inset -8px -8px 15px rgba(0, 0, 0, 0.2),
14
+ inset 8px 8px 15px rgba(255, 255, 255, 0.4);
15
+ --shadow-neon-glow: 0 0 15px rgba(34, 211, 238, 0.8);
16
+
17
+ /* Apple Liquid Glass: light bent edge */
18
+ --shadow-glass-edge: inset 1px 1px 0 0 rgba(255, 255, 255, 0.9),
19
+ inset -1px -1px 0 0 rgba(0, 0, 0, 0.06);
20
+ --shadow-glass-edge-strong: inset 2px 2px 0 0 rgba(255, 255, 255, 0.95),
21
+ inset -2px -2px 0 0 rgba(0, 0, 0, 0.08);
22
+ --shadow-glass-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.06),
23
+ 0 2px 4px -2px rgba(0, 0, 0, 0.04),
24
+ inset 1px 1px 0 0 rgba(255, 255, 255, 0.9),
25
+ inset -1px -1px 0 0 rgba(0, 0, 0, 0.06);
26
+ --shadow-glass-lift: 0 25px 50px -12px rgba(0, 0, 0, 0.1),
27
+ inset 2px 2px 0 0 rgba(255, 255, 255, 0.95),
28
+ inset -2px -2px 0 0 rgba(0, 0, 0, 0.08);
29
+ --shadow-glass-lift-md: 0 10px 15px -3px rgba(0, 0, 0, 0.06),
30
+ 0 4px 6px -2px rgba(0, 0, 0, 0.04),
31
+ inset 2px 2px 0 0 rgba(255, 255, 255, 0.95),
32
+ inset -2px -2px 0 0 rgba(0, 0, 0, 0.08);
33
+
34
+ /* Glitch keyframes (Cyberpunk) */
35
+ --animate-glitch-anim: glitch-anim 0.3s ease-in-out;
36
+
37
+ @keyframes glitch-anim {
38
+ 0%,
39
+ 100% {
40
+ transform: translateX(0);
41
+ }
42
+ 25% {
43
+ transform: translateX(-2px);
44
+ }
45
+ 50% {
46
+ transform: translateX(2px);
47
+ }
48
+ 75% {
49
+ transform: translateX(-1px);
50
+ }
51
+ }
52
+
53
+ /* Skeleton: smooth shimmer (default) */
54
+ @keyframes skeleton-shimmer {
55
+ 0% {
56
+ opacity: 0.6;
57
+ }
58
+ 50% {
59
+ opacity: 1;
60
+ }
61
+ 100% {
62
+ opacity: 0.6;
63
+ }
64
+ }
65
+ --animate-skeleton-shimmer: skeleton-shimmer 1.5s ease-in-out infinite;
66
+
67
+ /* Skeleton: cyberpunk flicker */
68
+ @keyframes skeleton-flicker {
69
+ 0%,
70
+ 100% {
71
+ opacity: 0.4;
72
+ filter: brightness(0.8);
73
+ }
74
+ 15% {
75
+ opacity: 1;
76
+ filter: brightness(1.2);
77
+ }
78
+ 30% {
79
+ opacity: 0.5;
80
+ filter: brightness(0.9);
81
+ }
82
+ 45% {
83
+ opacity: 1;
84
+ filter: brightness(1.1);
85
+ }
86
+ 60% {
87
+ opacity: 0.6;
88
+ filter: brightness(0.95);
89
+ }
90
+ 75% {
91
+ opacity: 1;
92
+ filter: brightness(1.05);
93
+ }
94
+ }
95
+ --animate-skeleton-flicker: skeleton-flicker 0.8s steps(2) infinite;
96
+ }
97
+
98
+ @utility animate-skeleton-shimmer {
99
+ animation: skeleton-shimmer 1.5s ease-in-out infinite;
100
+ }
101
+ @utility animate-skeleton-flicker {
102
+ animation: skeleton-flicker 0.8s steps(2) infinite;
103
+ }
104
+
105
+ @utility clip-path-glitch {
106
+ clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0% 30%);
107
+ }