` element with the style attribute set to: `{ position: 'fixed', inset: 0 }`
+
+
This will render a full screen canvas:
-## Community
+ ```javascript
+ import { Tldraw } from "@tldraw/tldraw";
+ import "./index.css";
-Found a bug or want to request a feature? Create an issue [here](https://github.com/tldraw/tldraw/issues). To connect with the team and other users, join us on our [Discord](https://discord.gg/JMbeb96jsh). To follow along with updates, you can also [subscribe to our Substack newsletter](https://tldraw.substack.com/) or follow us on [Twitter/X](https://twitter.com/tldraw).
+ export default function App() {
+ return (
+
+
+
+ );
+ }
+ ```
+
+
-## License
+
-tldraw's source code and distributed packages are provided under the non-commercial [tldraw license](https://github.com/tldraw/tldraw/blob/master/LICENSE.md).
+### Next Steps
-This license does not permit commercial use. If you wish to use tldraw in a commercial product or enterprise, you will need to purchase a commercial license. To obtain a commercial license, please contact us at [hello@tldraw.com](mailto:hello@tldraw.com).
+You did it! Now that you have your canvas working, you may be wondering: what next? You can try:
-To learn more, see our [license](/community/license) page.
+- Giving the editor a makeover by [customizing the UI](/docs/user-interface)
+- Adding your own [shapes](/docs/shapes) and [tools](/docs/tools)
+- Providing collaboration using [multiplayer](https://github.com/tldraw/tldraw-yjs-example)
+
+We provide the above examples and more in our [examples section](/examples/basic/develop). Go build something creative and please do share it with us in our [#show-and-tell](https://discord.com/invite/SBBEVCA4PG) channel on Discord!
diff --git a/apps/docs/styles/globals.css b/apps/docs/styles/globals.css
index 30b2a11d9..92ddddc8c 100644
--- a/apps/docs/styles/globals.css
+++ b/apps/docs/styles/globals.css
@@ -340,18 +340,21 @@ body {
.article > h1,
.article > h2 {
- /* margin-top: 24px; */
- padding-top: 106px;
- margin-top: -82px;
pointer-events: none;
font-weight: 800;
}
+.article > h2 {
+ margin-top: 16px;
+}
+
+.article > p + h2 {
+ margin-top: 48px;
+}
+
.article > h3 {
- /* margin-top: 24px; */
font-size: 1.5em;
- padding-top: 106px;
- margin-top: -90px;
+ padding-top: 16px;
pointer-events: none;
font-weight: 700;
}
@@ -498,6 +501,21 @@ body {
.article ol {
margin: 20px 0px;
padding-left: 16px;
+ margin-left: 8px;
+}
+
+.article ol h3 a {
+ color: var(--color-text);
+}
+
+.article ol h3,
+.article ol li::marker {
+ font-size: 1.17em;
+ line-height: 28px;
+}
+
+.article ol ul {
+ list-style-type: disc;
}
.article ul {
@@ -581,6 +599,8 @@ body {
gap: 12px;
}
+
+
.article__embed > iframe {
width: 100%;
height: 100%;
@@ -589,6 +609,24 @@ body {
border: 1px solid var(--color-tint-2);
}
+.article__embed--quickstart {
+ aspect-ratio: 16 / 9;
+ min-height: 405px;
+}
+
+@media screen and (max-width: 520px) {
+ .article__embed--quickstart {
+ aspect-ratio: 1 / 1;
+ height: auto;
+ width: 100%;
+ }
+}
+
+.article__embed--quickstart > iframe {
+ height: 100%;
+ border: 0;
+}
+
.article__caption {
display: block;
text-align: center;
@@ -1210,7 +1248,7 @@ body {
justify-content: flex-end;
}
}
-
+/* --------------------- Mobile --------------------- */
@media (max-width: 760px) {
.article__image {
margin: 32px -16px;
@@ -1245,6 +1283,11 @@ body {
width: 100%;
justify-content: flex-end;
}
+
+ .article__embed--quickstart {
+ aspect-ratio: 16/9;
+ min-height: 280px;
+ }
}
html[data-theme='dark'] .hero__light {