@astryxdesign/theme-neutral 0.7.12-canary.dfd75a6 → 0.7.12-canary.e171d97
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/dist/neutral.js +3 -0
- package/dist/neutralTheme.d.ts.map +1 -1
- package/dist/source.cjs +6 -0
- package/dist/source.mjs +6 -0
- package/dist/theme.css +4 -0
- package/package.json +3 -3
- package/src/neutralTheme.ts +6 -0
package/dist/neutral.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neutralTheme.d.ts","sourceRoot":"","sources":["../src/neutralTheme.ts"],"names":[],"mappings":"AAyCA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"neutralTheme.d.ts","sourceRoot":"","sources":["../src/neutralTheme.ts"],"names":[],"mappings":"AAyCA,eAAO,MAAM,YAAY,gEAoXvB,CAAC"}
|
package/dist/source.cjs
CHANGED
|
@@ -418,7 +418,13 @@ var neutralTheme = (0, import_theme.defineTheme)({
|
|
|
418
418
|
padding: "var(--spacing-1)"
|
|
419
419
|
}
|
|
420
420
|
},
|
|
421
|
+
// An unselected label sits on the translucent track, which lifts the
|
|
422
|
+
// page under it. In dark mode secondary text falls under 4.5:1 on the
|
|
423
|
+
// track over the surface, so it takes the same next stop.
|
|
421
424
|
"segmented-control-item": {
|
|
425
|
+
base: {
|
|
426
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[80]})`
|
|
427
|
+
},
|
|
422
428
|
"size:sm": {
|
|
423
429
|
height: "calc(var(--size-element-sm) - 8px)"
|
|
424
430
|
},
|
package/dist/source.mjs
CHANGED
|
@@ -423,7 +423,13 @@ var neutralTheme = defineTheme({
|
|
|
423
423
|
padding: "var(--spacing-1)"
|
|
424
424
|
}
|
|
425
425
|
},
|
|
426
|
+
// An unselected label sits on the translucent track, which lifts the
|
|
427
|
+
// page under it. In dark mode secondary text falls under 4.5:1 on the
|
|
428
|
+
// track over the surface, so it takes the same next stop.
|
|
426
429
|
"segmented-control-item": {
|
|
430
|
+
base: {
|
|
431
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[80]})`
|
|
432
|
+
},
|
|
427
433
|
"size:sm": {
|
|
428
434
|
height: "calc(var(--size-element-sm) - 8px)"
|
|
429
435
|
},
|
package/dist/theme.css
CHANGED
|
@@ -499,6 +499,10 @@
|
|
|
499
499
|
--_segmented-control-padding: var(--spacing-1);
|
|
500
500
|
}
|
|
501
501
|
|
|
502
|
+
.astryx-segmented-control-item {
|
|
503
|
+
--color-text-secondary: light-dark(#474747, #c6c6c6);
|
|
504
|
+
}
|
|
505
|
+
|
|
502
506
|
.astryx-segmented-control-item[data-size="sm"] {
|
|
503
507
|
height: calc(var(--size-element-sm) - 8px);
|
|
504
508
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/theme-neutral",
|
|
3
|
-
"version": "0.7.12-canary.
|
|
3
|
+
"version": "0.7.12-canary.e171d97",
|
|
4
4
|
"displayName": "Neutral Theme",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Restrained warm grays. Minimal and quiet, so the content stays the focus.",
|
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
"lucide-react": "^1.18.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@astryxdesign/core": "0.7.12-canary.
|
|
81
|
+
"@astryxdesign/core": "0.7.12-canary.e171d97",
|
|
82
82
|
"react": ">=19"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@astryxdesign/cli": "0.7.12-canary.
|
|
85
|
+
"@astryxdesign/cli": "0.7.12-canary.e171d97"
|
|
86
86
|
},
|
|
87
87
|
"module": "./dist/source.mjs",
|
|
88
88
|
"scripts": {
|
package/src/neutralTheme.ts
CHANGED
|
@@ -361,7 +361,13 @@ export const neutralTheme = defineTheme({
|
|
|
361
361
|
padding: 'var(--spacing-1)',
|
|
362
362
|
},
|
|
363
363
|
},
|
|
364
|
+
// An unselected label sits on the translucent track, which lifts the
|
|
365
|
+
// page under it. In dark mode secondary text falls under 4.5:1 on the
|
|
366
|
+
// track over the surface, so it takes the same next stop.
|
|
364
367
|
'segmented-control-item': {
|
|
368
|
+
base: {
|
|
369
|
+
'--color-text-secondary': `light-dark(${neutral.light[30]}, ${neutral.dark[80]})`,
|
|
370
|
+
},
|
|
365
371
|
'size:sm': {
|
|
366
372
|
height: 'calc(var(--size-element-sm) - 8px)',
|
|
367
373
|
},
|