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.
- checksums.yaml +4 -4
- data/README.md +137 -245
- data/app/assets/stylesheets/better_ui/_base.scss +9 -0
- data/app/assets/stylesheets/better_ui/_components.scss +2 -0
- data/app/assets/stylesheets/better_ui/_utilities.scss +14 -0
- data/app/assets/stylesheets/better_ui/application.css +3 -1
- data/app/assets/stylesheets/better_ui/components/_avatar.scss +200 -0
- data/app/assets/stylesheets/better_ui/components/_badge.scss +154 -0
- data/app/assets/stylesheets/better_ui/components/_breadcrumb.scss +106 -0
- data/app/assets/stylesheets/better_ui/components/_button.scss +105 -0
- data/app/assets/stylesheets/better_ui/components/_card.scss +60 -0
- data/app/assets/stylesheets/better_ui/components/_heading.scss +81 -0
- data/app/assets/stylesheets/better_ui/components/_icon.scss +134 -0
- data/app/assets/stylesheets/better_ui/components/_index.scss +17 -0
- data/app/assets/stylesheets/better_ui/components/_link.scss +100 -0
- data/app/assets/stylesheets/better_ui/components/_panel.scss +104 -0
- data/app/assets/stylesheets/better_ui/components/_spinner.scss +129 -0
- data/app/assets/stylesheets/better_ui/components/_table.scss +156 -0
- data/app/assets/stylesheets/better_ui/components/_variables.scss +1 -0
- data/app/assets/stylesheets/better_ui.scss +4 -0
- data/app/components/better_ui/general/avatar_component.html.erb +2 -2
- data/app/components/better_ui/general/avatar_component.rb +29 -29
- data/app/components/better_ui/general/badge_component.html.erb +3 -3
- data/app/components/better_ui/general/badge_component.rb +32 -20
- data/app/components/better_ui/general/breadcrumb_component.html.erb +2 -2
- data/app/components/better_ui/general/breadcrumb_component.rb +23 -23
- data/app/components/better_ui/general/button_component.html.erb +6 -6
- data/app/components/better_ui/general/button_component.rb +20 -22
- data/app/components/better_ui/general/heading_component.html.erb +1 -25
- data/app/components/better_ui/general/heading_component.rb +17 -116
- data/app/components/better_ui/general/icon_component.html.erb +1 -1
- data/app/components/better_ui/general/icon_component.rb +33 -56
- data/app/components/better_ui/general/link_component.html.erb +4 -4
- data/app/components/better_ui/general/link_component.rb +28 -28
- data/app/components/better_ui/general/panel_component.rb +30 -41
- data/app/components/better_ui/general/spinner_component.html.erb +3 -3
- data/app/components/better_ui/general/spinner_component.rb +13 -13
- data/app/components/better_ui/general/table_component.rb +35 -59
- data/app/helpers/better_ui/general/components/avatar_helper.rb +17 -0
- data/app/helpers/better_ui/general/components/badge_helper.rb +17 -0
- data/app/helpers/better_ui/general/components/breadcrumb_helper.rb +17 -0
- data/app/helpers/better_ui/general/components/button_helper.rb +17 -0
- data/app/helpers/better_ui/general/components/heading_helper.rb +17 -0
- data/app/helpers/better_ui/general/components/icon_helper.rb +17 -0
- data/app/helpers/better_ui/general/components/link_helper.rb +17 -0
- data/app/helpers/better_ui/general/components/panel_helper.rb +16 -0
- data/app/helpers/better_ui/general/components/spinner_helper.rb +17 -0
- data/app/helpers/better_ui/general/components/table_helper.rb +17 -0
- data/app/helpers/better_ui/general_helper.rb +15 -0
- data/app/helpers/better_ui_helper.rb +12 -0
- data/config/routes.rb +2 -13
- data/lib/better_ui/engine.rb +67 -11
- data/lib/better_ui/version.rb +1 -1
- data/lib/better_ui.rb +10 -2
- data/lib/generators/better_ui/install_generator.rb +103 -0
- data/lib/generators/better_ui/stylesheet_generator.rb +93 -30
- data/lib/generators/better_ui/templates/README +74 -5
- data/lib/generators/better_ui/templates/components/_avatar.scss +199 -150
- data/lib/generators/better_ui/templates/components/_badge.scss +153 -141
- data/lib/generators/better_ui/templates/components/_breadcrumb.scss +105 -106
- data/lib/generators/better_ui/templates/components/_button.scss +104 -101
- data/lib/generators/better_ui/templates/components/_card.scss +56 -65
- data/lib/generators/better_ui/templates/components/_heading.scss +80 -179
- data/lib/generators/better_ui/templates/components/_icon.scss +133 -89
- data/lib/generators/better_ui/templates/components/_index.scss +17 -0
- data/lib/generators/better_ui/templates/components/_link.scss +99 -129
- data/lib/generators/better_ui/templates/components/_panel.scss +103 -143
- data/lib/generators/better_ui/templates/components/_spinner.scss +127 -130
- data/lib/generators/better_ui/templates/components/_table.scss +156 -105
- data/lib/generators/better_ui/templates/components/_variables.scss +0 -33
- data/lib/generators/better_ui/templates/components_stylesheet.scss +25 -56
- data/lib/generators/better_ui/templates/index.scss +18 -0
- data/lib/generators/better_ui/templates/initializer.rb +41 -0
- metadata +91 -49
- data/app/assets/javascripts/better_ui/controllers/navbar_controller.js +0 -138
- data/app/assets/javascripts/better_ui/controllers/sidebar_controller.js +0 -211
- data/app/assets/javascripts/better_ui/controllers/toast_controller.js +0 -161
- data/app/assets/javascripts/better_ui/index.js +0 -159
- data/app/assets/javascripts/better_ui/toast_manager.js +0 -77
- data/app/components/better_ui/theme_helper.rb +0 -171
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee8e6a1b636ddcd65276d5c410c5b0c9a239d236cdbf507d168bb68abe63c12d
|
4
|
+
data.tar.gz: 930f7752b6c813943b49d29bd635da5109355f036eea0bf1d5fc9aed45932173
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f91edcfb87541fbdeb97e2bc3899c1b1d3a8508bd94a6e6a9955ea56940830cfcc98df3e23f82e9bcb975039b6d3122c36f7c0e75316822ec11f03d206105647
|
7
|
+
data.tar.gz: 9422f6159176dc75cd254009f55660831aca51c98e7a4d829a5ab6b4911d5fc569f44ae05c549a452d5fd403a844a1b589642244c1922f485f59874094618921
|
data/README.md
CHANGED
@@ -1,319 +1,211 @@
|
|
1
|
-
#
|
1
|
+
# Better UI
|
2
2
|
|
3
3
|
[](https://badge.fury.io/rb/better_ui)
|
4
|
-
[](https://opensource.org/licenses/MIT)
|
5
5
|
|
6
|
-
|
6
|
+
A comprehensive UI component library for Rails applications built with ViewComponent and Tailwind CSS, following BEM methodology.
|
7
7
|
|
8
|
-
|
8
|
+

|
9
9
|
|
10
|
-
##
|
10
|
+
## Table of Contents
|
11
11
|
|
12
|
-
-
|
13
|
-
-
|
14
|
-
-
|
15
|
-
-
|
16
|
-
-
|
17
|
-
-
|
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
|
-
##
|
26
|
+
## Overview
|
20
27
|
|
21
|
-
|
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
|
-
|
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
|
-
|
38
|
+
For more detailed information, see the [components documentation](COMPONENTS.md).
|
40
39
|
|
41
|
-
|
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
|
-
|
42
|
+
### Basic Installation
|
52
43
|
|
53
|
-
|
54
|
-
|
55
|
-
Add this to your `config/routes.rb` file:
|
44
|
+
1. Add the gem to your Gemfile:
|
56
45
|
|
57
46
|
```ruby
|
58
|
-
|
59
|
-
mount BetterUi::Engine => '/better_ui'
|
60
|
-
|
61
|
-
# ... your other routes
|
62
|
-
end
|
47
|
+
gem 'better_ui'
|
63
48
|
```
|
64
49
|
|
65
|
-
|
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
|
-
|
95
|
-
|
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
|
-
|
109
|
-
|
110
|
-
### The Header Component
|
56
|
+
3. Run the installer:
|
111
57
|
|
112
|
-
|
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
|
137
|
-
-
|
138
|
-
-
|
139
|
-
-
|
140
|
-
-
|
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
|
-
|
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
|
-
|
70
|
+
You can customize the installation process with the following options:
|
155
71
|
|
156
|
-
|
157
|
-
|
158
|
-
|
72
|
+
```bash
|
73
|
+
# Skip mounting the engine in routes
|
74
|
+
bin/rails generate better_ui:install --skip-routes
|
159
75
|
|
160
|
-
|
76
|
+
# Skip generating stylesheets
|
77
|
+
bin/rails generate better_ui:install --skip-stylesheets
|
161
78
|
|
162
|
-
|
163
|
-
|
164
|
-
rails generate better_ui:stylesheet
|
79
|
+
# Skip creating the configuration file
|
80
|
+
bin/rails generate better_ui:install --skip-config
|
165
81
|
|
166
|
-
#
|
167
|
-
rails generate better_ui:
|
82
|
+
# All options together
|
83
|
+
bin/rails generate better_ui:install --skip-routes --skip-stylesheets --skip-config
|
168
84
|
```
|
169
85
|
|
170
|
-
|
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
|
-
|
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
|
-
|
90
|
+
1. Install Tailwind CSS in your Rails application:
|
178
91
|
|
179
92
|
```bash
|
180
|
-
|
181
|
-
rails generate better_ui:stylesheet
|
93
|
+
bin/rails tailwindcss:install
|
182
94
|
```
|
183
95
|
|
184
|
-
|
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
|
-
|
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
|
-
|
208
|
-
.
|
209
|
-
|
210
|
-
|
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
|
-
|
216
|
-
|
217
|
-
Create a `config/initializers/better_ui.rb` file:
|
114
|
+
For more detailed installation instructions, see [INSTALLATION.md](INSTALLATION.md).
|
218
115
|
|
219
|
-
|
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
|
-
|
118
|
+
After installation, you can access the interactive documentation at:
|
232
119
|
|
233
|
-
|
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
|
-
|
124
|
+
This provides:
|
125
|
+
- Interactive component previews
|
126
|
+
- Component API documentation
|
127
|
+
- Usage examples and code snippets
|
128
|
+
- Styling reference
|
243
129
|
|
244
|
-
|
130
|
+
## Usage
|
245
131
|
|
246
|
-
|
132
|
+
Using Better UI components in your views is straightforward:
|
247
133
|
|
248
|
-
```
|
249
|
-
|
250
|
-
|
251
|
-
|
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
|
-
|
254
|
-
|
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
|
-
|
153
|
+
For more detailed usage instructions, see [USAGE.md](USAGE.md).
|
258
154
|
|
259
|
-
|
155
|
+
## Customization
|
260
156
|
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
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
|
-
|
267
|
-
|
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
|
-
|
176
|
+
For more detailed customization instructions, see [CUSTOMIZATION.md](CUSTOMIZATION.md).
|
271
177
|
|
272
|
-
|
178
|
+
## Components
|
273
179
|
|
274
|
-
|
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
|
-
|
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
|
-
|
186
|
+
For a full list of available components and their documentation, see [COMPONENTS.md](COMPONENTS.md).
|
284
187
|
|
285
|
-
|
286
|
-
bundle exec rake build
|
287
|
-
```
|
188
|
+
## Testing
|
288
189
|
|
289
|
-
|
190
|
+
Better UI components are thoroughly tested. You can run the test suite with:
|
290
191
|
|
291
192
|
```bash
|
292
|
-
|
193
|
+
bin/rails test
|
293
194
|
```
|
294
195
|
|
295
|
-
|
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
|
-
|
198
|
+
## Contributing
|
307
199
|
|
308
|
-
|
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
|
-
##
|
202
|
+
## License
|
314
203
|
|
315
|
-
|
204
|
+
Better UI is available as open source under the terms of the [MIT License](LICENSE).
|
316
205
|
|
317
|
-
|
206
|
+
## Resources
|
318
207
|
|
319
|
-
|
208
|
+
- [Troubleshooting Guide](TROUBLESHOOTING.md)
|
209
|
+
- [FAQs](FAQ.md)
|
210
|
+
- [Changelog](CHANGELOG.md)
|
211
|
+
- [Roadmap](ROADMAP.md)
|
@@ -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 */
|