@toybreaker/fiko 0.5.1 → 0.5.2

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/README.md CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@toybreaker/fiko)](https://www.npmjs.com/package/@toybreaker/fiko)
6
6
  [![MIT License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
7
+ [![gzip size](https://img.shields.io/badge/gzip-12.1_kB-blue)](https://www.npmjs.com/package/@toybreaker/fiko)
7
8
 
8
9
  ---
9
10
 
@@ -41,12 +42,12 @@ This imports `omg/` — the brand-agnostic framework. It declares seven cascade
41
42
 
42
43
  ```bash
43
44
  # copy the starter brand files into your project
44
- cp node_modules/@toybreaker/fiko/template/branding/ src/assets/fiko/branding/ -r
45
+ cp node_modules/@toybreaker/fiko/template/branding/ src/assets/branding/ -r
45
46
  ```
46
47
 
47
48
  Then import your brand tokens **after** the framework, inside the same layers:
48
49
 
49
- ```css
50
+ ```text
50
51
  @import "@toybreaker/fiko";
51
52
 
52
53
  /* brand palette — loads in the tokens layer */
@@ -94,7 +95,7 @@ fiko/
94
95
 
95
96
  ## Cascade Layers
96
97
 
97
- ```css
98
+ ```text
98
99
  @layer reset, tokens, base, theme, layout, components, utilities;
99
100
  ```
100
101
 
@@ -143,6 +144,9 @@ All color tokens use OKLCH:
143
144
  | `.prose` | `max-width: 66ch; margin-inline: auto` |
144
145
  | `.aspect_square` | `aspect-ratio: 1` |
145
146
  | `.aspect_video` | `aspect-ratio: 16/9` |
147
+ | `.accordion` | expandable `<details>` component with token-driven icons |
148
+ | `.accordion_chevron` | modifier — replaces `+`/`×` with animated SVG chevron |
149
+ | `.fiko` | animated warm orb glow background (override with `--fiko_orb_a` / `--fiko_orb_b`) |
146
150
 
147
151
  ---
148
152
 
@@ -166,8 +166,8 @@ details.accordion + details.accordion {
166
166
 
167
167
  details.accordion > summary {
168
168
  display: flex;
169
+ flex-direction: row;
169
170
  align-items: center;
170
- justify-content: space-between;
171
171
  gap: 1rem;
172
172
  padding: var(--spaceV) var(--spaceH);
173
173
  cursor: pointer;
@@ -180,6 +180,15 @@ details.accordion > summary {
180
180
 
181
181
  details.accordion > summary::-webkit-details-marker { display: none; }
182
182
 
183
+ /* link inside summary — fills flex row, centers text, inherits color */
184
+ details.accordion > summary a {
185
+ flex: 1;
186
+ display: flex;
187
+ align-items: center;
188
+ color: inherit;
189
+ text-decoration: none;
190
+ }
191
+
183
192
  details.accordion > summary::after {
184
193
  content: var(--accordion_icon_closed, '+');
185
194
  font-size: 1.4em;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toybreaker/fiko",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "LOOK GOOD OR DIE! — cascade layers, OKLCH colors, design tokens. Zero specificity wars. Smiling DX.",
5
5
  "license": "MIT",
6
6
  "author": "Toybreaker <hello@junglestar.co>",