@cratis/components 4.10.4 → 4.11.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 CHANGED
@@ -80,6 +80,17 @@ import '@cratis/components/theme'; // optional baseline appearance
80
80
 
81
81
  A custom product design omits `theme`, imports product CSS after `tokens` and `styles`, and maps its canonical values directly to `--cratis-*`.
82
82
 
83
+ `styles` is every component's CSS in one file. To pay only for the surfaces the application mounts, import the shared base plus one entry point per subpath instead:
84
+
85
+ ```ts
86
+ import '@cratis/components/tokens';
87
+ import '@cratis/components/styles/base';
88
+ import '@cratis/components/Dialogs/styles';
89
+ import '@cratis/components/DataTables/styles';
90
+ ```
91
+
92
+ Every JavaScript subpath publishes a matching `<subpath>/styles`, self-contained for that subpath. `styles/base` carries the internal utilities and the cascade-layer order, and is required exactly once; the aggregate already contains it.
93
+
83
94
  ## Provider
84
95
 
85
96
  ```tsx