You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Code Editor allows for a full code-editing experiences on the web, including syntax highlighting and displaying line numbers.
48
+
The Code Editor library is the code editor that powers the stylized [Editable Code Block](/components/editable-code-block) component. It allows for full code-editing functionality on the web, including syntax highlighting and displaying line numbers.
47
49
48
50
This library is built on top of [monaco-react](https://github.com/suren-atoyan/monaco-react), which wraps the
Our library exposes a theme for use in Twilio products, aptly called the `PasteTheme`. This theme is based on the
51
+
[Monaco Editor](https://github.com/microsoft/monaco-editor). The library exposes a theme for use in Twilio products, aptly called the `PasteTheme`. This theme is based on the
52
52
[Night Owl theme by Sarah Drasner](https://marketplace.visualstudio.com/items?itemName=sdras.night-owl&WT.mc_id=github-theme-sdras).
53
53
54
+
<Calloutvariant='neutral'marginY="space70">
55
+
<CalloutHeadingas="h3">Are you looking for stylized UI components?</CalloutHeading>
56
+
<CalloutText>
57
+
For fully styled components, use the <Anchorhref="https://paste.twilio.design/components/editable-code-block">Editable Code Block</Anchor>. Or if you don't need editing functionality, use the <Anchorhref="https://paste.twilio.design/components/code-block">Code Block</Anchor>.
Copy file name to clipboardExpand all lines: packages/paste-website/src/pages/foundations/spacing-and-layout/index.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,7 +158,7 @@ Horizontal spacing is very similar to vertical space, using 8-pixel multiples. R
158
158
159
159
## Max widths
160
160
161
-
We suggest a max width of 1440px for the content area (not including margins).
161
+
We suggest a max width of 1232px or `size-120` for the content area (not including margins).
162
162
163
163
<Calloutvariant="neutral"marginY="space70">
164
164
<CalloutHeadingas="h5">What responsive breakpoints do I use for my feature?</CalloutHeading>
@@ -171,7 +171,7 @@ We suggest a max width of 1440px for the content area (not including margins).
171
171
172
172
#### Text widths
173
173
174
-
Your text width should not be as long as your max width (1140px). In fact, a good rule of thumb for your text widths is no more than 65 characters per line. For Twilio default body text, we aim for about 712 pixels (`size-70`) for text width.
174
+
Your text width should not be as long as your max width (1232px or `size-120`). In fact, a good rule of thumb for your text widths is no more than 65 characters per line. For Twilio default body text, we aim for about 712 pixels (`size-70`) for text width.
175
175
176
176
It's sometimes helpful to also break up content by pairing it with a hero image. By doing this, you're visually signaling that this is an effortless conversation.
0 commit comments