@hemerson/design-system 0.1.0 → 0.2.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/README.md +13 -0
- package/dist/enableGlassRefraction-CgDeg-2E.js +88 -0
- package/dist/enableGlassRefraction-CgDeg-2E.js.map +1 -0
- package/dist/glass/enableGlassRefraction.d.ts +6 -5
- package/dist/glass/index.d.ts +1 -0
- package/dist/glass/lens.d.ts +15 -0
- package/dist/glass.js +1 -0
- package/dist/index.js +211 -257
- package/dist/index.js.map +1 -1
- package/dist/styles.css +76 -28
- package/dist/tokens.css +16 -10
- package/dist/tokens.json +39 -15
- package/package.json +11 -2
package/dist/tokens.json
CHANGED
|
@@ -158,10 +158,10 @@
|
|
|
158
158
|
{
|
|
159
159
|
"name": "glass-regular-tint",
|
|
160
160
|
"value": {
|
|
161
|
-
"dark": "#
|
|
162
|
-
"light": "#
|
|
161
|
+
"dark": "#1b1b1b4d",
|
|
162
|
+
"light": "#f2f1ec33"
|
|
163
163
|
},
|
|
164
|
-
"usage": "Regular glass, the default
|
|
164
|
+
"usage": "Regular glass, the default for bars, sidebars, menus, toasts and floating buttons: 30% in dark, 20% in light, so the content behind stays visible. Ink keeps 4.5:1 or more over mid-grey content; over imagery much brighter (dark theme) or darker (light theme) than mid-grey, give the glass the other theme with data-theme."
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
"name": "glass-thick-tint",
|
|
@@ -187,18 +187,34 @@
|
|
|
187
187
|
{
|
|
188
188
|
"name": "glass-sheen",
|
|
189
189
|
"value": {
|
|
190
|
-
"dark": "#
|
|
191
|
-
"light": "#
|
|
190
|
+
"dark": "#ffffff2e",
|
|
191
|
+
"light": "#ffffff66"
|
|
192
192
|
},
|
|
193
|
-
"usage": "Start of the 135deg sheen gradient on
|
|
193
|
+
"usage": "Start of the 135deg sheen gradient on glass, fading to transparent at 42%."
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
"name": "glass-rim",
|
|
197
197
|
"value": {
|
|
198
|
-
"dark": "#
|
|
199
|
-
"light": "#
|
|
198
|
+
"dark": "#ffffffd9",
|
|
199
|
+
"light": "#ffffff"
|
|
200
|
+
},
|
|
201
|
+
"usage": "The lit rim at the top-left of glass surfaces, where the light catches the edge."
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "glass-rim-low",
|
|
205
|
+
"value": {
|
|
206
|
+
"dark": "#ffffff80",
|
|
207
|
+
"light": "#ffffffb3"
|
|
200
208
|
},
|
|
201
|
-
"usage": "
|
|
209
|
+
"usage": "The softer rim at the bottom-right of glass surfaces."
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "glass-edge",
|
|
213
|
+
"value": {
|
|
214
|
+
"dark": "#ffffff1f",
|
|
215
|
+
"light": "#1b1b1b29"
|
|
216
|
+
},
|
|
217
|
+
"usage": "A hairline around glass so its shape reads even where the rim fades, especially on light content."
|
|
202
218
|
},
|
|
203
219
|
{
|
|
204
220
|
"name": "glass-accent-tint",
|
|
@@ -457,10 +473,10 @@
|
|
|
457
473
|
{
|
|
458
474
|
"name": "shadow-glass",
|
|
459
475
|
"value": {
|
|
460
|
-
"dark": "inset 0 1px 0 0 rgba(255,255,255,0.
|
|
461
|
-
"light": "inset 0 1px 0 0 rgba(255,255,255,0.
|
|
476
|
+
"dark": "inset 0 1px 1px rgba(255,255,255,0.45), inset 0 -1px 1px rgba(255,255,255,0.12), inset 0 0 20px rgba(255,255,255,0.08), 0 10px 30px -8px rgba(0,0,0,0.45)",
|
|
477
|
+
"light": "inset 0 1px 1px rgba(255,255,255,0.9), inset 0 -1px 1px rgba(255,255,255,0.4), inset 0 0 20px rgba(255,255,255,0.25), 0 10px 30px -8px rgba(27,27,27,0.25)"
|
|
462
478
|
},
|
|
463
|
-
"usage": "
|
|
479
|
+
"usage": "Glass surfaces: lit top and bottom inner edges, a soft inner glow and a drop shadow."
|
|
464
480
|
},
|
|
465
481
|
{
|
|
466
482
|
"name": "shadow-glow",
|
|
@@ -474,6 +490,14 @@
|
|
|
474
490
|
"name": "shadow-raised",
|
|
475
491
|
"value": "0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",
|
|
476
492
|
"usage": "Cards and menus lifted off the page."
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"name": "glass-text-shadow",
|
|
496
|
+
"value": {
|
|
497
|
+
"dark": "0 1px 2px rgba(0,0,0,0.35)",
|
|
498
|
+
"light": "0 1px 1px rgba(255,255,255,0.6)"
|
|
499
|
+
},
|
|
500
|
+
"usage": "Text shadow for words on glass, separating them from the moving backdrop."
|
|
477
501
|
}
|
|
478
502
|
]
|
|
479
503
|
},
|
|
@@ -482,8 +506,8 @@
|
|
|
482
506
|
"tokens": [
|
|
483
507
|
{
|
|
484
508
|
"name": "glass-blur",
|
|
485
|
-
"value": "blur(
|
|
486
|
-
"usage": "Regular and clear glass:
|
|
509
|
+
"value": "blur(6px) saturate(180%)",
|
|
510
|
+
"usage": "Regular and clear glass: a light blur keeps the shapes behind recognisable. With the edge lens in Chromium the blur drops to 4px."
|
|
487
511
|
},
|
|
488
512
|
{
|
|
489
513
|
"name": "glass-thick-blur",
|
|
@@ -492,7 +516,7 @@
|
|
|
492
516
|
},
|
|
493
517
|
{
|
|
494
518
|
"name": "glass-accent-blur",
|
|
495
|
-
"value": "blur(
|
|
519
|
+
"value": "blur(6px) saturate(200%)",
|
|
496
520
|
"usage": "Accent glass: a single prominent floating control."
|
|
497
521
|
}
|
|
498
522
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hemerson/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Liquid-glass design system: tokens, styles and React components for Hemerson's projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Hemerson Oliveira",
|
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
"types": "./dist/index.d.ts",
|
|
38
38
|
"import": "./dist/index.js"
|
|
39
39
|
},
|
|
40
|
+
"./glass": {
|
|
41
|
+
"types": "./dist/glass/index.d.ts",
|
|
42
|
+
"import": "./dist/glass.js"
|
|
43
|
+
},
|
|
40
44
|
"./styles.css": "./dist/styles.css",
|
|
41
45
|
"./tokens.css": "./dist/tokens.css",
|
|
42
46
|
"./tokens.json": "./dist/tokens.json"
|
|
@@ -51,13 +55,18 @@
|
|
|
51
55
|
"typecheck": "tsc --noEmit",
|
|
52
56
|
"lint": "eslint .",
|
|
53
57
|
"prepare": "husky",
|
|
54
|
-
"prepublishOnly": "npm run lint && npm run typecheck && npm test && npm run build"
|
|
58
|
+
"prepublishOnly": "npm run lint && npm run typecheck && npm test && npm run build",
|
|
59
|
+
"changeset": "changeset",
|
|
60
|
+
"version-packages": "changeset version",
|
|
61
|
+
"release": "changeset publish"
|
|
55
62
|
},
|
|
56
63
|
"peerDependencies": {
|
|
57
64
|
"react": ">=18.2 <20",
|
|
58
65
|
"react-dom": ">=18.2 <20"
|
|
59
66
|
},
|
|
60
67
|
"devDependencies": {
|
|
68
|
+
"@changesets/changelog-github": "^1.0.1",
|
|
69
|
+
"@changesets/cli": "^3.0.3",
|
|
61
70
|
"@eslint/js": "^10.0.1",
|
|
62
71
|
"@storybook/addon-a11y": "^10.6.2",
|
|
63
72
|
"@storybook/addon-docs": "^10.6.2",
|