<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/experiments-in-constraint-based-graphic-design-x6mrh4cl3" -->

---
title: Experiments in Constraint-based Graphic Design | daily.dev
description: Basalt is an experimental constraint-based graphic design DSL embedded in Python that lets designers specify figures through relationships between objects...
canonical: https://daily.dev/posts/experiments-in-constraint-based-graphic-design-x6mrh4cl3
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Experiments in Constraint-based Graphic Design | daily.dev
og:description: Basalt is an experimental constraint-based graphic design DSL embedded in Python that lets designers specify figures through relationships between objects...
og:url: https://daily.dev/posts/experiments-in-constraint-based-graphic-design-x6mrh4cl3
og:image: https://api.daily.dev/og/posts/X6MRh4cL3.png
og:image:alt: Experiments in Constraint-based Graphic Design
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Experiments in Constraint-based Graphic Design

**[Anish Athalye](https://daily.dev/sources/anishathalye)** · 20 min read · 0 upvotes · 0 comments

## Summary

Basalt is an experimental constraint-based graphic design DSL embedded in Python that lets designers specify figures through relationships between objects rather than manually computing positions. Constraints are compiled and solved automatically using an SMT solver (Z3), MILP, or gradient descent via TensorFlow. The system supports reusable abstractions that compose naturally through constraint merging. Case studies include research paper figures, logos, and animated presentation slides, demonstrating how parameterized, relational design scales to complex figures with hundreds of objects far better than GUI tools like Illustrator or TikZ.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://anishathalye.com/constraint-based-graphic-design/>

## Similar posts on daily.dev

- [Bauble](https://daily.dev/posts/bauble-xbita2eby) · Lobsters · 0 upvotes · 0 comments
- [3D Modeling & CAD Software Plasticity 2026.2 Has Been Released](https://daily.dev/posts/3d-modeling-cad-software-plasticity-2026-2-has-been-released-c5ciaygeo) · 80 LEVEL · 1 upvotes · 0 comments
- [ggsql: A grammar of graphics for SQL](https://daily.dev/posts/ggsql-a-grammar-of-graphics-for-sql-cjvdglb7o) · Hacker News · 1 upvotes · 0 comments
- [Constraints Breed Discipline](https://daily.dev/posts/constraints-breed-discipline-z4c6umiof) · Blain Smith · 1 upvotes · 0 comments
- [minimalism as a harness](https://daily.dev/posts/minimalism-as-a-harness-alevfxc8x) · Vincent D. Warmerdam · 4 upvotes · 1 comments

---

Tags: [#python](https://daily.dev/tags/python), [#data-visualization](https://daily.dev/tags/data-visualization)

[View this post on daily.dev](https://daily.dev/posts/experiments-in-constraint-based-graphic-design-x6mrh4cl3)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Experiments in Constraint-based Graphic Design","url":"https://daily.dev/posts/experiments-in-constraint-based-graphic-design-x6mrh4cl3","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/experiments-in-constraint-based-graphic-design-x6mrh4cl3"},"datePublished":"2026-03-31T12:29:36.781Z","dateModified":"2026-03-31T12:53:40.029Z","description":"Basalt is an experimental constraint-based graphic design DSL embedded in Python that lets designers specify figures through relationships between objects...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cdf2d66c2a337f8d98cfaf6f5002f6e3?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cdf2d66c2a337f8d98cfaf6f5002f6e3?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Anish Athalye","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Anish Athalye","logo":"https://media.daily.dev/image/upload/s--eU7i6Qkh--/c_limit,w_256/f_auto,q_auto/v1774960043/logos/anishathalye?_a=BAMAMiWQ0","url":"https://daily.dev/sources/anishathalye"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/experiments-in-constraint-based-graphic-design-x6mrh4cl3","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,data-visualization","timeRequired":"PT20M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Anish Athalye","item":"https://daily.dev/sources/anishathalye"},{"@type":"ListItem","position":3,"name":"Experiments in Constraint-based Graphic Design"}]}
```

