@leitware/composables 1.3.1 → 1.3.3
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 +4 -4
- package/dist/presets/brutalist.css +1 -1
- package/dist/presets/default.css +1 -1
- package/dist/presets/signal-pop.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/rules/composables.md +47 -47
- package/skills/use-composables/references/optional-dependencies.md +1 -1
- package/skills/use-composables/references/public-api.md +1 -1
- package/src/_internal/ai-elements/code-block.tsx +1 -1
- package/src/_internal/bubble.tsx +1 -1
- package/src/_internal/grid-overlay.tsx +1 -1
- package/src/_internal/layout-bento.tsx +11 -11
- package/src/_internal/layout.tsx +11 -11
- package/src/index.ts +56 -1
- package/src/lib/utils.ts +2 -2
- package/src/opinionated/alert.tsx +5 -5
- package/src/opinionated/button.tsx +1 -1
- package/src/opinionated/theme-injector.tsx +2 -2
- package/src/opinionated/token-config-panel/spacing-editor.tsx +1 -1
- package/src/opinionated/token-config-panel/types.ts +1 -1
- package/src/opinionated/token-config-panel/typography-editor.tsx +1 -1
- package/src/styles/composable.css +10 -10
- package/src/styles/presets/brutalist.css +1 -1
- package/src/styles/presets/default.css +1 -1
- package/src/styles/presets/signal-pop.css +1 -1
- package/src/styles/presets-data/brutalist.ts +8 -8
- package/src/styles/presets-data/default.ts +3 -3
- package/src/styles/tokens/base.css +1 -1
- package/src/styles/tokens/palette.css +2 -2
- package/src/styles/tokens/semantic.css +1 -1
- package/src/styles/tokens/tailwind-theme.css +7 -7
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Composables
|
|
2
2
|
|
|
3
|
-
**An opinionated React component library with a semantic design token system
|
|
3
|
+
**An opinionated React component library with a semantic design token system, built on Base UI and Tailwind CSS v4.**
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@leitware/composables)
|
|
6
6
|
[](https://github.com/rowanhen/composables/actions/workflows/ci.yml)
|
|
@@ -268,9 +268,9 @@ Key token groups:
|
|
|
268
268
|
| Control shape | `--button-radius`, `--badge-radius`, `--input-radius`, `--card-radius` |
|
|
269
269
|
| Motion | `--motion-duration-overlay`, `--motion-duration-disclosure`, `--motion-ease-standard` |
|
|
270
270
|
|
|
271
|
-
The entire type scale derives from `--font-size-base` and `--leading-base
|
|
271
|
+
The entire type scale derives from `--font-size-base` and `--leading-base`. Adjust those two tokens to scale all text globally.
|
|
272
272
|
|
|
273
|
-
Control rounding is deliberately two-level. `--radius` drives the shared scale (`--radius-sm` … `--radius-4xl`) used by surfaces such as cards, dialogs, and alerts, while the component tokens `--button-radius` and `--badge-radius` decide button and badge corners independently
|
|
273
|
+
Control rounding is deliberately two-level. `--radius` drives the shared scale (`--radius-sm` … `--radius-4xl`) used by surfaces such as cards, dialogs, and alerts, while the component tokens `--button-radius` and `--badge-radius` decide button and badge corners independently. Set `--button-radius: 9999px` for a pill-button theme without distorting anything else. For one-off exceptions, `Button` and `Badge` also accept `shape="pill"` (fully rounded; icon-size buttons become circles).
|
|
274
274
|
|
|
275
275
|
### Motion Modes
|
|
276
276
|
|
|
@@ -524,4 +524,4 @@ All normal components import from `@leitware/composables`; AI components import
|
|
|
524
524
|
|
|
525
525
|
## License
|
|
526
526
|
|
|
527
|
-
MIT
|
|
527
|
+
MIT. See [LICENSE](LICENSE) for details.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* ============================================================================
|
|
2
|
-
@leitware/composables
|
|
2
|
+
@leitware/composables - Brutalist Preset
|
|
3
3
|
============================================================================
|
|
4
4
|
Raw, architectural, uncompromising. Structural honesty: things look exactly like what they are.
|
|
5
5
|
|
package/dist/presets/default.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* ============================================================================
|
|
2
|
-
@leitware/composables
|
|
2
|
+
@leitware/composables - Default Preset
|
|
3
3
|
============================================================================
|
|
4
4
|
Clean, neutral, Inter-based. The "no opinion" starting point.
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* ============================================================================
|
|
2
|
-
@leitware/composables
|
|
2
|
+
@leitware/composables - Signal Pop Preset
|
|
3
3
|
============================================================================
|
|
4
4
|
Bright consumer-tech energy: electric modules, capsule controls, hard outlines, and codey labels.
|
|
5
5
|
|