@taiga-ui/styles 4.75.0 → 5.0.0-canary.1e78a8a

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 (73) hide show
  1. package/components/appearance.less +51 -0
  2. package/components/avatar.less +193 -0
  3. package/components/badge.less +127 -0
  4. package/components/block.less +118 -0
  5. package/components/button.less +140 -0
  6. package/components/checkbox.less +84 -0
  7. package/components/chip.less +131 -0
  8. package/components/comment.less +63 -0
  9. package/components/compass.less +49 -0
  10. package/components/group.less +172 -0
  11. package/components/icon.less +83 -0
  12. package/components/icons.less +79 -0
  13. package/components/label.less +51 -0
  14. package/components/like.less +67 -0
  15. package/components/link.less +69 -0
  16. package/components/message.less +33 -0
  17. package/components/notification.less +181 -0
  18. package/components/pin.less +166 -0
  19. package/components/progress-bar.less +117 -0
  20. package/components/radio.less +59 -0
  21. package/components/status.less +40 -0
  22. package/components/switch.less +104 -0
  23. package/components/textfield.less +362 -0
  24. package/components/title.less +80 -0
  25. package/components/toast.less +46 -0
  26. package/mixins/appearance.less +56 -0
  27. package/mixins/appearance.scss +57 -0
  28. package/mixins/browsers.less +23 -0
  29. package/mixins/browsers.scss +23 -0
  30. package/mixins/date-picker.less +152 -0
  31. package/mixins/date-picker.scss +152 -0
  32. package/mixins/hitbox.less +17 -0
  33. package/mixins/hitbox.scss +17 -0
  34. package/mixins/miscellaneous.less +171 -0
  35. package/mixins/miscellaneous.scss +164 -0
  36. package/mixins/slider.less +67 -0
  37. package/mixins/slider.scss +67 -0
  38. package/package.json +9 -2
  39. package/taiga-ui-fonts.less +4 -0
  40. package/taiga-ui-theme.less +4 -0
  41. package/theme/appearance/accent.less +14 -0
  42. package/theme/appearance/action.less +38 -0
  43. package/theme/appearance/flat.less +23 -0
  44. package/theme/appearance/floating.less +21 -0
  45. package/theme/appearance/glass.less +30 -0
  46. package/theme/appearance/outline.less +78 -0
  47. package/theme/appearance/primary.less +48 -0
  48. package/theme/appearance/secondary.less +77 -0
  49. package/theme/appearance/status.less +125 -0
  50. package/theme/appearance/table.less +67 -0
  51. package/theme/appearance/textfield.less +80 -0
  52. package/theme/appearance.less +12 -0
  53. package/theme/palette.less +161 -0
  54. package/theme/variables.less +71 -0
  55. package/utils.less +7 -0
  56. package/utils.scss +7 -0
  57. package/variables/media.less +23 -0
  58. package/variables/media.scss +23 -0
  59. package/basic/keyframes.less +0 -19
  60. package/basic/main.less +0 -80
  61. package/markup/tui-container.less +0 -64
  62. package/markup/tui-form.less +0 -145
  63. package/markup/tui-island.less +0 -200
  64. package/markup/tui-list.less +0 -136
  65. package/markup/tui-mobile-only.less +0 -5
  66. package/markup/tui-required.less +0 -13
  67. package/markup/tui-row.less +0 -139
  68. package/markup/tui-skeleton.less +0 -43
  69. package/markup/tui-space.less +0 -52
  70. package/markup/tui-table.less +0 -184
  71. package/markup/tui-text.less +0 -61
  72. package/project.json +0 -35
  73. package/taiga-ui-global.less +0 -14
@@ -0,0 +1,164 @@
1
+ @import 'browsers';
2
+
3
+ @mixin interactive {
4
+ &:is(a, button, select, textarea, input, label, .tui-interactive):not(:disabled) {
5
+ @content;
6
+ }
7
+ }
8
+
9
+ // centering with translate
10
+ @mixin center-left() {
11
+ position: absolute;
12
+ // stylelint-disable-next-line
13
+ left: 50%;
14
+ transform: translate(-50%, 0);
15
+ }
16
+
17
+ @mixin center-top() {
18
+ position: absolute;
19
+ // stylelint-disable-next-line
20
+ top: 50%;
21
+ transform: translate(0, -50%);
22
+ }
23
+
24
+ @mixin center-all() {
25
+ position: absolute;
26
+ inset: 50% auto auto 50%;
27
+ transform: translate(-50%, -50%);
28
+ }
29
+
30
+ //.fullsize
31
+ @mixin fullsize($position: absolute, $mode: height) {
32
+ position: $position;
33
+ inset-block-start: 0;
34
+ inset-inline-start: 0;
35
+
36
+ @if ($mode == height) {
37
+ inline-size: 100%;
38
+ block-size: 100%;
39
+ }
40
+
41
+ @if ($mode == inset) {
42
+ inset-block-end: 0;
43
+ inset-inline-end: 0;
44
+ }
45
+ }
46
+
47
+ @mixin button-clear() {
48
+ appearance: none;
49
+ padding: 0;
50
+ border: 0;
51
+ background: none;
52
+ font: inherit;
53
+ line-height: inherit;
54
+ text-decoration: none;
55
+ }
56
+
57
+ @mixin button-base() {
58
+ @include button-clear();
59
+
60
+ position: relative;
61
+ display: inline-flex;
62
+ align-items: center;
63
+ flex-shrink: 0;
64
+ box-sizing: border-box;
65
+ white-space: nowrap;
66
+ overflow: hidden;
67
+ vertical-align: middle;
68
+ max-inline-size: 100%;
69
+ gap: calc(var(--t-gap) - 2 * var(--t-margin));
70
+
71
+ > img,
72
+ > tui-icon,
73
+ > [tuiAvatar],
74
+ > tui-badge,
75
+ > [tuiBadge],
76
+ > [tuiRadio],
77
+ > [tuiSwitch],
78
+ > [tuiCheckbox],
79
+ &[tuiIcons]::before,
80
+ &[tuiIcons]::after {
81
+ margin: var(--t-margin);
82
+ }
83
+ }
84
+
85
+ // transition
86
+ @mixin transition($param: all, $speed: var(--tui-duration, 300ms)) {
87
+ transition-property: $param;
88
+ transition-duration: $speed;
89
+ transition-timing-function: ease-in-out;
90
+ }
91
+
92
+ // gradient
93
+ @mixin gradient($start-color, $end-color, $angle: 45deg) {
94
+ background-image: linear-gradient($angle, $start-color 0%, $end-color 100%);
95
+ }
96
+
97
+ // typical properties for text overflow with ellipsis
98
+ @mixin text-overflow($type: nowrap) {
99
+ white-space: $type;
100
+ overflow: hidden;
101
+ text-overflow: ellipsis;
102
+ }
103
+
104
+ @mixin scrollbar-hidden() {
105
+ /* stylelint-disable*/
106
+ scrollbar-width: none;
107
+ -ms-overflow-style: none;
108
+ /* stylelint-enable*/
109
+
110
+ &::-webkit-scrollbar,
111
+ &::-webkit-scrollbar-thumb {
112
+ display: none;
113
+ }
114
+ }
115
+
116
+ // hide an element visually without hiding it from screen readers
117
+ @mixin sr-only() {
118
+ position: absolute;
119
+ clip: rect(1px, 1px, 1px, 1px);
120
+ clip-path: inset(50%);
121
+ block-size: 1px;
122
+ inline-size: 1px;
123
+ margin: -1px;
124
+ overflow: hidden;
125
+ padding: 0;
126
+ }
127
+
128
+ // prevent scrolling to focused element on IOS
129
+ @mixin tui-prevent-ios-scroll() {
130
+ &:focus {
131
+ animation: tuiPreventIOSScroll 0.001s;
132
+ }
133
+
134
+ @keyframes tuiPreventIOSScroll {
135
+ 0% {
136
+ opacity: 0;
137
+ }
138
+
139
+ 100% {
140
+ opacity: 1;
141
+ }
142
+ }
143
+ }
144
+
145
+ @mixin text-truncate() {
146
+ @include text-overflow();
147
+
148
+ flex: 1;
149
+ min-inline-size: 0;
150
+ max-inline-size: max-content;
151
+ }
152
+
153
+ @mixin tui-line-clamp($count: 3) {
154
+ display: -webkit-box;
155
+ -webkit-box-orient: block-axis;
156
+ -webkit-line-clamp: $count;
157
+ line-clamp: $count;
158
+ overflow: hidden;
159
+ text-overflow: ellipsis;
160
+ }
161
+
162
+ @mixin tui-mask($x, $y, $r) {
163
+ mask: radial-gradient(circle at $x $y, transparent $r, black $r);
164
+ }
@@ -0,0 +1,67 @@
1
+ @track-inset: {
2
+ @s: 0.625rem;
3
+ @m: 0.75rem;
4
+ @l: 1rem;
5
+ };
6
+
7
+ @thumb-diameter: var(--tui-thumb-size, 0.75rem);
8
+ @thumb-radius: calc(@thumb-diameter / 2);
9
+ @track-thickness: max(calc(@thumb-radius - 0.25rem), 0.125rem);
10
+
11
+ .tui-slider-ticks-labels() {
12
+ --t-offset: @thumb-radius;
13
+
14
+ display: flex;
15
+ font: var(--tui-typography-body-s);
16
+ color: var(--tui-text-secondary);
17
+ margin: 0.25rem var(--t-offset) 0;
18
+
19
+ & > * {
20
+ position: relative;
21
+ flex: 2;
22
+ text-align: center;
23
+
24
+ &:first-child {
25
+ inset-inline-start: calc(-1 * var(--t-offset));
26
+ flex: 1;
27
+ text-align: start;
28
+ }
29
+
30
+ &:last-child {
31
+ inset-inline-end: calc(-1 * var(--t-offset));
32
+ flex: 1;
33
+ text-align: end;
34
+ }
35
+ }
36
+
37
+ tui-range + & {
38
+ --t-offset: @thumb-diameter;
39
+ }
40
+
41
+ /* TODO: add :has([tuiInputSlider]) */
42
+ tui-textfield[data-size='l'] + & {
43
+ --t-offset: calc(@track-inset[@l] + @thumb-radius);
44
+ }
45
+
46
+ /* TODO: add :has([tuiInputSlider]) */
47
+ tui-textfield[data-size='m'] + & {
48
+ --t-offset: calc(@track-inset[@m] + @thumb-radius);
49
+ }
50
+
51
+ /* TODO: add :has([tuiInputSlider]) */
52
+ tui-textfield[data-size='s'] + & {
53
+ --t-offset: calc(@track-inset[@s] + @thumb-radius);
54
+ }
55
+
56
+ tui-input-range[data-size='l'] + & {
57
+ --t-offset: calc(@track-inset[@l] + @thumb-diameter);
58
+ }
59
+
60
+ tui-input-range[data-size='m'] + & {
61
+ --t-offset: calc(@track-inset[@m] + @thumb-diameter);
62
+ }
63
+
64
+ tui-input-range[data-size='s'] + & {
65
+ --t-offset: calc(@track-inset[@s] + @thumb-diameter);
66
+ }
67
+ }
@@ -0,0 +1,67 @@
1
+ $track-inset: (
2
+ 's': 0.625rem,
3
+ 'm': 0.75rem,
4
+ 'l': 1rem,
5
+ );
6
+
7
+ $thumb-diameter: var(--tui-thumb-size, 0.75rem);
8
+ $thumb-radius: calc($thumb-diameter / 2);
9
+ $track-thickness: max(calc($thumb-radius - 0.25rem), 0.125rem);
10
+
11
+ @mixin tui-slider-ticks-labels() {
12
+ --t-offset: $thumb-radius;
13
+
14
+ display: flex;
15
+ font: var(--tui-typography-body-s);
16
+ color: var(--tui-text-secondary);
17
+ margin: 0.25rem var(--t-offset) 0;
18
+
19
+ & > * {
20
+ position: relative;
21
+ flex: 2;
22
+ text-align: center;
23
+
24
+ &:first-child {
25
+ inset-inline-start: calc(-1 * var(--t-offset));
26
+ flex: 1;
27
+ text-align: start;
28
+ }
29
+
30
+ &:last-child {
31
+ inset-inline-end: calc(-1 * var(--t-offset));
32
+ flex: 1;
33
+ text-align: end;
34
+ }
35
+ }
36
+
37
+ tui-range + & {
38
+ --t-offset: $thumb-diameter;
39
+ }
40
+
41
+ /* TODO: add :has([tuiInputSlider]) */
42
+ tui-textfield[data-size='l'] + & {
43
+ --t-offset: calc(map-get($track-inset, 'l') + $thumb-radius);
44
+ }
45
+
46
+ /* TODO: add :has([tuiInputSlider]) */
47
+ tui-textfield[data-size='m'] + & {
48
+ --t-offset: calc(map-get($track-inset, 'm') + $thumb-radius);
49
+ }
50
+
51
+ /* TODO: add :has([tuiInputSlider]) */
52
+ tui-textfield[data-size='s'] + & {
53
+ --t-offset: calc(map-get($track-inset, 's') + $thumb-radius);
54
+ }
55
+
56
+ tui-input-range[data-size='l'] + & {
57
+ --t-offset: calc(map-get($track-inset, 'l') + $thumb-diameter);
58
+ }
59
+
60
+ tui-input-range[data-size='m'] + & {
61
+ --t-offset: calc(map-get($track-inset, 'm') + $thumb-diameter);
62
+ }
63
+
64
+ tui-input-range[data-size='s'] + & {
65
+ --t-offset: calc(map-get($track-inset, 's') + $thumb-diameter);
66
+ }
67
+ }
package/package.json CHANGED
@@ -1,5 +1,12 @@
1
1
  {
2
2
  "name": "@taiga-ui/styles",
3
- "version": "4.75.0",
4
- "description": "Global Styles for Taiga UI"
3
+ "version": "5.0.0-canary.1e78a8a",
4
+ "description": "Framework-agnostic package with styles for Taiga UI",
5
+ "license": "Apache-2.0",
6
+ "exports": {
7
+ "./*": "./*"
8
+ },
9
+ "peerDependencies": {
10
+ "@taiga-ui/design-tokens": "~0.286.0"
11
+ }
5
12
  }
@@ -0,0 +1,4 @@
1
+ // stylelint-disable
2
+ // https://github.com/stackblitz/core/issues/2104#issuecomment-1397086512
3
+ //noinspection CssUnknownTarget
4
+ @import (optional) url(https://fonts.googleapis.com/css2?family=Manrope:wght@500;800&display=swap);
@@ -0,0 +1,4 @@
1
+ @import 'theme/variables.less';
2
+ @import 'theme/palette.less';
3
+ @import 'theme/appearance.less';
4
+ @import 'theme/appearance/textfield.less';
@@ -0,0 +1,14 @@
1
+ @import '../../utils.less';
2
+
3
+ [tuiAppearance][data-appearance='accent'] {
4
+ background: var(--tui-background-accent-2);
5
+ color: var(--tui-text-primary-on-accent-2);
6
+
7
+ .appearance-hover({
8
+ background: var(--tui-background-accent-2-hover);
9
+ });
10
+
11
+ .appearance-active({
12
+ background: var(--tui-background-accent-2-pressed);
13
+ });
14
+ }
@@ -0,0 +1,38 @@
1
+ [tuiAppearance][data-appearance='action'] {
2
+ color: var(--tui-text-action);
3
+ background: transparent;
4
+
5
+ .appearance-hover({
6
+ color: var(--tui-text-action-hover);
7
+ });
8
+
9
+ .appearance-active({
10
+ color: var(--tui-text-action-hover);
11
+ });
12
+ }
13
+
14
+ [tuiAppearance][data-appearance='action-destructive'] {
15
+ color: var(--tui-text-negative);
16
+ background: transparent;
17
+
18
+ .appearance-hover({
19
+ color: var(--tui-text-negative-hover);
20
+ });
21
+
22
+ .appearance-active({
23
+ color: var(--tui-text-negative-hover);
24
+ });
25
+ }
26
+
27
+ [tuiAppearance][data-appearance='action-grayscale'] {
28
+ color: var(--tui-text-secondary);
29
+ background: transparent;
30
+
31
+ .appearance-hover({
32
+ color: var(--tui-text-primary);
33
+ });
34
+
35
+ .appearance-active({
36
+ color: var(--tui-text-primary);
37
+ });
38
+ }
@@ -0,0 +1,23 @@
1
+ @import '../../utils.less';
2
+
3
+ [tuiAppearance][data-appearance='flat'],
4
+ [tuiAppearance][data-appearance='flat-destructive'],
5
+ [tuiAppearance][data-appearance='flat-grayscale'] {
6
+ color: var(--tui-text-action);
7
+
8
+ .appearance-hover({
9
+ background: var(--tui-background-neutral-1-hover);
10
+ });
11
+
12
+ .appearance-active({
13
+ background: var(--tui-background-neutral-1-pressed);
14
+ });
15
+ }
16
+
17
+ [tuiAppearance][data-appearance='flat-destructive'] {
18
+ color: var(--tui-text-negative);
19
+ }
20
+
21
+ [tuiAppearance][data-appearance='flat-grayscale'] {
22
+ color: var(--tui-text-primary);
23
+ }
@@ -0,0 +1,21 @@
1
+ @import '../../utils.less';
2
+
3
+ [tuiAppearance][data-appearance='floating'] {
4
+ background: var(--tui-background-elevation-2);
5
+ color: var(--tui-text-primary);
6
+ box-shadow: var(--tui-shadow-small);
7
+
8
+ &::before,
9
+ &::after {
10
+ transition-property: color;
11
+ }
12
+
13
+ .appearance-hover({
14
+ box-shadow: var(--tui-shadow-small-hover);
15
+ });
16
+
17
+ .appearance-active({
18
+ background: var(--tui-background-base-alt);
19
+ box-shadow: var(--tui-shadow-small);
20
+ });
21
+ }
@@ -0,0 +1,30 @@
1
+ @import '../../utils.less';
2
+
3
+ [tuiAppearance][data-appearance='glass'] {
4
+ background: rgba(0, 0, 0, 0.4);
5
+ color: #fff;
6
+ backdrop-filter: blur(1rem);
7
+
8
+ --tui-border-focus: rgba(255, 255, 255, 0.64);
9
+
10
+ .appearance-hover({
11
+ background: rgba(0, 0, 0, 0.48);
12
+ });
13
+
14
+ .appearance-active({
15
+ background: rgba(0, 0, 0, 0.6);
16
+ });
17
+ }
18
+
19
+ [tuiTheme='dark'] [tuiAppearance][data-appearance='glass'],
20
+ [tuiTheme='dark'][tuiAppearance][data-appearance='glass'] {
21
+ background: rgba(255, 255, 255, 0.3);
22
+
23
+ .appearance-hover({
24
+ background: rgba(255, 255, 255, 0.4);
25
+ });
26
+
27
+ .appearance-active({
28
+ background: rgba(255, 255, 255, 0.5);
29
+ });
30
+ }
@@ -0,0 +1,78 @@
1
+ @import '../../utils.less';
2
+
3
+ [tuiAppearance][data-appearance='outline'],
4
+ [tuiAppearance][data-appearance='outline-destructive'],
5
+ [tuiAppearance][data-appearance='outline-grayscale'] {
6
+ --t-bs: var(--tui-border-normal);
7
+
8
+ color: var(--tui-text-action);
9
+ box-shadow: inset 0 0 0 1px var(--t-bs);
10
+
11
+ &:checked:not([data-mode]),
12
+ &[data-mode~='checked'] {
13
+ --t-bs: var(--tui-background-accent-1);
14
+
15
+ box-shadow: inset 0 0 0 2px var(--t-bs);
16
+
17
+ .appearance-hover({
18
+ --t-bs: var(--tui-background-accent-1-hover);
19
+ });
20
+
21
+ .appearance-active({
22
+ --t-bs: var(--tui-background-accent-1-pressed);
23
+ });
24
+ }
25
+
26
+ .appearance-invalid({
27
+ box-shadow: inset 0 0 0 1px var(--tui-status-negative-pale-hover);
28
+
29
+ &:checked,
30
+ &[data-mode~='checked'] {
31
+ box-shadow: inset 0 0 0 2px var(--tui-status-negative);
32
+ }
33
+ });
34
+
35
+ .appearance-hover({
36
+ cursor: pointer;
37
+ --t-bs: var(--tui-border-hover);
38
+ });
39
+
40
+ .appearance-active({
41
+ background: var(--tui-background-neutral-1);
42
+ --t-bs: var(--tui-border-hover);
43
+ });
44
+ }
45
+
46
+ [tuiAppearance][data-appearance='outline-grayscale'] {
47
+ color: var(--tui-text-primary);
48
+ }
49
+
50
+ [tuiAppearance][data-appearance='outline-destructive'] {
51
+ color: var(--tui-text-negative);
52
+ }
53
+
54
+ [tuiAppearance][data-appearance='icon'],
55
+ [tuiAppearance][data-appearance='outline-grayscale'],
56
+ [tuiAppearance][data-appearance='floating'] {
57
+ color: var(--tui-text-primary);
58
+
59
+ &::before,
60
+ &::after {
61
+ transition-property: color, transform;
62
+ color: var(--tui-text-tertiary);
63
+ }
64
+
65
+ .appearance-hover({
66
+ &:before,
67
+ &:after {
68
+ color: var(--tui-text-secondary);
69
+ }
70
+ });
71
+
72
+ .appearance-active({
73
+ &:before,
74
+ &:after {
75
+ color: var(--tui-text-primary);
76
+ }
77
+ });
78
+ }
@@ -0,0 +1,48 @@
1
+ @import '../../utils.less';
2
+
3
+ [tuiAppearance][data-appearance='primary'] {
4
+ --t-bg: var(--tui-background-accent-1);
5
+
6
+ background: var(--t-bg);
7
+ color: var(--tui-text-primary-on-accent-1);
8
+
9
+ .appearance-invalid({
10
+ background: var(--tui-status-negative);
11
+ });
12
+
13
+ .appearance-hover({
14
+ --t-bg: var(--tui-background-accent-1-hover);
15
+ });
16
+
17
+ .appearance-active({
18
+ --t-bg: var(--tui-background-accent-1-pressed);
19
+ });
20
+ }
21
+
22
+ [tuiAppearance][data-appearance='primary-destructive'] {
23
+ color: #fff;
24
+ background: var(--tui-status-negative);
25
+
26
+ .appearance-hover({
27
+ filter: saturate(1) brightness(1.3);
28
+ });
29
+
30
+ .appearance-active({
31
+ filter: saturate(0.8) brightness(1);
32
+ });
33
+ }
34
+
35
+ [tuiAppearance][data-appearance='primary-grayscale'] {
36
+ --tui-border-focus: #979797;
37
+
38
+ background: var(--tui-background-accent-opposite);
39
+ color: var(--tui-background-base);
40
+
41
+ .appearance-hover({
42
+ background: var(--tui-background-accent-opposite-hover);
43
+ });
44
+
45
+ .appearance-active({
46
+ background: var(--tui-background-accent-opposite-pressed);
47
+ });
48
+ }
@@ -0,0 +1,77 @@
1
+ @import '../../utils.less';
2
+
3
+ [tuiAppearance][data-appearance='secondary'],
4
+ [tuiAppearance][data-appearance='secondary-destructive'],
5
+ [tuiAppearance][data-appearance='secondary-grayscale'] {
6
+ background: var(--tui-background-neutral-1);
7
+ color: var(--tui-text-action);
8
+
9
+ .appearance-hover({
10
+ background: var(--tui-background-neutral-1-hover);
11
+ });
12
+
13
+ .appearance-active({
14
+ background: var(--tui-background-neutral-1-pressed);
15
+ });
16
+
17
+ &:checked:not([data-mode]),
18
+ &[data-mode~='checked'],
19
+ &[type='checkbox']:indeterminate:not([data-mode]) {
20
+ background: var(--tui-background-accent-1);
21
+ color: var(--tui-text-primary-on-accent-1);
22
+
23
+ .appearance-hover({
24
+ background: var(--tui-background-accent-1-hover);
25
+ });
26
+
27
+ .appearance-active({
28
+ background: var(--tui-background-accent-1-pressed);
29
+ });
30
+
31
+ .appearance-invalid({
32
+ background: var(--tui-status-negative);
33
+ color: #fff;
34
+
35
+ .appearance-hover({
36
+ background: var(--tui-status-negative);
37
+ color: #fff;
38
+ });
39
+
40
+ .appearance-active({
41
+ background: var(--tui-status-negative);
42
+ color: #fff;
43
+ });
44
+ });
45
+ }
46
+
47
+ .appearance-invalid({
48
+ color: var(--tui-text-negative);
49
+ background: var(--tui-status-negative-pale);
50
+
51
+ .appearance-hover({
52
+ color: var(--tui-text-negative-hover);
53
+ background: var(--tui-status-negative-pale-hover);
54
+ });
55
+
56
+ .appearance-active({
57
+ color: var(--tui-text-negative-hover);
58
+ background: var(--tui-status-negative-pale-hover);
59
+ });
60
+ });
61
+ }
62
+
63
+ [tuiAppearance][data-appearance='secondary-destructive'] {
64
+ color: var(--tui-text-negative);
65
+ }
66
+
67
+ [tuiAppearance][data-appearance='secondary-grayscale'] {
68
+ color: var(--tui-text-primary);
69
+ }
70
+
71
+ // Overriding to darker colors for small items
72
+ input[type='checkbox'][data-appearance='secondary'],
73
+ input[type='radio'][data-appearance='secondary'] {
74
+ --tui-background-neutral-1: var(--tui-background-neutral-2);
75
+ --tui-background-neutral-1-hover: var(--tui-background-neutral-2-hover);
76
+ --tui-background-neutral-1-pressed: var(--tui-background-neutral-2-pressed);
77
+ }