terrastruct / d2

D2 is a modern diagram scripting language that turns text to diagrams.

Home Page:https://d2lang.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can i change the colours of sql_table

bo-ku-ra opened this issue · comments

how can i change the colours 'aaa', 'bbb' and 'PK'?

https://play.d2lang.com/?l=&script=lM5BDoJADIXh_ZyiF9ADjEcxhnSgwIRCsa2LCeHuZqIxxrjQxdu8f_P1twHrImwBwEZcKYJduXFMTPXywnTsZfFDKywaYc7mRcXo9IzmKhN9CX1mjqDUBQBEjJBSgq2VxVwxLx7hvGqeUUszUbnsYQ8hjDJQ3R8ipe7T8nY9FC_c75Z7AAAA__8%3D&

fugafuga: {
  shape: sql_table
  style.font-color: mistyrose; style.stroke: mistyrose; style.fill: red
  aaa: bbb {constraint: [primary_key]}
}


hogehoge: {
  shape: sql_table
  style.font-color: red; style.stroke: red; style.fill: mistyrose
  aaa: bbb {constraint: [primary_key]}
}