better_ui 0.5.0 → 0.5.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 (81) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +137 -245
  3. data/app/assets/stylesheets/better_ui/_base.scss +9 -0
  4. data/app/assets/stylesheets/better_ui/_components.scss +2 -0
  5. data/app/assets/stylesheets/better_ui/_utilities.scss +14 -0
  6. data/app/assets/stylesheets/better_ui/application.css +3 -1
  7. data/app/assets/stylesheets/better_ui/components/_avatar.scss +200 -0
  8. data/app/assets/stylesheets/better_ui/components/_badge.scss +154 -0
  9. data/app/assets/stylesheets/better_ui/components/_breadcrumb.scss +106 -0
  10. data/app/assets/stylesheets/better_ui/components/_button.scss +105 -0
  11. data/app/assets/stylesheets/better_ui/components/_card.scss +60 -0
  12. data/app/assets/stylesheets/better_ui/components/_heading.scss +81 -0
  13. data/app/assets/stylesheets/better_ui/components/_icon.scss +134 -0
  14. data/app/assets/stylesheets/better_ui/components/_index.scss +17 -0
  15. data/app/assets/stylesheets/better_ui/components/_link.scss +100 -0
  16. data/app/assets/stylesheets/better_ui/components/_panel.scss +104 -0
  17. data/app/assets/stylesheets/better_ui/components/_spinner.scss +129 -0
  18. data/app/assets/stylesheets/better_ui/components/_table.scss +156 -0
  19. data/app/assets/stylesheets/better_ui/components/_variables.scss +1 -0
  20. data/app/assets/stylesheets/better_ui.scss +4 -0
  21. data/app/components/better_ui/general/avatar_component.html.erb +2 -2
  22. data/app/components/better_ui/general/avatar_component.rb +29 -29
  23. data/app/components/better_ui/general/badge_component.html.erb +3 -3
  24. data/app/components/better_ui/general/badge_component.rb +32 -20
  25. data/app/components/better_ui/general/breadcrumb_component.html.erb +2 -2
  26. data/app/components/better_ui/general/breadcrumb_component.rb +23 -23
  27. data/app/components/better_ui/general/button_component.html.erb +6 -6
  28. data/app/components/better_ui/general/button_component.rb +20 -22
  29. data/app/components/better_ui/general/heading_component.html.erb +1 -25
  30. data/app/components/better_ui/general/heading_component.rb +17 -116
  31. data/app/components/better_ui/general/icon_component.html.erb +1 -1
  32. data/app/components/better_ui/general/icon_component.rb +33 -56
  33. data/app/components/better_ui/general/link_component.html.erb +4 -4
  34. data/app/components/better_ui/general/link_component.rb +28 -28
  35. data/app/components/better_ui/general/panel_component.rb +30 -41
  36. data/app/components/better_ui/general/spinner_component.html.erb +3 -3
  37. data/app/components/better_ui/general/spinner_component.rb +13 -13
  38. data/app/components/better_ui/general/table_component.rb +35 -59
  39. data/app/helpers/better_ui/general/components/avatar_helper.rb +17 -0
  40. data/app/helpers/better_ui/general/components/badge_helper.rb +17 -0
  41. data/app/helpers/better_ui/general/components/breadcrumb_helper.rb +17 -0
  42. data/app/helpers/better_ui/general/components/button_helper.rb +17 -0
  43. data/app/helpers/better_ui/general/components/heading_helper.rb +17 -0
  44. data/app/helpers/better_ui/general/components/icon_helper.rb +17 -0
  45. data/app/helpers/better_ui/general/components/link_helper.rb +17 -0
  46. data/app/helpers/better_ui/general/components/panel_helper.rb +16 -0
  47. data/app/helpers/better_ui/general/components/spinner_helper.rb +17 -0
  48. data/app/helpers/better_ui/general/components/table_helper.rb +17 -0
  49. data/app/helpers/better_ui/general_helper.rb +15 -0
  50. data/app/helpers/better_ui_helper.rb +12 -0
  51. data/config/routes.rb +2 -13
  52. data/lib/better_ui/engine.rb +67 -11
  53. data/lib/better_ui/version.rb +1 -1
  54. data/lib/better_ui.rb +10 -2
  55. data/lib/generators/better_ui/install_generator.rb +103 -0
  56. data/lib/generators/better_ui/stylesheet_generator.rb +93 -30
  57. data/lib/generators/better_ui/templates/README +74 -5
  58. data/lib/generators/better_ui/templates/components/_avatar.scss +199 -150
  59. data/lib/generators/better_ui/templates/components/_badge.scss +153 -141
  60. data/lib/generators/better_ui/templates/components/_breadcrumb.scss +105 -106
  61. data/lib/generators/better_ui/templates/components/_button.scss +104 -101
  62. data/lib/generators/better_ui/templates/components/_card.scss +56 -65
  63. data/lib/generators/better_ui/templates/components/_heading.scss +80 -179
  64. data/lib/generators/better_ui/templates/components/_icon.scss +133 -89
  65. data/lib/generators/better_ui/templates/components/_index.scss +17 -0
  66. data/lib/generators/better_ui/templates/components/_link.scss +99 -129
  67. data/lib/generators/better_ui/templates/components/_panel.scss +103 -143
  68. data/lib/generators/better_ui/templates/components/_spinner.scss +127 -130
  69. data/lib/generators/better_ui/templates/components/_table.scss +156 -105
  70. data/lib/generators/better_ui/templates/components/_variables.scss +0 -33
  71. data/lib/generators/better_ui/templates/components_stylesheet.scss +25 -56
  72. data/lib/generators/better_ui/templates/index.scss +18 -0
  73. data/lib/generators/better_ui/templates/initializer.rb +41 -0
  74. metadata +91 -49
  75. data/app/assets/javascripts/better_ui/controllers/navbar_controller.js +0 -138
  76. data/app/assets/javascripts/better_ui/controllers/sidebar_controller.js +0 -211
  77. data/app/assets/javascripts/better_ui/controllers/toast_controller.js +0 -161
  78. data/app/assets/javascripts/better_ui/index.js +0 -159
  79. data/app/assets/javascripts/better_ui/toast_manager.js +0 -77
  80. data/app/components/better_ui/theme_helper.rb +0 -171
  81. data/app/controllers/better_ui/docs_controller.rb +0 -34
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 317837f4f80e12e6ab860a7a134e9f17e01f5db2d86f5b178a4c9a2bc9588f3a
4
- data.tar.gz: 8815e3b40a461070b9cb178ee1a7e1e8abaccbf6cea7366ab5c079db174429f4
3
+ metadata.gz: ee8e6a1b636ddcd65276d5c410c5b0c9a239d236cdbf507d168bb68abe63c12d
4
+ data.tar.gz: 930f7752b6c813943b49d29bd635da5109355f036eea0bf1d5fc9aed45932173
5
5
  SHA512:
6
- metadata.gz: 0fb96fb9537391b7448ffde247cd8d9ae4916dac0cfcd17c4efe912b061dfd05986368ebe6563549c58ce0909e9a509474ac885e136d133214f806437925726d
7
- data.tar.gz: de95bf54dcd6fa022f5afa5c0867d65b7a78e8f24cab637aa7cf098f0bf01f5cabdac5e6c7b36ba1aba14833682b17174e1d229a4d428f5646d92ee876ad42f4
6
+ metadata.gz: f91edcfb87541fbdeb97e2bc3899c1b1d3a8508bd94a6e6a9955ea56940830cfcc98df3e23f82e9bcb975039b6d3122c36f7c0e75316822ec11f03d206105647
7
+ data.tar.gz: 9422f6159176dc75cd254009f55660831aca51c98e7a4d829a5ab6b4911d5fc569f44ae05c549a452d5fd403a844a1b589642244c1922f485f59874094618921
data/README.md CHANGED
@@ -1,319 +1,211 @@
1
- # BetterUI 🎨
1
+ # Better UI
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/better_ui.svg)](https://badge.fury.io/rb/better_ui)
4
- [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
5
 
6
- > Elegant, consistent, and easily integrable UI components for your Rails applications
6
+ A comprehensive UI component library for Rails applications built with ViewComponent and Tailwind CSS, following BEM methodology.
7
7
 
8
- BetterUI is a Rails gem that provides reusable UI components with built-in documentation. Designed to be lightweight, customizable, and easy to use, it helps you build beautiful and consistent interfaces without JavaScript.
8
+ ![Better UI Components](https://via.placeholder.com/800x400?text=Better+UI+Components)
9
9
 
10
- ## Key Features
10
+ ## Table of Contents
11
11
 
12
- - **Pure Design** - Elegant, fully CSS UI components, no JavaScript
13
- - **Easy Integration** - Mountable Rails engine that integrates seamlessly with your app
14
- - **Built-in Documentation** - View examples and documentation directly in your browser
15
- - **Highly Customizable** - Easily adapt the style to your brand
16
- - **Modular Components** - Use only what you need
17
- - **Component Previews** - View and interact with components using Lookbook
12
+ - [Overview](#overview)
13
+ - [Installation](#installation)
14
+ - [Basic Installation](#basic-installation)
15
+ - [Advanced Installation Options](#advanced-installation-options)
16
+ - [Tailwind CSS Configuration](#tailwind-css-configuration)
17
+ - [Documentation](#documentation)
18
+ - [Usage](#usage)
19
+ - [Customization](#customization)
20
+ - [Components](#components)
21
+ - [Testing](#testing)
22
+ - [Contributing](#contributing)
23
+ - [License](#license)
24
+ - [Resources](#resources)
18
25
 
19
- ## 📦 Available Components
26
+ ## Overview
20
27
 
21
- | Component | Description |
22
- |------------|-------------|
23
- | **Button** | Styled buttons with primary, secondary, success, danger variants |
24
- | **Alert** | Informational, success, warning, and error messages |
25
- | **Card** | Flexible containers with header, body, and footer |
26
- | **Modal** | Modal dialog windows |
27
- | **Tabs** | Tab navigation |
28
- | **Navbar** | Responsive navigation bar with dropdown menu support |
29
- | **Sidebar** | Side menu with hierarchical navigation support |
30
- | **Toast** | Temporary notifications with timer and animations |
31
- | **Header** | Page headers with title, subtitle, breadcrumb, and actions |
32
- | **Badge** | Labels with support for icons, colors, and outline variants |
33
- | **Spinner** | Loading indicators with various themes and sizes |
34
- | **Avatar** | User avatars with support for images, initials, and online status |
35
- | **Form Elements** | Styled input fields (coming soon) |
28
+ Better UI is a Rails gem that provides a collection of reusable UI components built with ViewComponent and Tailwind CSS. It follows the BEM (Block Element Modifier) methodology to ensure consistent naming and styling conventions.
36
29
 
37
- ## 🚀 Installation
30
+ Key features:
31
+ - **Modern Sass Architecture**: Uses `@use` and `@forward` instead of deprecated `@import`
32
+ - **Modular Components**: Each component is isolated and can be used independently
33
+ - **Customizable**: Override components styles with your own customizations
34
+ - **Interactive Documentation**: Built-in documentation viewer with Lookbook
35
+ - **Responsive Design**: All components are responsive by default
36
+ - **Accessibility**: Components are designed with accessibility in mind
38
37
 
39
- Add this line to your application's Gemfile:
38
+ For more detailed information, see the [components documentation](COMPONENTS.md).
40
39
 
41
- ```ruby
42
- gem 'better_ui', '~> 0.1.0'
43
- ```
44
-
45
- And then execute:
46
-
47
- ```bash
48
- $ bundle install
49
- ```
40
+ ## Installation
50
41
 
51
- ## ⚙️ Configuration
42
+ ### Basic Installation
52
43
 
53
- ### Mount the Engine
54
-
55
- Add this to your `config/routes.rb` file:
44
+ 1. Add the gem to your Gemfile:
56
45
 
57
46
  ```ruby
58
- Rails.application.routes.draw do
59
- mount BetterUi::Engine => '/better_ui'
60
-
61
- # ... your other routes
62
- end
47
+ gem 'better_ui'
63
48
  ```
64
49
 
65
- ### Include the Assets
66
-
67
- In `app/assets/stylesheets/application.css`:
68
-
69
- ```css
70
- /*
71
- *= require better_ui/application
72
- */
73
- ```
74
-
75
- ## 🎮 Usage
76
-
77
- Once installed, you can start using the components:
78
-
79
- ```erb
80
- <%# Button %>
81
- <%= better_ui_button("Save", type: "primary") %>
82
-
83
- <%# Alert %>
84
- <%= better_ui_alert("Operation completed", type: "success") %>
85
-
86
- <%# Card %>
87
- <%= better_ui_card do %>
88
- <%= better_ui_card_header("Card Title") %>
89
- <%= better_ui_card_body do %>
90
- <p>Card content...</p>
91
- <% end %>
92
- <% end %>
50
+ 2. Run bundle install:
93
51
 
94
- <%# Header with breadcrumb %>
95
- <%= render BetterUi::Application::HeaderComponent.new(
96
- title: "Dashboard",
97
- subtitle: "Manage everything from here",
98
- breadcrumbs: [
99
- { text: "Home", url: "/" },
100
- { text: "Dashboard" }
101
- ],
102
- actions: [
103
- { content: button_html("New", "primary") }
104
- ]
105
- ) %>
52
+ ```bash
53
+ bundle install
106
54
  ```
107
55
 
108
- Visit `/better_ui` in your application to see the complete documentation and examples.
109
-
110
- ### The Header Component
56
+ 3. Run the installer:
111
57
 
112
- The Header component is designed to create complete page headers with numerous features:
113
-
114
- ```erb
115
- <%= render BetterUi::Application::HeaderComponent.new(
116
- title: {
117
- text: "Settings",
118
- icon: "settings"
119
- },
120
- subtitle: "Configure system preferences",
121
- breadcrumbs: [
122
- { text: "Home", url: "/" },
123
- { text: "Admin", url: "/admin" },
124
- { text: "Settings" }
125
- ],
126
- variant: :modern,
127
- fixed: :top,
128
- show_breadcrumbs: true,
129
- actions: [
130
- { content: button_html("Save", "primary") },
131
- { content: button_html("Cancel", "secondary") }
132
- ]
133
- ) %>
58
+ ```bash
59
+ bin/rails generate better_ui:install
134
60
  ```
135
61
 
136
- The component supports:
137
- - Title with optional integrated icon
138
- - Descriptive subtitle
139
- - Complete breadcrumbs with navigation links
140
- - Contextual actions (buttons, menus, etc.)
141
- - Style variants: modern, light, dark, primary, transparent
142
- - Fixed positioning (top or bottom)
143
- - Breadcrumb visibility control
144
-
145
- ### Component Previews with Lookbook
146
-
147
- BetterUI integrates [Lookbook](https://github.com/allmarkedup/lookbook) to preview UI components:
62
+ The installer will:
63
+ - Mount the Better UI engine at `/better_ui`
64
+ - Add the necessary assets to your application
65
+ - Create a configuration file at `config/initializers/better_ui.rb`
66
+ - Generate customizable stylesheets in `app/assets/stylesheets/components/`
148
67
 
149
- 1. Access `/better_ui/lookbook` in your application to view the component catalog
150
- 2. Explore available variants and configurations for each component
151
- 3. View source code and generated markup
152
- 4. Interact with components in real-time
68
+ ### Advanced Installation Options
153
69
 
154
- Lookbook is only available in development and test environments.
70
+ You can customize the installation process with the following options:
155
71
 
156
- ## 🎨 Customization
157
-
158
- ### Generate a Custom Stylesheet
72
+ ```bash
73
+ # Skip mounting the engine in routes
74
+ bin/rails generate better_ui:install --skip-routes
159
75
 
160
- BetterUI includes a generator to create a base stylesheet for customizing components:
76
+ # Skip generating stylesheets
77
+ bin/rails generate better_ui:install --skip-stylesheets
161
78
 
162
- ```bash
163
- # Generate a stylesheet with the default "custom" prefix
164
- rails generate better_ui:stylesheet
79
+ # Skip creating the configuration file
80
+ bin/rails generate better_ui:install --skip-config
165
81
 
166
- # Generate a stylesheet with a custom prefix
167
- rails generate better_ui:stylesheet --prefix=my_theme
82
+ # All options together
83
+ bin/rails generate better_ui:install --skip-routes --skip-stylesheets --skip-config
168
84
  ```
169
85
 
170
- This will create:
171
- 1. A main SCSS file with imports for all components
172
- 2. Individual SCSS files for each component in the `app/assets/stylesheets/components/` directory
173
- 3. Special `*_overrides.scss` files for each component that allow you to override styles without modifying the original files
86
+ ### Tailwind CSS Configuration
174
87
 
175
- ### Component Overrides System
88
+ Better UI requires Tailwind CSS to be properly configured in your application. If you haven't already set up Tailwind CSS, follow these steps:
176
89
 
177
- One of BetterUI's most powerful features is the automatic generation of override files:
90
+ 1. Install Tailwind CSS in your Rails application:
178
91
 
179
92
  ```bash
180
- # Generate override files for all components
181
- rails generate better_ui:stylesheet
93
+ bin/rails tailwindcss:install
182
94
  ```
183
95
 
184
- This creates special `*_overrides.scss` files that:
185
- - Contain empty classes matching the original component files
186
- - Allow for clean customization without modifying the original styles
187
- - Support both standard and nested SCSS class structures
188
- - Include helpful comments for easier modification
96
+ 2. Configure Tailwind to include Better UI's components:
189
97
 
190
- Example override file structure:
191
- ```scss
192
- /* ==============================
193
- * Button Component Overrides
194
- * ==============================
195
- * This file contains empty classes to override default styles.
196
- * Add your customizations here.
197
- */
198
-
199
- .bui-button-primary {
200
- // Override styles for .bui-button-primary here
201
- }
202
-
203
- .bui-button-secondary {
204
- // Override styles for .bui-button-secondary here
205
- }
98
+ In your `tailwind.config.js` file, add:
206
99
 
207
- // Nested class overrides
208
- .bui-button-with-icon {
209
- .bui-icon {
210
- // Override nested styles here
211
- }
100
+ ```javascript
101
+ module.exports = {
102
+ content: [
103
+ './app/views/**/*.{html,html.erb,erb}',
104
+ './app/helpers/**/*.rb',
105
+ './app/javascript/**/*.js',
106
+ './app/components/**/*.{rb,html,html.erb,erb}',
107
+ // Add this line for Better UI components
108
+ './app/components/better_ui/**/*.{rb,html,html.erb,erb}'
109
+ ],
110
+ // other configurations...
212
111
  }
213
112
  ```
214
113
 
215
- ### Use the Initializer
216
-
217
- Create a `config/initializers/better_ui.rb` file:
114
+ For more detailed installation instructions, see [INSTALLATION.md](INSTALLATION.md).
218
115
 
219
- ```ruby
220
- BetterUi.configure do |config|
221
- config.button_defaults = {
222
- class: 'rounded-lg text-sm'
223
- }
224
-
225
- config.alert_defaults = {
226
- dismissible: true
227
- }
228
- end
229
- ```
116
+ ## Documentation
230
117
 
231
- ### Customize Styles
118
+ After installation, you can access the interactive documentation at:
232
119
 
233
- Override CSS styles in your stylesheet:
234
-
235
- ```css
236
- .better-ui-button-primary {
237
- background-color: #8b5cf6; /* Custom purple */
238
- border-color: #8b5cf6;
239
- }
120
+ ```
121
+ http://localhost:3000/better_ui
240
122
  ```
241
123
 
242
- ## 🛠 Development
124
+ This provides:
125
+ - Interactive component previews
126
+ - Component API documentation
127
+ - Usage examples and code snippets
128
+ - Styling reference
243
129
 
244
- BetterUI uses an integrated dummy app for development and testing. Here's how to get started:
130
+ ## Usage
245
131
 
246
- ### Initial Setup
132
+ Using Better UI components in your views is straightforward:
247
133
 
248
- ```bash
249
- # Clone the repository
250
- git clone https://github.com/alessiobussolari/better_ui.git
251
- cd better_ui
134
+ ```erb
135
+ <%# Basic button %>
136
+ <%= render BetterUi::General::ButtonComponent.new(label: 'Click me') %>
137
+
138
+ <%# Button with more options %>
139
+ <%= render BetterUi::General::ButtonComponent.new(
140
+ label: 'Submit',
141
+ variant: 'primary',
142
+ size: 'large',
143
+ icon_left: 'check',
144
+ data: { turbo: false }
145
+ ) %>
252
146
 
253
- # Install dependencies
254
- bin/setup
147
+ <%# Panel component %>
148
+ <%= render BetterUi::General::PanelComponent.new(title: 'User Details') do %>
149
+ <p>This is the panel content</p>
150
+ <% end %>
255
151
  ```
256
152
 
257
- ### Start the Test Application
153
+ For more detailed usage instructions, see [USAGE.md](USAGE.md).
258
154
 
259
- To see components in action and work on documentation:
155
+ ## Customization
260
156
 
261
- ```bash
262
- # Start the test server
263
- cd test/dummy
264
- bin/rails server
157
+ Better UI is designed to be highly customizable:
158
+
159
+ 1. **Style Customization**: Edit the generated override files in `app/assets/stylesheets/components/`
160
+ 2. **Component Configuration**: Configure default options in `config/initializers/better_ui.rb`
161
+ 3. **Component Extensions**: Extend existing components or create your own
162
+
163
+ Example of customizing a component style:
265
164
 
266
- # Or from the main directory
267
- bin/rails server -b 0.0.0.0
165
+ ```scss
166
+ // app/assets/stylesheets/components/_button_overrides.scss
167
+ @layer components {
168
+ .bui-button {
169
+ &--primary {
170
+ @apply bg-indigo-600 hover:bg-indigo-700;
171
+ }
172
+ }
173
+ }
268
174
  ```
269
175
 
270
- Visit `http://localhost:3000/better_ui` in your browser to see the documentation and test the components.
176
+ For more detailed customization instructions, see [CUSTOMIZATION.md](CUSTOMIZATION.md).
271
177
 
272
- ### Development Flow
178
+ ## Components
273
179
 
274
- 1. **Create a branch**: `git checkout -b feature/new-component`
275
- 2. **Implement the component**: Add helpers in `app/helpers/better_ui/application_helper.rb`
276
- 3. **Add CSS**: Insert styles in `app/assets/stylesheets/better_ui/application.css`
277
- 4. **Document**: Create Markdown files in `docs/components/`
278
- 5. **Test**: Verify in the dummy app that everything works correctly
279
- 6. **Run tests**: `rake test`
180
+ Better UI includes a wide range of components categorized into:
280
181
 
281
- ### Build and Release
182
+ - **General Components**: Basic UI elements like buttons, badges, icons
183
+ - **Application Components**: Complex UI elements like cards, alerts, sidebars
184
+ - **Website Components**: Components specifically designed for websites
282
185
 
283
- To build the gem locally:
186
+ For a full list of available components and their documentation, see [COMPONENTS.md](COMPONENTS.md).
284
187
 
285
- ```bash
286
- bundle exec rake build
287
- ```
188
+ ## Testing
288
189
 
289
- To install the development version:
190
+ Better UI components are thoroughly tested. You can run the test suite with:
290
191
 
291
192
  ```bash
292
- bundle exec rake install
193
+ bin/rails test
293
194
  ```
294
195
 
295
- ## 🤝 Contributing
296
-
297
- Contributions are welcome and appreciated! Here's how you can help:
298
-
299
- 1. **Fork** the repository on GitHub
300
- 2. **Clone** your fork: `git clone https://github.com/YOUR-USERNAME/better_ui.git`
301
- 3. **Create** a branch for your feature: `git checkout -b feature/amazing-improvement`
302
- 4. **Commit** your changes: `git commit -am 'Add an amazing feature'`
303
- 5. **Push** to the branch: `git push origin feature/amazing-improvement`
304
- 6. Submit a **Pull Request**
196
+ For more detailed testing instructions, see [TESTING.md](TESTING.md).
305
197
 
306
- ### Guidelines
198
+ ## Contributing
307
199
 
308
- - Follow the existing code style
309
- - Write tests for new features
310
- - Update documentation
311
- - Create components that work without JavaScript
200
+ Contributions are welcome! Please check out our [contribution guidelines](CONTRIBUTING.md).
312
201
 
313
- ## 📄 License
202
+ ## License
314
203
 
315
- BetterUI is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
204
+ Better UI is available as open source under the terms of the [MIT License](LICENSE).
316
205
 
317
- ---
206
+ ## Resources
318
207
 
319
- Made with ❤️ by [Alessio Bussolari](https://github.com/alessiobussolari)
208
+ - [Troubleshooting Guide](TROUBLESHOOTING.md)
209
+ - [FAQs](FAQ.md)
210
+ - [Changelog](CHANGELOG.md)
211
+ - [Roadmap](ROADMAP.md)
@@ -0,0 +1,9 @@
1
+ // Base che importa Tailwind
2
+ @use "tailwindcss/base";
3
+ @use "tailwindcss/components";
4
+ @use "tailwindcss/utilities";
5
+
6
+ // Stili comuni dell'applicazione
7
+ html, body {
8
+ @apply font-sans text-gray-900 leading-normal;
9
+ }
@@ -0,0 +1,2 @@
1
+ // Re-espone tutti i componenti con un singolo import
2
+ @forward "components/index";
@@ -0,0 +1,14 @@
1
+ @layer utilities {
2
+ // Utility classes aggiuntive che estendono Tailwind
3
+ .spacing-responsive {
4
+ @apply px-4 py-6 md:px-6 md:py-8 lg:px-8 lg:py-10;
5
+ }
6
+
7
+ .text-shadow {
8
+ @apply shadow-sm;
9
+ }
10
+
11
+ .card-shadow {
12
+ @apply shadow-md hover:shadow-lg transition-shadow duration-200;
13
+ }
14
+ }
@@ -13,10 +13,12 @@
13
13
  *= require_tree .
14
14
  *= require_self
15
15
  *= require font-awesome
16
+ *= require better_ui
16
17
  */
17
18
 
18
19
  /*
19
- * BetterUI - Utilizziamo Tailwind CSS per tutti gli stili
20
+ * BetterUI - Utilizziamo Tailwind CSS per tutti gli stili
21
+ * Ora organizzati con la moderna sintassi di Sass (@use/@forward)
20
22
  */
21
23
 
22
24
  /* Stili per il syntax highlighting di CodeRay */