Skip to content

Commit

Permalink
add new
Browse files Browse the repository at this point in the history
  • Loading branch information
alixander committed Sep 28, 2024
1 parent 830872b commit 5503559
Show file tree
Hide file tree
Showing 5 changed files with 163 additions and 164 deletions.
1 change: 0 additions & 1 deletion docs/releases/0.6.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@
- CLI: fixes scale flag not being passed to animated SVG outputs [#2071](https://github.com/terrastruct/d2/pull/2071)
- CLI: pptx exports use theme flags correctly [#2099](https://github.com/terrastruct/d2/pull/2099)
- Imports: importing files with url links is fixed [#2105](https://github.com/terrastruct/d2/pull/2105)
- Vars: substitutions consistently appear in the specified order [#2116](https://github.com/terrastruct/d2/pull/2116)
- Composition: linking to invalid boards no longer produces an invalid link [#2118](https://github.com/terrastruct/d2/pull/2118)
6 changes: 0 additions & 6 deletions docs/tour/imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,3 @@ Unnecessary relative imports are removed by autoformat.

`@./x` will be autoformatted to `@x`.
:::

:::caution
Absolute imports are not currently available. We are considering designs to set a root, so
that you can import like `@~/my/d2/x.d2`. If you have a use case for absolute imports,
please file an issue (or upvote an existing one) on GitHub.
:::
6 changes: 3 additions & 3 deletions docs/tour/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Float between `0` and `1`.

## Stroke

CSS color name or hex code.
CSS color name, hex code, or a subset of CSS gradient strings.

<CodeBlock className="language-d2">
{StylesStroke}
Expand All @@ -85,7 +85,7 @@ already used to control header's `fill`).

## Fill

CSS color name or hex code.
CSS color name, hex code, or a subset of CSS gradient strings.

<CodeBlock className="language-d2">
{StylesFill}
Expand Down Expand Up @@ -228,7 +228,7 @@ Integer between `8` and `100`.

## Font Color

CSS color name or hex code.
CSS color name, hex code, or a subset of CSS gradient strings.

<CodeBlock className="language-d2">
{StylesFontColor}
Expand Down
2 changes: 2 additions & 0 deletions static/d2/styles-fill.d2
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
direction: right
x -> y: hi
y -> z
x.style.fill: "#f4a261"
y.style.fill: honeydew
z.style.fill: "linear-gradient(#f69d3c, #3f87a6)"
Loading

0 comments on commit 5503559

Please sign in to comment.