@rovula/ui 0.1.5 → 0.1.7

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 (97) hide show
  1. package/dist/cjs/bundle.css +404 -368
  2. package/dist/cjs/bundle.js +171 -171
  3. package/dist/cjs/bundle.js.map +1 -1
  4. package/dist/cjs/types/components/Text/Text.d.ts +25 -1
  5. package/dist/cjs/types/components/Text/Text.stories.d.ts +1 -1
  6. package/dist/cjs/types/utils/colors.d.ts +268 -268
  7. package/dist/components/Avatar/Avatar.styles.js +2 -2
  8. package/dist/components/Button/Buttons.stories.js +1 -1
  9. package/dist/components/Calendar/Calendar.js +1 -1
  10. package/dist/components/Dropdown/Dropdown.js +2 -2
  11. package/dist/components/DropdownMenu/DropdownMenu.js +4 -4
  12. package/dist/components/Footer/Footer.js +1 -1
  13. package/dist/components/Input/Input.styles.js +2 -2
  14. package/dist/components/InputFilter/InputFilter.js +2 -2
  15. package/dist/components/Label/Label.styles.js +4 -4
  16. package/dist/components/Menu/Menu.js +2 -2
  17. package/dist/components/Navbar/Navbar.js +1 -1
  18. package/dist/components/Switch/Switch.styles.js +1 -1
  19. package/dist/components/Tabs/Tabs.js +1 -1
  20. package/dist/components/Text/Text.js +11 -1
  21. package/dist/components/Text/Text.stories.js +6 -6
  22. package/dist/components/TextArea/TextArea.styles.js +6 -6
  23. package/dist/components/TextInput/TextInput.stories.js +1 -1
  24. package/dist/components/TextInput/TextInput.styles.js +18 -18
  25. package/dist/components/Toast/Toast.js +2 -2
  26. package/dist/esm/bundle.css +404 -368
  27. package/dist/esm/bundle.js +5 -5
  28. package/dist/esm/bundle.js.map +1 -1
  29. package/dist/esm/types/components/Text/Text.d.ts +25 -1
  30. package/dist/esm/types/components/Text/Text.stories.d.ts +1 -1
  31. package/dist/esm/types/utils/colors.d.ts +268 -268
  32. package/dist/index.d.ts +293 -269
  33. package/dist/src/theme/global.css +2514 -2607
  34. package/dist/utils/colors.js +268 -268
  35. package/package.json +1 -1
  36. package/src/components/Avatar/Avatar.styles.ts +2 -2
  37. package/src/components/Button/Buttons.stories.tsx +17 -9
  38. package/src/components/Calendar/Calendar.tsx +1 -1
  39. package/src/components/Dropdown/Dropdown.tsx +2 -2
  40. package/src/components/DropdownMenu/DropdownMenu.tsx +6 -6
  41. package/src/components/Footer/Footer.tsx +1 -1
  42. package/src/components/Input/Input.styles.tsx +2 -2
  43. package/src/components/InputFilter/InputFilter.tsx +2 -2
  44. package/src/components/Label/Label.styles.ts +4 -4
  45. package/src/components/Menu/Menu.tsx +2 -2
  46. package/src/components/Navbar/Navbar.tsx +1 -1
  47. package/src/components/Switch/Switch.styles.ts +1 -1
  48. package/src/components/Tabs/Tabs.tsx +1 -1
  49. package/src/components/Text/Text.stories.tsx +6 -6
  50. package/src/components/Text/Text.tsx +36 -1
  51. package/src/components/TextArea/TextArea.styles.ts +6 -6
  52. package/src/components/TextInput/TextInput.stories.tsx +3 -1
  53. package/src/components/TextInput/TextInput.styles.ts +18 -18
  54. package/src/components/Toast/Toast.tsx +2 -2
  55. package/src/theme/THEME_MAPPING.md +41 -42
  56. package/src/theme/global.css +8 -4
  57. package/src/theme/main-preset.js +49 -0
  58. package/src/theme/plugins/utilities/typography.js +40 -6
  59. package/src/theme/presets/colors.js +27 -29
  60. package/src/theme/themes/skyller/baseline.css +0 -4
  61. package/src/theme/themes/variable-mapping.css +1064 -0
  62. package/src/theme/themes/variable.css +317 -284
  63. package/src/theme/themes/xspector/baseline.css +0 -4
  64. package/src/theme/themes/xspector/components/dropdown-menu.css +4 -4
  65. package/src/theme/tokens/baseline.css +0 -3
  66. package/src/theme/tokens/color.css +34 -63
  67. package/src/theme/tokens/components/action-button.css +6 -6
  68. package/src/theme/tokens/components/button.css +189 -189
  69. package/src/theme/tokens/components/dropdown-menu.css +2 -2
  70. package/src/theme/tokens/components/footer.css +1 -1
  71. package/src/theme/tokens/components/switch.css +10 -10
  72. package/src/theme/tokens/typography.css +28 -28
  73. package/src/theme/tokens_old/baseline.css +13 -0
  74. package/src/theme/tokens_old/color.css +78 -0
  75. package/src/theme/tokens_old/components/action-button.css +127 -0
  76. package/src/theme/tokens_old/components/button.css +512 -0
  77. package/src/theme/tokens_old/components/dropdown-menu.css +27 -0
  78. package/src/theme/tokens_old/components/footer.css +9 -0
  79. package/src/theme/tokens_old/components/loading.css +11 -0
  80. package/src/theme/tokens_old/components/navbar.css +9 -0
  81. package/src/theme/tokens_old/components/progress-bar.css +8 -0
  82. package/src/theme/tokens_old/components/switch.css +29 -0
  83. package/src/theme/tokens_old/typography.css +199 -0
  84. package/src/theme/tokens_old/variables.css +28 -0
  85. package/src/theme/utils.js +16 -16
  86. package/src/utils/colors.ts +276 -279
  87. package/src/theme/themes/skyller/color.css +0 -79
  88. package/src/theme/themes/skyller/palette.css +0 -143
  89. package/src/theme/themes/skyller/state.css +0 -94
  90. package/src/theme/themes/skyller/transparent.css +0 -94
  91. package/src/theme/themes/xspector/color.css +0 -83
  92. package/src/theme/themes/xspector/palette.css +0 -142
  93. package/src/theme/themes/xspector/state.css +0 -94
  94. package/src/theme/themes/xspector/transparent.css +0 -93
  95. /package/src/theme/{tokens → tokens_old}/palette.css +0 -0
  96. /package/src/theme/{tokens → tokens_old}/state.css +0 -0
  97. /package/src/theme/{tokens → tokens_old}/transparent.css +0 -0
@@ -14,7 +14,7 @@
14
14
  --dropdown-menu-default-text: inherit;
15
15
 
16
16
  /* Hover State */
17
- --dropdown-menu-hover-bg: var(--state-color-primary-hover-bg);
17
+ --dropdown-menu-hover-bg: var(--state-primary-hover-bg);
18
18
  --dropdown-menu-hover-text: inherit;
19
19
 
20
20
  /* Selected State */
@@ -23,5 +23,5 @@
23
23
 
24
24
  /* Disabled State */
25
25
  --dropdown-menu-disabled-bg: transparent;
26
- --dropdown-menu-disabled-text: var(--state-color-disable-outline);
26
+ --dropdown-menu-disabled-text: var(--state-disable-outline);
27
27
  }
@@ -2,7 +2,7 @@
2
2
  /* Footer */
3
3
  --footer-height: 58px;
4
4
  --footer-height-simple: 48px;
5
- --footer-bg-color: var(--state-color-primary-default);
5
+ --footer-bg-color: var(--state-primary-default);
6
6
  --footer-text-color: var(--primary-foreground);
7
7
  --footer-border-color: var(--primary-foreground);
8
8
  --footer-gap: 16px;
@@ -7,23 +7,23 @@
7
7
  /* ------------------------------------------------------------------ */
8
8
 
9
9
  /* Default State */
10
- --switch-default-color: rgb(from var(--grey-grey-100, #9e9e9e) r g b / 0.32);
11
- --switch-thumb-default-color: var(--grey-grey-100, #9e9e9e);
10
+ --switch-default-color: rgb(from var(--ramps-grey-100, #9e9e9e) r g b / 0.32);
11
+ --switch-thumb-default-color: var(--ramps-grey-100, #9e9e9e);
12
12
  --switch-thumb-filter: drop-shadow(0 2px 8px rgba(145, 158, 171, 0.24));
13
13
 
14
14
  /* Hover State */
15
- --switch-hover-color: rgb(from var(--grey-grey-80, #b1b1b1) r g b / 0.48);
16
- --switch-thumb-hover-color: var(--grey-grey-80, #b1b1b1);
15
+ --switch-hover-color: rgb(from var(--ramps-grey-80, #b1b1b1) r g b / 0.48);
16
+ --switch-thumb-hover-color: var(--ramps-grey-80, #b1b1b1);
17
17
 
18
18
  /* Active State */
19
- --switch-active-color: rgb(from var(--state-color-primary-active) r g b / 0.32);
20
- --switch-thumb-active-color: var(--state-color-primary-active, #ddcd00);
19
+ --switch-active-color: rgb(from var(--state-primary-active) r g b / 0.32);
20
+ --switch-thumb-active-color: var(--state-primary-active, #ddcd00);
21
21
 
22
22
  /* Active Hover State */
23
- --switch-active-hover-color: rgb(from var(--state-color-primary-text-hover) r g b / 0.48);
24
- --switch-thumb-active-hover-color: var(--state-color-primary-text-hover);
23
+ --switch-active-hover-color: rgb(from var(--state-primary-text-hover) r g b / 0.48);
24
+ --switch-thumb-active-hover-color: var(--state-primary-text-hover);
25
25
 
26
26
  /* Disabled State */
27
- --switch-disabled-color: rgb(from var(--state-color-disable-solid) r g b / 0.32);
28
- --switch-thumb-disabled-color: var(--state-color-disable-solid, #454f5b);
27
+ --switch-disabled-color: rgb(from var(--state-disable-solid) r g b / 0.32);
28
+ --switch-thumb-disabled-color: var(--state-disable-solid, #454f5b);
29
29
  }
@@ -1,195 +1,195 @@
1
1
  :root {
2
2
  /* TYPE */
3
- --h1-family: "Montserrat";
3
+ --h1-family: "Poppins";
4
4
  --h1-size: 64px;
5
5
  --h1-size-rem: 4rem;
6
6
  --h1-weight: 700;
7
7
  --h1-style: normal;
8
8
  --h1-line-height: 80px;
9
9
  --h1-line-height-rem: 5rem;
10
- --h2-family: "Montserrat";
10
+ --h2-family: "Poppins";
11
11
  --h2-size: 48px;
12
12
  --h2-size-rem: 3rem;
13
13
  --h2-weight: 700;
14
14
  --h2-style: normal;
15
15
  --h2-line-height: 60px;
16
16
  --h2-line-height-rem: 3.75rem;
17
- --h3-family: "Montserrat";
17
+ --h3-family: "Poppins";
18
18
  --h3-size: 32px;
19
19
  --h3-size-rem: 2rem;
20
20
  --h3-weight: 700;
21
21
  --h3-style: normal;
22
22
  --h3-line-height: 48px;
23
23
  --h3-line-height-rem: 3rem;
24
- --h4-family: "Montserrat";
24
+ --h4-family: "Poppins";
25
25
  --h4-size: 24px;
26
26
  --h4-size-rem: 1.5rem;
27
27
  --h4-weight: 700;
28
28
  --h4-style: normal;
29
29
  --h4-line-height: 32px;
30
30
  --h4-line-height-rem: 2rem;
31
- --h5-family: "Montserrat";
31
+ --h5-family: "Poppins";
32
32
  --h5-size: 20px;
33
33
  --h5-size-rem: 1.25rem;
34
34
  --h5-weight: 700;
35
35
  --h5-style: normal;
36
36
  --h5-line-height: 28px;
37
37
  --h5-line-height-rem: 1.75rem;
38
- --h6-family: "Montserrat";
38
+ --h6-family: "Poppins";
39
39
  --h6-size: 18px;
40
40
  --h6-size-rem: 1.125rem;
41
41
  --h6-weight: 700;
42
42
  --h6-style: normal;
43
43
  --h6-line-height: 24px;
44
44
  --h6-line-height-rem: 1.5rem;
45
- --subtitle1-family: "Montserrat";
45
+ --subtitle1-family: "Poppins";
46
46
  --subtitle1-size: 16px;
47
47
  --subtitle1-size-rem: 1rem;
48
48
  --subtitle1-weight: 400;
49
49
  --subtitle1-style: normal;
50
50
  --subtitle1-line-height: 24px;
51
51
  --subtitle1-line-height-rem: 1.5rem;
52
- --subtitle2-family: "Montserrat";
52
+ --subtitle2-family: "Poppins";
53
53
  --subtitle2-size: 16px;
54
54
  --subtitle2-size-rem: 1rem;
55
55
  --subtitle2-weight: 500;
56
56
  --subtitle2-style: normal;
57
57
  --subtitle2-line-height: 24px;
58
58
  --subtitle2-line-height-rem: 1.5rem;
59
- --subtitle3-family: "Montserrat";
59
+ --subtitle3-family: "Poppins";
60
60
  --subtitle3-size: 16px;
61
61
  --subtitle3-size-rem: 1rem;
62
62
  --subtitle3-weight: 600;
63
63
  --subtitle3-style: normal;
64
64
  --subtitle3-line-height: 24px;
65
65
  --subtitle3-line-height-rem: 1.5rem;
66
- --subtitle4-family: "Montserrat";
66
+ --subtitle4-family: "Poppins";
67
67
  --subtitle4-size: 14px;
68
68
  --subtitle4-size-rem: 0.875rem;
69
69
  --subtitle4-weight: 400;
70
70
  --subtitle4-style: normal;
71
71
  --subtitle4-line-height: 22px;
72
72
  --subtitle4-line-height-rem: 1.375rem;
73
- --subtitle5-family: "Montserrat";
73
+ --subtitle5-family: "Poppins";
74
74
  --subtitle5-size: 14px;
75
75
  --subtitle5-size-rem: 0.875rem;
76
76
  --subtitle5-weight: 500;
77
77
  --subtitle5-style: normal;
78
78
  --subtitle5-line-height: 22px;
79
79
  --subtitle5-line-height-rem: 1.375rem;
80
- --subtitle6-family: "Montserrat";
80
+ --subtitle6-family: "Poppins";
81
81
  --subtitle6-size: 14px;
82
82
  --subtitle6-size-rem: 0.875rem;
83
83
  --subtitle6-weight: 600;
84
84
  --subtitle6-style: normal;
85
85
  --subtitle6-line-height: 22px;
86
86
  --subtitle6-line-height-rem: 1.375rem;
87
- --body1-family: "Montserrat";
87
+ --body1-family: "Poppins";
88
88
  --body1-size: 16px;
89
89
  --body1-size-rem: 1rem;
90
90
  --body1-weight: 400;
91
91
  --body1-style: normal;
92
92
  --body1-line-height: 20px;
93
93
  --body1-line-height-rem: 1.25rem;
94
- --body2-family: "Montserrat";
94
+ --body2-family: "Poppins";
95
95
  --body2-size: 16px;
96
96
  --body2-size-rem: 1rem;
97
97
  --body2-weight: 500;
98
98
  --body2-style: normal;
99
99
  --body2-line-height: 20px;
100
100
  --body2-line-height-rem: 1.25rem;
101
- --body3-family: "Montserrat";
101
+ --body3-family: "Poppins";
102
102
  --body3-size: 14px;
103
103
  --body3-size-rem: 0.875rem;
104
104
  --body3-weight: 400;
105
105
  --body3-style: normal;
106
106
  --body3-line-height: 18px;
107
107
  --body3-line-height-rem: 1.125rem;
108
- --body4-family: "Montserrat";
108
+ --body4-family: "Poppins";
109
109
  --body4-size: 14px;
110
110
  --body4-size-rem: 0.875rem;
111
111
  --body4-weight: 500;
112
112
  --body4-style: normal;
113
113
  --body4-line-height: 18px;
114
114
  --body4-line-height-rem: 1.125rem;
115
- --small1-family: "Montserrat";
115
+ --small1-family: "Poppins";
116
116
  --small1-size: 12px;
117
117
  --small1-size-rem: 0.75rem;
118
118
  --small1-weight: 400;
119
119
  --small1-style: normal;
120
120
  --small1-line-height: 14px;
121
121
  --small1-line-height-rem: 0.875rem;
122
- --small2-family: "Montserrat";
122
+ --small2-family: "Poppins";
123
123
  --small2-size: 12px;
124
124
  --small2-size-rem: 0.75rem;
125
125
  --small2-weight: 500;
126
126
  --small2-style: normal;
127
127
  --small2-line-height: 14px;
128
128
  --small2-line-height-rem: 0.875rem;
129
- --small3-family: "Montserrat";
129
+ --small3-family: "Poppins";
130
130
  --small3-size: 12px;
131
131
  --small3-size-rem: 0.75rem;
132
132
  --small3-weight: 600;
133
133
  --small3-style: normal;
134
134
  --small3-line-height: 14px;
135
135
  --small3-line-height-rem: 0.875rem;
136
- --small4-family: "Montserrat";
136
+ --small4-family: "Poppins";
137
137
  --small4-size: 10px;
138
138
  --small4-size-rem: 0.625rem;
139
139
  --small4-weight: 400;
140
140
  --small4-style: normal;
141
141
  --small4-line-height: 12px;
142
142
  --small4-line-height-rem: 0.75rem;
143
- --small5-family: "Montserrat";
143
+ --small5-family: "Poppins";
144
144
  --small5-size: 10px;
145
145
  --small5-size-rem: 0.625rem;
146
146
  --small5-weight: 500;
147
147
  --small5-style: normal;
148
148
  --small5-line-height: 12px;
149
149
  --small5-line-height-rem: 0.75rem;
150
- --small6-family: "Montserrat";
150
+ --small6-family: "Poppins";
151
151
  --small6-size: 10px;
152
152
  --small6-size-rem: 0.625rem;
153
153
  --small6-weight: 600;
154
154
  --small6-style: normal;
155
155
  --small6-line-height: 12px;
156
156
  --small6-line-height-rem: 0.75rem;
157
- --small7-family: "Montserrat";
157
+ --small7-family: "Poppins";
158
158
  --small7-size: 8px;
159
159
  --small7-size-rem: 0.5rem;
160
160
  --small7-weight: 600;
161
161
  --small7-style: normal;
162
162
  --small7-line-height: 10px;
163
163
  --small7-line-height-rem: 0.625rem;
164
- --small8-family: "Montserrat";
164
+ --small8-family: "Poppins";
165
165
  --small8-size: 8px;
166
166
  --small8-size-rem: 0.5rem;
167
167
  --small8-weight: 700;
168
168
  --small8-style: normal;
169
169
  --small8-line-height: 10px;
170
170
  --small8-line-height-rem: 0.625rem;
171
- --label-label1-family: "Montserrat";
171
+ --label-label1-family: "Poppins";
172
172
  --label-label1-size: 12px;
173
173
  --label-label1-size-rem: 0.75rem;
174
174
  --label-label1-weight: 400;
175
175
  --label-label1-style: normal;
176
176
  --label-label1-line-height: 12px;
177
177
  --label-label1-line-height-rem: 0.75rem;
178
- --label-label2-family: "Montserrat";
178
+ --label-label2-family: "Poppins";
179
179
  --label-label2-size: 10px;
180
180
  --label-label2-size-rem: 0.625rem;
181
181
  --label-label2-weight: 400;
182
182
  --label-label2-style: normal;
183
183
  --label-label2-line-height: 10px;
184
184
  --label-label2-line-height-rem: 0.625rem;
185
- --button-button-l-family: "Montserrat";
185
+ --button-button-l-family: "Poppins";
186
186
  --button-button-l-size: 16px;
187
187
  --button-button-l-size-rem: 1rem;
188
188
  --button-button-l-weight: 700;
189
189
  --button-button-l-style: normal;
190
190
  --button-button-l-line-height: 24px;
191
191
  --button-button-l-line-height-rem: 1.5rem;
192
- --button-button-ms-family: "Montserrat";
192
+ --button-button-ms-family: "Poppins";
193
193
  --button-button-ms-size: 14px;
194
194
  --button-button-ms-size-rem: 0.875rem;
195
195
  --button-button-ms-weight: 700;
@@ -0,0 +1,13 @@
1
+ @import url(palette.css);
2
+ @import url(state.css);
3
+ @import url(color.css);
4
+ @import url(transparent.css);
5
+ @import url(variables.css);
6
+ @import url(typography.css);
7
+ @import url(components/button.css);
8
+ @import url(components/action-button.css);
9
+ @import url(components/loading.css);
10
+ @import url(components/navbar.css);
11
+ @import url(components/footer.css);
12
+ @import url(components/dropdown-menu.css);
13
+ @import url(components/switch.css);
@@ -0,0 +1,78 @@
1
+
2
+ :root {
3
+ /* Base from design */
4
+ --input-color-default-text: #9e9e9e;
5
+ --input-color-default-stroke: #cfcfcf;
6
+ --input-color-filled-text: #4f4f4f;
7
+ --input-color-active-stroke: #9e9e9e;
8
+ --input-color-disable-text: #919eab;
9
+ --input-color-disable-stroke: #e7ebed;
10
+ --input-color-disable-bg: #f2f5f5;
11
+ --input-color-label-bg: #ffffff;/* #2d2e30; */
12
+ --input-color-error: #ed2f15;
13
+
14
+ /* Function button */
15
+ --function-default-solid: #1e3249;
16
+ --function-default-hover: #35475b;
17
+ --function-default-hover-bg: rgba(30 50 73 / 0.08);
18
+ --function-default-stroke: rgba(30 50 73 / 0.48);
19
+ --function-default-icon: #ffffff;
20
+ --function-default-outline-icon: #1e3249;
21
+ --function-active-solid: #9b8f00;
22
+ --function-active-hover: #b1a400;
23
+ --function-active-hover-bg: rgba(221 205 0 / 0.08);
24
+ --function-active-stroke: rgba(177 164 0 / 0.48);
25
+ --function-active-icon: #ffffff;
26
+
27
+ --text-black: #000000;
28
+ --text-dark: #18283a;
29
+ --text-medium: #4b5b6d;
30
+ --text-light: #8e98a4;
31
+ --text-grey-dark: #4f4f4f;
32
+ --text-grey-medium: #7e7e7e;
33
+ --text-grey-light: #9e9e9e;
34
+ --text-white: #ffffff;
35
+
36
+ --base-color-bg: #f5f5f5;
37
+ --base-color-bg2: #f5f5f5;
38
+ --base-color-bg3: #d8d8d8;
39
+ --base-color-workspace-stroke: #e2e2e2;
40
+ --base-color-guideline-stroke: #c5c5c5;
41
+ --base-color-popup: #ffffff;
42
+ --base-color-popup-highlight: #343638;
43
+ --base-color-popup-curtain: rgba(0 0 0 / 0.6);
44
+ --common-white: #ffffff;
45
+ --common-black: #000000;
46
+
47
+ /* ------- Addon base ---------- */
48
+ --background: var(--base-color-bg);
49
+ --foreground: var(--common-black);
50
+
51
+ --primary: var(--primary-ramps-primary-100);
52
+ --secondary: var(--secondary-ramps-secondary-100);
53
+ --tertiary: var(--tertiary-ramps-tertiary-100);
54
+ --info: var(--info-info-100);
55
+ --success: var(--success-success-100);
56
+ --warning: var(--warning-warning-100);
57
+ --error: var(--error-error-100);
58
+ --grey: var(--grey-grey-100);
59
+ --grey2: var(--grey2-grey2-100);
60
+
61
+ --primary-foreground: var(--state-color-primary-text-solid);
62
+ --secondary-foreground: var(--state-color-secondary-text-solid);
63
+ --tertiary-foreground: var(--state-color-tertiary-text-solid);
64
+ --info-foreground: var(--state-color-info-text-solid);
65
+ --success-foreground: var(--state-color-success-text-solid);
66
+ --warning-foreground: var(--state-color-warning-text-solid);
67
+ --error-foreground: var(--state-color-error-text-solid);
68
+ --grey-foreground: var(--common-black);
69
+ --grey2-foreground: var(--common-black);
70
+
71
+ --surface: var(--base-color-bg);
72
+ --surface-foreground: var(--common-black);
73
+
74
+ --primary-foreground: var(--common-white);
75
+ --secondary-foreground: var(--common-white);
76
+
77
+ --base-color-popup-foreground: var(--text-dark);
78
+ }
@@ -0,0 +1,127 @@
1
+ :root {
2
+ /* --------------------------------------------------------------------------------- */
3
+ /* Action Button Component Tokens */
4
+ /* --------------------------------------------------------------------------------- */
5
+ /* Naming Convention: --[component]-[mode]-[state]-[property] */
6
+ /* Mone: [solid, outline, icon] */
7
+ /* States: [default, hover, pressed, active, active-pressed active-hover disabled] */
8
+ /* --------------------------------------------------------------------------------- */
9
+
10
+ /* ------------------------------------------------------------------ */
11
+ /* Solid Mode Tokens */
12
+ /* ------------------------------------------------------------------ */
13
+
14
+ /* Default State */
15
+ --action-button-solid-default-bg: var(--function-default-solid);
16
+ --action-button-solid-default-border: var(--function-default-solid);
17
+ --action-button-solid-default-text: var(--function-default-icon);
18
+
19
+ /* Hover State */
20
+ --action-button-solid-hover-bg: var(--function-default-hover);
21
+ --action-button-solid-hover-border: var(--function-default-hover);
22
+ --action-button-solid-hover-text: var(--function-default-icon);
23
+
24
+ /* Pressed State */
25
+ --action-button-solid-pressed-bg: var(--function-default-solid);
26
+ --action-button-solid-pressed-border: var(--function-default-solid);
27
+ --action-button-solid-pressed-text: var(--function-default-icon);
28
+
29
+ /* Active State */
30
+ --action-button-solid-active-bg: var(--function-active-solid);
31
+ --action-button-solid-active-border: var(--function-active-solid);
32
+ --action-button-solid-active-text: var(--function-active-icon);
33
+
34
+ /* Active Hover State */
35
+ --action-button-solid-active-hover-bg: var(--function-active-hover);
36
+ --action-button-solid-active-hover-border: var(--function-active-hover);
37
+ --action-button-solid-active-hover-text: var(--function-active-icon);
38
+
39
+ /* Active Pressed State */
40
+ --action-button-solid-active-pressed-bg: var(--function-active-solid);
41
+ --action-button-solid-active-pressed-border: var(--function-active-solid);
42
+ --action-button-solid-active-pressed-text: var(--function-active-icon);
43
+
44
+ /* Disabled State */
45
+ --action-button-solid-disabled-bg: var(--state-color-disable-solid);
46
+ --action-button-solid-disabled-border: var(--state-color-disable-solid);
47
+ --action-button-solid-disabled-text: var(--state-color-disable-outline);
48
+
49
+
50
+ /* ------------------------------------------------------------------ */
51
+ /* Outline Mode Tokens */
52
+ /* ------------------------------------------------------------------ */
53
+
54
+ /* Default State */
55
+ --action-button-outline-default-bg: transparent;
56
+ --action-button-outline-default-border: var(--function-default-stroke);
57
+ --action-button-outline-default-text: var(--function-default-outline-icon);
58
+
59
+ /* Hover State */
60
+ --action-button-outline-hover-bg: var(--function-default-hover-bg);
61
+ --action-button-outline-hover-border: var(--function-default-hover);
62
+ --action-button-outline-hover-text: var(--function-default-hover);
63
+
64
+ /* Pressed State */
65
+ --action-button-outline-pressed-bg: var(--function-default-hover-bg);
66
+ --action-button-outline-pressed-border: var(--function-default-stroke);
67
+ --action-button-outline-pressed-text: var(--function-default-outline-icon);
68
+
69
+ /* Active State */
70
+ --action-button-outline-active-bg: transparent;
71
+ --action-button-outline-active-border: var(--function-active-stroke);
72
+ --action-button-outline-active-text: var(--function-active-solid);
73
+
74
+ /* Active Hover State */
75
+ --action-button-outline-active-hover-bg: var(--function-active-hover-bg);;
76
+ --action-button-outline-active-hover-border: var(--function-active-hover);
77
+ --action-button-outline-active-hover-text: var(--function-active-hover);
78
+
79
+ /* Active Pressed State */
80
+ --action-button-outline-active-pressed-bg: var(--function-active-hover-bg);;
81
+ --action-button-outline-active-pressed-border: var(--function-active-stroke);
82
+ --action-button-outline-active-pressed-text: var(--function-active-solid);
83
+
84
+ /* Disabled State */
85
+ --action-button-outline-disabled-bg: transparent;
86
+ --action-button-outline-disabled-border: var(--state-color-disable-outline);
87
+ --action-button-outline-disabled-text: var(--state-color-disable-outline);
88
+
89
+ /* ------------------------------------------------------------------ */
90
+ /* Icon Mode Tokens */
91
+ /* ------------------------------------------------------------------ */
92
+
93
+ /* Default State */
94
+ --action-button-icon-default-bg: transparent;
95
+ --action-button-icon-default-border: transparent;
96
+ --action-button-icon-default-text: var(--function-default-outline-icon);
97
+
98
+ /* Hover State */
99
+ --action-button-icon-hover-bg: var(--function-default-hover-bg);
100
+ --action-button-icon-hover-border: transparent;
101
+ --action-button-icon-hover-text: var(--function-default-hover);
102
+
103
+ /* Pressed State */
104
+ --action-button-icon-pressed-bg: transparent;
105
+ --action-button-icon-pressed-border: transparent;
106
+ --action-button-icon-pressed-text: var(--function-default-outline-icon);
107
+
108
+ /* Active State */
109
+ --action-button-icon-active-bg: transparent;
110
+ --action-button-icon-active-border: transparent;
111
+ --action-button-icon-active-text: var(--function-active-solid);
112
+
113
+ /* Active Hover State */
114
+ --action-button-icon-active-hover-bg: var(--function-active-hover-bg);
115
+ --action-button-icon-active-hover-border: transparent;
116
+ --action-button-icon-active-hover-text: var(--function-active-hover);
117
+
118
+ /* Active Pressed State */
119
+ --action-button-icon-active-pressed-bg: transparent;
120
+ --action-button-icon-active-pressed-border: transparent;
121
+ --action-button-icon-active-pressed-text: var(--function-active-solid);
122
+
123
+ /* Disabled State */
124
+ --action-button-icon-disabled-bg: transparent;
125
+ --action-button-icon-disabled-border: transparent;
126
+ --action-button-icon-disabled-text: var(--state-color-disable-outline);
127
+ }