@redis-ui/styles 21.5.0 → 21.7.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.
Files changed (121) hide show
  1. package/dist/index.js +3875 -3570
  2. package/dist/index.umd.cjs +13 -13
  3. package/dist/themes/themeDark/theme/components/charts.js +48 -0
  4. package/dist/themes/themeDarkNext/theme/components/actionIconButton.js +13 -11
  5. package/dist/themes/themeDarkNext/theme/components/appBar.js +12 -12
  6. package/dist/themes/themeDarkNext/theme/components/appSelectionMenu.js +8 -8
  7. package/dist/themes/themeDarkNext/theme/components/badge.js +36 -35
  8. package/dist/themes/themeDarkNext/theme/components/boxSelectionGroup.js +20 -19
  9. package/dist/themes/themeDarkNext/theme/components/breadcrumbs.js +6 -6
  10. package/dist/themes/themeDarkNext/theme/components/button.js +35 -33
  11. package/dist/themes/themeDarkNext/theme/components/buttonGroup.js +17 -17
  12. package/dist/themes/themeDarkNext/theme/components/card.js +13 -12
  13. package/dist/themes/themeDarkNext/theme/components/charts.js +57 -6
  14. package/dist/themes/themeDarkNext/theme/components/checkbox.js +26 -22
  15. package/dist/themes/themeDarkNext/theme/components/chip.js +10 -10
  16. package/dist/themes/themeDarkNext/theme/components/chipList.js +3 -3
  17. package/dist/themes/themeDarkNext/theme/components/drawer.js +8 -8
  18. package/dist/themes/themeDarkNext/theme/components/filters.js +4 -4
  19. package/dist/themes/themeDarkNext/theme/components/formField.js +2 -2
  20. package/dist/themes/themeDarkNext/theme/components/gauge.js +9 -9
  21. package/dist/themes/themeDarkNext/theme/components/highlightedIcon.js +15 -14
  22. package/dist/themes/themeDarkNext/theme/components/icon.js +7 -7
  23. package/dist/themes/themeDarkNext/theme/components/iconButton.js +6 -6
  24. package/dist/themes/themeDarkNext/theme/components/input.js +16 -16
  25. package/dist/themes/themeDarkNext/theme/components/keyValueList.js +4 -4
  26. package/dist/themes/themeDarkNext/theme/components/label.js +5 -5
  27. package/dist/themes/themeDarkNext/theme/components/layouts.js +1 -1
  28. package/dist/themes/themeDarkNext/theme/components/link.js +9 -9
  29. package/dist/themes/themeDarkNext/theme/components/loader.js +9 -9
  30. package/dist/themes/themeDarkNext/theme/components/menu.js +13 -13
  31. package/dist/themes/themeDarkNext/theme/components/modal.js +9 -9
  32. package/dist/themes/themeDarkNext/theme/components/moreInfoIcon.js +1 -1
  33. package/dist/themes/themeDarkNext/theme/components/popover.js +2 -2
  34. package/dist/themes/themeDarkNext/theme/components/popupCard.js +3 -3
  35. package/dist/themes/themeDarkNext/theme/components/progressBar.js +9 -9
  36. package/dist/themes/themeDarkNext/theme/components/radio.js +10 -10
  37. package/dist/themes/themeDarkNext/theme/components/searchBar.js +3 -3
  38. package/dist/themes/themeDarkNext/theme/components/section.js +9 -9
  39. package/dist/themes/themeDarkNext/theme/components/select.js +17 -17
  40. package/dist/themes/themeDarkNext/theme/components/semanticButton.js +21 -21
  41. package/dist/themes/themeDarkNext/theme/components/semanticContainer.js +16 -15
  42. package/dist/themes/themeDarkNext/theme/components/semanticIcon.js +5 -5
  43. package/dist/themes/themeDarkNext/theme/components/sideBar.js +20 -19
  44. package/dist/themes/themeDarkNext/theme/components/skeleton.js +6 -6
  45. package/dist/themes/themeDarkNext/theme/components/slider.js +12 -12
  46. package/dist/themes/themeDarkNext/theme/components/stepper.js +10 -10
  47. package/dist/themes/themeDarkNext/theme/components/switch.js +18 -18
  48. package/dist/themes/themeDarkNext/theme/components/table.js +9 -9
  49. package/dist/themes/themeDarkNext/theme/components/tableHeading.js +2 -2
  50. package/dist/themes/themeDarkNext/theme/components/tabs.js +13 -13
  51. package/dist/themes/themeDarkNext/theme/components/textButton.js +30 -29
  52. package/dist/themes/themeDarkNext/theme/components/themeModeSwitch.js +3 -3
  53. package/dist/themes/themeDarkNext/theme/components/toggleButton.js +17 -14
  54. package/dist/themes/themeDarkNext/theme/components/tooltip.js +7 -7
  55. package/dist/themes/themeDarkNext/theme/components/treeView.js +2 -2
  56. package/dist/themes/themeDarkNext/theme/components/typography.js +7 -7
  57. package/dist/themes/themeDarkNext/theme/components/windowBar.js +28 -27
  58. package/dist/themes/themeDarkNext/theme/globals/body.js +2 -2
  59. package/dist/themes/themeDarkNext/theme/globals/scrollbar.js +2 -2
  60. package/dist/themes/themeDarkNext/tokens.js +3 -3
  61. package/dist/themes/themeLight/theme/components/charts.js +48 -0
  62. package/dist/themes/themeLightNext/theme/components/actionIconButton.js +12 -10
  63. package/dist/themes/themeLightNext/theme/components/appBar.js +8 -8
  64. package/dist/themes/themeLightNext/theme/components/appSelectionMenu.js +4 -4
  65. package/dist/themes/themeLightNext/theme/components/badge.js +30 -29
  66. package/dist/themes/themeLightNext/theme/components/boxSelectionGroup.js +16 -15
  67. package/dist/themes/themeLightNext/theme/components/breadcrumbs.js +2 -2
  68. package/dist/themes/themeLightNext/theme/components/button.js +43 -41
  69. package/dist/themes/themeLightNext/theme/components/buttonGroup.js +14 -14
  70. package/dist/themes/themeLightNext/theme/components/card.js +10 -9
  71. package/dist/themes/themeLightNext/theme/components/charts.js +60 -9
  72. package/dist/themes/themeLightNext/theme/components/checkbox.js +21 -17
  73. package/dist/themes/themeLightNext/theme/components/chip.js +8 -8
  74. package/dist/themes/themeLightNext/theme/components/chipList.js +3 -3
  75. package/dist/themes/themeLightNext/theme/components/countryFlag.js +1 -1
  76. package/dist/themes/themeLightNext/theme/components/drawer.js +7 -7
  77. package/dist/themes/themeLightNext/theme/components/filters.js +2 -2
  78. package/dist/themes/themeLightNext/theme/components/formField.js +2 -2
  79. package/dist/themes/themeLightNext/theme/components/gauge.js +8 -8
  80. package/dist/themes/themeLightNext/theme/components/highlightedIcon.js +13 -12
  81. package/dist/themes/themeLightNext/theme/components/icon.js +6 -6
  82. package/dist/themes/themeLightNext/theme/components/iconButton.js +4 -4
  83. package/dist/themes/themeLightNext/theme/components/input.js +11 -11
  84. package/dist/themes/themeLightNext/theme/components/keyValueList.js +4 -4
  85. package/dist/themes/themeLightNext/theme/components/label.js +3 -3
  86. package/dist/themes/themeLightNext/theme/components/layouts.js +1 -1
  87. package/dist/themes/themeLightNext/theme/components/link.js +10 -10
  88. package/dist/themes/themeLightNext/theme/components/loader.js +9 -9
  89. package/dist/themes/themeLightNext/theme/components/menu.js +13 -13
  90. package/dist/themes/themeLightNext/theme/components/modal.js +7 -7
  91. package/dist/themes/themeLightNext/theme/components/moreInfoIcon.js +1 -1
  92. package/dist/themes/themeLightNext/theme/components/popover.js +2 -2
  93. package/dist/themes/themeLightNext/theme/components/popupCard.js +3 -3
  94. package/dist/themes/themeLightNext/theme/components/progressBar.js +8 -8
  95. package/dist/themes/themeLightNext/theme/components/radio.js +10 -10
  96. package/dist/themes/themeLightNext/theme/components/searchBar.js +3 -3
  97. package/dist/themes/themeLightNext/theme/components/section.js +7 -7
  98. package/dist/themes/themeLightNext/theme/components/select.js +15 -15
  99. package/dist/themes/themeLightNext/theme/components/semanticButton.js +25 -25
  100. package/dist/themes/themeLightNext/theme/components/semanticContainer.js +13 -12
  101. package/dist/themes/themeLightNext/theme/components/semanticIcon.js +5 -5
  102. package/dist/themes/themeLightNext/theme/components/sideBar.js +20 -19
  103. package/dist/themes/themeLightNext/theme/components/skeleton.js +6 -6
  104. package/dist/themes/themeLightNext/theme/components/slider.js +8 -8
  105. package/dist/themes/themeLightNext/theme/components/stepper.js +9 -9
  106. package/dist/themes/themeLightNext/theme/components/switch.js +18 -18
  107. package/dist/themes/themeLightNext/theme/components/table.js +6 -6
  108. package/dist/themes/themeLightNext/theme/components/tableHeading.js +2 -2
  109. package/dist/themes/themeLightNext/theme/components/tabs.js +10 -10
  110. package/dist/themes/themeLightNext/theme/components/textButton.js +26 -26
  111. package/dist/themes/themeLightNext/theme/components/themeModeSwitch.js +3 -3
  112. package/dist/themes/themeLightNext/theme/components/toggleButton.js +12 -9
  113. package/dist/themes/themeLightNext/theme/components/tooltip.js +6 -6
  114. package/dist/themes/themeLightNext/theme/components/treeView.js +2 -2
  115. package/dist/themes/themeLightNext/theme/components/typography.js +6 -6
  116. package/dist/themes/themeLightNext/theme/components/windowBar.js +28 -27
  117. package/dist/themes/themeLightNext/theme/globals/body.js +1 -1
  118. package/dist/themes/themeLightNext/theme/globals/scrollbar.js +2 -2
  119. package/dist/themes/themeLightNext/tokens.js +3 -3
  120. package/dist/themes/types/theme/components/charts.types.d.ts +55 -0
  121. package/package.json +1 -1
@@ -11,10 +11,58 @@ const theme = {
11
11
  tokens.semantic.color.icon.discovery700
12
12
  ],
13
13
  grid: tokens.semantic.color.border.secondary700,
14
+ gridDashArray: '3',
14
15
  axisLabel: tokens.semantic.color.text.secondary400,
15
16
  threshold: {
16
17
  warning: tokens.semantic.color.icon.attention400,
17
18
  critical: tokens.semantic.color.icon.danger500
19
+ },
20
+ axis: {
21
+ fontFamily: tokens.core.font.fontFamily.regular,
22
+ fontSize: { S: tokens.core.font.fontSize.s10, M: tokens.core.font.fontSize.s12 }
23
+ },
24
+ series: {
25
+ strokeWidth: { S: 2, M: 2 },
26
+ areaOpacity: { from: 0.3, to: 0 }
27
+ },
28
+ cursor: {
29
+ color: tokens.semantic.color.border.secondary500,
30
+ width: 1
31
+ },
32
+ activeDot: {
33
+ size: 8,
34
+ ringColor: tokens.semantic.color.background.secondary900,
35
+ ringWidth: 2
36
+ },
37
+ referenceLine: {
38
+ color: tokens.semantic.color.border.secondary400,
39
+ dashArray: '4 4'
40
+ },
41
+ tooltip: {
42
+ bgColor: tokens.semantic.color.background.secondary900,
43
+ textColor: tokens.semantic.color.text.secondary200,
44
+ labelColor: tokens.semantic.color.text.secondary400,
45
+ borderColor: tokens.semantic.color.border.secondary700,
46
+ borderRadius: '0.4rem',
47
+ shadow: tokens.core.shadow.shadow200,
48
+ padding: '0.8rem 1.2rem',
49
+ fontSize: tokens.core.font.fontSize.s12,
50
+ labelFontSize: tokens.core.font.fontSize.s12,
51
+ valueFontFamily: tokens.core.font.fontFamily.regular,
52
+ markerSize: '0.8rem'
53
+ },
54
+ legend: {
55
+ textColor: tokens.semantic.color.text.secondary300,
56
+ fontFamily: { S: tokens.core.font.fontFamily.regular, M: tokens.core.font.fontFamily.regular },
57
+ fontSize: { S: tokens.core.font.fontSize.s12, M: tokens.core.font.fontSize.s12 },
58
+ gap: { S: '1.2rem', M: '1.6rem' },
59
+ dotSize: '0.8rem',
60
+ lineWidth: '1.2rem',
61
+ lineHeight: '0.2rem'
62
+ },
63
+ sparkline: {
64
+ strokeWidth: 1.5,
65
+ areaOpacity: { from: 0.4, to: 0.04 }
18
66
  }
19
67
  };
20
68
  export default theme;
@@ -21,34 +21,36 @@ const theme = {
21
21
  variants: {
22
22
  primary: {
23
23
  normal: {
24
- bgColor: tokens.semantic.color.background.primary400,
24
+ bgColor: tokens.semantic.color.background.primary950,
25
25
  textColor: tokens.semantic.color.text.secondary0
26
26
  },
27
27
  hover: {
28
- bgColor: tokens.semantic.color.background.neutral300
28
+ bgColor: tokens.semantic.color.background.primary800
29
29
  },
30
30
  active: {
31
- bgColor: tokens.semantic.color.background.primary400
31
+ bgColor: tokens.semantic.color.background.primary600
32
32
  },
33
33
  disabled: {
34
- bgColor: tokens.semantic.color.background.secondary800,
35
- textColor: tokens.semantic.color.text.secondary500
34
+ bgColor: tokens.semantic.color.background.secondary700,
35
+ textColor: tokens.semantic.color.text.secondary400
36
36
  }
37
37
  },
38
38
  secondary: {
39
39
  normal: {
40
- bgColor: tokens.semantic.color.background.secondary800,
41
- textColor: tokens.semantic.color.text.secondary0
40
+ bgColor: 'transparent',
41
+ textColor: tokens.semantic.color.text.secondary300
42
42
  },
43
43
  hover: {
44
- bgColor: tokens.semantic.color.background.secondary700
44
+ bgColor: tokens.semantic.color.background.secondary900,
45
+ textColor: tokens.semantic.color.text.secondary0
45
46
  },
46
47
  active: {
47
- bgColor: tokens.semantic.color.background.secondary800
48
+ bgColor: tokens.semantic.color.background.secondary990,
49
+ textColor: tokens.semantic.color.text.secondary0
48
50
  },
49
51
  disabled: {
50
- bgColor: tokens.semantic.color.background.secondary800,
51
- textColor: tokens.semantic.color.text.secondary500
52
+ bgColor: tokens.semantic.color.background.secondary700,
53
+ textColor: tokens.semantic.color.text.secondary400
52
54
  }
53
55
  }
54
56
  }
@@ -1,24 +1,24 @@
1
1
  import { tokens } from '../../tokens';
2
2
  const theme = {
3
- height: '5.6rem',
4
- padding: '1.4rem 1.4rem 1.4rem 2.4rem',
5
- separator: `1px solid ${tokens.semantic.color.border.secondary800}`,
6
- boxShadow: `0px 1px 0px 0px ${tokens.semantic.color.border.secondary800}`,
3
+ height: '4.8rem',
4
+ padding: '0.8rem 1.4rem 0.8rem 2.4rem',
5
+ separator: `1px solid ${tokens.semantic.color.border.secondary700}`,
6
+ boxShadow: `0px 1px 0px 0px ${tokens.semantic.color.border.secondary700}`,
7
7
  group: {
8
8
  gap: '1.6rem'
9
9
  },
10
10
  variants: {
11
11
  default: {
12
- bgColor: tokens.semantic.color.background.secondary950,
13
- color: tokens.semantic.color.background.secondary50,
14
- userNameColor: tokens.semantic.color.background.secondary400,
15
- accountNameColor: tokens.semantic.color.background.secondary50
12
+ bgColor: tokens.semantic.color.background.secondary900,
13
+ color: tokens.semantic.color.text.secondary0,
14
+ userNameColor: tokens.semantic.color.background.secondary0,
15
+ accountNameColor: tokens.semantic.color.background.secondary400
16
16
  },
17
17
  alert: {
18
- bgColor: tokens.semantic.color.background.danger200,
19
- color: tokens.semantic.color.text.secondary950,
20
- userNameColor: tokens.semantic.color.text.secondary950,
21
- accountNameColor: tokens.semantic.color.text.secondary950
18
+ bgColor: tokens.semantic.color.background.primary0,
19
+ color: tokens.semantic.color.text.secondary0,
20
+ userNameColor: tokens.semantic.color.background.secondary0,
21
+ accountNameColor: tokens.semantic.color.background.secondary0
22
22
  }
23
23
  }
24
24
  };
@@ -8,21 +8,21 @@ const theme = {
8
8
  toggleStates: {
9
9
  on: {
10
10
  normal: {
11
- bgColor: 'transparent',
12
- borderColor: 'transparent',
13
- textColor: tokens.semantic.color.text.secondary200
11
+ bgColor: tokens.semantic.color.background.secondary900,
12
+ borderColor: tokens.semantic.color.border.secondary700,
13
+ textColor: tokens.semantic.color.text.secondary0
14
14
  }
15
15
  },
16
16
  off: {
17
17
  normal: {
18
18
  bgColor: 'transparent',
19
19
  borderColor: 'transparent',
20
- textColor: tokens.semantic.color.text.secondary200
20
+ textColor: tokens.semantic.color.text.secondary0
21
21
  },
22
22
  hover: {
23
- bgColor: tokens.semantic.color.background.secondary800,
24
- borderColor: tokens.semantic.color.border.secondary800,
25
- textColor: tokens.semantic.color.text.secondary200
23
+ bgColor: tokens.semantic.color.background.secondary900,
24
+ borderColor: tokens.semantic.color.border.secondary900,
25
+ textColor: tokens.semantic.color.text.secondary0
26
26
  }
27
27
  }
28
28
  }
@@ -39,7 +39,7 @@ const theme = {
39
39
  width: '11rem',
40
40
  height: '6rem',
41
41
  label: {
42
- color: tokens.semantic.color.text.neutral800
42
+ color: tokens.semantic.color.text.secondary0
43
43
  }
44
44
  }
45
45
  };
@@ -1,3 +1,4 @@
1
+ import { withOpacity } from '../../../../utils';
1
2
  import { tokens } from '../../tokens';
2
3
  const borderWidth = '1px';
3
4
  const theme = {
@@ -9,52 +10,52 @@ const theme = {
9
10
  borderStyle: 'solid',
10
11
  variants: {
11
12
  white: {
12
- backgroundColor: tokens.semantic.color.background.secondary300,
13
- color: tokens.semantic.color.text.secondary900,
14
- borderColor: tokens.semantic.color.border.secondary400,
15
- iconColor: tokens.semantic.color.text.secondary700
13
+ backgroundColor: tokens.semantic.color.background.secondary950,
14
+ color: tokens.semantic.color.text.secondary0,
15
+ borderColor: tokens.semantic.color.border.secondary700,
16
+ iconColor: tokens.semantic.color.icon.secondary0
16
17
  },
17
18
  light: {
18
- backgroundColor: tokens.semantic.color.background.secondary600,
19
+ backgroundColor: tokens.semantic.color.background.secondary990,
19
20
  color: tokens.semantic.color.text.secondary0,
20
- borderColor: tokens.semantic.color.border.secondary500,
21
- iconColor: tokens.semantic.color.text.secondary300
21
+ borderColor: tokens.semantic.color.border.secondary700,
22
+ iconColor: tokens.semantic.color.icon.secondary0
22
23
  },
23
24
  default: {
24
- backgroundColor: tokens.semantic.color.background.informative900,
25
- color: tokens.semantic.color.text.informative200,
26
- borderColor: tokens.semantic.color.border.informative700,
27
- iconColor: tokens.semantic.color.text.primary500
25
+ backgroundColor: tokens.semantic.color.background.secondary900,
26
+ color: tokens.semantic.color.text.secondary0,
27
+ borderColor: tokens.semantic.color.border.secondary700,
28
+ iconColor: tokens.semantic.color.icon.secondary0
28
29
  },
29
30
  informative: {
30
- backgroundColor: tokens.semantic.color.background.informative900,
31
- color: tokens.semantic.color.text.primary200,
32
- borderColor: tokens.semantic.color.border.informative500,
33
- iconColor: tokens.semantic.color.text.informative300
31
+ backgroundColor: tokens.semantic.color.background.informative0,
32
+ color: tokens.semantic.color.text.informative300,
33
+ borderColor: withOpacity(tokens.semantic.color.border.informative200, 0.24),
34
+ iconColor: tokens.semantic.color.icon.informative300
34
35
  },
35
36
  success: {
36
- backgroundColor: tokens.semantic.color.background.success900,
37
- color: tokens.semantic.color.text.success200,
38
- borderColor: tokens.semantic.color.border.success700,
39
- iconColor: tokens.semantic.color.text.success500
37
+ backgroundColor: tokens.semantic.color.background.success0,
38
+ color: tokens.semantic.color.text.success500,
39
+ borderColor: withOpacity(tokens.semantic.color.border.success500, 0.24),
40
+ iconColor: tokens.semantic.color.icon.success500
40
41
  },
41
42
  notice: {
42
- backgroundColor: tokens.semantic.color.background.notice900,
43
- color: tokens.semantic.color.text.notice200,
44
- borderColor: tokens.semantic.color.border.notice600,
45
- iconColor: tokens.semantic.color.text.notice300
43
+ backgroundColor: tokens.semantic.color.background.notice0,
44
+ color: tokens.semantic.color.text.notice400,
45
+ borderColor: withOpacity(tokens.semantic.color.border.notice400, 0.24),
46
+ iconColor: tokens.semantic.color.icon.notice400
46
47
  },
47
48
  danger: {
48
- backgroundColor: tokens.semantic.color.background.danger900,
49
- color: tokens.semantic.color.text.danger200,
50
- borderColor: tokens.semantic.color.border.danger700,
51
- iconColor: tokens.semantic.color.text.danger200
49
+ backgroundColor: tokens.semantic.color.background.primary0,
50
+ color: tokens.semantic.color.text.primary300,
51
+ borderColor: withOpacity(tokens.semantic.color.border.primary300, 0.24),
52
+ iconColor: tokens.semantic.color.icon.primary300
52
53
  },
53
54
  attention: {
54
- backgroundColor: tokens.semantic.color.background.attention900,
55
- color: tokens.semantic.color.text.attention200,
56
- borderColor: tokens.semantic.color.border.attention600,
57
- iconColor: tokens.semantic.color.text.attention400
55
+ backgroundColor: tokens.semantic.color.background.notice0,
56
+ color: tokens.semantic.color.text.notice400,
57
+ borderColor: withOpacity(tokens.semantic.color.border.notice400, 0.24),
58
+ iconColor: tokens.semantic.color.icon.notice400
58
59
  },
59
60
  upsell: {
60
61
  backgroundColor: tokens.semantic.color.background.discovery700,
@@ -63,10 +64,10 @@ const theme = {
63
64
  iconColor: tokens.semantic.color.text.discovery400
64
65
  },
65
66
  disabled: {
66
- backgroundColor: tokens.semantic.color.background.secondary950,
67
- color: tokens.semantic.color.text.secondary700,
68
- borderColor: tokens.semantic.color.border.secondary800,
69
- iconColor: tokens.semantic.color.text.secondary700
67
+ backgroundColor: tokens.semantic.color.background.secondary700,
68
+ color: tokens.semantic.color.text.secondary400,
69
+ borderColor: tokens.semantic.color.border.secondary700,
70
+ iconColor: tokens.semantic.color.icon.secondary400
70
71
  }
71
72
  }
72
73
  };
@@ -1,4 +1,5 @@
1
1
  import { tokens } from '../../tokens';
2
+ import { withOpacity } from '../../../../utils';
2
3
  const theme = {
3
4
  gap: tokens.core.space.space300,
4
5
  item: {
@@ -13,39 +14,39 @@ const theme = {
13
14
  bgColor: tokens.semantic.color.background.secondary900,
14
15
  borderColor: tokens.semantic.color.border.secondary700,
15
16
  markerColor: 'transparent',
16
- textColor: tokens.semantic.color.text.secondary200,
17
- iconColor: tokens.semantic.color.icon.secondary200
17
+ textColor: tokens.semantic.color.text.secondary0,
18
+ iconColor: tokens.semantic.color.icon.secondary0
18
19
  },
19
20
  hover: {
20
21
  bgColor: tokens.semantic.color.background.secondary900,
21
- borderColor: tokens.semantic.color.border.primary400,
22
- markerColor: tokens.semantic.color.border.primary400,
23
- textColor: tokens.semantic.color.text.secondary200,
24
- iconColor: tokens.semantic.color.icon.secondary200
22
+ borderColor: tokens.semantic.color.border.secondary500,
23
+ markerColor: 'transparent',
24
+ textColor: tokens.semantic.color.text.secondary0,
25
+ iconColor: tokens.semantic.color.icon.secondary0
25
26
  },
26
27
  disabled: {
27
- bgColor: tokens.semantic.color.background.neutral900,
28
- borderColor: tokens.semantic.color.border.neutral800,
28
+ bgColor: tokens.semantic.color.background.secondary900,
29
+ borderColor: tokens.semantic.color.border.secondary700,
29
30
  markerColor: 'transparent',
30
- textColor: tokens.semantic.color.text.secondary800,
31
- iconColor: tokens.semantic.color.icon.secondary800,
31
+ textColor: tokens.semantic.color.text.secondary400,
32
+ iconColor: tokens.semantic.color.icon.secondary400,
32
33
  opacity: '0.5'
33
34
  }
34
35
  },
35
36
  checked: {
36
37
  normal: {
37
- bgColor: tokens.semantic.color.background.secondary900,
38
- borderColor: tokens.semantic.color.border.primary300,
39
- markerColor: tokens.semantic.color.border.primary300,
40
- textColor: tokens.semantic.color.text.secondary200,
41
- iconColor: tokens.semantic.color.icon.secondary200
38
+ bgColor: withOpacity(tokens.semantic.color.background.informative300, 0.08),
39
+ borderColor: tokens.semantic.color.border.informative300,
40
+ markerColor: 'transparent',
41
+ textColor: tokens.semantic.color.text.secondary0,
42
+ iconColor: tokens.semantic.color.icon.secondary0
42
43
  },
43
44
  disabled: {
44
45
  bgColor: tokens.semantic.color.background.secondary900,
45
- borderColor: tokens.semantic.color.border.secondary900,
46
- markerColor: tokens.semantic.color.border.secondary800,
47
- textColor: tokens.semantic.color.text.secondary800,
48
- iconColor: tokens.semantic.color.icon.secondary800,
46
+ borderColor: tokens.semantic.color.border.secondary400,
47
+ markerColor: 'transparent',
48
+ textColor: tokens.semantic.color.text.secondary400,
49
+ iconColor: tokens.semantic.color.icon.secondary400,
49
50
  opacity: '0.5'
50
51
  }
51
52
  }
@@ -4,25 +4,25 @@ const theme = {
4
4
  link: {
5
5
  states: {
6
6
  normal: {
7
- textColor: tokens.semantic.color.text.secondary500
7
+ textColor: tokens.semantic.color.text.secondary300
8
8
  },
9
9
  hover: {
10
- textColor: tokens.semantic.color.text.secondary200
10
+ textColor: tokens.semantic.color.text.secondary0
11
11
  },
12
12
  active: {
13
- textColor: tokens.semantic.color.text.secondary200
13
+ textColor: tokens.semantic.color.text.secondary0
14
14
  },
15
15
  disabled: {
16
- textColor: tokens.semantic.color.text.secondary500
16
+ textColor: tokens.semantic.color.text.secondary400
17
17
  }
18
18
  }
19
19
  },
20
20
  current: {
21
- textColor: tokens.semantic.color.text.secondary200,
21
+ textColor: tokens.semantic.color.text.secondary0,
22
22
  fontWeight: tokens.core.font.fontWeight.semiBold
23
23
  },
24
24
  separator: {
25
- textColor: tokens.semantic.color.text.secondary500
25
+ textColor: tokens.semantic.color.text.secondary400
26
26
  }
27
27
  };
28
28
  export default theme;
@@ -1,4 +1,6 @@
1
1
  import { tokens } from '../../tokens';
2
+ import { withOpacity } from '../../../../utils';
3
+ const destructiveBorder = withOpacity(tokens.semantic.color.background.primary300, 0.55);
2
4
  const theme = {
3
5
  gap: '0.2rem',
4
6
  sizes: {
@@ -24,46 +26,46 @@ const theme = {
24
26
  variants: {
25
27
  primary: {
26
28
  normal: {
27
- bgColor: tokens.semantic.color.background.primary400,
28
- borderColor: tokens.semantic.color.border.primary600,
29
+ bgColor: tokens.semantic.color.background.primary950,
30
+ borderColor: tokens.semantic.color.border.primary400,
29
31
  textColor: tokens.semantic.color.text.secondary0
30
32
  },
31
33
  hover: {
32
- bgColor: tokens.semantic.color.background.primary500,
34
+ bgColor: tokens.semantic.color.background.primary800,
33
35
  borderColor: tokens.semantic.color.border.primary600,
34
- textColor: tokens.semantic.color.text.secondary950
36
+ textColor: tokens.semantic.color.text.secondary0
35
37
  },
36
38
  active: {
37
39
  bgColor: tokens.semantic.color.background.primary600,
38
- borderColor: tokens.semantic.color.border.primary800,
40
+ borderColor: tokens.semantic.color.border.primary600,
39
41
  textColor: tokens.semantic.color.text.secondary0
40
42
  },
41
43
  disabled: {
42
- bgColor: tokens.semantic.color.background.secondary800,
44
+ bgColor: tokens.semantic.color.background.secondary700,
43
45
  borderColor: tokens.semantic.color.border.secondary700,
44
- textColor: tokens.semantic.color.text.secondary500
46
+ textColor: tokens.semantic.color.text.secondary400
45
47
  }
46
48
  },
47
49
  destructive: {
48
50
  normal: {
49
- bgColor: tokens.semantic.color.background.danger500,
50
- borderColor: tokens.semantic.color.border.danger700,
51
- textColor: tokens.semantic.color.text.secondary0
51
+ bgColor: tokens.semantic.color.background.secondary800,
52
+ borderColor: destructiveBorder,
53
+ textColor: tokens.semantic.color.text.primary300
52
54
  },
53
55
  hover: {
54
- bgColor: tokens.semantic.color.background.danger600,
55
- borderColor: tokens.semantic.color.border.danger700,
56
- textColor: tokens.semantic.color.text.secondary0
56
+ bgColor: tokens.semantic.color.background.secondary700,
57
+ borderColor: destructiveBorder,
58
+ textColor: tokens.semantic.color.text.primary300
57
59
  },
58
60
  active: {
59
- bgColor: tokens.semantic.color.background.danger700,
60
- borderColor: tokens.semantic.color.border.danger800,
61
- textColor: tokens.semantic.color.text.secondary0
61
+ bgColor: tokens.semantic.color.background.secondary500,
62
+ borderColor: destructiveBorder,
63
+ textColor: tokens.semantic.color.text.primary300
62
64
  },
63
65
  disabled: {
64
- bgColor: tokens.semantic.color.background.secondary800,
66
+ bgColor: tokens.semantic.color.background.secondary700,
65
67
  borderColor: tokens.semantic.color.border.secondary700,
66
- textColor: tokens.semantic.color.text.secondary500
68
+ textColor: tokens.semantic.color.text.secondary400
67
69
  }
68
70
  },
69
71
  'secondary-fill': {
@@ -74,18 +76,18 @@ const theme = {
74
76
  },
75
77
  hover: {
76
78
  bgColor: tokens.semantic.color.background.secondary700,
77
- borderColor: tokens.semantic.color.border.secondary600,
79
+ borderColor: tokens.semantic.color.border.secondary500,
78
80
  textColor: tokens.semantic.color.text.secondary0
79
81
  },
80
82
  active: {
81
- bgColor: tokens.semantic.color.background.secondary800,
82
- borderColor: tokens.semantic.color.border.secondary700,
83
+ bgColor: tokens.semantic.color.background.secondary500,
84
+ borderColor: tokens.semantic.color.border.secondary500,
83
85
  textColor: tokens.semantic.color.text.secondary0
84
86
  },
85
87
  disabled: {
86
- bgColor: tokens.semantic.color.background.secondary800,
88
+ bgColor: tokens.semantic.color.background.secondary700,
87
89
  borderColor: tokens.semantic.color.border.secondary700,
88
- textColor: tokens.semantic.color.text.secondary500
90
+ textColor: tokens.semantic.color.text.secondary400
89
91
  }
90
92
  },
91
93
  'secondary-invert': {
@@ -105,9 +107,9 @@ const theme = {
105
107
  textColor: tokens.semantic.color.text.secondary0
106
108
  },
107
109
  disabled: {
108
- bgColor: tokens.semantic.color.background.secondary800,
110
+ bgColor: tokens.semantic.color.background.secondary700,
109
111
  borderColor: tokens.semantic.color.border.secondary700,
110
- textColor: tokens.semantic.color.text.secondary500
112
+ textColor: tokens.semantic.color.text.secondary400
111
113
  }
112
114
  },
113
115
  'secondary-ghost': {
@@ -129,7 +131,7 @@ const theme = {
129
131
  disabled: {
130
132
  bgColor: 'transparent',
131
133
  borderColor: tokens.semantic.color.border.secondary700,
132
- textColor: tokens.semantic.color.text.secondary500
134
+ textColor: tokens.semantic.color.text.secondary400
133
135
  }
134
136
  },
135
137
  upsell: {
@@ -148,9 +150,9 @@ const theme = {
148
150
  },
149
151
  disabled: {
150
152
  bgGradient: 'unset',
151
- bgColor: tokens.semantic.color.background.secondary800,
153
+ bgColor: tokens.semantic.color.background.secondary700,
152
154
  borderColor: tokens.semantic.color.border.secondary700,
153
- textColor: tokens.semantic.color.text.secondary500
155
+ textColor: tokens.semantic.color.text.secondary400
154
156
  }
155
157
  },
156
158
  'upsell-invert': {
@@ -170,9 +172,9 @@ const theme = {
170
172
  textColor: tokens.semantic.color.text.discovery200
171
173
  },
172
174
  disabled: {
173
- bgColor: tokens.semantic.color.background.secondary800,
175
+ bgColor: tokens.semantic.color.background.secondary700,
174
176
  borderColor: tokens.semantic.color.border.secondary700,
175
- textColor: tokens.semantic.color.text.secondary500
177
+ textColor: tokens.semantic.color.text.secondary400
176
178
  }
177
179
  },
178
180
  'upsell-ghost': {
@@ -194,7 +196,7 @@ const theme = {
194
196
  disabled: {
195
197
  bgColor: 'transparent',
196
198
  borderColor: tokens.semantic.color.border.secondary700,
197
- textColor: tokens.semantic.color.text.secondary500
199
+ textColor: tokens.semantic.color.text.secondary400
198
200
  }
199
201
  },
200
202
  notice: {
@@ -213,9 +215,9 @@ const theme = {
213
215
  },
214
216
  disabled: {
215
217
  bgGradient: 'unset',
216
- bgColor: tokens.semantic.color.background.secondary800,
218
+ bgColor: tokens.semantic.color.background.secondary700,
217
219
  borderColor: tokens.semantic.color.border.secondary700,
218
- textColor: tokens.semantic.color.text.secondary500
220
+ textColor: tokens.semantic.color.text.secondary400
219
221
  }
220
222
  }
221
223
  }
@@ -2,7 +2,7 @@ import { tokens } from '../../tokens';
2
2
  const theme = {
3
3
  borderRadius: '0.5rem',
4
4
  border: `1px solid ${tokens.semantic.color.border.transparent}`,
5
- bgColor: tokens.semantic.color.background.secondary900,
5
+ bgColor: tokens.semantic.color.background.secondary990,
6
6
  fontSize: '1.4rem',
7
7
  fontWeight: tokens.core.font.fontWeight.normal,
8
8
  fontStyle: 'normal',
@@ -17,45 +17,45 @@ const theme = {
17
17
  toggleStates: {
18
18
  on: {
19
19
  normal: {
20
- bgColor: tokens.semantic.color.background.primary400,
20
+ bgColor: tokens.semantic.color.background.secondary950,
21
21
  textColor: tokens.semantic.color.text.secondary0,
22
- borderColor: tokens.semantic.color.border.primary600
22
+ borderColor: tokens.semantic.color.border.secondary500
23
23
  },
24
24
  hover: {
25
- bgColor: tokens.semantic.color.background.primary400,
25
+ bgColor: tokens.semantic.color.background.secondary950,
26
26
  textColor: tokens.semantic.color.text.secondary0,
27
- borderColor: tokens.semantic.color.border.primary600
27
+ borderColor: tokens.semantic.color.border.secondary500
28
28
  },
29
29
  active: {
30
- bgColor: tokens.semantic.color.background.primary400,
30
+ bgColor: tokens.semantic.color.background.secondary950,
31
31
  textColor: tokens.semantic.color.text.secondary0,
32
- borderColor: tokens.semantic.color.border.primary600
32
+ borderColor: tokens.semantic.color.border.secondary500
33
33
  },
34
34
  disabled: {
35
- bgColor: tokens.semantic.color.background.secondary800,
36
- textColor: tokens.semantic.color.text.secondary500,
37
- borderColor: 'transparent'
35
+ bgColor: tokens.semantic.color.background.secondary950,
36
+ textColor: tokens.semantic.color.text.secondary400,
37
+ borderColor: tokens.semantic.color.border.secondary500
38
38
  }
39
39
  },
40
40
  off: {
41
41
  normal: {
42
- bgColor: tokens.semantic.color.background.secondary900,
42
+ bgColor: 'transparent',
43
43
  textColor: tokens.semantic.color.text.secondary300,
44
44
  borderColor: 'transparent'
45
45
  },
46
46
  hover: {
47
- bgColor: tokens.semantic.color.background.secondary800,
48
- textColor: tokens.semantic.color.text.secondary200,
47
+ bgColor: 'transparent',
48
+ textColor: tokens.semantic.color.text.secondary0,
49
49
  borderColor: 'transparent'
50
50
  },
51
51
  active: {
52
- bgColor: tokens.semantic.color.background.secondary700,
53
- textColor: tokens.semantic.color.text.secondary200,
52
+ bgColor: 'transparent',
53
+ textColor: tokens.semantic.color.text.secondary0,
54
54
  borderColor: 'transparent'
55
55
  },
56
56
  disabled: {
57
- bgColor: tokens.semantic.color.background.secondary900,
58
- textColor: tokens.semantic.color.text.secondary500,
57
+ bgColor: 'transparent',
58
+ textColor: tokens.semantic.color.text.secondary400,
59
59
  borderColor: 'transparent'
60
60
  }
61
61
  }