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
v6: docs: fix typos, examples, and utility class docs
Minor documentation fixes across multiple site files:
- examples/sign-in: add meaningful alt text for the logo image for accessibility.
- components/dialog: add missing space in example button markup.
- components/navbar: update navbar example to use new prefix-style responsive class (`.{breakpoint}:navbar-expand`).
- forms/layout: update horizontal form docs to recommend `.{breakpoint}:col-*` usage.
- getting-started/approach: fix grammar/typos, correct docsref path, and clarify component modifier/variant naming (mention `.btn-solid` and `.theme-primary`).
- getting-started/javascript: adjust JS-required components list (add Dialog, remove Accordions/Modals lines).
- guides/migration: fix possessive "its" typos in breakpoint/container notes.
- helpers/stretched-link: correct placeholder title text.
- utilities/background: update example to use `fg-contrast-{name}` / `fg-{name}` classes instead of previous `color-*` naming.
These changes improve clarity, accessibility, and align docs with updated class naming conventions.
v6: docs: fix typos, examples, and utility class docs
text would always be white on black background
Update example code for background gradient usage
Update margin utilities docs for v6 spacers
Docs updated to reflect the v6 spacing scale: sizes now range from 0 through 9 (`.m-0`–`.m-9`) and the multiplier values for sizes 3–9 were adjusted.
Negative margin docs were changed to note that v6 only supports negative inline margins (`.ms--1`, `.me--2`) using `-1` and `-2` spacers and that the v5-style full negative utilities (e.g. `.mt-n1`) were removed.
The responsive examples were updated to list `.{breakpoint}m-0` through `.{breakpoint}m-9` and `.{breakpoint}m-auto`.
Copy file name to clipboardExpand all lines: site/src/content/docs/components/navbar.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ Here’s a navbar that includes most supported sub-components and a responsive r
68
68
69
69
Here’s what you need to know before getting started with the navbar:
70
70
71
-
- Navbars require a wrapping `.navbar` with `.navbar-expand-{breakpoint}` for responsive collapsing and [color scheme](#color-schemes) classes.
71
+
- Navbars require a wrapping `.navbar` with `.{breakpoint}:navbar-expand` (e.g. `.md:navbar-expand`) for responsive collapsing and [color scheme](#color-schemes) classes.
72
72
- Navbars and their contents are fluid by default. Change the [container](#containers) to limit their horizontal width in different ways.
73
73
- Use our [margin]([[docsref:/utilities/margin]]), [padding]([[docsref:/utilities/padding]]), and [flex]([[docsref:/utilities/flex]]) utility classes for controlling spacing and alignment within navbars.
74
74
- Navbars are responsive by default using our **drawer component**. On mobile, navigation links slide in from the side as a drawer.
Copy file name to clipboardExpand all lines: site/src/content/docs/forms/layout.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ More complex layouts can also be created with the grid system.
109
109
110
110
## Horizontal form
111
111
112
-
Create horizontal forms with the grid by adding the `.row` class to form groups and using the `.col-*-*` classes to specify the width of your labels and controls. Be sure to add `.col-form-label` to your `<label>`s as well so they’re vertically centered with their associated form controls.
112
+
Create horizontal forms with the grid by adding the `.row` class to form groups and using `.{breakpoint}:col-*` classes (e.g. `.sm:col-2`) to specify the width of your labels and controls. Be sure to add `.col-form-label` to your `<label>`s as well so they’re vertically centered with their associated form controls.
113
113
114
114
At times, you maybe need to use margin or padding utilities to create that perfect alignment you need. For example, we’ve removed the `padding-top` on our stacked radio inputs label to better align the text baseline.
Copy file name to clipboardExpand all lines: site/src/content/docs/getting-started/approach.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Sass is used for the following:
23
23
- Manage repetitive snippets of code with mixins and functions.
24
24
- Toggle global options like `$enable-smooth-scroll`, `$enable-reduced-motion`, etc.
25
25
- Configure and generate component variants (theme colors, sizes, etc) through Sass maps, loops, and more.
26
-
- Bulk-generate CSS variables for all every tint and shade of our colors.
26
+
- Bulk-generate CSS variables for every tint and shade of our colors.
27
27
- Manage component token lists (e.g., `$alert-tokens`) and apply them to specific classes.
28
28
- Power the utilities API to customize and generate utility classes.
29
29
@@ -197,9 +197,9 @@ We use range media queries (`width >= 768px`, for example) to apply styles at a
197
197
198
198
### Classes
199
199
200
-
Aside from [Reboot]([[docsref:content/reboot]]), we strive to use only classes as selectors. Where we can, we avoid type selectors and extraneous parent selectors for greater flexibility.
200
+
Aside from [Reboot]([[docsref:/content/reboot]]), we strive to use only classes as selectors. Where we can, we avoid type selectors and extraneous parent selectors for greater flexibility.
201
201
202
-
Components are typically built with a base class for shared property-value pairs. For example, `.btn`and `.btn-primary`. We use `.btn` for all the common styles like `display`, `padding`, and `border-width`. We then use modifiers like `.btn-solid` to add more styles.
202
+
Components are typically built with a base class for shared property-value pairs. For example, `.btn`, `.btn-solid`, and `.theme-primary`. We use `.btn` for all the common styles like `display`, `padding`, and `border-width`. We then use variant and theme modifiers like `.btn-solid.theme-primary` to add more styles.
203
203
204
204
This reduces complexity, streamlines code, and makes for more scalable systems.
Copy file name to clipboardExpand all lines: site/src/content/docs/guides/migration.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,10 +61,10 @@ Bootstrap 6 is a major release with many breaking changes to modernize our codeb
61
61
- Removed `_variables.scss`, consolidating all variables into `_config.scss`
62
62
- Added `_theme.scss` where we setup all our global theming for how colors are applied
63
63
-**Updated lg, xl, and 2xl breakpoints and containers.**
64
-
- Increased the `lg` breakpoint from 992px to 1024px; it’s container remains the same at 960px.
65
-
- Increased the `xl` breakpoint from 1200px to 1280px, and it’s container from 1140px to 1200px.
64
+
- Increased the `lg` breakpoint from 992px to 1024px; its container remains the same at 960px.
65
+
- Increased the `xl` breakpoint from 1200px to 1280px, and its container from 1140px to 1200px.
66
66
- Renamed `xxl` to `2xl` for better scaling with additional custom breakpoints
67
-
- Increased the `2xl` breakpoint from 1400px to 1536px, and it’s container from 1320px to 1440px.
67
+
- Increased the `2xl` breakpoint from 1400px to 1536px, and its container from 1320px to 1440px.
68
68
-**Adopted modern CSS color functions.** All Sass color variables now use `oklch()` notation (e.g., `$blue: oklch(60% 0.24 240)`) and tint/shade scales are generated with `color-mix(in lab, ...)` in the compiled CSS. The v5 `$*-rgb` CSS custom properties and `rgba()` patterns have been removed. This requires browser support for `color-mix()` and `oklch()`.
69
69
-**New theme token system with `.theme-*` classes.** Per-component color variant classes (like `.alert-primary`, `.badge.bg-primary`, `.btn-primary`) are replaced by a composable `.theme-{name}` pattern. Adding `.theme-primary` to a component sets `--theme-bg`, `--theme-fg`, `--theme-border`, `--theme-contrast`, and other semantic CSS custom properties that the component reads. This applies across buttons, badges, alerts, cards, accordions, and more.
70
70
-**Responsive and state classes now use a prefix instead of an infix or suffix.** Class names follow the Tailwind-style `prefix:class` pattern (e.g., `md:d-none` instead of `d-md-none`, `hover:opacity-50` instead of `opacity-50-hover`). In HTML, use the unescaped colon: `class="md:d-none"`. This applies to utilities, grid, pseudo-state variants, and all responsive components.
Copy file name to clipboardExpand all lines: site/src/content/docs/helpers/stretched-link.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Multiple links and tap targets are not recommended with stretched links. However
21
21
Most custom components do not have `position: relative` by default, so we need to add the `.position-relative` here to prevent the link from stretching outside the parent element.
<h5 class="mt-0">Custom component with stretched link</h5>
27
27
<p>This is some placeholder content for the custom component. It is intended to mimic what some real-world content would look like, and we’re using it here to give the component a bit of body and size.</p>
Copy file name to clipboardExpand all lines: site/src/content/docs/utilities/background.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,9 +31,9 @@ For example, `.bg-primary` sets the `--bs-bg` variable to `var(--bs-primary-bg)`
31
31
This approach allows us to also easily support translucency with our `.bg-{opacity}` utilities as we can use `color-mix()` with the CSS variable to generate the appropriate color. See the [opacity section](#opacity) for more details.
Copy file name to clipboardExpand all lines: site/src/content/docs/utilities/gap.mdx
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ import { getData } from '@libs/data'
13
13
14
14
## Overview
15
15
16
-
Use gap utilities to control the space between children in flexbox and grid layouts. Gap utilities are built from a default Sass map ranging from `.25rem` to `3rem`. Use utilities like `.gap-3` and `.gap-5` to control the gap between all children:
16
+
Use gap utilities to control the space between children in flexbox and grid layouts. Gap utilities are built from a default Sass map ranging from `0` to `3rem` (`.gap-0` through `.gap-9`). Use utilities like `.gap-3` and `.gap-5` to control the gap between all children:
0 commit comments