@glinui/tokens 0.1.0 → 0.1.1

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 +44 -0
  2. package/package.json +14 -3
package/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # @glinui/tokens
2
+
3
+ Design tokens for Glin UI. OKLCH color system, glass elevation levels, blur tiers, and shadow primitives.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @glinui/tokens
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ Import the CSS theme in your app entry:
14
+
15
+ ```tsx
16
+ import "@glinui/tokens/theme.css"
17
+ ```
18
+
19
+ Use tokens in your Tailwind classes or CSS:
20
+
21
+ ```css
22
+ .my-card {
23
+ background: var(--glass-3-surface);
24
+ box-shadow: var(--glass-3-shadow);
25
+ border-top-color: var(--glass-refraction-top);
26
+ backdrop-filter: blur(var(--glass-blur-md));
27
+ }
28
+ ```
29
+
30
+ ## Token Categories
31
+
32
+ - **Colors** — OKLCH: `--color-background`, `--color-foreground`, `--color-accent`, etc.
33
+ - **Glass surfaces** — 5 elevation levels: `--glass-{1-5}-surface`, `--glass-{1-5}-shadow`
34
+ - **Blur tiers** — `--glass-blur-sm/md/lg/xl`
35
+ - **Shadows** — `--shadow-glass-sm/md/lg`
36
+ - **Refraction** — `--glass-refraction-top` for top edge highlight
37
+
38
+ ## Documentation
39
+
40
+ [glinui.com/docs/tokens](https://glinui.com/docs/tokens)
41
+
42
+ ## License
43
+
44
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glinui/tokens",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,10 @@
11
11
  },
12
12
  "./theme.css": "./theme.css"
13
13
  },
14
- "files": ["dist", "theme.css"],
14
+ "files": [
15
+ "dist",
16
+ "theme.css"
17
+ ],
15
18
  "license": "MIT",
16
19
  "repository": {
17
20
  "type": "git",
@@ -20,7 +23,15 @@
20
23
  },
21
24
  "homepage": "https://glinui.com",
22
25
  "bugs": "https://github.com/GLINCKER/glinui/issues",
23
- "keywords": ["glinui", "glassmorphism", "liquid-glass", "react", "tailwindcss", "ui", "design-system"],
26
+ "keywords": [
27
+ "glinui",
28
+ "glassmorphism",
29
+ "liquid-glass",
30
+ "react",
31
+ "tailwindcss",
32
+ "ui",
33
+ "design-system"
34
+ ],
24
35
  "publishConfig": {
25
36
  "access": "public"
26
37
  },