@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 +20 -2
- package/index.cjs.js +5068 -0
- package/index.d.ts +1 -0
- package/package.json +19 -4
- package/src/index.d.ts +1 -0
- package/src/lib/default-theme.d.ts +1 -0
- package/src/lib/styles/classNames.d.ts +5 -0
- package/src/lib/styles/index.d.ts +8 -0
- package/src/lib/styles/style.d.ts +1 -0
- package/src/lib/theme/colors.d.ts +165 -0
- package/src/lib/theme/components.d.ts +5559 -0
- package/src/lib/theme/effects.d.ts +10 -0
- package/src/lib/theme/index.d.ts +6296 -0
- package/src/lib/theme/spacing.d.ts +13 -0
- package/src/lib/theme/typography.d.ts +350 -0
- package/src/lib/tokens/color.d.ts +89 -0
- package/src/lib/tokens/effect.d.ts +10 -0
- package/src/lib/tokens/index.d.ts +189 -0
- package/src/lib/tokens/spacing.d.ts +46 -0
- package/src/lib/tokens/typography.d.ts +50 -0
package/README.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @ohos-ports/bolttech-default-theme
|
|
2
2
|
|
|
3
|
-
|
|
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).
|