@codemonster-ru/ui-utilities 1.0.0-rc.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.
- package/LICENSE +21 -0
- package/README.md +50 -0
- package/dist/utilities.css +1751 -0
- package/package.json +53 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026-present Kirill Kolesnikov
|
|
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
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# CodeMonster UI utilities
|
|
2
|
+
|
|
3
|
+
Generated token-backed utility CSS for CodeMonster UI.
|
|
4
|
+
|
|
5
|
+
Current prerelease: `@codemonster-ru/ui-utilities@1.0.0-rc.1`.
|
|
6
|
+
|
|
7
|
+
## Requirements
|
|
8
|
+
|
|
9
|
+
- Node.js `^22.22.3`, `^24.15.0`, or `>=26.0.0` for package tooling.
|
|
10
|
+
- `@codemonster-ru/ui-tokens@^1.0.0-rc.1` loaded before the generated utilities.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install @codemonster-ru/ui-tokens@next @codemonster-ru/ui-utilities@next
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
```css
|
|
19
|
+
@import '@codemonster-ru/ui-tokens/tokens.css';
|
|
20
|
+
@import '@codemonster-ru/ui-utilities/utilities.css';
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Quick start
|
|
24
|
+
|
|
25
|
+
Apply the `cm-` prefixed classes directly to application markup:
|
|
26
|
+
|
|
27
|
+
```html
|
|
28
|
+
<section class="cm-grid cm-grid-cols-2 cm-gap-4 cm-md-grid-cols-3">
|
|
29
|
+
<article class="cm-p-4 cm-rounded-surface cm-bg-surface">Content</article>
|
|
30
|
+
</section>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The package generates prefixed display, flex, grid, logical spacing, sizing, typography, semantic
|
|
34
|
+
color, border, and radius utilities. Mobile-first `sm`, `md`, and `lg` variants are limited to
|
|
35
|
+
layout and gap families. Rules live in `@layer cm-utilities` and do not use `!important`.
|
|
36
|
+
|
|
37
|
+
## Documentation
|
|
38
|
+
|
|
39
|
+
See the [utility CSS guide](../../docs/css/utilities.md) for the complete generated families,
|
|
40
|
+
responsive naming, cascade behavior, limitations, and examples.
|
|
41
|
+
|
|
42
|
+
## Development
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm run check
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
[MIT](./LICENSE)
|