Skip to content

Commit

Permalink
chore: update color command in README.md and package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Daydreamer-riri committed Jan 2, 2024
1 parent 4ea16ef commit 843bf23
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ The default source color is `#673ab7`.
You can change the source color using the following command:

```bash
npm material3-style color -s "#518242"
npx --no-install material3-style color -s "#518242"
```

Then, you will get a new theme palette!
Expand Down
17 changes: 6 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@
"bugs": "https://github.com/Daydreamer-riri/material3-style/issues",
"keywords": ["material3", "material design", "css", "style", "typography", "color", "elevation", "shape"],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
Expand All @@ -36,16 +27,20 @@
"material3-style": "./bin/material3-style.mjs"
},
"files": [
"dist"
"bin",
"color",
"dist",
"typography"
],
"scripts": {
"build": "unbuild",
"build:sass": "npm run build:typo | npm run build:color",
"build:typo": "sass --style=compressed typography/style.scss:typography/css/index.css",
"build:color": "sass --style=compressed color/style:color/css",
"reset:color": "esno scripts/reset-color.ts",
"dev": "unbuild --stub",
"lint": "eslint .",
"prepublishOnly": "nr build",
"prepublishOnly": "nr build && nr reset:color && nr:build:sass",
"release": "bumpp && npm publish",
"start": "esno src/index.ts",
"typecheck": "tsc --noEmit"
Expand Down
5 changes: 5 additions & 0 deletions scripts/reset-color.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { generateTheme } from '../src/colorGen'

generateTheme()
.then(() => console.log('reset color done'))
.catch(console.error)

0 comments on commit 843bf23

Please sign in to comment.