neon_glow 0.1.0 → 0.3.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +75 -16
- data/app/assets/stylesheets/neon_glow/components.css +1010 -11
- data/app/assets/stylesheets/neon_glow/tokens.css +527 -8
- data/lib/neon_glow/version.rb +1 -1
- data/lib/neon_glow.rb +3 -0
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4377778f34e2438310a227a1d069475d228cc87844c189a9182d127a045b5f9f
|
|
4
|
+
data.tar.gz: 95eeb8f421b33caff34acd340ad2665321d020ac02b7da21766720e4667b2c15
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 285eda48a0ffdf811b41958d546ee4ef35e07c607a9c4815ab79c74da6330b53b7acd4ba0b4bc960ea2f8bffa215c3e7357a22f5b9166d3b1603c81b087c9171
|
|
7
|
+
data.tar.gz: 057cb3e8e392db96f6c44e5d7238fd39bb0c7c4d8290e3e7d5647acf3bca2a764cf98304345e5cc8d556c601d08fe2bc2d7152ca6ac6fed359250cbda8ea9816
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.0 (2026-11-20)
|
|
4
|
+
|
|
5
|
+
- Sync the CSS with the Rails demo at `6b6e419f11104b7eb376802178ee9b7a5dfe9978`.
|
|
6
|
+
- Add Cherenkov and Nixie palettes (12 total), plus Overdrive intensity (4 total).
|
|
7
|
+
- Include palette typography, hardware displays, era-specific card treatments, and updated component effects.
|
|
8
|
+
- Document font loading, complete runtime palette switching, and CSS-only Nixie usage.
|
|
9
|
+
- Add CI, dependency auditing, and tests of the built distribution.
|
|
10
|
+
|
|
11
|
+
## 0.2.0 (2026-02-23)
|
|
12
|
+
|
|
13
|
+
- 6 new palettes: 80's Retrowave, 90's Grunge, 2000's Y2K, 2010's Social, 2020's Cyberpunk, VFD Display
|
|
14
|
+
- VFD Display palette supports adjustable hue via `--ng-vfd-hue` custom property
|
|
15
|
+
- Total palette count: 10
|
|
16
|
+
|
|
3
17
|
## 0.1.0 (2026-02-22)
|
|
4
18
|
|
|
5
19
|
- Initial release
|
data/README.md
CHANGED
|
@@ -2,10 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
**A dark neon glow design system for Bootstrap and Tailwind CSS.**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
12 color palettes. 4 intensity levels. Pure CSS custom properties. Works with any framework or standalone.
|
|
6
6
|
|
|
7
7
|
[](https://rubygems.org/gems/neon_glow)
|
|
8
8
|
|
|
9
|
+
**[See the live demo](https://github.com/tokenfires/rails_neon_glow)** -- Kitchen sink showcases for both Tailwind and Bootstrap with all palettes and intensities.
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<a href="https://github.com/tokenfires/rails_neon_glow">
|
|
13
|
+
<img src="https://raw.githubusercontent.com/tokenfires/rails_neon_glow/main/docs/gifs/home_800x560.gif" alt="Neon Glow demo -- palette switching">
|
|
14
|
+
</a>
|
|
15
|
+
</p>
|
|
16
|
+
|
|
9
17
|
---
|
|
10
18
|
|
|
11
19
|
## Installation
|
|
@@ -39,12 +47,10 @@ Link the stylesheets in your layout:
|
|
|
39
47
|
|
|
40
48
|
### With Tailwind CSS
|
|
41
49
|
|
|
42
|
-
|
|
50
|
+
Link the gem stylesheets after your compiled Tailwind stylesheet, so Tailwind does not need to resolve a Ruby gem path:
|
|
43
51
|
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
@import "neon_glow/tokens";
|
|
47
|
-
@import "neon_glow/components";
|
|
52
|
+
```erb
|
|
53
|
+
<%= stylesheet_link_tag "tailwind", "neon_glow/tokens", "neon_glow/components", "data-turbo-track": "reload" %>
|
|
48
54
|
```
|
|
49
55
|
|
|
50
56
|
### With Sprockets (older Rails)
|
|
@@ -70,12 +76,38 @@ Add palette and intensity classes to your `<body>`:
|
|
|
70
76
|
|
|
71
77
|
## Palettes
|
|
72
78
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
|
76
|
-
|
|
77
|
-
| `neon-
|
|
78
|
-
| `neon-
|
|
79
|
+
### Classic
|
|
80
|
+
|
|
81
|
+
| Class | Palette | Vibe |
|
|
82
|
+
|-------|---------|------|
|
|
83
|
+
| `neon-rainbow` | **Rainbow** | Full-spectrum neon. Arcade cabinets and light shows. |
|
|
84
|
+
| `neon-unicorn` | **Unicorn** | Pastel rainbow. Dreamy, soft, ethereal. |
|
|
85
|
+
| `neon-cinematic` | **Cinematic** | Electric blue + amber. The Blade Runner palette. |
|
|
86
|
+
| `neon-pink` | **Pink** | Hot pink + magenta. A power color for everyone. |
|
|
87
|
+
|
|
88
|
+
### Decades (each with themed dark backgrounds)
|
|
89
|
+
|
|
90
|
+
| Class | Palette | Vibe |
|
|
91
|
+
|-------|---------|------|
|
|
92
|
+
| `neon-retrowave` | **80's Retrowave** | Synthwave sunsets, neon grid lines, Outrun aesthetic. |
|
|
93
|
+
| `neon-grunge` | **90's Grunge** | Flannel and feedback. Raw amber on dirty surfaces. |
|
|
94
|
+
| `neon-y2k` | **2000's Y2K** | Frosted glass, chrome, bubblegum iridescence. |
|
|
95
|
+
| `neon-social` | **2010's Social** | Platform colors. Notification pings and viral moments. |
|
|
96
|
+
| `neon-cyberpunk` | **2020's Cyberpunk** | Toxic neon against corporate steel. Glitch aesthetic. |
|
|
97
|
+
|
|
98
|
+
### Hardware
|
|
99
|
+
|
|
100
|
+
| Class | Palette | Vibe |
|
|
101
|
+
|-------|---------|------|
|
|
102
|
+
| `neon-vfd` | **VFD Display** | Monochromatic phosphor glow with adjustable hue. |
|
|
103
|
+
| `neon-cherenkov` | **Cherenkov** | Deep blue light, reactor pools, and instrument panels. |
|
|
104
|
+
| `neon-nixie` | **Nixie** | Warm orange tubes with a violet mercury glow. |
|
|
105
|
+
|
|
106
|
+
Add a VFD preset: `<body class="neon-glow-body neon-vfd neon-vfd-amber neon-medium">`
|
|
107
|
+
|
|
108
|
+
Presets: `neon-vfd-red`, `neon-vfd-amber`, `neon-vfd-yellow`, `neon-vfd-green`, `neon-vfd-cyan` (default), `neon-vfd-blue`, `neon-vfd-purple`, `neon-vfd-pink`
|
|
109
|
+
|
|
110
|
+
Or set any hue: `style="--ng-vfd-hue: 45"`
|
|
79
111
|
|
|
80
112
|
## Intensity Levels
|
|
81
113
|
|
|
@@ -83,19 +115,40 @@ Add palette and intensity classes to your `<body>`:
|
|
|
83
115
|
|-------|-------------|
|
|
84
116
|
| `neon-subtle` | Gentle glow. Professional. Easy on the eyes. |
|
|
85
117
|
| `neon-medium` | Balanced glow. The sweet spot for most apps. |
|
|
86
|
-
| `neon-intense` |
|
|
118
|
+
| `neon-intense` | Strong glow for expressive interfaces. |
|
|
119
|
+
| `neon-overdrive` | Extended bloom for luminous hardware palettes and high-impact displays. |
|
|
87
120
|
|
|
88
121
|
---
|
|
89
122
|
|
|
123
|
+
## Typography and Nixie Effects
|
|
124
|
+
|
|
125
|
+
Palette-specific font stacks are included in the tokens. The stylesheet imports Google Fonts; system fonts remain available as fallbacks. Tailwind v4 removes remote CSS imports, so add this link to your HTML `<head>` when using Tailwind:
|
|
126
|
+
|
|
127
|
+
```html
|
|
128
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;700&family=B612+Mono:wght@400;700&family=Montserrat+Underline:wght@400;700&family=Orbitron:wght@400;700&family=Syncopate:wght@400;700&family=Space+Grotesk:wght@400;700&family=Rubik+Glitch&family=VT323&family=Megrim&family=Special+Elite&display=swap">
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
These packages contain CSS only. The demo's theme picker and automatic Nixie character wrapping are application JavaScript, not part of either package. Nixie card headings have a CSS fallback; for individual tube cells, wrap characters explicitly:
|
|
132
|
+
|
|
133
|
+
```html
|
|
134
|
+
<body class="neon-glow-body neon-nixie neon-medium">
|
|
135
|
+
<span class="ng-nixie-digit">4</span><span class="ng-nixie-digit">2</span>
|
|
136
|
+
</body>
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Keep palette and intensity classes on `<body>`, alongside `neon-glow-body`, so the token values inherit consistently.
|
|
140
|
+
|
|
90
141
|
## Switching Themes at Runtime
|
|
91
142
|
|
|
92
143
|
Swap classes on `<body>` -- all colors cascade instantly via CSS custom properties:
|
|
93
144
|
|
|
94
145
|
```javascript
|
|
95
|
-
|
|
146
|
+
const palettes = ["rainbow", "unicorn", "cinematic", "pink", "retrowave", "grunge",
|
|
147
|
+
"y2k", "social", "cyberpunk", "vfd", "cherenkov", "nixie"];
|
|
148
|
+
document.body.classList.remove(...palettes.map(name => `neon-${name}`));
|
|
96
149
|
document.body.classList.add("neon-cinematic");
|
|
97
150
|
|
|
98
|
-
document.body.classList.remove("neon-subtle", "neon-medium", "neon-intense");
|
|
151
|
+
document.body.classList.remove("neon-subtle", "neon-medium", "neon-intense", "neon-overdrive");
|
|
99
152
|
document.body.classList.add("neon-intense");
|
|
100
153
|
```
|
|
101
154
|
|
|
@@ -105,7 +158,7 @@ document.body.classList.add("neon-intense");
|
|
|
105
158
|
|
|
106
159
|
See the full kitchen sink demo with all components and palettes:
|
|
107
160
|
|
|
108
|
-
**[rails_neon_glow](https://github.com/tokenfires/rails_neon_glow)** -- Rails
|
|
161
|
+
**[rails_neon_glow](https://github.com/tokenfires/rails_neon_glow)** -- Rails app with Tailwind and Bootstrap showcases.
|
|
109
162
|
|
|
110
163
|
---
|
|
111
164
|
|
|
@@ -140,6 +193,12 @@ ng-animate-gradient -- Rotating gradient border animation
|
|
|
140
193
|
|
|
141
194
|
---
|
|
142
195
|
|
|
196
|
+
## Development and Verification
|
|
197
|
+
|
|
198
|
+
The CSS is copied verbatim from [`rails_neon_glow` at `6b6e419`](https://github.com/tokenfires/rails_neon_glow/tree/6b6e419f11104b7eb376802178ee9b7a5dfe9978). When syncing a later demo revision, update both stylesheets and the reference commit in CI together.
|
|
199
|
+
|
|
200
|
+
With Ruby 4.0.10, run `bundle install` and `bundle exec rake test`. The tests build and extract the gem, boot a Rails 8.1.4.1 app, and request both stylesheets through Propshaft. `bundle exec bundler-audit check --update` audits the locked development dependencies. The gem's consumer requirements remain Ruby 3.1+ and Rails 7+.
|
|
201
|
+
|
|
143
202
|
## Design
|
|
144
203
|
|
|
145
204
|
**Designed by Claude** (Anthropic) in collaboration with [TokenFires](https://github.com/tokenfires).
|