From 534f2423e99e47e45fc338f89bbaffd8f904674f Mon Sep 17 00:00:00 2001 From: smgr Date: Wed, 28 Jan 2026 01:29:53 -0800 Subject: [PATCH] track missing parameter file in package data --- .gitignore | 1 - README.md | 7 ++++ monobiome/data/parameters.toml | 65 ++++++++++++++++++++++++++++++++++ pyproject.toml | 2 +- uv.lock | 2 +- 5 files changed, 74 insertions(+), 3 deletions(-) create mode 100644 monobiome/data/parameters.toml diff --git a/.gitignore b/.gitignore index 5a75048..692df48 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,6 @@ docs/_build/ # local /Makefile -data/ archive/ notebooks/color_spaces_manyview.ipynb diff --git a/README.md b/README.md index b901119..187da3a 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,13 @@ using the `monobiome` CLI: (`grassland`). Every part of this process can be customized: the scheme parameters, the scheme definitions/file, the app template. +The separation of duties here facilitates robustness: the palette colors can be +tweaked (across versions, say) without changing how those colors get used in +app themes. Scheme files don't hardcode color values, and app templates don't +refer to palette variables at all. Scheme files bridge palette colors with +*intended uses*, and templates need only align those uses under an app's +expected config syntax. + Running these commands in sequence from the repo root should work out-of-the-box after having installed the CLI tool. diff --git a/monobiome/data/parameters.toml b/monobiome/data/parameters.toml new file mode 100644 index 0000000..fee306b --- /dev/null +++ b/monobiome/data/parameters.toml @@ -0,0 +1,65 @@ +L_min = 10 +L_max = 98 +L_step = 5 + +[monotone_C_map] +alpine = 0 +badlands = 0.011 +chaparral = 0.011 +savanna = 0.011 +grassland = 0.011 +reef = 0.011 +tundra = 0.011 +heathland = 0.011 +moorland = 0.011 + +[h_weights] +red = 3.0 +orange = 3.8 +yellow = 3.8 +green = 3.8 +cyan = 3.8 +blue = 3.6 +violet = 3.0 +magenta = 3.6 + +[h_L_offsets] +red = 0 +orange = -5.5 +yellow = -13.5 +green = -12.5 +cyan = -10.5 +blue = 9 +violet = 7 +magenta = 2 + +[h_C_offsets] +red = 0 +orange = -0.015 +yellow = -0.052 +green = -0.08 +cyan = -0.009 +blue = -0.01 +violet = -0.047 +magenta = -0.1 + +[monotone_h_map] +alpine = 0 +badlands = 29 +chaparral = 62.5 +savanna = 104 +grassland = 148 +reef = 205 +tundra = 262 +heathland = 306 +moorland = 350 + +[accent_h_map] +red = 29 +orange = 62.5 +yellow = 104 +green = 148 +cyan = 205 +blue = 262 +violet = 306 +magenta = 350 diff --git a/pyproject.toml b/pyproject.toml index dd7142e..555790e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "monobiome" -version = "1.5.2" +version = "1.5.3" description = "Monobiome color palette" requires-python = ">=3.12" authors = [ diff --git a/uv.lock b/uv.lock index 27eb002..4a1cf6e 100644 --- a/uv.lock +++ b/uv.lock @@ -882,7 +882,7 @@ wheels = [ [[package]] name = "monobiome" -version = "1.5.2" +version = "1.5.3" source = { editable = "." } dependencies = [ { name = "coloraide" },