@sofyan/glass 0.0.0-stage → 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.
@@ -0,0 +1,21 @@
1
+ /*
2
+ * @sofyan/glass for Tailwind CSS v4. Import it after Tailwind:
3
+ *
4
+ * @import 'tailwindcss';
5
+ * @import '@sofyan/glass/tailwind.css';
6
+ *
7
+ * It brings in the material (glass.css) and adds theme-aware `lg-*` colours that take an
8
+ * opacity modifier: bg-lg-paper, text-lg-ink-2, border-lg-line/10, ...
9
+ */
10
+ @import './glass.css';
11
+
12
+ @theme inline {
13
+ --color-lg-canvas: rgb(var(--lg-c-canvas));
14
+ --color-lg-paper: rgb(var(--lg-c-paper));
15
+ --color-lg-raised: rgb(var(--lg-c-raised));
16
+ --color-lg-ink: rgb(var(--lg-c-ink));
17
+ --color-lg-ink-2: rgb(var(--lg-c-ink-2));
18
+ --color-lg-ink-3: rgb(var(--lg-c-ink-3));
19
+ --color-lg-line: rgb(var(--lg-c-line));
20
+ --color-lg-accent: var(--lg-accent, var(--color-primary, #0a84ff));
21
+ }
package/package.json CHANGED
@@ -1,6 +1,72 @@
1
1
  {
2
2
  "name": "@sofyan/glass",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "Liquid Glass material for the web: CSS (Tailwind v4 friendly) and React components, including a swipe-to-close sheet.",
5
+ "license": "MIT",
6
+ "private": false,
7
+ "type": "module",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/sofyan-ahmad/glass.git"
11
+ },
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md",
18
+ "LICENSE"
19
+ ],
20
+ "sideEffects": [
21
+ "*.css"
22
+ ],
23
+ "exports": {
24
+ ".": {
25
+ "style": "./dist/glass.css",
26
+ "default": "./dist/glass.css"
27
+ },
28
+ "./glass.css": "./dist/glass.css",
29
+ "./tailwind.css": "./dist/tailwind.css",
30
+ "./dark.css": "./dist/dark.css",
31
+ "./react": {
32
+ "types": "./dist/react/index.d.ts",
33
+ "import": "./dist/react/index.js"
34
+ },
35
+ "./package.json": "./package.json"
36
+ },
37
+ "scripts": {
38
+ "build": "tsup && node scripts/copy-css.mjs",
39
+ "typecheck": "tsc --noEmit",
40
+ "test": "vitest run",
41
+ "format": "prettier -w .",
42
+ "format:check": "prettier -c .",
43
+ "prepublishOnly": "pnpm typecheck && pnpm test && pnpm build"
44
+ },
45
+ "peerDependencies": {
46
+ "react": ">=18",
47
+ "react-dom": ">=18"
48
+ },
49
+ "peerDependenciesMeta": {
50
+ "react": {
51
+ "optional": true
52
+ },
53
+ "react-dom": {
54
+ "optional": true
55
+ }
56
+ },
57
+ "devDependencies": {
58
+ "@testing-library/jest-dom": "^6.9.1",
59
+ "@testing-library/react": "^16.3.0",
60
+ "@testing-library/user-event": "^14.6.1",
61
+ "@types/react": "^19.2.0",
62
+ "@types/react-dom": "^19.2.0",
63
+ "jsdom": "^25.0.1",
64
+ "prettier": "^3.6.0",
65
+ "react": "^19.2.0",
66
+ "react-dom": "^19.2.0",
67
+ "tsup": "^9.0.0",
68
+ "typescript": "^5.9.3",
69
+ "vitest": "^4.1.12"
70
+ },
71
+ "packageManager": "pnpm@10.2.0"
72
+ }