@toybreaker/fiko 0.5.1 → 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/README.md +7 -3
- package/omg/5components.css +10 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@toybreaker/fiko)
|
|
6
6
|
[](LICENSE)
|
|
7
|
+
[](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/
|
|
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
|
-
```
|
|
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
|
-
```
|
|
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
|
|
package/omg/5components.css
CHANGED
|
@@ -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