@tamagui/themes 1.89.9 → 1.89.10

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/src/v3-themes.ts CHANGED
@@ -493,8 +493,20 @@ const themeBuilder = createThemeBuilder()
493
493
  active: {
494
494
  template: 'surface3',
495
495
  },
496
+ surface1: {
497
+ template: 'surface1',
498
+ },
499
+ surface2: {
500
+ template: 'surface2',
501
+ },
502
+ surface3: {
503
+ template: 'surface3',
504
+ },
505
+ surface4: {
506
+ template: 'surfaceActive',
507
+ },
496
508
  })
497
- .addChildThemes(
509
+ .addComponentThemes(
498
510
  {
499
511
  ListItem: {
500
512
  template: 'surface1',
@@ -529,7 +541,14 @@ const themeBuilder = createThemeBuilder()
529
541
  TextArea: surface1,
530
542
  },
531
543
  {
532
- avoidNestingWithin: ['alt1', 'alt2'],
544
+ avoidNestingWithin: [
545
+ 'alt1',
546
+ 'alt2',
547
+ 'surface1',
548
+ 'surface2',
549
+ 'surface3',
550
+ 'surface4',
551
+ ],
533
552
  }
534
553
  )
535
554
 
@@ -539,7 +558,9 @@ const themesIn = themeBuilder.build()
539
558
 
540
559
  export type Theme = Record<keyof typeof templates.base, string> &
541
560
  typeof nonInherited.light
561
+
542
562
  export type ThemesOut = Record<keyof typeof themesIn, Theme>
563
+
543
564
  export const themes = themesIn as ThemesOut
544
565
 
545
566
  // --- tokens ---