@ohos-ports/bolttech-default-theme 0.0.0-stage → 0.18.3-beta.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/README.md CHANGED
@@ -1,3 +1,21 @@
1
- # Temporary Holding Version
1
+ # @ohos-ports/bolttech-default-theme
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ HarmonyOS port of [`@bolttech/default-theme`](https://www.npmjs.com/package/@bolttech/default-theme) v0.18.3 (upstream author: Bolttech).
4
+
5
+ This is a beta port published by the [ohos-ports](https://github.com/ohos-ports/ohos-ports) project.
6
+
7
+ ## Port notes
8
+
9
+ - The single CommonJS bundle (`index.cjs.js`) exports `bolttechTheme` with 7 sections: `colors`, `effects`, `spacing`, `typography`, `components`, `tokens`, `styles`.
10
+ - Migration fix: removed the phantom `require('core-js/modules/es.object.assign.js')` statement from `index.cjs.js` (the module had zero declared dependencies and does not need a core-js polyfill).
11
+
12
+ ## Usage
13
+
14
+ ```js
15
+ const { bolttechTheme } = require('@ohos-ports/bolttech-default-theme');
16
+
17
+ bolttechTheme.colors.content.accent; // '#00bac7'
18
+ bolttechTheme.tokens.brandPrimary['700']; // '#00bac7'
19
+ ```
20
+
21
+ The original library was generated with [Nx](https://nx.dev).