@particle-network/ui-react 0.0.1

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 (109) hide show
  1. package/README.md +23 -0
  2. package/dist/components/ProgressWrapper/index.d.ts +34 -0
  3. package/dist/components/ProgressWrapper/index.js +102 -0
  4. package/dist/components/UXButton/button-group-context.d.ts +2 -0
  5. package/dist/components/UXButton/button-group-context.js +6 -0
  6. package/dist/components/UXButton/button-group.d.ts +4 -0
  7. package/dist/components/UXButton/button-group.js +22 -0
  8. package/dist/components/UXButton/button-theme.d.ts +236 -0
  9. package/dist/components/UXButton/button-theme.js +626 -0
  10. package/dist/components/UXButton/button.d.ts +4 -0
  11. package/dist/components/UXButton/button.js +31 -0
  12. package/dist/components/UXButton/index.d.ts +8 -0
  13. package/dist/components/UXButton/index.js +6 -0
  14. package/dist/components/UXButton/use-button-group.d.ts +37 -0
  15. package/dist/components/UXButton/use-button-group.js +55 -0
  16. package/dist/components/UXButton/use-button.d.ts +65 -0
  17. package/dist/components/UXButton/use-button.js +136 -0
  18. package/dist/components/UXCheckbox/checkbox.extend.d.ts +7 -0
  19. package/dist/components/UXCheckbox/checkbox.extend.js +151 -0
  20. package/dist/components/UXCheckbox/checkbox.icon.d.ts +6 -0
  21. package/dist/components/UXCheckbox/checkbox.icon.js +46 -0
  22. package/dist/components/UXCheckbox/index.d.ts +10 -0
  23. package/dist/components/UXCheckbox/index.js +17 -0
  24. package/dist/components/UXChip/chip.extend.d.ts +299 -0
  25. package/dist/components/UXChip/chip.extend.js +236 -0
  26. package/dist/components/UXChip/index.d.ts +302 -0
  27. package/dist/components/UXChip/index.js +10 -0
  28. package/dist/components/UXDivider/divider.extend.d.ts +286 -0
  29. package/dist/components/UXDivider/divider.extend.js +15 -0
  30. package/dist/components/UXDivider/index.d.ts +4 -0
  31. package/dist/components/UXDivider/index.js +10 -0
  32. package/dist/components/UXDropdown/dropdown-item.d.ts +3 -0
  33. package/dist/components/UXDropdown/dropdown-item.js +306 -0
  34. package/dist/components/UXDropdown/dropdown-menu.d.ts +3 -0
  35. package/dist/components/UXDropdown/dropdown-menu.js +25 -0
  36. package/dist/components/UXDropdown/dropdown-section.d.ts +1 -0
  37. package/dist/components/UXDropdown/dropdown-section.js +2 -0
  38. package/dist/components/UXDropdown/dropdown.d.ts +4 -0
  39. package/dist/components/UXDropdown/dropdown.js +21 -0
  40. package/dist/components/UXDropdown/index.d.ts +6 -0
  41. package/dist/components/UXDropdown/index.js +6 -0
  42. package/dist/components/UXHint/index.d.ts +8 -0
  43. package/dist/components/UXHint/index.js +22 -0
  44. package/dist/components/UXInput/index.d.ts +346 -0
  45. package/dist/components/UXInput/index.js +10 -0
  46. package/dist/components/UXInput/input.extend.d.ts +343 -0
  47. package/dist/components/UXInput/input.extend.js +6 -0
  48. package/dist/components/UXModal/index.d.ts +10 -0
  49. package/dist/components/UXModal/index.js +89 -0
  50. package/dist/components/UXNumberInput/index.d.ts +5 -0
  51. package/dist/components/UXNumberInput/index.js +10 -0
  52. package/dist/components/UXNumberInput/number-input.extend.d.ts +8 -0
  53. package/dist/components/UXNumberInput/number-input.extend.js +6 -0
  54. package/dist/components/UXPopover/index.d.ts +6 -0
  55. package/dist/components/UXPopover/index.js +10 -0
  56. package/dist/components/UXPopover/popover.extend.d.ts +7 -0
  57. package/dist/components/UXPopover/popover.extend.js +26 -0
  58. package/dist/components/UXRadio/index.d.ts +10 -0
  59. package/dist/components/UXRadio/index.js +12 -0
  60. package/dist/components/UXRadio/radio.extend.d.ts +7 -0
  61. package/dist/components/UXRadio/radio.extend.js +97 -0
  62. package/dist/components/UXSelect/index.d.ts +6 -0
  63. package/dist/components/UXSelect/index.js +51 -0
  64. package/dist/components/UXSwitch/index.d.ts +331 -0
  65. package/dist/components/UXSwitch/index.js +10 -0
  66. package/dist/components/UXSwitch/switch.extend.d.ts +328 -0
  67. package/dist/components/UXSwitch/switch.extend.js +117 -0
  68. package/dist/components/UXTabs/index.d.ts +9 -0
  69. package/dist/components/UXTabs/index.js +11 -0
  70. package/dist/components/UXTabs/tabs.classes.d.ts +210 -0
  71. package/dist/components/UXTabs/tabs.classes.js +530 -0
  72. package/dist/components/UXTabs/tabs.extend.d.ts +8 -0
  73. package/dist/components/UXTabs/tabs.extend.js +6 -0
  74. package/dist/components/UXTooltip/index.d.ts +5 -0
  75. package/dist/components/UXTooltip/index.js +23 -0
  76. package/dist/components/UXTooltip/tooltip.extend.d.ts +314 -0
  77. package/dist/components/UXTooltip/tooltip.extend.js +27 -0
  78. package/dist/components/index.d.ts +44 -0
  79. package/dist/components/index.js +31 -0
  80. package/dist/components/layout/Center.d.ts +4 -0
  81. package/dist/components/layout/Center.js +11 -0
  82. package/dist/components/layout/Circle.d.ts +6 -0
  83. package/dist/components/layout/Circle.js +12 -0
  84. package/dist/components/layout/Flex.d.ts +29 -0
  85. package/dist/components/layout/Flex.js +24 -0
  86. package/dist/components/layout/HStack.d.ts +4 -0
  87. package/dist/components/layout/HStack.js +12 -0
  88. package/dist/components/layout/Square.d.ts +8 -0
  89. package/dist/components/layout/Square.js +13 -0
  90. package/dist/components/layout/VStack.d.ts +4 -0
  91. package/dist/components/layout/VStack.js +12 -0
  92. package/dist/components/typography/Text.d.ts +3 -0
  93. package/dist/components/typography/Text.js +12 -0
  94. package/dist/components/typography/Text.type.d.ts +103 -0
  95. package/dist/components/typography/Text.type.js +47 -0
  96. package/dist/icons/index.d.ts +6 -0
  97. package/dist/icons/index.js +58 -0
  98. package/dist/index.d.ts +2 -0
  99. package/dist/index.js +2 -0
  100. package/dist/utils/classes.d.ts +35 -0
  101. package/dist/utils/classes.js +87 -0
  102. package/dist/utils/index.d.ts +3 -0
  103. package/dist/utils/index.js +4 -0
  104. package/dist/utils/input-classes.d.ts +427 -0
  105. package/dist/utils/input-classes.js +568 -0
  106. package/dist/utils/variants.d.ts +91 -0
  107. package/dist/utils/variants.js +100 -0
  108. package/package.json +42 -0
  109. package/tailwind-preset.js +298 -0
@@ -0,0 +1,100 @@
1
+ const solid = {
2
+ default: 'bg-background-200 text-foreground',
3
+ primary: 'bg-primary text-primary-foreground',
4
+ secondary: 'bg-background-200 text-foreground-300',
5
+ success: 'bg-success text-success-foreground',
6
+ warning: 'bg-warning text-warning-foreground',
7
+ danger: 'bg-danger text-danger-foreground',
8
+ foreground: 'bg-foreground text-background',
9
+ bullish: 'bg-bullish text-bullish-foreground',
10
+ bearish: 'bg-bearish text-bearish-foreground',
11
+ contrast: 'bg-foreground text-background'
12
+ };
13
+ const shadow = {
14
+ default: 'shadow-lg shadow-default/50 bg-default text-default-foreground',
15
+ primary: 'shadow-lg shadow-primary/40 bg-primary text-primary-foreground',
16
+ secondary: 'shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground',
17
+ success: 'shadow-lg shadow-success/40 bg-success text-success-foreground',
18
+ warning: 'shadow-lg shadow-warning/40 bg-warning text-warning-foreground',
19
+ danger: 'shadow-lg shadow-danger/40 bg-danger text-danger-foreground',
20
+ foreground: 'shadow-lg shadow-foreground/40 bg-foreground text-background',
21
+ bullish: 'shadow-lg shadow-bullish/40 bg-bullish text-foreground',
22
+ bearish: 'shadow-lg shadow-bearish/40 bg-bearish text-foreground'
23
+ };
24
+ const bordered = {
25
+ default: 'bg-transparent border-foreground-100 text-foreground',
26
+ primary: 'bg-transparent border-primary text-primary',
27
+ secondary: 'bg-transparent border-foreground-100 text-foreground-300',
28
+ success: 'bg-transparent border-success text-success',
29
+ warning: 'bg-transparent border-warning text-warning',
30
+ danger: 'bg-transparent border-danger text-danger',
31
+ foreground: 'bg-transparent border-foreground text-foreground',
32
+ bullish: 'bg-transparent border-bullish text-bullish',
33
+ bearish: 'bg-transparent border-bearish text-bearish'
34
+ };
35
+ const flat = {
36
+ default: 'bg-default/40 text-default-foreground',
37
+ primary: 'bg-primary/20 text-primary',
38
+ secondary: 'bg-default/40 text-foreground-300',
39
+ success: 'bg-success/20 text-success',
40
+ warning: 'bg-warning/20 text-warning',
41
+ danger: 'bg-danger/20 text-danger',
42
+ foreground: 'bg-foreground/10 text-foreground',
43
+ bullish: 'bg-bullish/20 text-bullish',
44
+ bearish: 'bg-bearish/20 text-bearish'
45
+ };
46
+ const faded = {
47
+ default: 'border-default bg-default-100 text-default-foreground',
48
+ primary: 'border-default bg-default-100 text-primary',
49
+ secondary: 'border-default bg-default-100 text-secondary',
50
+ success: 'border-default bg-default-100 text-success',
51
+ warning: 'border-default bg-default-100 text-warning',
52
+ danger: 'border-default bg-default-100 text-danger',
53
+ foreground: 'border-default bg-default-100 text-foreground',
54
+ bullish: 'border-bullish bg-bullish text-foreground',
55
+ bearish: 'border-bearish bg-bearish text-foreground'
56
+ };
57
+ const light = {
58
+ default: 'bg-transparent text-default-foreground',
59
+ primary: 'bg-transparent text-primary',
60
+ secondary: 'bg-transparent text-foreground-300',
61
+ success: 'bg-transparent text-success',
62
+ warning: 'bg-transparent text-warning',
63
+ danger: 'bg-transparent text-danger',
64
+ foreground: 'bg-transparent text-foreground',
65
+ bullish: 'bg-transparent text-bullish',
66
+ bearish: 'bg-transparent text-bearish'
67
+ };
68
+ const ghost = {
69
+ default: 'border-default text-default-foreground',
70
+ primary: 'border-primary text-primary',
71
+ secondary: 'border-foreground-100 text-foreground-300',
72
+ success: 'border-success text-success',
73
+ warning: 'border-warning text-warning',
74
+ danger: 'border-danger text-danger',
75
+ foreground: 'border-foreground text-foreground hover:!bg-foreground',
76
+ bullish: 'border-bullish text-foreground hover:!bg-bullish',
77
+ bearish: 'border-bearish text-foreground hover:!bg-bearish'
78
+ };
79
+ const variants_text = {
80
+ default: 'bg-transparent text-default-foreground',
81
+ primary: 'bg-transparent text-primary',
82
+ secondary: 'bg-transparent text-foreground-300',
83
+ success: 'bg-transparent text-success',
84
+ warning: 'bg-transparent text-warning',
85
+ danger: 'bg-transparent text-danger',
86
+ foreground: 'bg-transparent text-foreground',
87
+ bullish: 'bg-transparent text-bullish',
88
+ bearish: 'bg-transparent text-bearish'
89
+ };
90
+ const colorVariants = {
91
+ solid,
92
+ shadow,
93
+ bordered,
94
+ flat,
95
+ faded,
96
+ light,
97
+ ghost,
98
+ text: variants_text
99
+ };
100
+ export { colorVariants };
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@particle-network/ui-react",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "import": "./dist/index.js"
9
+ },
10
+ "./tailwind-preset": "./tailwind-preset.js"
11
+ },
12
+ "types": "./dist/index.d.ts",
13
+ "files": [
14
+ "dist",
15
+ "tailwind-preset.js"
16
+ ],
17
+ "scripts": {
18
+ "build": "rslib build",
19
+ "dev": "rslib build --watch",
20
+ "type-check": "npx tsc --noEmit -p ./tsconfig.json",
21
+ "lint": "eslint . --no-error-on-unmatched-pattern --quiet",
22
+ "lint:fix": "eslint . --fix --no-error-on-unmatched-pattern --quiet",
23
+ "clean": "rm -rf .turbo node_modules dist"
24
+ },
25
+ "devDependencies": {
26
+ "@heroui/react": "^2.8.2",
27
+ "@particle-network/eslint-config": "*",
28
+ "@particle-network/ui-shared": "*",
29
+ "@rsbuild/plugin-react": "^1.3.5",
30
+ "@rslib/core": "^0.12.3",
31
+ "@types/react": "^19.0.0",
32
+ "react": "^19.0.0",
33
+ "typescript": "^5.8.3"
34
+ },
35
+ "peerDependencies": {
36
+ "react": ">=16.9.0",
37
+ "react-dom": ">=16.9.0"
38
+ },
39
+ "dependencies": {
40
+ "ahooks": "^3.9.4"
41
+ }
42
+ }
@@ -0,0 +1,298 @@
1
+ /* eslint-disable */
2
+ const { heroui } = require('@heroui/theme');
3
+ const plugin = require('tailwindcss/plugin');
4
+
5
+ /** @type {import('tailwindcss').Config} */
6
+ module.exports = {
7
+ theme: {
8
+ extend: {
9
+ gap: {
10
+ xs: '0.125rem', // 2px
11
+ sm: '0.375rem', // 6px
12
+ md: '0.625rem', // 10px
13
+ lg: '0.875rem', // 14px
14
+ },
15
+ spacing: {
16
+ xs: '0.125rem', // 2px
17
+ sm: '0.375rem', // 6px
18
+ md: '0.625rem', // 10px
19
+ lg: '0.875rem', // 14px
20
+ },
21
+ boxShadow: {
22
+ box: '2px 2px 12px rgba(139, 142, 161, 0.15)',
23
+ },
24
+ animation: {
25
+ blink: 'blink 1s infinite',
26
+ 'sprite-refresh': 'sprite-refresh 5s steps(270)',
27
+ lotterySlideUp: 'lotterySlideUp 7s linear infinite',
28
+ },
29
+ keyframes: {
30
+ lotterySlideUp: {
31
+ '0%': { transform: 'translateY(0)' },
32
+ '100%': { transform: 'translateY(-50%)' },
33
+ },
34
+ blink: {
35
+ '0%, 100%': { opacity: '1' },
36
+ '50%': { opacity: '0' },
37
+ },
38
+ 'sprite-refresh': {
39
+ from: { backgroundPosition: '0 0' },
40
+ to: { backgroundPosition: '-13500px 0' },
41
+ },
42
+ slide: {
43
+ '0%': {
44
+ transform: 'translateX(1600px)',
45
+ },
46
+ '100%': {
47
+ transform: 'translateX(-800px)',
48
+ },
49
+ },
50
+ },
51
+ fontSize: {
52
+ xxs: [
53
+ '0.625rem',
54
+ {
55
+ // 10px
56
+ lineHeight: '0.75rem', // 12px
57
+ },
58
+ ],
59
+ /* 10px */
60
+ caption1: ['0.625rem', { lineHeight: '0.875rem' }],
61
+ /* 11px */
62
+ body3: ['0.6875rem', { lineHeight: '1rem' }],
63
+ /* 12px */
64
+ body2: ['0.75rem', { lineHeight: '1rem' }],
65
+ /* 14px */
66
+ body1: ['0.875rem', { lineHeight: '1.125rem' }],
67
+ /* 16px */
68
+ h4: ['1rem', { lineHeight: '1.25rem' }],
69
+ /* 18px */
70
+ h3: ['1.125rem', { lineHeight: '1.375rem' }],
71
+ /* 20px */
72
+ h2: ['1.25rem', { lineHeight: '1.5rem' }],
73
+ /* 24px */
74
+ h1: ['1.5rem', { lineHeight: '1.75rem' }],
75
+ },
76
+ colors: {
77
+ bullish: 'var(--bullish-color)',
78
+ 'bullish-foreground': '#FFFFFF',
79
+ 'bullish/10': 'hsla(var(--bullish-color-hsl), 0.1)',
80
+ 'bullish/20': 'hsla(var(--bullish-color-hsl), 0.2)',
81
+ 'bullish/30': 'hsla(var(--bullish-color-hsl), 0.3)',
82
+ 'bullish/40': 'hsla(var(--bullish-color-hsl), 0.4)',
83
+ 'bullish/50': 'hsla(var(--bullish-color-hsl), 0.5)',
84
+ 'bullish/60': 'hsla(var(--bullish-color-hsl), 0.6)',
85
+ 'bullish/70': 'hsla(var(--bullish-color-hsl), 0.7)',
86
+ 'bullish/80': 'hsla(var(--bullish-color-hsl), 0.8)',
87
+ 'bullish/90': 'hsla(var(--bullish-color-hsl), 0.9)',
88
+ bearish: 'var(--bearish-color)',
89
+ 'bearish-foreground': '#FFFFFF',
90
+ 'bearish/10': 'hsla(var(--bearish-color-hsl), 0.1)',
91
+ 'bearish/20': 'hsla(var(--bearish-color-hsl), 0.2)',
92
+ 'bearish/30': 'hsla(var(--bearish-color-hsl), 0.3)',
93
+ 'bearish/40': 'hsla(var(--bearish-color-hsl), 0.4)',
94
+ 'bearish/50': 'hsla(var(--bearish-color-hsl), 0.5)',
95
+ 'bearish/60': 'hsla(var(--bearish-color-hsl), 0.6)',
96
+ 'bearish/70': 'hsla(var(--bearish-color-hsl), 0.7)',
97
+ 'bearish/80': 'hsla(var(--bearish-color-hsl), 0.8)',
98
+ 'bearish/90': 'hsla(var(--bearish-color-hsl), 0.9)',
99
+ },
100
+ },
101
+ },
102
+ darkMode: 'class',
103
+ plugins: [
104
+ heroui({
105
+ addCommonColors: true,
106
+ defaultTheme: 'light',
107
+ defaultExtendTheme: 'light',
108
+ layout: {
109
+ radius: {
110
+ small: '6px', // rounded-small
111
+ medium: '10px', // rounded-medium
112
+ large: '14px', // rounded-large
113
+ },
114
+ // fontSize: {
115
+ // tiny: '0.75rem', // 12px
116
+ // small: '0.875rem', // 14px
117
+ // medium: '1rem', // 16px
118
+ // large: '1.125rem', // 18px
119
+ // DEFAULT: '1rem', // 16px
120
+ // },
121
+ disabledOpacity: 0.4,
122
+ hoverOpacity: 0.7,
123
+ },
124
+ themes: {
125
+ light: {
126
+ colors: {
127
+ content1: {
128
+ DEFAULT: '#FFFFFF',
129
+ },
130
+ background: {
131
+ 200: '#E8E8ED',
132
+ 300: '#F0F0F2',
133
+ 400: '#F8F8FA',
134
+ 500: '#FFFFFF',
135
+ DEFAULT: '#FFFFFF',
136
+ },
137
+ foreground: {
138
+ 100: '#C0C0C9',
139
+ 300: '#767A80',
140
+ 500: '#000000',
141
+ DEFAULT: '#000000',
142
+ },
143
+ default: {
144
+ DEFAULT: '#E8E8EB',
145
+ foreground: '#000000',
146
+ },
147
+ primary: {
148
+ 900: '#362349',
149
+ 700: '#4D2A86',
150
+ 600: '#6A3AB8',
151
+ DEFAULT: '#D745FF', //主色
152
+ foreground: '#FFFFFF',
153
+ },
154
+ secondary: {
155
+ DEFAULT: '#E8E8EB',
156
+ foreground: '#000000',
157
+ },
158
+ success: {
159
+ DEFAULT: '#2E9F4A',
160
+ foreground: '#FFFFFF',
161
+ },
162
+ danger: {
163
+ DEFAULT: '#DE4A40',
164
+ foreground: '#FFFFFF',
165
+ },
166
+ warning: {
167
+ DEFAULT: '#FF9821',
168
+ foreground: '#FFFFFF',
169
+ },
170
+ focus: '#D745FF',
171
+ divider: '#E0E0E6',
172
+ alert: '#E65E16',
173
+ gold: '#F38300',
174
+ },
175
+ },
176
+ dark: {
177
+ colors: {
178
+ content1: {
179
+ DEFAULT: '#17171C',
180
+ },
181
+ background: {
182
+ 200: '#1F1F23',
183
+ 300: '#17171C',
184
+ 400: '#0F0F0F',
185
+ 500: '#000000',
186
+ DEFAULT: '#000000',
187
+ },
188
+ foreground: {
189
+ 100: '#4E4E56',
190
+ 300: '#A1A1AA',
191
+ 500: '#FFFFFF',
192
+ DEFAULT: '#FFFFFF',
193
+ },
194
+ content1: {
195
+ DEFAULT: '#17171C',
196
+ },
197
+ default: {
198
+ DEFAULT: '#1F1F23',
199
+ foreground: '#FFFFFF',
200
+ },
201
+ primary: {
202
+ 900: '#362349',
203
+ 700: '#4D2A86',
204
+ 600: '#6A3AB8',
205
+ DEFAULT: '#D745FF', //主色
206
+ foreground: '#FFFFFF',
207
+ },
208
+ secondary: {
209
+ DEFAULT: '#1F1F23',
210
+ foreground: '#FFFFFF',
211
+ },
212
+ success: {
213
+ DEFAULT: '#45B167',
214
+ foreground: '#FFFFFF',
215
+ },
216
+ danger: {
217
+ DEFAULT: '#E84A5A',
218
+ foreground: '#FFFFFF',
219
+ },
220
+ warning: {
221
+ DEFAULT: '#FF9821',
222
+ foreground: '#FFFFFF',
223
+ },
224
+ focus: '#D745FF',
225
+ divider: '#282828',
226
+ alert: '#F57733',
227
+ gold: '#FFB800',
228
+ },
229
+ },
230
+ },
231
+ function({ addVariant, addComponents }) {
232
+ addVariant('child', '& > *');
233
+ addVariant('child-hover', '& > *:hover');
234
+ // Height-based variants
235
+ addVariant('sh', '@media (min-height: 500px)');
236
+ addVariant('max-sh', '@media (max-height: 500px)');
237
+ addVariant('mh', '@media (min-height: 700px)');
238
+ addVariant('max-mh', '@media (max-height: 700px)');
239
+ addVariant('lh', '@media (min-height: 900px)');
240
+ addVariant('max-lh', '@media (max-height: 900px)');
241
+ addVariant('lh950', '@media (min-height: 950px)');
242
+ addVariant('max-lh950', '@media (max-height: 950px)');
243
+ addVariant('xh', '@media (min-height: 1100px)');
244
+ addVariant('max-xh', '@media (max-height: 1100px)');
245
+ addVariant('2xh', '@media (min-height: 1300px)');
246
+ addVariant('max-2xh', '@media (max-height: 1300px)');
247
+
248
+ // light mode variant
249
+ addVariant('light', '&:not(.dark *)');
250
+
251
+ // button styles
252
+ addComponents({
253
+ '.btn-lg': {
254
+ fontSize: '1.25rem !important',
255
+ lineHeight: '1.25rem !important',
256
+ borderRadius: '0.625rem !important',
257
+ height: '3.125rem !important', // 50px
258
+ fontWeight: '600 !important',
259
+ '@media (max-width: 640px)': {
260
+ height: '2.75rem !important', // Height for screens < 640px
261
+ fontSize: '1rem !important',
262
+ lineHeight: '1rem !important',
263
+ borderRadius: '500 !important',
264
+ },
265
+ },
266
+ '.btn-md': {
267
+ fontSize: '1rem !important',
268
+ lineHeight: '1rem !important',
269
+ borderRadius: '0.625rem !important',
270
+ height: '2.75rem !important', // 44px
271
+ fontWeight: '500 !important',
272
+ },
273
+ '.btn-sm': {
274
+ fontSize: '1rem !important',
275
+ lineHeight: '1rem !important',
276
+ borderRadius: '0.625rem !important',
277
+ height: '2.25rem !important', // 36px
278
+ fontWeight: '500 !important',
279
+ },
280
+ });
281
+ },
282
+ }),
283
+ plugin(function ({ addUtilities }) {
284
+ addUtilities({
285
+ '.no-scrollbar': {
286
+ /* Firefox */
287
+ 'scrollbar-width': 'none',
288
+ /* IE/Edge */
289
+ '-ms-overflow-style': 'none',
290
+ /* Chrome/Safari */
291
+ '&::-webkit-scrollbar': {
292
+ display: 'none',
293
+ },
294
+ },
295
+ });
296
+ }),
297
+ ],
298
+ };