railsui 3.1.1 → 3.1.3
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/Gemfile.lock +1 -1
- data/README.md +2 -11
- data/app/views/layouts/railsui/application.html.erb +0 -2
- data/app/views/layouts/railsui/fullwidth.html.erb +1 -0
- data/app/views/layouts/railsui/landing.html.erb +3 -0
- data/app/views/layouts/railsui/routes.html.erb +3 -0
- data/app/views/railsui/admin/fields/_color.html.erb +1 -1
- data/lib/railsui/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df855964349c35161137f0bfdd3cf50c5d2848a98c54a576908c141cb5f63b2e
|
4
|
+
data.tar.gz: 02afd4796e2c37f767ece3081c1ea6e80a2d8761ab4afb398a2f783406c36a27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7df7fcabd4b9c96566d883c7d0a3ec9038f44e54f1df6bb455c7081f82ec5ec6aa355dead06247db5c3a8bf2cda5917e5a750a4854c1cd9ec2e3461bf8a58428
|
7
|
+
data.tar.gz: 075b23a0339c5ed855f7fb68714116979f1e3115f4874fc61c4a5cb5c3052f09db965ae607cb2c6f01395c92b4b270563b75ced4e2c64ff35f7eaedca90e2fab
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -87,19 +87,12 @@ After installing Rails UI, run your server using the `bin/dev` command and proce
|
|
87
87
|
|
88
88
|
## Configuration
|
89
89
|
|
90
|
-
Configuration is a simple process where you configure your app's details (app name, support email),
|
90
|
+
Configuration is a simple process where you configure your app's details (app name, support email), and theme.
|
91
91
|
|
92
92
|
Each theme comes with different pages and are designed for different niches in mind. They reside in the `app/views/rui` directory once installed and should be treated as read-only.
|
93
93
|
|
94
94
|
**Updating your configuration at anytime will overwrite the pages and theme assets so if you want to keep your changes, you'll need to copy the files to your application in another directory.**
|
95
95
|
|
96
|
-
### Rake tasks
|
97
|
-
|
98
|
-
- `railsui:install` - Install Rails UI.
|
99
|
-
- `railsui:colors[theme]` - Pass a theme name to output default color palette or don't pass an argument to show active colors.
|
100
|
-
- `railsui:pages` - List all pages for the active theme.
|
101
|
-
- `railsui:pages[theme]` - List all pages for a theme name as passed.
|
102
|
-
|
103
96
|
## Themes
|
104
97
|
|
105
98
|
Themes are the core of Rails UI, combining UI components, pages, assets, JavaScript, and color palettes to help you create a professionally designed, niche application. The UI can adapt based on how you implement it.
|
@@ -124,9 +117,7 @@ After installing Rails UI and choosing a theme you'll find a collection of compo
|
|
124
117
|
|
125
118
|
### Color
|
126
119
|
|
127
|
-
Each theme comes with a custom color palette built on top of the default Tailwind CSS color palette. We've added two new colors for you to use in your app using Tailwind CSS classes called `primary` and `secondary`. You can change those colors any time in
|
128
|
-
|
129
|
-
Run `rails railsui:colors` to see your active colors or `rails "railsui:colors[theme]"` to see the default colors for a given theme.
|
120
|
+
Each theme comes with a custom color palette built on top of the default Tailwind CSS v4 color palette. We've added two new colors for you to use in your app using Tailwind CSS classes called `primary` and `secondary`. You can change those colors any time in `app/assets/stylesheets/railsui/theme.css`.
|
130
121
|
|
131
122
|
### Icons
|
132
123
|
|
@@ -25,8 +25,6 @@
|
|
25
25
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
26
26
|
<link href="https://fonts.googleapis.com/css2?family=Fira+Code&display=swap" rel="stylesheet">
|
27
27
|
|
28
|
-
<script src="https://unpkg.com/@tailwindcss/browser@4"></script>
|
29
|
-
|
30
28
|
<% if Railsui.config.theme.present? %>
|
31
29
|
<%= render "railsui/themes/#{Railsui.config.theme}/fonts" %>
|
32
30
|
<% end %>
|
@@ -24,6 +24,7 @@
|
|
24
24
|
<link href="https://fonts.googleapis.com/css2?family=Fira+Code&display=swap" rel="stylesheet">
|
25
25
|
|
26
26
|
<script src="https://unpkg.com/@tailwindcss/browser@4"></script>
|
27
|
+
<script src="https://cdn.tailwindcss.com?plugins=typography"></script>
|
27
28
|
|
28
29
|
<link rel="stylesheet" href="https://unpkg.com/tippy.js@6/dist/tippy.css" />
|
29
30
|
|
@@ -24,6 +24,9 @@
|
|
24
24
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
25
25
|
<link href="https://fonts.googleapis.com/css2?family=Fira+Code&display=swap" rel="stylesheet">
|
26
26
|
|
27
|
+
<script src="https://unpkg.com/@tailwindcss/browser@4"></script>
|
28
|
+
<script src="https://cdn.tailwindcss.com?plugins=typography"></script>
|
29
|
+
|
27
30
|
<%= yield :head %>
|
28
31
|
</head>
|
29
32
|
|
@@ -22,6 +22,9 @@
|
|
22
22
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
23
23
|
<link href="https://fonts.googleapis.com/css2?family=Fira+Code&display=swap" rel="stylesheet">
|
24
24
|
|
25
|
+
<script src="https://unpkg.com/@tailwindcss/browser@4"></script>
|
26
|
+
<script src="https://cdn.tailwindcss.com?plugins=typography"></script>
|
27
|
+
|
25
28
|
<%= yield :head %>
|
26
29
|
</head>
|
27
30
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
<p class="text-sm"><code class="text-neutral-400 font-normal">app/assets/stylesheets/railsui/theme.css</code></p>
|
13
13
|
|
14
14
|
<div class="my-3 not-prose">
|
15
|
-
<div data-controller="railsui-code" class="relative overflow-clip bg-
|
15
|
+
<div data-controller="railsui-code" class="relative overflow-clip bg-gray-900 rounded-lg border-transparent dark:border dark:border-neutral-700 selection:bg-neutral-300/90 selection:text-neutral-800 max-h-[400px] overflow-y-auto">
|
16
16
|
<pre><code data-railsui-code-target="snippet" data-railsui-clipboard-target="content" class="language-css scrollbar"><%= File.read(Rails.root.join("app/assets/stylesheets/railsui/theme.css")) %></code></pre>
|
17
17
|
</div>
|
18
18
|
</div>
|
data/lib/railsui/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railsui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Leverenz
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-28 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rails
|