### Responsive Title Example
Source: https://trmnl.com/framework/docs/3.1/title.md
Shows how to make a Title responsive, starting small and becoming xlarge on large screens. This utilizes breakpoint prefixes for adaptive styling.
```html
Responsive Title
```
--------------------------------
### Responsive Value Example
Source: https://trmnl.com/framework/docs/3.1/value.md
Shows how to apply different Value sizes at different screen widths using breakpoint prefixes like `md:` and `lg:`. Includes an example with progressive scaling and tabular numbers.
```html
Responsive Value
1,234.56
Small by default, base on large screens
```
--------------------------------
### Responsive Padding Examples
Source: https://trmnl.com/framework/docs/3.1/spacing.md
Illustrates applying padding with responsive modifiers for size and orientation.
```html
sm:px--{size}
portrait:pb--{size}
md:portrait:pt--{size}
```
--------------------------------
### Base Value Example
Source: https://trmnl.com/framework/docs/3.1/value.md
Demonstrates the base `value` class and the `value--base` modifier for default text size. Includes examples with and without tabular numbers.
```html
Example
48,206.62
Example
48,206.62
```
--------------------------------
### Responsive Margin Examples
Source: https://trmnl.com/framework/docs/3.1/spacing.md
Demonstrates how to apply margins with responsive modifiers for size, orientation, or combined conditions.
```html
md:my--{size}
portrait:mx--{size}
lg:portrait:mt--{size}
```
--------------------------------
### XSmall Value Example
Source: https://trmnl.com/framework/docs/3.1/value.md
Shows the `value--xsmall` class for a text size slightly larger than XXSmall. Includes an example with tabular numbers.
```html
Example
48,206.62
```
--------------------------------
### Orientation and Size+Orientation Example
Source: https://trmnl.com/framework/docs/3.1/value.md
Demonstrates responsive Value sizing based on screen orientation using `portrait:` and combining it with size breakpoints like `md:portrait:`.
```html
Orientation Variant
42,000.00
```
--------------------------------
### Classic Bundle Text Styling
Source: https://trmnl.com/framework/docs/3.1/font_family.md
Example of text styling within the Classic bundle, demonstrating different sizes and bold weights.
```html
text--small · Classic
text--base · Classic
text--large · Classic
text--base font--bold · Classic
```
--------------------------------
### Giga Value Example
Source: https://trmnl.com/framework/docs/3.1/value.md
Demonstrates the `value--giga` class for massive text. Includes an example with tabular numbers.
```html
42
```
--------------------------------
### Indexed Table Example
Source: https://trmnl.com/framework/docs/3.1/table.md
This example demonstrates an indexed table with the `table--indexed` class applied. The meta block containing the index is docked to the left.
```html
|
Employee |
Role |
Pranks |
Sales |
Score |
Fun Fact |
| 1 |
Pam Beesly |
Receptionist |
3 |
$0 |
0.00 |
Loves drawing |
```
--------------------------------
### XXLarge Value Example
Source: https://trmnl.com/framework/docs/3.1/value.md
Demonstrates the `value--xxlarge` class for very large text. Includes an example with tabular numbers.
```html
Example
48,206.62
```
--------------------------------
### Responsive Width Example
Source: https://trmnl.com/framework/docs/3.1/size.md
Sets element width to 8 units by default, 16 units on medium screens and up, and 24 units on large screens and up.
```html
Responsive Width
```
--------------------------------
### Small Value Example
Source: https://trmnl.com/framework/docs/3.1/value.md
Illustrates the `value--small` class for a smaller text size. Includes an example with tabular numbers.
```html
Example
48,206.62
```
--------------------------------
### XXSmall Value Example
Source: https://trmnl.com/framework/docs/3.1/value.md
Demonstrates the smallest text size using the `value--xxsmall` class. Includes an example with tabular numbers using `value--tnums`.
```html
Example
48,206.62
```
--------------------------------
### Tera Value Example
Source: https://trmnl.com/framework/docs/3.1/value.md
Shows the `value--tera` class for colossal text. Includes an example with tabular numbers.
```html
42
```
--------------------------------
### Responsive Text Size Example
Source: https://trmnl.com/framework/docs/3.1/text_size.md
Applies text size utilities at the medium breakpoint and up. Used to fine-tune typography across screen sizes.
```html
Responsive text sizing
```
--------------------------------
### Table-Style Structure
Source: https://trmnl.com/framework/docs/3.1/visibility.md
This example uses 'table', 'table-row', and 'table-cell' classes to create a basic table-like structure.
```html
```
--------------------------------
### Responsive Height Example
Source: https://trmnl.com/framework/docs/3.1/size.md
Sets element height to 8 units by default, 16 units on medium screens and up, and 24 units on large screens and up.
```html
Responsive Height
```
--------------------------------
### Single View Structure
Source: https://trmnl.com/framework/docs/3.1/structure.md
Example of a single plugin occupying the full screen, consisting of a screen, a full-sized view, and a layout.
```html
```
--------------------------------
### Platform-Provided View Structure
Source: https://trmnl.com/framework/docs/3.1/view.md
This example illustrates the structure of a view that is automatically provided by the platform. It shows the conceptual wrapping of layout and title bar elements within a view container.
```html
...
...
```
--------------------------------
### XLarge Value Example
Source: https://trmnl.com/framework/docs/3.1/value.md
Illustrates the `value--xlarge` class for larger text. Includes an example with tabular numbers.
```html
Example
48,206.62
```
--------------------------------
### XXXLarge Value Example
Source: https://trmnl.com/framework/docs/3.1/value.md
Shows the `value--xxxlarge` class for very large text. Includes an example with tabular numbers.
```html
Example
48,206.62
```
--------------------------------
### Peta Value Example
Source: https://trmnl.com/framework/docs/3.1/value.md
Illustrates the `value--peta` class for the largest text size. Includes an example with tabular numbers.
```html
42
```
--------------------------------
### Three Column Content Example
Source: https://trmnl.com/framework/docs/3.1/columns.md
Demonstrates a basic layout with three distinct columns, each containing placeholder content. This is a common use case for distributing similar types of information.
```html
Content for column 1
Content for column 2
Content for column 3
```
--------------------------------
### Responsive Minimum Width Example
Source: https://trmnl.com/framework/docs/3.1/size.md
Applies responsive minimum width utilities, setting the minimum width to 8 units by default, 16 units on medium screens and up, and 24 units on large screens and up.
```html
Responsive Min Width
```
--------------------------------
### Plugin View Markup Example
Source: https://trmnl.com/framework/docs/3.1/structure.md
This shows the basic structure for a plugin's view markup, including layout and title bar elements.
```html
...
...
```
--------------------------------
### Responsive Content Sizing with Breakpoint Prefixes
Source: https://trmnl.com/framework/docs/3.1/rich_text.md
Applies different content sizes based on screen width using breakpoint prefixes. This example demonstrates a progressive scaling approach: small by default, base on small screens, large on medium screens, and xxlarge on large screens.
```html
Small by default, base on medium+ screens
Progressive content sizing
```
--------------------------------
### Mega Value Example
Source: https://trmnl.com/framework/docs/3.1/value.md
Illustrates the `value--mega` class for extremely large text. Includes an example with tabular numbers.
```html
42
```
--------------------------------
### Responsive Font Weight Variants
Source: https://trmnl.com/framework/docs/3.1/font_weight.md
Shows how to apply font weight utilities with responsive prefixes for different screen sizes and display types. This example demonstrates bold text on 4-bit displays and at medium breakpoints.
```html
Bold only on 4-bit displays
Bold at medium breakpoint and up
```
--------------------------------
### Responsive Corner Rounding Example
Source: https://trmnl.com/framework/docs/3.1/rounded.md
Apply different corner rounding for landscape and portrait orientations. Use responsive prefixes to control rounding at different breakpoints.
```html
Xlarge in landscape, small in portrait
```
--------------------------------
### Responsive Container Query Width Example
Source: https://trmnl.com/framework/docs/3.1/size.md
Uses container query units to set responsive width, applying 25% of the container width by default, 50% on medium screens and up, and 75% on large screens and up.
```html
Responsive Container Query
```
--------------------------------
### Responsive Rounded Example
Source: https://trmnl.com/framework/docs/3.1/rounded.md
Shows how to apply different border radius values at different breakpoints and orientations. The `--base` modifier can be used to reset to the default size.
```HTML
Xlarge in landscape, small in portrait
```
--------------------------------
### Bit-depth Text Size Example
Source: https://trmnl.com/framework/docs/3.1/text_size.md
Applies text size utilities on specific bit-depth displays. Used to adjust typography for different display capabilities.
```html
Larger on 4-bit displays
```
--------------------------------
### Base Text Example
Source: https://trmnl.com/framework/docs/3.1/text_size.md
Applies the 'text--base' class for base text size. Use 'font--bold' for bold text.
```html
Regular text
Bold text
```
--------------------------------
### Responsive Rich Text Size
Source: https://trmnl.com/framework/docs/3.1/rich_text.md
Shows how to apply responsive prefixes to Rich Text content. This example sets the content to base size by default and switches to xxxlarge on large screens.
```html
Base by default, xxxlarge on large screens
```
--------------------------------
### Orientation-Based Description Sizing
Source: https://trmnl.com/framework/docs/3.1/description.md
Adapt description sizes based on orientation using 'portrait:' prefix. This example sets a large size by default and a base size in portrait mode.
```html
Orientation Variant
```
--------------------------------
### Small Table Example
Source: https://trmnl.com/framework/docs/3.1/table.md
Use the `table--small` class for a compact table with reduced row heights. The `table--condensed` class is a backward-compatible alias.
```html
| Employee |
Role |
Pranks |
Sales |
Score |
Fun Fact |
| Row 1, Cell 1 |
Row 1, Cell 2 |
Row 1, Cell 3 |
```
--------------------------------
### Small Text Example
Source: https://trmnl.com/framework/docs/3.1/text_size.md
Applies the 'text--small' class for small text. Use 'font--bold' for bold text.
```html
Regular text
Bold text
```
--------------------------------
### Responsive Description Sizing
Source: https://trmnl.com/framework/docs/3.1/description.md
Apply responsive prefixes like 'lg:' to change description sizes at different screen widths. This example sets the description to xlarge size on large screens.
```html
Responsive Description
```
--------------------------------
### Dark Mode with Responsive Variants
Source: https://trmnl.com/framework/docs/3.1/responsive.md
For utilities supporting dark-mode variants, use the `dark:` prefix first, followed by other responsive modifiers. This example targets dark mode on medium+ screens in portrait orientation with a 2-bit display.
```html
...
```
--------------------------------
### Tabular Numbers Example
Source: https://trmnl.com/framework/docs/3.1/value.md
Demonstrates enabling tabular numbers for consistent alignment using the `value--tnums` modifier. Compares regular and tabular number display.
```html
Regular: 48,206.62
Tabular: 48,206.62
```
--------------------------------
### Complex Responsive Layout: Changing Display Types
Source: https://trmnl.com/framework/docs/3.1/visibility.md
This example shows how an element's display type can change across different breakpoints, from inline to inline-block, then flex, and finally grid.
```html
Changes display type at each breakpoint
```
--------------------------------
### Combine Size, Orientation, and Bit-Depth Variants
Source: https://trmnl.com/framework/docs/3.1/responsive.md
Achieve highly targeted responsive designs by combining size, orientation, and bit-depth variants. The pattern is `size:orientation:bit-depth:utility`. This example targets medium+ screens in portrait mode with a 4-bit display.
```html
```
--------------------------------
### Bit-Depth Responsive Content Sizing
Source: https://trmnl.com/framework/docs/3.1/rich_text.md
Use bit-depth prefixes to optimize content text size for different display color capabilities. This example shows how to display optimized content and selective sizing based on bit-depth.
```html
Display optimized content
```
```html
```
--------------------------------
### Apply Chromatic Backgrounds and Text
Source: https://trmnl.com/framework/docs/3.1/background.md
Use `bg--{hue}-{step}` and `text--{hue}-{step}` classes for applying specific chromatic color backgrounds and text colors. Examples include pure red, red at shade 50, blue at shade 40, and green at shade 60.
```html
Pure red
Red 50
Blue 40
Green 60
Red text
```
--------------------------------
### Orientation and Size Variant Title
Source: https://trmnl.com/framework/docs/3.1/title.md
Illustrates applying different Title sizes based on screen orientation. This example is large by default but becomes small in portrait mode.
```html
Orientation Variant
```
--------------------------------
### Orientation Variant Content Sizing
Source: https://trmnl.com/framework/docs/3.1/rich_text.md
Demonstrates adapting Rich Text content size based on device orientation. This example sets the content to large by default and switches to small size in portrait mode.
```html
Orientation variant content
```
--------------------------------
### Position Grid Rows Horizontally
Source: https://trmnl.com/framework/docs/3.1/grid.md
Control the horizontal alignment of items within a grid row using `row--{position}` modifiers (`start`, `center`, `end`). This example uses a single-column grid.
```html
```
--------------------------------
### Position Grid Columns Vertically
Source: https://trmnl.com/framework/docs/3.1/grid.md
Control the vertical alignment of items within a grid column using `col--{position}` modifiers (`start`, `center`, `end`). This example uses a 3-column grid.
```html
```
--------------------------------
### Resetting Description Size at Breakpoint
Source: https://trmnl.com/framework/docs/3.1/description.md
Use breakpoint prefixes to reset description sizes. This example makes the description large by default and resets it to base size on medium screens and larger.
```html
Large by default, base on medium+ screens
```
--------------------------------
### Large Value Example
Source: https://trmnl.com/framework/docs/3.1/value.md
Shows the `value--large` class for larger text. Includes an example with tabular numbers.
```html
Example
48,206.62
```
--------------------------------
### Title Bar with Instance Label
Source: https://trmnl.com/framework/docs/3.1/title_bar.md
Add an instance label using the 'instance' class to display additional context, such as the environment (e.g., Production).
```html
Title Bar with Instance
Production
```
--------------------------------
### Responsive Clamp Configuration
Source: https://trmnl.com/framework/docs/3.1/clamp.md
Configure clamping behavior based on screen size and orientation using specific `data-clamp-*` attributes. This allows for adaptive text truncation.
```html
Clamp to 2 lines by default, 4 on medium+ screens, 1 in portrait
```
--------------------------------
### Min/Max Width with Dynamic Sizes
Source: https://trmnl.com/framework/docs/3.1/size.md
Use `w--min-full`, `w--max-full`, `w--min-auto`, and `w--max-auto` to set dynamic minimum and maximum width constraints.
```html
min-width: 100%
max-width: 100%
```
--------------------------------
### TRMNL Bundle Text Styling
Source: https://trmnl.com/framework/docs/3.1/font_family.md
Example of text styling within the TRMNL bundle, demonstrating different sizes and bold weights.
```html
text--small · TRMNL
text--base · TRMNL
text--large · TRMNL
text--base font--bold · TRMNL
```
--------------------------------
### Using Preferred Gray Shades
Source: https://trmnl.com/framework/docs/3.1/colors.md
Demonstrates the usage of the preferred, new naming convention for gray shades. These map to equivalent extended shades.
```html
Gray 10
Gray 20
```
--------------------------------
### Overflow Component Structure
Source: https://trmnl.com/framework/docs/3.1/overflow
This HTML structure defines the basic setup for an Overflow component. Use this as a template for implementing the component in your project.
```html
```
--------------------------------
### Large Text Example
Source: https://trmnl.com/framework/docs/3.1/text_size.md
Applies the 'text--large' class for large text. Use 'font--bold' for bold text.
```html
Regular text
Bold text
```
--------------------------------
### Left Aligned Rich Text Example
Source: https://trmnl.com/framework/docs/3.1/rich_text.md
Demonstrates a left-aligned rich text component. This is the default and most readable format for longer text content.
```html
This is an example of left-aligned rich text content.
Multiple paragraphs will maintain the same alignment.
```
--------------------------------
### Mashup Structure with Multiple Views
Source: https://trmnl.com/framework/docs/3.1/structure.md
Demonstrates how to use a Mashup to arrange multiple views on a single screen, with each view having its own layout.
```html
```
--------------------------------
### XLarge Text Example
Source: https://trmnl.com/framework/docs/3.1/text_size.md
Applies the 'text--xlarge' class for extra large text. Use 'font--bold' for bold text.
```html
Regular text
Bold text
```
--------------------------------
### Right Aligned Rich Text Example
Source: https://trmnl.com/framework/docs/3.1/rich_text.md
Demonstrates a right-aligned rich text component. Useful for specific design scenarios or to create visual tension.
```html
This is an example of right-aligned rich text content.
Right alignment can be used for captions or sidebars.
```
--------------------------------
### Center Aligned Rich Text Example
Source: https://trmnl.com/framework/docs/3.1/rich_text.md
Demonstrates a center-aligned rich text component. Ideal for headings, quotes, or shorter text that needs to be highlighted.
```html
This is an example of center-aligned rich text content.
Centered text works well for quotes or highlighted information.
```
--------------------------------
### Description Component Size Variants
Source: https://trmnl.com/framework/docs/3.1/description.md
Demonstrates the different size variants available for the Description component, including default, large, extra-large, and extra-extra-large. Also shows how to reset size at breakpoints.
```html
Base Description
Large Description
XLarge Description
XXLarge Description
Large by default, base on medium+ screens
```
--------------------------------
### XXXLarge Text Example
Source: https://trmnl.com/framework/docs/3.1/text_size.md
Applies the 'text--xxxlarge' class for triple extra large text. Use 'font--bold' for bold text.
```html
Regular text
Bold text
```
--------------------------------
### Control Item Basis and Order
Source: https://trmnl.com/framework/docs/3.1/flex.md
Set the initial size of flex items with `basis--*` utilities and control their stacking order with `order--*` utilities. This allows for precise layout control.
```html
basis--36
basis--20
basis--24
```
```html
order--last
order--first
order--2
order---1
```
--------------------------------
### Responsive Gap Patterns
Source: https://trmnl.com/framework/docs/3.1/gap.md
Illustrates various responsive gap patterns for different layout structures like flex columns and grids.
```html
...
```
```html
...
```
--------------------------------
### XXLarge Text Example
Source: https://trmnl.com/framework/docs/3.1/text_size.md
Applies the 'text--xxlarge' class for double extra large text. Use 'font--bold' for bold text.
```html
Regular text
Bold text
```
--------------------------------
### Basic Row Layout with Flex
Source: https://trmnl.com/framework/docs/3.1/layout.md
Demonstrates a basic horizontal layout using layout--row and flex for child arrangement.
```html
```
--------------------------------
### Define 3 Columns with Grid
Source: https://trmnl.com/framework/docs/3.1/grid.md
Use `grid--cols-{number}` on the parent element to define the total number of equal-width columns. This example sets up a 3-column grid.
```html
```
--------------------------------
### Define 4 Columns with Grid
Source: https://trmnl.com/framework/docs/3.1/grid.md
Use `grid--cols-{number}` on the parent element to define the total number of equal-width columns. This example sets up a 4-column grid.
```html
```
--------------------------------
### Base Table Styling
Source: https://trmnl.com/framework/docs/3.1/table.md
This snippet demonstrates the standard table styling using the `table--base` class. It includes a header and a sample row with basic cell structure.
```html
| Employee |
Role |
Pranks |
Sales |
Score |
Fun Fact |
| Row 1, Cell 1 |
Row 1, Cell 2 |
Row 1, Cell 3 |
```
--------------------------------
### Setting Custom Max Height
Source: https://trmnl.com/framework/docs/3.1/content_limiter.md
Use the `data-content-max-height` attribute on a div to set a specific maximum height for the content limiter. This example sets the maximum height to 140 pixels.
```html
Contrary to what one might think, the Lorem ipsum text, despite being meaningless, has noble...
```
```html
Contrary to what one might think, the Lorem ipsum text, despite being meaningless, has noble...
```
--------------------------------
### Applying Classic Font Bundle
Source: https://trmnl.com/framework/docs/3.1/font_family.md
Add the 'screen--fonts-classic' class to the screen root to activate the Classic font bundle on low-density displays. High-density displays will still use Inter.
```html
...
```
--------------------------------
### Using Deprecated Gray Shades
Source: https://trmnl.com/framework/docs/3.1/colors.md
Demonstrates the usage of deprecated gray shade class names for background colors. These are still supported for backward compatibility.
```html
Gray 1
Gray 2
```
--------------------------------
### Distribute Gap
Source: https://trmnl.com/framework/docs/3.1/gap.md
The `gap--distribute` modifier places the first item at the start of the container and the last item at the end, with equal spacing between items. This uses `justify-content: space-between`.
```html
First item (at start)
Middle item
Last item (at end)
```
--------------------------------
### Responsive Arbitrary Pixel Sizes
Source: https://trmnl.com/framework/docs/3.1/trmnl_x_guide.md
Apply responsive prefixes to arbitrary pixel width and height utilities. The maximum value for these utilities is now 800px.
```html
Responsive arbitrary width
```
```html
Orientation-aware height
```
--------------------------------
### Table Overflow Example
Source: https://trmnl.com/framework/docs/3.1/table_overflow.md
A regular-sized table demonstrating overflow behavior within a fixed height budget. The 'and X more' row is automatically added when rows exceed the available height.
```html
|
Employee |
Role |
Pranks |
Sales |
Score |
Fun Fact |
| Row 1, Cell 1 |
Row 1, Cell 2 |
Row 1, Cell 3 |
```
--------------------------------
### Responsive Visibility: Visible then Hidden on Large Screens
Source: https://trmnl.com/framework/docs/3.1/visibility.md
Use 'visible' with a responsive prefix like 'lg:' to show an element by default and hide it on large screens and larger.
```html
lg:hidden
```