@birdycom/omniacss 0.11.0 → 0.11.1

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.
Files changed (47) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +44 -44
  3. package/dist/oc-theme.css +1 -1
  4. package/dist/omnia.css +2 -1
  5. package/dist/omnia.min.css +1 -1
  6. package/dist/omnia.starter.css +2 -0
  7. package/dist/tokens/omnia.dtcg.json +2 -2
  8. package/dist/tokens/omnia.tokens.json +1 -1
  9. package/dist/tokens/omnia_tokens.py +2 -2
  10. package/package.json +63 -63
  11. package/scss/utilities/_anchor_positioning.scss +65 -65
  12. package/scss/utilities/_animation_properties.scss +143 -143
  13. package/scss/utilities/_borders_extended.scss +97 -97
  14. package/scss/utilities/_borders_outlines.scss +161 -161
  15. package/scss/utilities/_containment.scss +82 -82
  16. package/scss/utilities/_css_functions.scss +34 -34
  17. package/scss/utilities/_dark_mode.scss +117 -117
  18. package/scss/utilities/_drop_shadow_colors.scss +26 -26
  19. package/scss/utilities/_experimental_css.scss +149 -149
  20. package/scss/utilities/_flexbox.scss +317 -317
  21. package/scss/utilities/_font_variants.scss +139 -139
  22. package/scss/utilities/_gap.scss +103 -103
  23. package/scss/utilities/_gradient_stops.scss +48 -48
  24. package/scss/utilities/_grid.scss +672 -672
  25. package/scss/utilities/_layout_extras.scss +171 -171
  26. package/scss/utilities/_layout_flow.scss +210 -210
  27. package/scss/utilities/_mask_extras.scss +62 -62
  28. package/scss/utilities/_motion_transforms.scss +167 -167
  29. package/scss/utilities/_scroll_animations.scss +80 -80
  30. package/scss/utilities/_scrollbar.scss +2 -1
  31. package/scss/utilities/_shadow_tokens.scss +21 -21
  32. package/scss/utilities/_shapes.scss +72 -72
  33. package/scss/utilities/_sizing_logical.scss +99 -99
  34. package/scss/utilities/_starting_style.scss +53 -53
  35. package/scss/utilities/_state_variants.scss +196 -196
  36. package/scss/utilities/_svg.scss +100 -100
  37. package/scss/utilities/_table_advanced.scss +19 -19
  38. package/scss/utilities/_typography_advanced.scss +124 -124
  39. package/scss/utilities/_typography_modern.scss +83 -83
  40. package/scss/utilities/_view_transitions.scss +64 -64
  41. package/scss/utilities/_writing_modes.scss +72 -72
  42. package/scss/variables/_hulp.scss +107 -107
  43. package/scss/variables/_variables_effects.scss +108 -108
  44. package/src/postcss.mjs +43 -43
  45. package/src/tokens.mjs +377 -377
  46. package/src/variants.mjs +278 -278
  47. package/tokens/semantic.json +80 -80
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Serge Cools (Birdycom)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Serge Cools (Birdycom)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,44 +1,44 @@
1
- # @birdycom/omniacss
2
-
3
- OmniaCSS utilities — modern CSS (anchor positioning, container queries, view transitions, scroll-driven animations, `light-dark()`, gradients, logical properties …) as utility classes, **generated on demand**.
4
-
5
- ```bash
6
- npm install -D @birdycom/omniacss
7
- ```
8
-
9
- **PostCSS / Vite / Laravel** — put `@omnia;` in your CSS:
10
-
11
- ```js
12
- // postcss.config.js
13
- import omniacss from "@birdycom/omniacss/postcss";
14
- export default { plugins: [omniacss({ content: ["src/**/*.{html,js,vue,tsx}"] })] };
15
- ```
16
-
17
- **Engine API**
18
-
19
- ```js
20
- import { buildCss } from "@birdycom/omniacss/engine";
21
- const { css, stats } = await buildCss({ content: ["src/**/*.html"], layer: "omnia" });
22
- ```
23
-
24
- Full build (prototyping): `import "@birdycom/omniacss"` · palette tokens: `@birdycom/omniacss/tokens` · theme tokens: `@birdycom/omniacss/theme` · SCSS: `@birdycom/omniacss/scss/*`.
25
-
26
- ## Theme tokens (web and desktop)
27
-
28
- `tokens/semantic.json` is the single source of the semantic theme: `--oc-background`, `--oc-foreground`,
29
- `--oc-primary`, `--oc-border`, the interaction states `--oc-row-alt`, `--oc-hover`, `--oc-pressed`,
30
- `--oc-selected`, `--oc-disabled-foreground`, plus `--oc-radius`, `--oc-focus-width`, fonts and shadows.
31
- Every color is an Omnia palette token, light first, dark second.
32
-
33
- - **Web:** `dist/oc-theme.css` (load after `oc-colors.css`) — `light-dark()` custom properties. OmniaUI builds on it.
34
- - **Desktop apps** (Tkinter, Qt, WinUI …): `dist/tokens/` holds the same tokens resolved per mode, with no
35
- `var()` left, as sRGB hex (gamut mapped the CSS Color 4 way, not clipped), the source `oklch` and alpha apart,
36
- and the OmniaCSS version on top:
37
- - `omnia.tokens.json` — `{ omniacss, tokens: { background: { light: { hex, oklch }, dark: { … } }, radius: { px }, … } }`
38
- - `omnia.dtcg.json` — W3C Design Tokens (light as `$value`, dark in `$extensions`)
39
- - `omnia_tokens.py` — `PALETTES = {"light": {…}, "dark": {…}}`, `SIZES`, `TEXT`, `FONTS`, `SHADOWS`, `font()`
40
-
41
- No Node in your app? Download them from the CDN: `https://unpkg.com/@birdycom/omniacss@<version>/dist/tokens/omnia_tokens.py`.
42
- With your own theme: `npx omniacss tokens --source my-semantic.json --format python` (see `@birdycom/omniacss-cli`).
43
-
44
- Docs: https://github.com/Birdycom/omniacss#readme — MIT
1
+ # @birdycom/omniacss
2
+
3
+ OmniaCSS utilities — modern CSS (anchor positioning, container queries, view transitions, scroll-driven animations, `light-dark()`, gradients, logical properties …) as utility classes, **generated on demand**.
4
+
5
+ ```bash
6
+ npm install -D @birdycom/omniacss
7
+ ```
8
+
9
+ **PostCSS / Vite / Laravel** — put `@omnia;` in your CSS:
10
+
11
+ ```js
12
+ // postcss.config.js
13
+ import omniacss from "@birdycom/omniacss/postcss";
14
+ export default { plugins: [omniacss({ content: ["src/**/*.{html,js,vue,tsx}"] })] };
15
+ ```
16
+
17
+ **Engine API**
18
+
19
+ ```js
20
+ import { buildCss } from "@birdycom/omniacss/engine";
21
+ const { css, stats } = await buildCss({ content: ["src/**/*.html"], layer: "omnia" });
22
+ ```
23
+
24
+ Full build (prototyping): `import "@birdycom/omniacss"` · palette tokens: `@birdycom/omniacss/tokens` · theme tokens: `@birdycom/omniacss/theme` · SCSS: `@birdycom/omniacss/scss/*`.
25
+
26
+ ## Theme tokens (web and desktop)
27
+
28
+ `tokens/semantic.json` is the single source of the semantic theme: `--oc-background`, `--oc-foreground`,
29
+ `--oc-primary`, `--oc-border`, the interaction states `--oc-row-alt`, `--oc-hover`, `--oc-pressed`,
30
+ `--oc-selected`, `--oc-disabled-foreground`, plus `--oc-radius`, `--oc-focus-width`, fonts and shadows.
31
+ Every color is an Omnia palette token, light first, dark second.
32
+
33
+ - **Web:** `dist/oc-theme.css` (load after `oc-colors.css`) — `light-dark()` custom properties. OmniaUI builds on it.
34
+ - **Desktop apps** (Tkinter, Qt, WinUI …): `dist/tokens/` holds the same tokens resolved per mode, with no
35
+ `var()` left, as sRGB hex (gamut mapped the CSS Color 4 way, not clipped), the source `oklch` and alpha apart,
36
+ and the OmniaCSS version on top:
37
+ - `omnia.tokens.json` — `{ omniacss, tokens: { background: { light: { hex, oklch }, dark: { … } }, radius: { px }, … } }`
38
+ - `omnia.dtcg.json` — W3C Design Tokens (light as `$value`, dark in `$extensions`)
39
+ - `omnia_tokens.py` — `PALETTES = {"light": {…}, "dark": {…}}`, `SIZES`, `TEXT`, `FONTS`, `SHADOWS`, `font()`
40
+
41
+ No Node in your app? Download them from the CDN: `https://unpkg.com/@birdycom/omniacss@<version>/dist/tokens/omnia_tokens.py`.
42
+ With your own theme: `npx omniacss tokens --source my-semantic.json --format python` (see `@birdycom/omniacss-cli`).
43
+
44
+ Docs: https://github.com/Birdycom/OmniaCSS#readme — MIT
package/dist/oc-theme.css CHANGED
@@ -1,4 +1,4 @@
1
- /* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.11.0. Do not edit. */
1
+ /* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.11.1. Do not edit. */
2
2
  /* Semantic theme tokens: every color is light-dark() of an Omnia palette token (oc-colors.css). */
3
3
  /* Same source as the desktop export: npx omniacss tokens --format json|dtcg|python */
4
4
  :root {
package/dist/omnia.css CHANGED
@@ -453267,7 +453267,8 @@ select {
453267
453267
  scrollbar-color: var(--oc-scrollbar-thumb) var(--oc-scrollbar-track);
453268
453268
  }
453269
453269
 
453270
- .scrollbar-omnia:hover {
453270
+ /* :has(:hover) keeps it while the pointer is over a popover or dialog (top layer), where <html> itself is not :hover. */
453271
+ .scrollbar-omnia:is(:hover, :has(:hover)) {
453271
453272
  --oc-scrollbar-thumb: light-dark(var(--color-vividblue-95), var(--color-vividblue-60));
453272
453273
  }
453273
453274