better_ui 0.3.0 → 0.5.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.

Potentially problematic release.


This version of better_ui might be problematic. Click here for more details.

Files changed (206) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +227 -209
  4. data/app/assets/javascripts/better_ui/controllers/navbar_controller.js +138 -0
  5. data/app/assets/javascripts/better_ui/controllers/sidebar_controller.js +211 -0
  6. data/app/assets/javascripts/better_ui/controllers/toast_controller.js +161 -0
  7. data/app/assets/javascripts/better_ui/index.js +159 -0
  8. data/app/assets/javascripts/better_ui/toast_manager.js +77 -0
  9. data/app/assets/stylesheets/better_ui/application.css +30 -0
  10. data/app/components/better_ui/application/alert_component.html.erb +27 -0
  11. data/app/components/better_ui/application/alert_component.rb +202 -0
  12. data/app/components/better_ui/application/card_component.html.erb +24 -0
  13. data/app/components/better_ui/application/card_component.rb +53 -0
  14. data/app/components/better_ui/application/card_container_component.html.erb +8 -0
  15. data/app/components/better_ui/application/card_container_component.rb +14 -0
  16. data/app/components/better_ui/application/header_component.html.erb +88 -0
  17. data/app/components/better_ui/application/header_component.rb +188 -0
  18. data/app/components/better_ui/application/navbar_component.html.erb +294 -0
  19. data/app/components/better_ui/application/navbar_component.rb +249 -0
  20. data/app/components/better_ui/application/sidebar_component.html.erb +207 -0
  21. data/app/components/better_ui/application/sidebar_component.rb +318 -0
  22. data/app/components/better_ui/application/toast_component.html.erb +35 -0
  23. data/app/components/better_ui/application/toast_component.rb +223 -0
  24. data/app/components/better_ui/general/avatar_component.html.erb +19 -0
  25. data/app/components/better_ui/general/avatar_component.rb +171 -0
  26. data/app/components/better_ui/general/badge_component.html.erb +19 -0
  27. data/app/components/better_ui/general/badge_component.rb +123 -0
  28. data/app/components/better_ui/general/{breadcrumb/component.html.erb → breadcrumb_component.html.erb} +4 -4
  29. data/app/components/better_ui/general/breadcrumb_component.rb +130 -0
  30. data/app/components/better_ui/general/{button/component.html.erb → button_component.html.erb} +7 -7
  31. data/app/components/better_ui/general/button_component.rb +162 -0
  32. data/app/components/better_ui/general/heading_component.html.erb +25 -0
  33. data/app/components/better_ui/general/heading_component.rb +148 -0
  34. data/app/components/better_ui/general/icon_component.html.erb +2 -0
  35. data/app/components/better_ui/general/icon_component.rb +100 -0
  36. data/app/components/better_ui/general/link_component.html.erb +17 -0
  37. data/app/components/better_ui/general/link_component.rb +132 -0
  38. data/app/components/better_ui/general/panel_component.html.erb +27 -0
  39. data/app/components/better_ui/general/panel_component.rb +103 -0
  40. data/app/components/better_ui/general/spinner_component.html.erb +15 -0
  41. data/app/components/better_ui/general/spinner_component.rb +79 -0
  42. data/app/components/better_ui/general/table_component.html.erb +73 -0
  43. data/app/components/better_ui/general/table_component.rb +167 -0
  44. data/app/components/better_ui/theme_helper.rb +171 -0
  45. data/app/controllers/better_ui/application_controller.rb +1 -0
  46. data/app/controllers/better_ui/docs_controller.rb +34 -0
  47. data/app/views/components/better_ui/general/table/_custom_body_row.html.erb +17 -0
  48. data/app/views/components/better_ui/general/table/_custom_footer_rows.html.erb +17 -0
  49. data/app/views/components/better_ui/general/table/_custom_header_rows.html.erb +12 -0
  50. data/app/views/layouts/component_preview.html.erb +32 -0
  51. data/config/initializers/lookbook.rb +12 -12
  52. data/config/routes.rb +13 -0
  53. data/lib/better_ui/engine.rb +36 -5
  54. data/lib/better_ui/version.rb +1 -1
  55. data/lib/better_ui.rb +24 -4
  56. data/lib/generators/better_ui/stylesheet_generator.rb +96 -0
  57. data/lib/generators/better_ui/templates/README +56 -0
  58. data/lib/generators/better_ui/templates/components/_avatar.scss +151 -0
  59. data/lib/generators/better_ui/templates/components/_badge.scss +142 -0
  60. data/lib/generators/better_ui/templates/components/_breadcrumb.scss +107 -0
  61. data/lib/generators/better_ui/templates/components/_button.scss +106 -0
  62. data/lib/generators/better_ui/templates/components/_card.scss +69 -0
  63. data/lib/generators/better_ui/templates/components/_heading.scss +180 -0
  64. data/lib/generators/better_ui/templates/components/_icon.scss +90 -0
  65. data/lib/generators/better_ui/templates/components/_link.scss +130 -0
  66. data/lib/generators/better_ui/templates/components/_panel.scss +144 -0
  67. data/lib/generators/better_ui/templates/components/_spinner.scss +132 -0
  68. data/lib/generators/better_ui/templates/components/_table.scss +105 -0
  69. data/lib/generators/better_ui/templates/components/_variables.scss +33 -0
  70. data/lib/generators/better_ui/templates/components_stylesheet.scss +66 -0
  71. metadata +145 -156
  72. data/app/components/better_ui/application/card/component.html.erb +0 -20
  73. data/app/components/better_ui/application/card/component.rb +0 -214
  74. data/app/components/better_ui/application/main/component.html.erb +0 -9
  75. data/app/components/better_ui/application/main/component.rb +0 -123
  76. data/app/components/better_ui/application/navbar/component.html.erb +0 -92
  77. data/app/components/better_ui/application/navbar/component.rb +0 -136
  78. data/app/components/better_ui/application/sidebar/component.html.erb +0 -227
  79. data/app/components/better_ui/application/sidebar/component.rb +0 -130
  80. data/app/components/better_ui/general/accordion/component.html.erb +0 -5
  81. data/app/components/better_ui/general/accordion/component.rb +0 -92
  82. data/app/components/better_ui/general/accordion/item_component.html.erb +0 -12
  83. data/app/components/better_ui/general/accordion/item_component.rb +0 -176
  84. data/app/components/better_ui/general/alert/component.html.erb +0 -32
  85. data/app/components/better_ui/general/alert/component.rb +0 -242
  86. data/app/components/better_ui/general/avatar/component.html.erb +0 -20
  87. data/app/components/better_ui/general/avatar/component.rb +0 -301
  88. data/app/components/better_ui/general/badge/component.html.erb +0 -23
  89. data/app/components/better_ui/general/badge/component.rb +0 -248
  90. data/app/components/better_ui/general/breadcrumb/component.rb +0 -187
  91. data/app/components/better_ui/general/button/component.rb +0 -214
  92. data/app/components/better_ui/general/divider/component.html.erb +0 -10
  93. data/app/components/better_ui/general/divider/component.rb +0 -226
  94. data/app/components/better_ui/general/dropdown/component.html.erb +0 -25
  95. data/app/components/better_ui/general/dropdown/component.rb +0 -170
  96. data/app/components/better_ui/general/dropdown/divider_component.html.erb +0 -1
  97. data/app/components/better_ui/general/dropdown/divider_component.rb +0 -41
  98. data/app/components/better_ui/general/dropdown/item_component.html.erb +0 -6
  99. data/app/components/better_ui/general/dropdown/item_component.rb +0 -119
  100. data/app/components/better_ui/general/field/component.html.erb +0 -27
  101. data/app/components/better_ui/general/field/component.rb +0 -37
  102. data/app/components/better_ui/general/heading/component.html.erb +0 -22
  103. data/app/components/better_ui/general/heading/component.rb +0 -257
  104. data/app/components/better_ui/general/icon/component.html.erb +0 -7
  105. data/app/components/better_ui/general/icon/component.rb +0 -239
  106. data/app/components/better_ui/general/input/checkbox/component.html.erb +0 -5
  107. data/app/components/better_ui/general/input/checkbox/component.rb +0 -238
  108. data/app/components/better_ui/general/input/datetime/component.html.erb +0 -5
  109. data/app/components/better_ui/general/input/datetime/component.rb +0 -223
  110. data/app/components/better_ui/general/input/radio/component.html.erb +0 -5
  111. data/app/components/better_ui/general/input/radio/component.rb +0 -230
  112. data/app/components/better_ui/general/input/select/component.html.erb +0 -16
  113. data/app/components/better_ui/general/input/select/component.rb +0 -184
  114. data/app/components/better_ui/general/input/select/select_component.html.erb +0 -5
  115. data/app/components/better_ui/general/input/select/select_component.rb +0 -37
  116. data/app/components/better_ui/general/input/text/component.html.erb +0 -5
  117. data/app/components/better_ui/general/input/text/component.rb +0 -171
  118. data/app/components/better_ui/general/input/textarea/component.html.erb +0 -5
  119. data/app/components/better_ui/general/input/textarea/component.rb +0 -166
  120. data/app/components/better_ui/general/link/component.html.erb +0 -18
  121. data/app/components/better_ui/general/link/component.rb +0 -258
  122. data/app/components/better_ui/general/modal/component.html.erb +0 -5
  123. data/app/components/better_ui/general/modal/component.rb +0 -47
  124. data/app/components/better_ui/general/modal/modal_component.html.erb +0 -52
  125. data/app/components/better_ui/general/modal/modal_component.rb +0 -160
  126. data/app/components/better_ui/general/pagination/component.html.erb +0 -85
  127. data/app/components/better_ui/general/pagination/component.rb +0 -216
  128. data/app/components/better_ui/general/panel/component.html.erb +0 -28
  129. data/app/components/better_ui/general/panel/component.rb +0 -249
  130. data/app/components/better_ui/general/progress/component.html.erb +0 -11
  131. data/app/components/better_ui/general/progress/component.rb +0 -160
  132. data/app/components/better_ui/general/spinner/component.html.erb +0 -35
  133. data/app/components/better_ui/general/spinner/component.rb +0 -93
  134. data/app/components/better_ui/general/table/component.html.erb +0 -5
  135. data/app/components/better_ui/general/table/component.rb +0 -217
  136. data/app/components/better_ui/general/table/tbody_component.html.erb +0 -3
  137. data/app/components/better_ui/general/table/tbody_component.rb +0 -30
  138. data/app/components/better_ui/general/table/td_component.html.erb +0 -3
  139. data/app/components/better_ui/general/table/td_component.rb +0 -44
  140. data/app/components/better_ui/general/table/tfoot_component.html.erb +0 -3
  141. data/app/components/better_ui/general/table/tfoot_component.rb +0 -28
  142. data/app/components/better_ui/general/table/th_component.html.erb +0 -6
  143. data/app/components/better_ui/general/table/th_component.rb +0 -51
  144. data/app/components/better_ui/general/table/thead_component.html.erb +0 -3
  145. data/app/components/better_ui/general/table/thead_component.rb +0 -28
  146. data/app/components/better_ui/general/table/tr_component.html.erb +0 -3
  147. data/app/components/better_ui/general/table/tr_component.rb +0 -30
  148. data/app/components/better_ui/general/tabs/component.html.erb +0 -11
  149. data/app/components/better_ui/general/tabs/component.rb +0 -120
  150. data/app/components/better_ui/general/tabs/panel_component.html.erb +0 -3
  151. data/app/components/better_ui/general/tabs/panel_component.rb +0 -37
  152. data/app/components/better_ui/general/tabs/tab_component.html.erb +0 -13
  153. data/app/components/better_ui/general/tabs/tab_component.rb +0 -111
  154. data/app/components/better_ui/general/tag/component.html.erb +0 -3
  155. data/app/components/better_ui/general/tag/component.rb +0 -104
  156. data/app/components/better_ui/general/tooltip/component.html.erb +0 -7
  157. data/app/components/better_ui/general/tooltip/component.rb +0 -239
  158. data/app/helpers/better_ui/application/components/card/card_helper.rb +0 -96
  159. data/app/helpers/better_ui/application/components/card.rb +0 -11
  160. data/app/helpers/better_ui/application/components/main/main_helper.rb +0 -64
  161. data/app/helpers/better_ui/application/components/navbar/navbar_helper.rb +0 -77
  162. data/app/helpers/better_ui/application/components/sidebar/sidebar_helper.rb +0 -51
  163. data/app/helpers/better_ui/application_helper.rb +0 -55
  164. data/app/helpers/better_ui/general/components/accordion/accordion_helper.rb +0 -73
  165. data/app/helpers/better_ui/general/components/accordion.rb +0 -11
  166. data/app/helpers/better_ui/general/components/alert/alert_helper.rb +0 -57
  167. data/app/helpers/better_ui/general/components/avatar/avatar_helper.rb +0 -29
  168. data/app/helpers/better_ui/general/components/badge/badge_helper.rb +0 -53
  169. data/app/helpers/better_ui/general/components/breadcrumb/breadcrumb_helper.rb +0 -37
  170. data/app/helpers/better_ui/general/components/button/button_helper.rb +0 -65
  171. data/app/helpers/better_ui/general/components/container/container_helper.rb +0 -60
  172. data/app/helpers/better_ui/general/components/divider/divider_helper.rb +0 -63
  173. data/app/helpers/better_ui/general/components/dropdown/divider_helper.rb +0 -32
  174. data/app/helpers/better_ui/general/components/dropdown/dropdown_helper.rb +0 -79
  175. data/app/helpers/better_ui/general/components/dropdown/item_helper.rb +0 -62
  176. data/app/helpers/better_ui/general/components/field/field_helper.rb +0 -26
  177. data/app/helpers/better_ui/general/components/heading/heading_helper.rb +0 -72
  178. data/app/helpers/better_ui/general/components/icon/icon_helper.rb +0 -16
  179. data/app/helpers/better_ui/general/components/input/checkbox/checkbox_helper.rb +0 -81
  180. data/app/helpers/better_ui/general/components/input/datetime/datetime_helper.rb +0 -91
  181. data/app/helpers/better_ui/general/components/input/radio/radio_helper.rb +0 -79
  182. data/app/helpers/better_ui/general/components/input/radio_group/radio_group_helper.rb +0 -124
  183. data/app/helpers/better_ui/general/components/input/select/select_helper.rb +0 -70
  184. data/app/helpers/better_ui/general/components/input/text/text_helper.rb +0 -138
  185. data/app/helpers/better_ui/general/components/input/textarea/textarea_helper.rb +0 -73
  186. data/app/helpers/better_ui/general/components/link/link_helper.rb +0 -89
  187. data/app/helpers/better_ui/general/components/modal/modal_helper.rb +0 -85
  188. data/app/helpers/better_ui/general/components/modal.rb +0 -11
  189. data/app/helpers/better_ui/general/components/pagination/pagination_helper.rb +0 -82
  190. data/app/helpers/better_ui/general/components/panel/panel_helper.rb +0 -83
  191. data/app/helpers/better_ui/general/components/progress/progress_helper.rb +0 -53
  192. data/app/helpers/better_ui/general/components/spinner/spinner_helper.rb +0 -19
  193. data/app/helpers/better_ui/general/components/table/table_helper.rb +0 -53
  194. data/app/helpers/better_ui/general/components/table/tbody_helper.rb +0 -13
  195. data/app/helpers/better_ui/general/components/table/td_helper.rb +0 -19
  196. data/app/helpers/better_ui/general/components/table/tfoot_helper.rb +0 -13
  197. data/app/helpers/better_ui/general/components/table/th_helper.rb +0 -19
  198. data/app/helpers/better_ui/general/components/table/thead_helper.rb +0 -13
  199. data/app/helpers/better_ui/general/components/table/tr_helper.rb +0 -13
  200. data/app/helpers/better_ui/general/components/tabs/panel_helper.rb +0 -62
  201. data/app/helpers/better_ui/general/components/tabs/tab_helper.rb +0 -55
  202. data/app/helpers/better_ui/general/components/tabs/tabs_helper.rb +0 -95
  203. data/app/helpers/better_ui/general/components/tag/tag_helper.rb +0 -26
  204. data/app/helpers/better_ui/general/components/tooltip/tooltip_helper.rb +0 -60
  205. data/app/views/layouts/better_ui/application.html.erb +0 -17
  206. data/lib/better_ui/railtie.rb +0 -20
@@ -0,0 +1,132 @@
1
+ /* ==============================
2
+ * Spinner Component
3
+ * ============================== */
4
+
5
+ /* Stile base */
6
+ .bui-spinner {
7
+ @apply inline-flex flex-col items-center justify-center;
8
+ }
9
+
10
+ /* Animazione dello spinner */
11
+ .bui-spinner-animation {
12
+ @apply inline-block rounded-full animate-spin;
13
+ border-top-color: transparent;
14
+ }
15
+
16
+ /* Base per il contenuto */
17
+ .bui-spinner-label {
18
+ @apply mt-2 text-center;
19
+ }
20
+
21
+ .bui-spinner-content {
22
+ @apply mt-4;
23
+ }
24
+
25
+ /* Modalità fullscreen */
26
+ .bui-spinner-fullscreen {
27
+ @apply fixed inset-0 flex items-center justify-center z-50 bg-black bg-opacity-50;
28
+ }
29
+
30
+ /* Varianti di dimensione */
31
+ .bui-spinner-small .bui-spinner-animation {
32
+ @apply w-5 h-5 border-2;
33
+ }
34
+
35
+ .bui-spinner-medium .bui-spinner-animation {
36
+ @apply w-8 h-8 border-3;
37
+ }
38
+
39
+ .bui-spinner-large .bui-spinner-animation {
40
+ @apply w-12 h-12 border-4;
41
+ }
42
+
43
+ /* Varianti di colore */
44
+ .bui-spinner-default {
45
+ .bui-spinner-animation {
46
+ @apply border-gray-200 border-t-gray-800;
47
+ }
48
+
49
+ .bui-spinner-label {
50
+ @apply text-gray-800;
51
+ }
52
+ }
53
+
54
+ .bui-spinner-white {
55
+ .bui-spinner-animation {
56
+ @apply border-gray-100 border-t-white;
57
+ }
58
+
59
+ .bui-spinner-label {
60
+ @apply text-white;
61
+ }
62
+ }
63
+
64
+ .bui-spinner-red {
65
+ .bui-spinner-animation {
66
+ @apply border-red-100 border-t-red-600;
67
+ }
68
+
69
+ .bui-spinner-label {
70
+ @apply text-red-600;
71
+ }
72
+ }
73
+
74
+ .bui-spinner-rose {
75
+ .bui-spinner-animation {
76
+ @apply border-rose-100 border-t-rose-600;
77
+ }
78
+
79
+ .bui-spinner-label {
80
+ @apply text-rose-600;
81
+ }
82
+ }
83
+
84
+ .bui-spinner-orange {
85
+ .bui-spinner-animation {
86
+ @apply border-orange-100 border-t-orange-500;
87
+ }
88
+
89
+ .bui-spinner-label {
90
+ @apply text-orange-500;
91
+ }
92
+ }
93
+
94
+ .bui-spinner-green {
95
+ .bui-spinner-animation {
96
+ @apply border-green-100 border-t-green-600;
97
+ }
98
+
99
+ .bui-spinner-label {
100
+ @apply text-green-600;
101
+ }
102
+ }
103
+
104
+ .bui-spinner-blue {
105
+ .bui-spinner-animation {
106
+ @apply border-blue-100 border-t-blue-600;
107
+ }
108
+
109
+ .bui-spinner-label {
110
+ @apply text-blue-600;
111
+ }
112
+ }
113
+
114
+ .bui-spinner-yellow {
115
+ .bui-spinner-animation {
116
+ @apply border-yellow-100 border-t-yellow-500;
117
+ }
118
+
119
+ .bui-spinner-label {
120
+ @apply text-yellow-500;
121
+ }
122
+ }
123
+
124
+ .bui-spinner-violet {
125
+ .bui-spinner-animation {
126
+ @apply border-violet-100 border-t-violet-600;
127
+ }
128
+
129
+ .bui-spinner-label {
130
+ @apply text-violet-600;
131
+ }
132
+ }
@@ -0,0 +1,105 @@
1
+ /* ==============================
2
+ * Table Component
3
+ * ============================== */
4
+
5
+ /* Contenitore e base */
6
+ .bui-table-container {
7
+ @apply overflow-hidden;
8
+ }
9
+
10
+ .bui-table-base {
11
+ @apply w-full;
12
+ }
13
+
14
+ .bui-table-bordered {
15
+ @apply border-collapse;
16
+ }
17
+
18
+ /* Bordi arrotondati */
19
+ .bui-table-radius-none { @apply rounded-none; }
20
+ .bui-table-radius-small { @apply rounded-md; }
21
+ .bui-table-radius-medium { @apply rounded-lg; }
22
+ .bui-table-radius-large { @apply rounded-xl; }
23
+ .bui-table-radius-full { @apply rounded-3xl; }
24
+
25
+ /* Celle e righe */
26
+ .bui-table-cell {
27
+ @apply px-4 py-3;
28
+ }
29
+
30
+ .bui-table-cell-compact {
31
+ @apply px-2 py-1 text-sm;
32
+ }
33
+
34
+ .bui-table-cell-bordered {
35
+ @apply border;
36
+ }
37
+
38
+ /* Stili per le righe */
39
+ .bui-table-row-hover tr:hover td {
40
+ @apply bg-opacity-10 bg-gray-500;
41
+ }
42
+
43
+ .bui-table-row-striped tr:nth-child(odd) td {
44
+ @apply bg-gray-50;
45
+ }
46
+
47
+ .bui-table-row-alternate {
48
+ @apply bg-gray-50;
49
+ }
50
+
51
+ /* Caption */
52
+ .bui-table-caption {
53
+ @apply p-3 font-medium;
54
+ }
55
+
56
+ .bui-table-caption-bordered {
57
+ @apply border-b;
58
+ }
59
+
60
+ /* Header */
61
+ .bui-table-header th {
62
+ @apply font-semibold;
63
+ }
64
+
65
+ /* Footer */
66
+ .bui-table-footer td {
67
+ @apply font-semibold;
68
+ }
69
+
70
+ .bui-table-footer-cell {
71
+ @apply bg-opacity-90;
72
+ }
73
+
74
+ /* Varianti bordi */
75
+ .bui-table-border-default { @apply border-gray-900; }
76
+ .bui-table-border-white { @apply border-gray-200; }
77
+ .bui-table-border-red { @apply border-red-600; }
78
+ .bui-table-border-rose { @apply border-rose-600; }
79
+ .bui-table-border-orange { @apply border-orange-600; }
80
+ .bui-table-border-green { @apply border-green-600; }
81
+ .bui-table-border-blue { @apply border-blue-600; }
82
+ .bui-table-border-yellow { @apply border-yellow-600; }
83
+ .bui-table-border-violet { @apply border-violet-600; }
84
+
85
+ /* Varianti background */
86
+ .bui-table-bg-default { @apply bg-black; }
87
+ .bui-table-bg-white { @apply bg-white; }
88
+ .bui-table-bg-red { @apply bg-red-500; }
89
+ .bui-table-bg-rose { @apply bg-rose-500; }
90
+ .bui-table-bg-orange { @apply bg-orange-500; }
91
+ .bui-table-bg-green { @apply bg-green-500; }
92
+ .bui-table-bg-blue { @apply bg-blue-500; }
93
+ .bui-table-bg-yellow { @apply bg-yellow-500; }
94
+ .bui-table-bg-violet { @apply bg-violet-500; }
95
+
96
+ /* Varianti testo */
97
+ .bui-table-text-default { @apply text-white; }
98
+ .bui-table-text-white { @apply text-black; }
99
+ .bui-table-text-red { @apply text-white; }
100
+ .bui-table-text-rose { @apply text-white; }
101
+ .bui-table-text-orange { @apply text-white; }
102
+ .bui-table-text-green { @apply text-white; }
103
+ .bui-table-text-blue { @apply text-white; }
104
+ .bui-table-text-yellow { @apply text-black; }
105
+ .bui-table-text-violet { @apply text-white; }
@@ -0,0 +1,33 @@
1
+ /* ==============================
2
+ * Variables
3
+ * ============================== */
4
+
5
+ /* Colori principali - usa i colori di Tailwind */
6
+ $bui-primary: theme('colors.blue.500') !default;
7
+ $bui-primary-hover: theme('colors.blue.600') !default;
8
+ $bui-secondary: theme('colors.gray.500') !default;
9
+ $bui-secondary-hover: theme('colors.gray.600') !default;
10
+ $bui-success: theme('colors.emerald.500') !default;
11
+ $bui-warning: theme('colors.amber.500') !default;
12
+ $bui-danger: theme('colors.red.500') !default;
13
+ $bui-info: theme('colors.blue.500') !default;
14
+
15
+ /* Spaziature - usa gli spacing di Tailwind */
16
+ $bui-spacing-xs: theme('spacing.1') !default;
17
+ $bui-spacing-sm: theme('spacing.2') !default;
18
+ $bui-spacing-md: theme('spacing.4') !default;
19
+ $bui-spacing-lg: theme('spacing.6') !default;
20
+ $bui-spacing-xl: theme('spacing.8') !default;
21
+
22
+ /* Tipografia - usa i font di Tailwind */
23
+ $bui-font-family: theme('fontFamily.sans') !default;
24
+ $bui-font-size-sm: theme('fontSize.sm[0]') !default;
25
+ $bui-font-size-base: theme('fontSize.base[0]') !default;
26
+ $bui-font-size-lg: theme('fontSize.lg[0]') !default;
27
+ $bui-font-size-xl: theme('fontSize.xl[0]') !default;
28
+
29
+ /* Border radius - usa i radius di Tailwind */
30
+ $bui-radius-sm: theme('borderRadius.sm') !default;
31
+ $bui-radius-md: theme('borderRadius.md') !default;
32
+ $bui-radius-lg: theme('borderRadius.lg') !default;
33
+ $bui-radius-full: theme('borderRadius.full') !default;
@@ -0,0 +1,66 @@
1
+ /*
2
+ * <%= options[:prefix] %>_better_ui_components.scss
3
+ * Foglio di stile SCSS per la personalizzazione dei componenti di BetterUi
4
+ * Generato il: <%= Time.now.strftime('%d/%m/%Y %H:%M') %>
5
+ */
6
+
7
+ /**
8
+ * INDICE:
9
+ * 1. Variabili
10
+ * 2. Componenti generali
11
+ * 3. Componenti applicativi
12
+ * 4. Personalizzazioni
13
+ */
14
+
15
+ /*==================================
16
+ IMPORTAZIONE COMPONENTI E VARIABILI
17
+ ====================================*/
18
+ /* Importa le variabili */
19
+ @import "components/variables";
20
+
21
+ @layer components {
22
+ /*==================================
23
+ COMPONENTI GENERALI
24
+ ====================================*/
25
+
26
+ /* Importa il componente Bottone */
27
+ @import "components/button";
28
+
29
+ /* Importa il componente Heading */
30
+ @import "components/heading";
31
+
32
+ /* Importa il componente Breadcrumb */
33
+ @import "components/breadcrumb";
34
+
35
+ /* Importa il componente Link */
36
+ @import "components/link";
37
+
38
+ /* Importa il componente Panel */
39
+ @import "components/panel";
40
+
41
+ /* Importa il componente Icon */
42
+ @import "components/icon";
43
+
44
+ /* Importa il componente Table */
45
+ @import "components/table";
46
+
47
+ /* Importa il componente Spinner */
48
+ @import "components/spinner";
49
+
50
+ /* Importa il componente Badge */
51
+ @import "components/badge";
52
+
53
+ /* Importa il componente Avatar */
54
+ @import "components/avatar";
55
+
56
+ /*==================================
57
+ COMPONENTI APPLICATIVI
58
+ ====================================*/
59
+ /* Importa il componente Card */
60
+ @import "components/card";
61
+
62
+ /*==================================
63
+ PERSONALIZZAZIONI
64
+ ====================================*/
65
+ /* Qui è possibile aggiungere personalizzazioni specifiche */
66
+ }