@starasia/css 5.13.0 → 5.14.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.
@@ -19,17 +19,21 @@
19
19
  * (mis. ink #020B18 / ice #8FD3FF), patokan dx yang menang.
20
20
  * Font: Geist (body & heading) + Geist Mono (kode/angka).
21
21
  *
22
- * Pemakaian — import SETELAH style.css, lalu pasang atribut di <html>:
22
+ * Pemakaian — import (sebaiknya setelah style.css), lalu pasang atribut di <html>:
23
23
  * import "@starasia/css/dist/style.css";
24
24
  * import "@starasia/css/skins/tech.css";
25
25
  * <html data-skin="tech"> → tech light
26
26
  * <html data-skin="tech" data-theme="dark"> → tech dark
27
27
  *
28
- * Spesifisitas:
29
- * - [data-skin="tech"] (0,1,0) setara :root → file ini HARUS dimuat setelah
30
- * style.css supaya menang lewat source order.
31
- * - [data-skin="tech"][data-theme="dark"] (0,2,0) menang atas
32
- * [data-theme="dark"] di urutan mana pun.
28
+ * Spesifisitas — skin menang atas token bawaan di URUTAN MUAT MANA PUN:
29
+ * - :root[data-skin="tech"] (0,2,0) > :root (0,1,0) dan [data-theme="dark"]
30
+ * (0,1,0) milik style.css. Dulu [data-skin="tech"] (0,1,0) hanya menang lewat
31
+ * source order, sehingga style.css salinan remote MFE yang dimuat belakangan
32
+ * (mis. modul yang meng-import @starasia/admin/dist/style.css di App yang
33
+ * di-expose) mengembalikan radius, palet brand, dan fokus ke nilai default.
34
+ * - :root[data-skin="tech"][data-theme="dark"] (0,3,0) > semua blok di atas.
35
+ * - Atribut WAJIB di <html> (document.documentElement); skin tidak berlaku
36
+ * untuk subtree.
33
37
  * - Override brand runtime dari <ThemeProvider> (:root, disisipkan ke <head>
34
38
  * belakangan) tetap menang atas skin — app masih bisa re-brand.
35
39
  *
@@ -41,7 +45,7 @@
41
45
  /* ==========================================================
42
46
  Tech — Light (dan nilai bersama untuk dark)
43
47
  ========================================================== */
44
- [data-skin="tech"] {
48
+ :root[data-skin="tech"] {
45
49
  /* brand → cyan. 600 = primary light (#0E7490, machine-health), 300 =
46
50
  primary dark (#5CD6FF, garis HUD) — pemetaan semantic starasia: light
47
51
  pakai brand-600, dark pakai brand-300 untuk --sa-background-brand.
@@ -146,7 +150,7 @@
146
150
  }
147
151
 
148
152
  /* Seleksi teks amber + teks gelap (company) — sama di light & dark */
149
- [data-skin="tech"] ::selection {
153
+ :root[data-skin="tech"] ::selection {
150
154
  background-color: var(--sa-color-amber-500, #f5a524);
151
155
  color: var(--sa-color-gray-1100, #020b18);
152
156
  }
@@ -154,7 +158,7 @@
154
158
  /* ==========================================================
155
159
  Tech — Dark (palet HUD command center)
156
160
  ========================================================== */
157
- [data-skin="tech"][data-theme="dark"] {
161
+ :root[data-skin="tech"][data-theme="dark"] {
158
162
  /* text — dx-text / dx-muted (display-exhibition Night) */
159
163
  --sa-text-primary: #eaf2ff;
160
164
  --sa-text-subtle: #8ea6cc;