{"schemaVersion":1,"id":"recommended.sm-style","version":"1.0.0","name":"Style reference workflow","description":"An editable production workflow using Style reference v2.0.0.","stages":[{"id":"main","blockId":"sm.style","version":"2.0.0","label":"Style reference"}],"connections":[],"packages":[{"manifest":{"schemaVersion":1,"sdkVersion":"0.1.0","id":"sm.style","version":"2.0.0","name":"Style reference","description":"Create reusable structured art direction with palette, lighting, and camera guidance.","kind":"workspace","runtime":"javascript","entry":"src/run.js","license":"MIT","provenance":{"notice":"Original source (authorship declared by the packager)\nLicense: MIT\nChanges: Original implementation declared by the packager; no reused repository or dependency code.\nFiles: LICENSE, src/run.js\n\nMIT License\n\nCopyright (c) 2026 StillMade contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","portableSources":[{"kind":"original","license":"MIT","paths":["LICENSE","src/run.js"],"evidence":["upstream/0/LICENSE","upstream/0/src/run.js"],"changes":"Original implementation declared by the packager; no reused repository or dependency code."}]},"inputs":{"input":{"type":"text","primary":true,"description":"The reviewed overall visual direction."},"name":{"type":"text","default":"Visual style","description":"The style's display name."},"palette":{"type":"text","default":"","description":"The controlled color palette and accent colors."},"lighting":{"type":"text","default":"","description":"Lighting quality, contrast, and atmosphere."},"camera":{"type":"text","default":"","description":"Framing, lens, coverage, and movement language."}},"outputs":{"output":{"type":"style","primary":true,"description":"The reusable visual style document."}},"permissions":{"project":[],"network":[],"filesystem":[],"secrets":[]},"ui":[{"port":"input","control":"text"},{"port":"name","control":"text"},{"port":"palette","control":"text"},{"port":"lighting","control":"text"},{"port":"camera","control":"text"}]},"code":"const clean = (value, limit) => String(value || '').trim().slice(0, limit);\nconst slug = value => clean(value, 120).toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '').slice(0, 80) || 'visual-style';\nconst overallAesthetic = clean(input.input, 12000);\nif (!overallAesthetic) throw Error('Describe the visual direction before creating the style reference.');\nconst name = clean(input.name, 120) || 'Visual style';\nreturn {output: {\n  schemaVersion: 1,\n  id: slug(name),\n  name,\n  description: overallAesthetic,\n  style: overallAesthetic,\n  overallAesthetic,\n  colorPalette: clean(input.palette, 3000),\n  lightingTone: clean(input.lighting, 3000),\n  cameraLanguage: clean(input.camera, 3000),\n  references: []\n}};\n","tests":[{"name":"Cinematic documentary style","input":{"input":"Naturalistic coastal documentary with tactile detail and restrained contrast.","name":"Storm Coast Documentary","palette":"Slate blue, sea gray, weathered white, signal red.","lighting":"Motivated overcast light with warm practical interiors.","camera":"Patient locked frames, slow push-ins, and close observational inserts."},"expected":{"output":{"schemaVersion":1,"id":"storm-coast-documentary","name":"Storm Coast Documentary","description":"Naturalistic coastal documentary with tactile detail and restrained contrast.","style":"Naturalistic coastal documentary with tactile detail and restrained contrast.","overallAesthetic":"Naturalistic coastal documentary with tactile detail and restrained contrast.","colorPalette":"Slate blue, sea gray, weathered white, signal red.","lightingTone":"Motivated overcast light with warm practical interiors.","cameraLanguage":"Patient locked frames, slow push-ins, and close observational inserts.","references":[]}}},{"name":"Minimal graphic style","input":{"input":"Clean geometric illustration with generous negative space.","name":"Quiet Geometry","palette":"","lighting":"","camera":""},"expected":{"output":{"schemaVersion":1,"id":"quiet-geometry","name":"Quiet Geometry","description":"Clean geometric illustration with generous negative space.","style":"Clean geometric illustration with generous negative space.","overallAesthetic":"Clean geometric illustration with generous negative space.","colorPalette":"","lightingTone":"","cameraLanguage":"","references":[]}}}],"portable":{"format":"stillmade-block/1","dependencies":[],"sources":[{"kind":"original","license":"MIT","paths":["LICENSE","src/run.js"],"evidence":["upstream/0/LICENSE","upstream/0/src/run.js"],"changes":"Original implementation declared by the packager; no reused repository or dependency code."}],"files":{"upstream/0/LICENSE":"MIT License\n\nCopyright (c) 2026 StillMade contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","upstream/0/src/run.js":"const clean = (value, limit) => String(value || '').trim().slice(0, limit);\nconst slug = value => clean(value, 120).toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '').slice(0, 80) || 'visual-style';\nconst overallAesthetic = clean(input.input, 12000);\nif (!overallAesthetic) throw Error('Describe the visual direction before creating the style reference.');\nconst name = clean(input.name, 120) || 'Visual style';\nreturn {output: {\n  schemaVersion: 1,\n  id: slug(name),\n  name,\n  description: overallAesthetic,\n  style: overallAesthetic,\n  overallAesthetic,\n  colorPalette: clean(input.palette, 3000),\n  lightingTone: clean(input.lighting, 3000),\n  cameraLanguage: clean(input.camera, 3000),\n  references: []\n}};\n"},"lineage":{"parents":[],"changes":"Packaged original Block source for StillMade."}}}],"license":"MIT"}