@toybreaker/fiko 0.3.2 → 0.4.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 +9 -8
- package/index.css +4 -4
- package/omg/1vars.css +1 -1
- package/omg/5components.css +5 -1
- package/omg/utils/gradients.css +4 -2
- package/omg/utils/text.css +4 -0
- package/package.json +4 -1
- /package/template/branding/{3client_theme.css → overrides.css} +0 -0
- /package/template/branding/{1client_vars.css → palette.css} +0 -0
- /package/template/branding/{2client_datatheme.css → roles.css} +0 -0
package/README.md
CHANGED
|
@@ -52,18 +52,18 @@ Then import your brand tokens **after** the framework, inside the same layers:
|
|
|
52
52
|
@import "@toybreaker/fiko";
|
|
53
53
|
|
|
54
54
|
/* brand palette — loads in the tokens layer */
|
|
55
|
-
@import url(./branding/
|
|
55
|
+
@import url(./branding/palette.css) layer(tokens);
|
|
56
56
|
|
|
57
57
|
/* semantic aliases (surface, text, cta) — loads in the theme layer */
|
|
58
|
-
@import url(./branding/
|
|
58
|
+
@import url(./branding/roles.css) layer(theme);
|
|
59
59
|
|
|
60
60
|
/* element defaults, heading scale — loads in the theme layer */
|
|
61
|
-
@import url(./branding/
|
|
61
|
+
@import url(./branding/overrides.css) layer(theme);
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
### 3. Customize your brand
|
|
65
65
|
|
|
66
|
-
Edit `branding/
|
|
66
|
+
Edit `branding/palette.css` — change the hue angle for your brand color:
|
|
67
67
|
|
|
68
68
|
```css
|
|
69
69
|
--brand: oklch(0.55 0.19 28); /* orange — change the hue (0–360) */
|
|
@@ -85,9 +85,9 @@ fiko/
|
|
|
85
85
|
│ └── utils/ ← atomic utility classes
|
|
86
86
|
│
|
|
87
87
|
└── branding/ ← YOUR BRAND — per-client, fully owned, never extracted
|
|
88
|
-
├──
|
|
89
|
-
├──
|
|
90
|
-
└──
|
|
88
|
+
├── palette.css ← raw brand colors (OKLCH tokens)
|
|
89
|
+
├── roles.css ← semantic aliases (surface, text, cta…)
|
|
90
|
+
└── overrides.css ← element defaults, heading scale, brand specifics
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
**The rule:** if it could work on any website → `omg/`. If it's specific to one brand → `branding/`.
|
|
@@ -138,7 +138,8 @@ All color tokens use OKLCH:
|
|
|
138
138
|
| `.pad_block_sm` | block padding small |
|
|
139
139
|
| `.h1` – `.h6` | heading scale classes |
|
|
140
140
|
| `.dim` | secondary text color + smaller size |
|
|
141
|
-
| `.typewriter` | `
|
|
141
|
+
| `.typewriter` | `font-family: var(--font_serif)` — "Courier New", Courier, monospace |
|
|
142
|
+
| `.prose` | `max-width: 66ch; margin-inline: auto` |
|
|
142
143
|
| `.aspect_square` | `aspect-ratio: 1` |
|
|
143
144
|
| `.aspect_video` | `aspect-ratio: 16/9` |
|
|
144
145
|
|
package/index.css
CHANGED
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
*
|
|
17
17
|
* your-project/404.css
|
|
18
18
|
* ├── @import "@junglesta/404css"; ← this file (tokens + layout + components + utils)
|
|
19
|
-
* ├── @import "./000/
|
|
20
|
-
* ├── @import "./000/
|
|
21
|
-
* └── @import "./000/
|
|
19
|
+
* ├── @import "./000/palette.css" layer(tokens);
|
|
20
|
+
* ├── @import "./000/roles.css" layer(theme);
|
|
21
|
+
* └── @import "./000/overrides.css" layer(theme);
|
|
22
22
|
*
|
|
23
|
-
* Starter
|
|
23
|
+
* Starter templates are in node_modules/fiko/template/branding/
|
|
24
24
|
* ─────────────────────────────────────────────
|
|
25
25
|
*/
|
|
26
26
|
|
package/omg/1vars.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! 🐉 404.css | MIT License */
|
|
2
2
|
/* 1vars.css — layout, spacing, typography tokens */
|
|
3
|
-
/* Brand palette overrides live in branding/
|
|
3
|
+
/* Brand palette overrides live in branding/palette.css */
|
|
4
4
|
|
|
5
5
|
:root {
|
|
6
6
|
/* ── COLOR NEUTRALS ──────────────────────────── */
|
package/omg/5components.css
CHANGED
|
@@ -126,11 +126,15 @@ svg:not(:root) {
|
|
|
126
126
|
text-underline-offset: 3px;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
.
|
|
129
|
+
.prose {
|
|
130
130
|
max-width: 66ch;
|
|
131
131
|
margin-inline: auto;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
.typewriter {
|
|
135
|
+
font-family: var(--font_serif);
|
|
136
|
+
}
|
|
137
|
+
|
|
134
138
|
.cat { text-transform: capitalize; }
|
|
135
139
|
|
|
136
140
|
/* ── LAYOUT UTILITIES ───────────────────────────── */
|
package/omg/utils/gradients.css
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/*! 🐉 404.css | MIT License */
|
|
2
2
|
/* utils/gradients.css — gradient utility classes */
|
|
3
3
|
|
|
4
|
-
.
|
|
5
|
-
.
|
|
4
|
+
.gradient_o { background: var(--gradient_o); }
|
|
5
|
+
.gradient_h { background: var(--gradient_h); }
|
|
6
|
+
.gradient_v { background: var(--gradient_v); }
|
|
7
|
+
.gradient_warm { background: var(--gradient_warm); }
|
package/omg/utils/text.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toybreaker/fiko",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
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>",
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
"utility-css",
|
|
22
22
|
"modern-css"
|
|
23
23
|
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "node scripts/build-demo.mjs"
|
|
26
|
+
},
|
|
24
27
|
"main": "index.css",
|
|
25
28
|
"style": "index.css",
|
|
26
29
|
"exports": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|