design-math
Advanced tools
+17
| Copyright (c) 2026 Eric Xu | ||
| Permission is granted to use, copy, and redistribute unmodified copies of this | ||
| software, in source or binary form, free of charge, for personal or commercial | ||
| purposes, provided that: | ||
| 1. The software remains unmodified. | ||
| 2. No derivative works are created. | ||
| 3. The copyright notice and this permission notice are included in all copies. | ||
| 4. The software is not reverse engineered, decompiled, or disassembled except | ||
| where applicable law requires otherwise. | ||
| This software is provided "as is", without warranty of any kind, express or | ||
| implied, including but not limited to the warranties of merchantability, | ||
| fitness for a particular purpose, and noninfringement. In no event shall the | ||
| author be liable for any claim, damages, or other liability arising from the | ||
| use of this software. |
+11
-10
| { | ||
| "name": "design-math", | ||
| "version": "0.1.6", | ||
| "version": "0.1.7", | ||
| "description": "Agent-friendly design math CLI for color, typography, and shadow systems.", | ||
| "license": "MIT", | ||
| "license": "SEE LICENSE IN LICENSE", | ||
| "homepage": "https://github.com/eric8810/design-math", | ||
@@ -25,3 +25,4 @@ "repository": { | ||
| "postinstall.js", | ||
| "README.md" | ||
| "README.md", | ||
| "LICENSE" | ||
| ], | ||
@@ -35,11 +36,11 @@ "scripts": { | ||
| "optionalDependencies": { | ||
| "design-math-bin-darwin-arm64": "0.1.6", | ||
| "design-math-bin-darwin-x64": "0.1.6", | ||
| "design-math-bin-linux-arm64-gnu": "0.1.6", | ||
| "design-math-bin-linux-arm64-musl": "0.1.6", | ||
| "design-math-bin-linux-x64-gnu": "0.1.6", | ||
| "design-math-bin-linux-x64-musl": "0.1.6", | ||
| "design-math-bin-win32-x64": "0.1.6" | ||
| "design-math-bin-darwin-arm64": "0.1.7", | ||
| "design-math-bin-darwin-x64": "0.1.7", | ||
| "design-math-bin-linux-arm64-gnu": "0.1.7", | ||
| "design-math-bin-linux-arm64-musl": "0.1.7", | ||
| "design-math-bin-linux-x64-gnu": "0.1.7", | ||
| "design-math-bin-linux-x64-musl": "0.1.7", | ||
| "design-math-bin-win32-x64": "0.1.7" | ||
| }, | ||
| "preferUnplugged": true | ||
| } |
+27
-5
@@ -28,6 +28,8 @@ # design-math | ||
| - Color workflows: convert, contrast, manipulate, mix, scale, harmony, palette, and scheme | ||
| - Typography workflows: scale and fluid type generation | ||
| - Shadow workflows: layered elevation tokens for light and dark surfaces | ||
| - Color analysis: luminance, tone, temperature, gamut flags, and compact descriptions | ||
| - Typography workflows: scale, fluid type, standalone letter-spacing, and px/rem conversion | ||
| - Shadow workflows: layered elevation tokens for light/dark surfaces, colored shadows, and inset mode | ||
| - Output paths for JSON, CSS, HTML, and PNG | ||
| - Distribution through crates.io, npm, Homebrew, and GitHub Releases | ||
| - In-repo bindings for Node, WASM, and Python | ||
@@ -44,2 +46,4 @@ ## Workspace layout | ||
| The `design-math-wasm` fallback package built with `wasm-bindgen`. | ||
| - `bindings/python` | ||
| The `design-math-python` PyO3 binding crate for Python-native dict/list results. | ||
@@ -53,2 +57,8 @@ If you are new to the repo, these docs are the best starting points: | ||
| ## License | ||
| This repository is licensed for free use, copying, and redistribution in | ||
| unmodified form for personal or commercial purposes. Modification and | ||
| derivative works are not permitted. See [LICENSE](LICENSE) for the full terms. | ||
| ## Install | ||
@@ -93,6 +103,10 @@ | ||
| design-math color convert "#c96442" --json | ||
| design-math color analyze "#c96442" --json | ||
| design-math color contrast "rgba(255,255,255,0.72)" "#111111" --json | ||
| design-math color palette --bg "#f5f4ed" --fg "#141413" --brand "#c96442" --format css | ||
| design-math type letter-spacing 24 --json | ||
| design-math type convert 24px --to rem --json | ||
| design-math type scale --base 16 --ratio major-third --json | ||
| design-math shadow generate --levels 5 --json | ||
| design-math shadow generate --levels 5 --inset --json | ||
| design-math completion zsh > _design-math | ||
| ``` | ||
@@ -110,2 +124,4 @@ | ||
| The WASM package that exposes the same API shape for JS runtimes that want a non-native fallback. | ||
| - `design-math-python` | ||
| The Python binding crate in this repo. It is implemented and buildable locally, but not yet published to PyPI. | ||
@@ -124,2 +140,3 @@ ## JavaScript bindings | ||
| - `convertColor` | ||
| - `analyzeColor` | ||
| - `contrastColor` | ||
@@ -135,2 +152,4 @@ - `manipulateColor` | ||
| - `generateFluidType` | ||
| - `queryLetterSpacing` | ||
| - `convertTypeUnits` | ||
| - `generateShadowSystem` | ||
@@ -142,3 +161,3 @@ | ||
| The core product line from M0 through M7 is already in place: | ||
| The core product line from M0 through M10 is now in place: | ||
@@ -148,4 +167,6 @@ - color workflows are usable | ||
| - shadow workflows are usable | ||
| - `color analyze`, standalone `letter-spacing`, and `px/rem` conversion are usable | ||
| - JSON, CSS, HTML, and PNG exports are usable | ||
| - crates.io, npm, Homebrew, and GitHub Release distribution are wired up | ||
| - Node, WASM, and Python bindings exist in this repo | ||
@@ -155,3 +176,4 @@ The next focus areas are: | ||
| - stronger agent-first workflows | ||
| - the remaining polish toward 1.0 | ||
| - publishing the Python binding to PyPI | ||
| - longer-tail performance and DX polish | ||
| - possible post-1.0 visual tooling such as a local preview server |
Unidentified License
LicenseSomething that seems like a license was found, but its contents could not be matched with a known license.
10757
21.96%6
20%170
14.86%1
Infinity%80
-20%