@apliteni/apliteni-ui 0.5.0 → 0.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apliteni/apliteni-ui",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Apliteni shared design system & UI kit — tokens, components and the deck theme, framework-agnostic (HTML + CSS).",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -54,28 +54,6 @@ export function card({ title, sub, body = '', variant, pad, icon: ic } = {}) {
54
54
  return `<div class="${cls}">${head}${body}</div>`;
55
55
  }
56
56
 
57
- // ---- Aurora — ambient warm backdrop --------------------------------------
58
- // Layered blurred glow "blobs" + optional paper grain. Colours default to the
59
- // accent glow tokens, so the field re-themes with the sub-theme. Drop it as the
60
- // first child of a positioned wrapper (or use fixed: true for full-bleed) and
61
- // give the real content a normal stacking context — it sits on top.
62
- const AURORA_PRESET = [
63
- { tone: 'accent', x: '22%', y: '12%', size: '64%', delay: '0s' },
64
- { tone: 'teal', x: '84%', y: '24%', size: '56%', delay: '-9s' },
65
- { tone: 'warm', x: '54%', y: '92%', size: '70%', delay: '-17s' },
66
- ];
67
- export function aurora({ blobs = AURORA_PRESET, grain = false, fixed = false, animated = true, className = '' } = {}) {
68
- const items = blobs.map((b) => {
69
- const tone = b.tone || 'accent';
70
- const style = `--au-x:${b.x ?? '50%'};--au-y:${b.y ?? '50%'};--au-size:${b.size ?? '60%'}`
71
- + (b.delay != null ? `;--au-delay:${b.delay}` : '');
72
- return `<span class="ui-aurora__blob ui-aurora__blob--${tone}" style="${style}"></span>`;
73
- }).join('');
74
- const grainEl = grain ? '<span class="ui-aurora__grain"></span>' : '';
75
- const cls = cx('ui-aurora', animated && 'ui-aurora--animated', fixed && 'ui-aurora--fixed', className);
76
- return `<div class="${cls}" aria-hidden="true">${items}${grainEl}</div>`;
77
- }
78
-
79
57
  // ---- Segmented control ---------------------------------------------------
80
58
  export function segmented({ options = [], active = 0, size, block, name = 'seg' } = {}) {
81
59
  const cls = cx('ui-seg', size && `ui-seg--${size}`, block && 'ui-seg--block');
package/src/index.css CHANGED
@@ -8,7 +8,6 @@
8
8
  @import "./tokens/accents.css";
9
9
  @import "./styles/base.css";
10
10
  @import "./styles/motion.css";
11
- @import "./styles/aurora.css";
12
11
  @import "./styles/button.css";
13
12
  @import "./styles/card.css";
14
13
  @import "./styles/badge.css";
package/src/inline.js CHANGED
@@ -29,7 +29,6 @@ export const topbarCss = read('styles/topbar.css');
29
29
  export const styles = {
30
30
  base: baseCss,
31
31
  motion: read('styles/motion.css'),
32
- aurora: read('styles/aurora.css'),
33
32
  button: read('styles/button.css'),
34
33
  card: read('styles/card.css'),
35
34
  badge: read('styles/badge.css'),
@@ -53,7 +52,6 @@ export const cssText = [
53
52
  tokensCss,
54
53
  styles.base,
55
54
  styles.motion,
56
- styles.aurora,
57
55
  styles.button,
58
56
  styles.card,
59
57
  styles.badge,
@@ -66,12 +66,6 @@ a {
66
66
  .ui-bg-spotlight::before {
67
67
  background: radial-gradient(620px 340px at 50% -12%, var(--glow-purple), transparent 70%);
68
68
  }
69
- /* Aurora — layered accent + cyan glows for a rich hero backdrop. */
70
- .ui-bg-aurora::before {
71
- background:
72
- radial-gradient(520px 400px at 10% -12%, var(--glow-purple), transparent 60%),
73
- radial-gradient(460px 360px at 94% 6%, var(--glow-cyan), transparent 62%);
74
- }
75
69
  /* Grid — a faint token-coloured grid, masked to fade at the edges. */
76
70
  .ui-bg-grid::before {
77
71
  background-image:
@@ -1,93 +0,0 @@
1
- /* ============================================================================
2
- * aurora — ambient warm backdrop: layered blurred glow "blobs" + optional
3
- * paper grain. The kit's one signature page background, so every app gets one
4
- * warm identity for free.
5
- *
6
- * Markup comes from aurora() in components/index.js, but you can hand-roll it:
7
- * <div class="ui-aurora ui-aurora--animated" aria-hidden="true">
8
- * <span class="ui-aurora__blob ui-aurora__blob--accent" style="--au-x:12%;--au-y:-4%"></span>
9
- * ...
10
- * <span class="ui-aurora__grain"></span>
11
- * </div>
12
- *
13
- * Colours default to the accent glow tokens, so the whole field re-themes with
14
- * the sub-theme (phoenix / ocean / emerald) and holds up in dark AND light with
15
- * no per-accent rules. Override --au-1/2/3 on .ui-aurora to retune.
16
- * ========================================================================== */
17
-
18
- .ui-aurora {
19
- /* Tone slots — mixed to a visible alpha off the accent families so the field
20
- actually reads as an aurora (the --glow-* tokens are tuned faint for the
21
- small .ui-bg-* utilities). --purple-light + --grad-to re-point per accent,
22
- so the whole field re-themes; --cyan stays a fixed teal. Override to retune. */
23
- --au-1: color-mix(in srgb, var(--purple-light) 52%, transparent);
24
- --au-2: color-mix(in srgb, var(--cyan) 40%, transparent);
25
- --au-3: color-mix(in srgb, var(--grad-to) 44%, transparent);
26
-
27
- position: absolute;
28
- inset: 0;
29
- z-index: 0;
30
- overflow: hidden;
31
- pointer-events: none;
32
- }
33
- /* Light theme: the accent families are darker solids, so dial the mix right
34
- down — a whisper of tint, not a wash. */
35
- :root[data-theme="light"] .ui-aurora {
36
- --au-1: color-mix(in srgb, var(--purple-light) 18%, transparent);
37
- --au-2: color-mix(in srgb, var(--cyan) 15%, transparent);
38
- --au-3: color-mix(in srgb, var(--grad-to) 17%, transparent);
39
- }
40
-
41
- /* Full-bleed: pin to the viewport behind the whole page. Give real content a
42
- normal (non-negative) stacking context and it sits on top automatically. */
43
- .ui-aurora--fixed {
44
- position: fixed;
45
- z-index: -1;
46
- }
47
-
48
- /* A blurred radial blob. Position via --au-x / --au-y (its centre), scale via
49
- --au-size. Centring uses `translate` so the drift animation owns `transform`. */
50
- .ui-aurora__blob {
51
- position: absolute;
52
- top: var(--au-y, 50%);
53
- left: var(--au-x, 50%);
54
- width: var(--au-size, 60%);
55
- aspect-ratio: 1;
56
- translate: -50% -50%;
57
- border-radius: 50%;
58
- background: radial-gradient(circle at center, var(--au-tone), transparent 68%);
59
- filter: blur(70px);
60
- will-change: transform;
61
- }
62
- .ui-aurora__blob--accent { --au-tone: var(--au-1); }
63
- .ui-aurora__blob--teal { --au-tone: var(--au-2); }
64
- .ui-aurora__blob--warm { --au-tone: var(--au-3); }
65
-
66
- /* Slow ambient drift. Staggered per blob via --au-delay so they never line up. */
67
- .ui-aurora--animated .ui-aurora__blob {
68
- animation: ui-aurora-drift 26s ease-in-out infinite alternate;
69
- animation-delay: var(--au-delay, 0s);
70
- }
71
- @keyframes ui-aurora-drift {
72
- from { transform: translate(-2%, -1%) scale(1); }
73
- to { transform: translate(3%, 2%) scale(1.12); }
74
- }
75
-
76
- /* Paper grain — a low-opacity fractal-noise veil. `overlay` in dark keeps it
77
- from muddying the blacks; `multiply` in light reads as fine tooth on paper. */
78
- .ui-aurora__grain {
79
- position: absolute;
80
- inset: 0;
81
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
82
- background-size: 160px 160px;
83
- opacity: 0.5;
84
- mix-blend-mode: overlay;
85
- }
86
- :root[data-theme="light"] .ui-aurora__grain {
87
- opacity: 0.4;
88
- mix-blend-mode: multiply;
89
- }
90
-
91
- @media (prefers-reduced-motion: reduce) {
92
- .ui-aurora__blob { animation: none; }
93
- }