@atomscraft/css 0.1.0 → 0.1.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 (2) hide show
  1. package/README.md +55 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,14 +1,65 @@
1
1
  # @atomscraft/css
2
2
 
3
- Generated AtomCraft design-system styles using the `ac-*` classes and
4
- `--ac-*` semantic variables.
3
+ Generated AtomCraft design-system styles. The package provides the `ac-*`
4
+ utility and component classes plus semantic `--ac-*` CSS variables used by the
5
+ React components.
6
+
7
+ ## Install
5
8
 
6
9
  ```bash
7
- pnpm add @atomscraft/css
10
+ npm install @atomscraft/css
11
+ ```
12
+
13
+ Import the complete stylesheet once at your application entry point, before
14
+ rendering AtomCraft components:
15
+
16
+ ```ts
17
+ import "@atomscraft/css";
8
18
  ```
9
19
 
10
- Import the complete stylesheet once in your application:
20
+ The package also exposes the token stylesheet separately:
11
21
 
12
22
  ```ts
23
+ import "@atomscraft/css/tokens.css";
24
+ ```
25
+
26
+ ## What is included?
27
+
28
+ - Reset and base styles
29
+ - Semantic light/dark color variables
30
+ - Brand themes, density, shape and contrast variables
31
+ - Styles for AtomCraft fields, buttons, overlays, tables, navigation and layout
32
+ - Logical properties for RTL support
33
+ - `ac-*` classes and `--ac-*` variables with no external UI dependency
34
+
35
+ ## Using it with React
36
+
37
+ Install the React package alongside the stylesheet:
38
+
39
+ ```bash
40
+ npm install @atomscraft/react @atomscraft/css
41
+ ```
42
+
43
+ ```tsx
13
44
  import "@atomscraft/css";
45
+ import { AtomCraftProvider, Button } from "@atomscraft/react";
46
+
47
+ export function App() {
48
+ return (
49
+ <AtomCraftProvider mode="light" theme="indigo">
50
+ <Button>Continue</Button>
51
+ </AtomCraftProvider>
52
+ );
53
+ }
14
54
  ```
55
+
56
+ The provider sets the `data-ac-*` attributes consumed by the stylesheet. You
57
+ normally do not need to import individual component CSS files.
58
+
59
+ ## Related packages
60
+
61
+ - [`@atomscraft/react`](https://www.npmjs.com/package/@atomscraft/react) - accessible React components
62
+ - [`@atomscraft/tokens`](https://www.npmjs.com/package/@atomscraft/tokens) - source design tokens
63
+ - [`@atomscraft/core`](https://www.npmjs.com/package/@atomscraft/core) - framework-agnostic behavior
64
+
65
+ Documentation and examples: [AtomCraft UI on GitHub](https://github.com/NassimFarhat/AtomCraft-UI).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomscraft/css",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Framework-agnostic stylesheet for AtomCraft components (ac-* classes).",
5
5
  "license": "MIT",
6
6
  "files": [