@astryxdesign/theme-stone 0.7.17-canary.gffd1c8e → 0.7.17
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 +6 -10
- package/dist/source.cjs +33 -11
- package/dist/source.d.cts +1 -1
- package/dist/source.d.ts +1 -1
- package/dist/source.d.ts.map +1 -1
- package/dist/source.mjs +32 -11
- package/dist/stone.d.ts +1 -0
- package/dist/stone.js +16 -9
- package/dist/stone.variants.d.ts +16 -0
- package/dist/stonePaletteRefs.generated.d.ts +1 -0
- package/dist/stonePaletteRefs.generated.d.ts.map +1 -1
- package/dist/stoneTheme.d.cts +2 -0
- package/dist/stoneTheme.d.ts +2 -0
- package/dist/stoneTheme.d.ts.map +1 -1
- package/dist/theme.css +33 -9
- package/fonts/figtree-latin-400-normal.woff2 +0 -0
- package/fonts/figtree-latin-500-normal.woff2 +0 -0
- package/fonts/figtree-latin-600-normal.woff2 +0 -0
- package/fonts/figtree-latin-700-normal.woff2 +0 -0
- package/fonts/figtree-latin-ext-400-normal.woff2 +0 -0
- package/fonts/figtree-latin-ext-500-normal.woff2 +0 -0
- package/fonts/figtree-latin-ext-600-normal.woff2 +0 -0
- package/fonts/figtree-latin-ext-700-normal.woff2 +0 -0
- package/fonts/figtree.LICENSE.txt +93 -0
- package/fonts/jetbrains-mono-cyrillic-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-ext-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-ext-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-ext-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-ext-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-greek-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-greek-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-greek-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-greek-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-ext-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-ext-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-ext-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-ext-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-vietnamese-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-vietnamese-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-vietnamese-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-vietnamese-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono.LICENSE.txt +93 -0
- package/fonts/montserrat-cyrillic-400-normal.woff2 +0 -0
- package/fonts/montserrat-cyrillic-500-normal.woff2 +0 -0
- package/fonts/montserrat-cyrillic-600-normal.woff2 +0 -0
- package/fonts/montserrat-cyrillic-700-normal.woff2 +0 -0
- package/fonts/montserrat-cyrillic-ext-400-normal.woff2 +0 -0
- package/fonts/montserrat-cyrillic-ext-500-normal.woff2 +0 -0
- package/fonts/montserrat-cyrillic-ext-600-normal.woff2 +0 -0
- package/fonts/montserrat-cyrillic-ext-700-normal.woff2 +0 -0
- package/fonts/montserrat-latin-400-normal.woff2 +0 -0
- package/fonts/montserrat-latin-500-normal.woff2 +0 -0
- package/fonts/montserrat-latin-600-normal.woff2 +0 -0
- package/fonts/montserrat-latin-700-normal.woff2 +0 -0
- package/fonts/montserrat-latin-ext-400-normal.woff2 +0 -0
- package/fonts/montserrat-latin-ext-500-normal.woff2 +0 -0
- package/fonts/montserrat-latin-ext-600-normal.woff2 +0 -0
- package/fonts/montserrat-latin-ext-700-normal.woff2 +0 -0
- package/fonts/montserrat-vietnamese-400-normal.woff2 +0 -0
- package/fonts/montserrat-vietnamese-500-normal.woff2 +0 -0
- package/fonts/montserrat-vietnamese-600-normal.woff2 +0 -0
- package/fonts/montserrat-vietnamese-700-normal.woff2 +0 -0
- package/fonts/montserrat.LICENSE.txt +93 -0
- package/fonts.css +590 -1
- package/package.json +4 -3
- package/src/source.ts +1 -1
- package/src/stonePaletteRefs.generated.ts +1 -1
- package/src/stoneTheme.ts +32 -10
- package/LICENSE +0 -21
package/src/stoneTheme.ts
CHANGED
|
@@ -116,6 +116,9 @@ const SECONDARY_COMPLEX_SELECTOR = {
|
|
|
116
116
|
SECONDARY_BUTTON[':hover'],
|
|
117
117
|
} as const;
|
|
118
118
|
|
|
119
|
+
/** The color modes stone draws: light and dark. */
|
|
120
|
+
export const colorModes = ['light', 'dark'] as const;
|
|
121
|
+
|
|
119
122
|
export const stoneTheme = defineTheme({
|
|
120
123
|
name: 'stone',
|
|
121
124
|
|
|
@@ -302,6 +305,8 @@ export const stoneTheme = defineTheme({
|
|
|
302
305
|
'--radius-element': '0.5rem',
|
|
303
306
|
'--radius-container': '0.75rem',
|
|
304
307
|
'--radius-page': '1.5rem',
|
|
308
|
+
// Chat surfaces stay rounder than cards.
|
|
309
|
+
'--radius-chat': '28px',
|
|
305
310
|
'--radius-full': '9999px',
|
|
306
311
|
|
|
307
312
|
// Shadows
|
|
@@ -372,35 +377,52 @@ export const stoneTheme = defineTheme({
|
|
|
372
377
|
},
|
|
373
378
|
},
|
|
374
379
|
|
|
375
|
-
//
|
|
376
|
-
//
|
|
380
|
+
// Status fills take the theme's status roles, and the accent fill uses the
|
|
381
|
+
// blue family; each reaches 3:1 on the skeleton track in both modes.
|
|
377
382
|
'progress-bar-fill': {
|
|
378
383
|
'variant:accent': {
|
|
379
|
-
backgroundColor: lightDark(blue.light[
|
|
384
|
+
backgroundColor: lightDark(blue.light[40], blue.dark[80]),
|
|
380
385
|
},
|
|
381
386
|
'variant:success': {
|
|
382
|
-
backgroundColor:
|
|
387
|
+
backgroundColor: 'var(--color-success)',
|
|
383
388
|
},
|
|
384
389
|
'variant:warning': {
|
|
385
|
-
backgroundColor:
|
|
390
|
+
backgroundColor: 'var(--color-warning)',
|
|
386
391
|
},
|
|
387
392
|
'variant:error': {
|
|
388
|
-
backgroundColor:
|
|
393
|
+
backgroundColor: 'var(--color-error)',
|
|
394
|
+
},
|
|
395
|
+
// The secondary text color (stop 70) reads under 3:1 on the dark track,
|
|
396
|
+
// so a neutral or disabled fill takes stop 80 there.
|
|
397
|
+
'variant:neutral': {
|
|
398
|
+
backgroundColor: lightDark(
|
|
399
|
+
'var(--color-text-secondary)',
|
|
400
|
+
neutral.dark[80],
|
|
401
|
+
),
|
|
402
|
+
},
|
|
403
|
+
'variant:disabled': {
|
|
404
|
+
backgroundColor: lightDark(
|
|
405
|
+
'var(--color-text-secondary)',
|
|
406
|
+
neutral.dark[80],
|
|
407
|
+
),
|
|
389
408
|
},
|
|
390
409
|
},
|
|
391
410
|
|
|
411
|
+
// A mark on a fill is light ink on the dark light-mode fills (stops 30 and
|
|
412
|
+
// 40) and dark ink on the pale dark-mode fills. A status fill is the
|
|
413
|
+
// status color, so its mark takes that status's on-color.
|
|
392
414
|
'progress-bar-mark': {
|
|
393
415
|
'placement:fill+variant:accent': {
|
|
394
|
-
backgroundColor: 'var(--color-on-light)',
|
|
416
|
+
backgroundColor: lightDark(neutral.light[100], 'var(--color-on-light)'),
|
|
395
417
|
},
|
|
396
418
|
'placement:fill+variant:success': {
|
|
397
|
-
backgroundColor: 'var(--color-on-
|
|
419
|
+
backgroundColor: 'var(--color-on-success)',
|
|
398
420
|
},
|
|
399
421
|
'placement:fill+variant:warning': {
|
|
400
|
-
backgroundColor: 'var(--color-on-
|
|
422
|
+
backgroundColor: 'var(--color-on-warning)',
|
|
401
423
|
},
|
|
402
424
|
'placement:fill+variant:error': {
|
|
403
|
-
backgroundColor: 'var(--color-on-
|
|
425
|
+
backgroundColor: 'var(--color-on-error)',
|
|
404
426
|
},
|
|
405
427
|
},
|
|
406
428
|
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Meta Platforms, Inc.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|