@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.
Files changed (76) hide show
  1. package/README.md +6 -10
  2. package/dist/source.cjs +33 -11
  3. package/dist/source.d.cts +1 -1
  4. package/dist/source.d.ts +1 -1
  5. package/dist/source.d.ts.map +1 -1
  6. package/dist/source.mjs +32 -11
  7. package/dist/stone.d.ts +1 -0
  8. package/dist/stone.js +16 -9
  9. package/dist/stone.variants.d.ts +16 -0
  10. package/dist/stonePaletteRefs.generated.d.ts +1 -0
  11. package/dist/stonePaletteRefs.generated.d.ts.map +1 -1
  12. package/dist/stoneTheme.d.cts +2 -0
  13. package/dist/stoneTheme.d.ts +2 -0
  14. package/dist/stoneTheme.d.ts.map +1 -1
  15. package/dist/theme.css +33 -9
  16. package/fonts/figtree-latin-400-normal.woff2 +0 -0
  17. package/fonts/figtree-latin-500-normal.woff2 +0 -0
  18. package/fonts/figtree-latin-600-normal.woff2 +0 -0
  19. package/fonts/figtree-latin-700-normal.woff2 +0 -0
  20. package/fonts/figtree-latin-ext-400-normal.woff2 +0 -0
  21. package/fonts/figtree-latin-ext-500-normal.woff2 +0 -0
  22. package/fonts/figtree-latin-ext-600-normal.woff2 +0 -0
  23. package/fonts/figtree-latin-ext-700-normal.woff2 +0 -0
  24. package/fonts/figtree.LICENSE.txt +93 -0
  25. package/fonts/jetbrains-mono-cyrillic-400-normal.woff2 +0 -0
  26. package/fonts/jetbrains-mono-cyrillic-500-normal.woff2 +0 -0
  27. package/fonts/jetbrains-mono-cyrillic-600-normal.woff2 +0 -0
  28. package/fonts/jetbrains-mono-cyrillic-700-normal.woff2 +0 -0
  29. package/fonts/jetbrains-mono-cyrillic-ext-400-normal.woff2 +0 -0
  30. package/fonts/jetbrains-mono-cyrillic-ext-500-normal.woff2 +0 -0
  31. package/fonts/jetbrains-mono-cyrillic-ext-600-normal.woff2 +0 -0
  32. package/fonts/jetbrains-mono-cyrillic-ext-700-normal.woff2 +0 -0
  33. package/fonts/jetbrains-mono-greek-400-normal.woff2 +0 -0
  34. package/fonts/jetbrains-mono-greek-500-normal.woff2 +0 -0
  35. package/fonts/jetbrains-mono-greek-600-normal.woff2 +0 -0
  36. package/fonts/jetbrains-mono-greek-700-normal.woff2 +0 -0
  37. package/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
  38. package/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
  39. package/fonts/jetbrains-mono-latin-600-normal.woff2 +0 -0
  40. package/fonts/jetbrains-mono-latin-700-normal.woff2 +0 -0
  41. package/fonts/jetbrains-mono-latin-ext-400-normal.woff2 +0 -0
  42. package/fonts/jetbrains-mono-latin-ext-500-normal.woff2 +0 -0
  43. package/fonts/jetbrains-mono-latin-ext-600-normal.woff2 +0 -0
  44. package/fonts/jetbrains-mono-latin-ext-700-normal.woff2 +0 -0
  45. package/fonts/jetbrains-mono-vietnamese-400-normal.woff2 +0 -0
  46. package/fonts/jetbrains-mono-vietnamese-500-normal.woff2 +0 -0
  47. package/fonts/jetbrains-mono-vietnamese-600-normal.woff2 +0 -0
  48. package/fonts/jetbrains-mono-vietnamese-700-normal.woff2 +0 -0
  49. package/fonts/jetbrains-mono.LICENSE.txt +93 -0
  50. package/fonts/montserrat-cyrillic-400-normal.woff2 +0 -0
  51. package/fonts/montserrat-cyrillic-500-normal.woff2 +0 -0
  52. package/fonts/montserrat-cyrillic-600-normal.woff2 +0 -0
  53. package/fonts/montserrat-cyrillic-700-normal.woff2 +0 -0
  54. package/fonts/montserrat-cyrillic-ext-400-normal.woff2 +0 -0
  55. package/fonts/montserrat-cyrillic-ext-500-normal.woff2 +0 -0
  56. package/fonts/montserrat-cyrillic-ext-600-normal.woff2 +0 -0
  57. package/fonts/montserrat-cyrillic-ext-700-normal.woff2 +0 -0
  58. package/fonts/montserrat-latin-400-normal.woff2 +0 -0
  59. package/fonts/montserrat-latin-500-normal.woff2 +0 -0
  60. package/fonts/montserrat-latin-600-normal.woff2 +0 -0
  61. package/fonts/montserrat-latin-700-normal.woff2 +0 -0
  62. package/fonts/montserrat-latin-ext-400-normal.woff2 +0 -0
  63. package/fonts/montserrat-latin-ext-500-normal.woff2 +0 -0
  64. package/fonts/montserrat-latin-ext-600-normal.woff2 +0 -0
  65. package/fonts/montserrat-latin-ext-700-normal.woff2 +0 -0
  66. package/fonts/montserrat-vietnamese-400-normal.woff2 +0 -0
  67. package/fonts/montserrat-vietnamese-500-normal.woff2 +0 -0
  68. package/fonts/montserrat-vietnamese-600-normal.woff2 +0 -0
  69. package/fonts/montserrat-vietnamese-700-normal.woff2 +0 -0
  70. package/fonts/montserrat.LICENSE.txt +93 -0
  71. package/fonts.css +590 -1
  72. package/package.json +4 -3
  73. package/src/source.ts +1 -1
  74. package/src/stonePaletteRefs.generated.ts +1 -1
  75. package/src/stoneTheme.ts +32 -10
  76. 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
- // Progress fills use the same family as their matching status surface;
376
- // the darker stop in dark mode keeps the channel visible on dark tracks.
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[90], blue.dark[70]),
384
+ backgroundColor: lightDark(blue.light[40], blue.dark[80]),
380
385
  },
381
386
  'variant:success': {
382
- backgroundColor: lightDark(green.light[90], green.dark[70]),
387
+ backgroundColor: 'var(--color-success)',
383
388
  },
384
389
  'variant:warning': {
385
- backgroundColor: lightDark(yellow.light[90], yellow.dark[70]),
390
+ backgroundColor: 'var(--color-warning)',
386
391
  },
387
392
  'variant:error': {
388
- backgroundColor: lightDark(red.light[90], red.dark[70]),
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-light)',
419
+ backgroundColor: 'var(--color-on-success)',
398
420
  },
399
421
  'placement:fill+variant:warning': {
400
- backgroundColor: 'var(--color-on-light)',
422
+ backgroundColor: 'var(--color-on-warning)',
401
423
  },
402
424
  'placement:fill+variant:error': {
403
- backgroundColor: 'var(--color-on-light)',
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.