For optimal accessibility we recommend setting id and aria-controls on the AccordionSummary. The Accordion will derive the necessary aria-labelledby and id for the content region of the accordion.
For optimal accessibility we recommend setting id and aria-controls on the AccordionSummary. The Accordion will derive the necessary aria-labelledby and id for the content region of the accordion.
+
diff --git a/components/alerts/index.html b/components/alerts/index.html
index b05c53a..ba76b05 100644
--- a/components/alerts/index.html
+++ b/components/alerts/index.html
@@ -114,7 +114,7 @@
<p class="mb-0">You will rejoice to hear that no disaster has accompanied the commencement of an enterprise which you have regarded with such evil forebodings. </p>
</div>
</div>
-</div>
When the component is dynamically displayed, the content is automatically announced by most screen readers. At this time, screen readers do not inform users of alerts that are present when the page loads.
Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (for example the visible text), or is included through alternative means, such as additional hidden text.
Actions must have a tab index of 0 so that they can be reached by keyboard-only users.
When the component is dynamically displayed, the content is automatically announced by most screen readers. At this time, screen readers do not inform users of alerts that are present when the page loads.
Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (for example the visible text), or is included through alternative means, such as additional hidden text.
Actions must have a tab index of 0 so that they can be reached by keyboard-only users.
For the sole purpose of dismissing an alert, it isn’t necessary to initialize the component manually via the JS API. By making use of data-bs-dismiss="alert", the component will be initialized automatically and properly dismissed.
Dismissal can be achieved with the data attribute on a button within the alert as demonstrated below:
<buttontype="button"class="btn-close"data-bs-dismiss="alert"aria-label="Close"></button>
@@ -128,8 +128,8 @@
// so it doesn't get lost/reset to the start of the page
// document.getElementById('...').focus()
});
-
The button plugin allows you to create simple on/off toggle buttons.
Visually, these toggle buttons are identical to the checkbox toggle buttons. However, they are conveyed differently by assistive technologies: the checkbox toggles will be announced by screen readers as “checked”/“not checked” (since, despite their appearance, they are fundamentally still checkboxes), whereas these toggle buttons will be announced as “button”/“button pressed”. The choice between these two approaches will depend on the type of toggle you are creating, and whether or not the toggle will make sense to users when announced as a checkbox or as an actual button.
Toggle states
Add data-bs-toggle="button" to toggle a button’s active state. If you’re pre-toggling a button, you must manually add the .active class and aria-pressed="true" to ensure that it is conveyed appropriately to assistive technologies.
The button plugin allows you to create simple on/off toggle buttons.
Visually, these toggle buttons are identical to the checkbox toggle buttons. However, they are conveyed differently by assistive technologies: the checkbox toggles will be announced by screen readers as “checked”/“not checked” (since, despite their appearance, they are fundamentally still checkboxes), whereas these toggle buttons will be announced as “button”/“button pressed”. The choice between these two approaches will depend on the type of toggle you are creating, and whether or not the toggle will make sense to users when announced as a checkbox or as an actual button.
Toggle states
Add data-bs-toggle="button" to toggle a button’s active state. If you’re pre-toggling a button, you must manually add the .active class and aria-pressed="true" to ensure that it is conveyed appropriately to assistive technologies.
The transition duration of .carousel-item can be changed with the $carousel-transition-duration Sass variable before compiling or custom styles if you’re using the compiled CSS. If multiple transitions are applied, make sure the transform transition is defined first (eg. transition: transform 2s ease, opacity .5s ease-out).
Use data attributes to easily control the position of the carousel. data-bs-slide accepts the keywords prev or next, which alters the slide position relative to its current position. Alternatively, use data-bs-slide-to to pass a raw slide index to the carousel data-bs-slide-to="2", which shifts the slide position to a particular index beginning with 0.
The data-bs-ride="carousel" attribute is used to mark a carousel as animating starting at page load. If you don’t use data-bs-ride="carousel" to initialize your carousel, you have to initialize it yourself. It cannot be used in combination with (redundant and unnecessary) explicit JavaScript initialization of the same carousel.
The transition duration of .carousel-item can be changed with the $carousel-transition-duration Sass variable before compiling or custom styles if you’re using the compiled CSS. If multiple transitions are applied, make sure the transform transition is defined first (eg. transition: transform 2s ease, opacity .5s ease-out).
Use data attributes to easily control the position of the carousel. data-bs-slide accepts the keywords prev or next, which alters the slide position relative to its current position. Alternatively, use data-bs-slide-to to pass a raw slide index to the carousel data-bs-slide-to="2", which shifts the slide position to a particular index beginning with 0.
The data-bs-ride="carousel" attribute is used to mark a carousel as animating starting at page load. If you don’t use data-bs-ride="carousel" to initialize your carousel, you have to initialize it yourself. It cannot be used in combination with (redundant and unnecessary) explicit JavaScript initialization of the same carousel.
As options can be passed via data attributes or JavaScript, you can append an option name to data-bs-, as in data-bs-animation="{value}". Make sure to change the case type of the option name from “camelCase” to “kebab-case” when passing the options via data attributes. For example, use data-bs-custom-class="beautifier" instead of data-bs-customClass="beautifier".
As of Bootstrap 5.2.0, all components support an experimental reserved data attribute data-bs-config that can house simple component configuration as a JSON string. When an element has data-bs-config='{"delay":0, "title":123}' and data-bs-title="456" attributes, the final title value will be 456 and the separate data attributes will override values given on data-bs-config. In addition, existing data attributes are able to house JSON values like data-bs-delay='{"show":0,"hide":150}'.
Name
Type
Default
Description
interval
number
5000
The amount of time to delay between automatically cycling an item.
keyboard
boolean
true
Whether the carousel should react to keyboard events.
pause
string, boolean
"hover"
If set to "hover", pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave. If set to false, hovering over the carousel won’t pause it. On touch-enabled devices, when set to "hover", cycling will pause on touchend (once the user finished interacting with the carousel) for two intervals, before automatically resuming. This is in addition to the mouse behavior.
ride
string, boolean
false
If set to true, autoplays the carousel after the user manually cycles the first item. If set to "carousel", autoplays the carousel on load.
touch
boolean
true
Whether the carousel should support left/right swipe interactions on touchscreen devices.
wrap
boolean
true
Whether the carousel should cycle continuously or have hard stops.
indicator
string
.carousel-indicators
Specified the carousel indicator of the carousel. NEW
Methods
Asynchronous methods and transitions
All API methods are asynchronous and start a transition. They return to the caller as soon as the transition is started but before it ends. In addition, a method call on a transitioning component will be ignored.
You can create a carousel instance with the carousel constructor, for example, to initialize with additional options and start cycling through items:
constmyCarouselElement=document.querySelector('#myCarousel')constcarousel=newbootstrap.Carousel(myCarouselElement,{interval:2000,
@@ -240,8 +240,8 @@
myCarousel.addEventListener('slide.bs.carousel',event=>{// do something...
})
-
All form controls should have labels, and this includes radio buttons, checkboxes, and switches. In most cases, this is done by using the <label> HTML element.
When a label can’t be used, it’s necessary to add an attribute directly to the input component. In this case, you can apply the additional attribute (e.g. aria-label, aria-labelledby, title) on the element.
All form controls should have labels, and this includes radio buttons, checkboxes, and switches. In most cases, this is done by using the <label> HTML element.
When a label can’t be used, it’s necessary to add an attribute directly to the input component. In this case, you can apply the additional attribute (e.g. aria-label, aria-labelledby, title) on the element.
Be sure to add aria-expanded to the control element. This attribute explicitly conveys the current state of the collapsible element tied to the control to screen readers and similar assistive technologies. If the collapsible element is closed by default, the attribute on the control element should have a value of aria-expanded="false". If you’ve set the collapsible element to be open by default using the show class, set aria-expanded="true" on the control instead. The plugin will automatically toggle this attribute on the control based on whether or not the collapsible element has been opened or closed (via JavaScript, or because the user triggered another control element also tied to the same collapsible element). If the control element’s HTML element is not a button (e.g., an <a> or <div>), the attribute role="button" should be added to the element.
If your control element is targeting a single collapsible element – i.e. the data-bs-target attribute is pointing to an id selector – you should add the aria-controls attribute to the control element, containing the id of the collapsible element. Modern screen readers and similar assistive technologies make use of this attribute to provide users with additional shortcuts to navigate directly to the collapsible element itself.
Note that Bootstrap’s current implementation does not cover the various optional keyboard interactions described in the ARIA Authoring Practices Guide accordion pattern - you will need to include these yourself with custom JavaScript.
The collapse plugin utilizes a few classes to handle the heavy lifting:
.collapse hides the content
.collapse.show shows the content
.collapsing is added when the transition starts, and removed when it finishes
These classes can be found in _transitions.scss.
Via data attributes
Just add data-bs-toggle="collapse" and a data-bs-target to the element to automatically assign control of one or more collapsible elements. The data-bs-target attribute accepts a CSS selector to apply the collapse to. Be sure to add the class collapse to the collapsible element. If you’d like it to default open, add the additional class show.
To add accordion-like group management to a collapsible area, add the data attribute data-bs-parent="#selector". Refer to the accordion page for more information.
Be sure to add aria-expanded to the control element. This attribute explicitly conveys the current state of the collapsible element tied to the control to screen readers and similar assistive technologies. If the collapsible element is closed by default, the attribute on the control element should have a value of aria-expanded="false". If you’ve set the collapsible element to be open by default using the show class, set aria-expanded="true" on the control instead. The plugin will automatically toggle this attribute on the control based on whether or not the collapsible element has been opened or closed (via JavaScript, or because the user triggered another control element also tied to the same collapsible element). If the control element’s HTML element is not a button (e.g., an <a> or <div>), the attribute role="button" should be added to the element.
If your control element is targeting a single collapsible element – i.e. the data-bs-target attribute is pointing to an id selector – you should add the aria-controls attribute to the control element, containing the id of the collapsible element. Modern screen readers and similar assistive technologies make use of this attribute to provide users with additional shortcuts to navigate directly to the collapsible element itself.
Note that Bootstrap’s current implementation does not cover the various optional keyboard interactions described in the ARIA Authoring Practices Guide accordion pattern - you will need to include these yourself with custom JavaScript.
The collapse plugin utilizes a few classes to handle the heavy lifting:
.collapse hides the content
.collapse.show shows the content
.collapsing is added when the transition starts, and removed when it finishes
These classes can be found in _transitions.scss.
Via data attributes
Just add data-bs-toggle="collapse" and a data-bs-target to the element to automatically assign control of one or more collapsible elements. The data-bs-target attribute accepts a CSS selector to apply the collapse to. Be sure to add the class collapse to the collapsible element. If you’d like it to default open, add the additional class show.
To add accordion-like group management to a collapsible area, add the data attribute data-bs-parent="#selector". Refer to the accordion page for more information.
As options can be passed via data attributes or JavaScript, you can append an option name to data-bs-, as in data-bs-animation="{value}". Make sure to change the case type of the option name from “camelCase” to “kebab-case” when passing the options via data attributes. For example, use data-bs-custom-class="beautifier" instead of data-bs-customClass="beautifier".
As of Bootstrap 5.2.0, all components support an experimental reserved data attribute data-bs-config that can house simple component configuration as a JSON string. When an element has data-bs-config='{"delay":0, "title":123}' and data-bs-title="456" attributes, the final title value will be 456 and the separate data attributes will override values given on data-bs-config. In addition, existing data attributes are able to house JSON values like data-bs-delay='{"show":0,"hide":150}'.
Name
Type
Default
Description
parent
selector, jQuery object, DOM element
false
If parent is provided, then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior - this is dependent on the card class). The attribute has to be set on the target collapsible area.
toggle
boolean
true
Toggles the collapsible element on invocation
Methods
Asynchronous methods and transitions
All API methods are asynchronous and start a transition. They return to the caller as soon as the transition is started but before it ends. In addition, a method call on a transitioning component will be ignored.
Activates your content as a collapsible element. Accepts an optional options object.
You can create a collapse instance with the constructor, for example:
constbsCollapse=newbootstrap.Collapse('#myCollapse',{toggle:false
@@ -57,8 +57,8 @@
myCollapsible.addEventListener('hidden.bs.collapse',event=>{// do something...
})
-
true - the dropdown will be closed by clicking outside or inside the dropdown menu.
false - the dropdown will be closed by clicking the toggle button and manually calling hide or toggle method. (Also will not be closed by pressing esc key)
inside - the dropdown will be closed (only) by clicking inside the dropdown menu.
outside - the dropdown will be closed (only) by clicking outside the dropdown menu.
Note: the dropdown can always be closed with the ESC key.
Via data attributes or JavaScript, the dropdown plugin toggles hidden content (dropdown menus) by toggling the .show class on the parent .dropdown-menu. The data-bs-toggle="dropdown" attribute is relied on for closing dropdown menus at an application level, so it’s a good idea to always use it.
On touch-enabled devices, opening a dropdown adds empty mouseover handlers to the immediate children of the <body> element. This admittedly ugly hack is necessary to work around a quirk in iOS’ event delegation, which would otherwise prevent a tap anywhere outside of the dropdown from triggering the code that closes the dropdown. Once the dropdown is closed, these additional empty mouseover handlers are removed.
Via data attributes
Add data-bs-toggle="dropdown" to a link or button to toggle a dropdown.
<divclass="dropdown">
+</div>
Below is the autoClose options:
true - the dropdown will be closed by clicking outside or inside the dropdown menu.
false - the dropdown will be closed by clicking the toggle button and manually calling hide or toggle method. (Also will not be closed by pressing esc key)
inside - the dropdown will be closed (only) by clicking inside the dropdown menu.
outside - the dropdown will be closed (only) by clicking outside the dropdown menu.
Note: the dropdown can always be closed with the ESC key.
Via data attributes or JavaScript, the dropdown plugin toggles hidden content (dropdown menus) by toggling the .show class on the parent .dropdown-menu. The data-bs-toggle="dropdown" attribute is relied on for closing dropdown menus at an application level, so it’s a good idea to always use it.
On touch-enabled devices, opening a dropdown adds empty mouseover handlers to the immediate children of the <body> element. This admittedly ugly hack is necessary to work around a quirk in iOS’ event delegation, which would otherwise prevent a tap anywhere outside of the dropdown from triggering the code that closes the dropdown. Once the dropdown is closed, these additional empty mouseover handlers are removed.
Via data attributes
Add data-bs-toggle="dropdown" to a link or button to toggle a dropdown.
Ensure that all form controls have an appropriate accessible name so that their purpose can be conveyed to users of assistive technologies. The simplest way to achieve this is to use a <label> element, or—in the case of buttons—to include sufficiently descriptive text as part of the <button>...</button> content.
For situations where it’s not possible to include a visible <label> or appropriate text content, there are alternative ways of still providing an accessible name, such as:
<label> elements hidden using the .visually-hidden class
Pointing to an existing element that can act as a label using aria-labelledby
Providing a title attribute
Explicitly setting the accessible name on an element using aria-label
If none of these are present, assistive technologies may resort to using the placeholder attribute as a fallback for the accessible name on <input> and <textarea> elements. The examples in this section provide a few suggested, case-specific approaches.
While using visually hidden content (.visually-hidden, aria-label, and even placeholder content, which disappears once a form field has content) will benefit assistive technology users, a lack of visible label text may still be problematic for certain users. Some form of visible label is generally the best approach, both for accessibility and usability.
Ensure that all form controls have an appropriate accessible name so that their purpose can be conveyed to users of assistive technologies. The simplest way to achieve this is to use a <label> element, or—in the case of buttons—to include sufficiently descriptive text as part of the <button>...</button> content.
For situations where it’s not possible to include a visible <label> or appropriate text content, there are alternative ways of still providing an accessible name, such as:
<label> elements hidden using the .visually-hidden class
Pointing to an existing element that can act as a label using aria-labelledby
Providing a title attribute
Explicitly setting the accessible name on an element using aria-label
If none of these are present, assistive technologies may resort to using the placeholder attribute as a fallback for the accessible name on <input> and <textarea> elements. The examples in this section provide a few suggested, case-specific approaches.
While using visually hidden content (.visually-hidden, aria-label, and even placeholder content, which disappears once a form field has content) will benefit assistive technology users, a lack of visible label text may still be problematic for certain users. Some form of visible label is generally the best approach, both for accessibility and usability.
Screen readers will have trouble with your forms if you don’t include a label for every input. For these input groups, ensure that any additional label or functionality is conveyed to assistive technologies.
The exact technique to be used (<label> elements hidden using the .visually-hidden class, or use of the aria-label and aria-labelledby attributes, possibly in combination with aria-describedby) and what additional information will need to be conveyed will vary depending on the exact type of interface widget you’re implementing. The examples in this section provide a few suggested, case-specific approaches.
Screen readers will have trouble with your forms if you don’t include a label for every input. For these input groups, ensure that any additional label or functionality is conveyed to assistive technologies.
The exact technique to be used (<label> elements hidden using the .visually-hidden class, or use of the aria-label and aria-labelledby attributes, possibly in combination with aria-describedby) and what additional information will need to be conveyed will vary depending on the exact type of interface widget you’re implementing. The examples in this section provide a few suggested, case-specific approaches.
Some placeholder content in a paragraph relating to "Home". And some more content, used here just to pad out and fill this tab panel. In production, you would obviously have more real content here. And not just text. It could be anything, really. Text, images, forms.
Some placeholder content in a paragraph relating to "Profile". And some more content, used here just to pad out and fill this tab panel. In production, you would obviously have more real content here. And not just text. It could be anything, really. Text, images, forms.
Some placeholder content in a paragraph relating to "Messages". And some more content, used here just to pad out and fill this tab panel. In production, you would obviously have more real content here. And not just text. It could be anything, really. Text, images, forms.
Some placeholder content in a paragraph relating to "Settings". And some more content, used here just to pad out and fill this tab panel. In production, you would obviously have more real content here. And not just text. It could be anything, really. Text, images, forms.
The $modal-fade-transform variable determines the transform state of .modal-dialog before the modal fade-in animation, the $modal-show-transform variable determines the transform of .modal-dialog at the end of the modal fade-in animation.
If you want for example a zoom-in animation, you can set $modal-fade-transform: scale(.8).
Remove animation
For modals that simply appear rather than fade in to view, remove the .fade class from your modal markup.
If the height of a modal changes while it is open, you should call myModal.handleUpdate() to readjust the modal’s position in case a scrollbar appears.
Embedding YouTube videos
Embedding YouTube videos in modals requires additional JavaScript not in Bootstrap to automatically stop playback and more. See this helpful Stack Overflow post for more information.
Be sure to add aria-labelledby="id...", referencing the modal title, to .modal. Additionally, you may give a description of your modal dialog with aria-describedby="id..." on .modal. Note that you don’t need to add role="dialog" since we already add it via JavaScript.
The WAI-ARIA authoring practices can help you set the initial focus on the most relevant element, based on your modal content.
The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also overrides default scrolling behavior and generates a .modal-backdrop to provide a click area for dismissing shown modals when clicking outside the modal.
Use data attributes
Toggle
Activate a modal without writing JavaScript. Set data-bs-toggle="modal" on a controller element, like a button, along with a data-bs-target="#foo" or href="#foo" to target a specific modal to toggle.
If the height of a modal changes while it is open, you should call myModal.handleUpdate() to readjust the modal’s position in case a scrollbar appears.
Embedding YouTube videos
Embedding YouTube videos in modals requires additional JavaScript not in Bootstrap to automatically stop playback and more. See this helpful Stack Overflow post for more information.
Be sure to add aria-labelledby="id...", referencing the modal title, to .modal. Additionally, you may give a description of your modal dialog with aria-describedby="id..." on .modal. Note that you don’t need to add role="dialog" since we already add it via JavaScript.
The WAI-ARIA authoring practices can help you set the initial focus on the most relevant element, based on your modal content.
The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also overrides default scrolling behavior and generates a .modal-backdrop to provide a click area for dismissing shown modals when clicking outside the modal.
Use data attributes
Toggle
Activate a modal without writing JavaScript. Set data-bs-toggle="modal" on a controller element, like a button, along with a data-bs-target="#foo" or href="#foo" to target a specific modal to toggle.
+
diff --git a/components/offcanvas/index.html b/components/offcanvas/index.html
index 3473a17..935fef3 100644
--- a/components/offcanvas/index.html
+++ b/components/offcanvas/index.html
@@ -132,7 +132,7 @@
This is content within an <code>.offcanvas-lg</code>.
</p>
</div>
-</div>
Responsive offcanvas classes are available across for each breakpoint.
.offcanvas
.offcanvas-sm
.offcanvas-md
.offcanvas-lg
.offcanvas-xl
.offcanvas-xxl
Accessibility
Since the offcanvas panel is conceptually a modal dialog, be sure to add aria-labelledby="...", referencing the offcanvas title—to .offcanvas. Note that you don’t need to add role="dialog" since we already add it via JavaScript.
The offcanvas plugin utilizes a few classes and attributes to handle the heavy lifting:
.offcanvas hides the content
.offcanvas.show shows the content
.offcanvas-start hides the offcanvas on the left
.offcanvas-end hides the offcanvas on the right
.offcanvas-top hides the offcanvas on the top
.offcanvas-bottom hides the offcanvas on the bottom
Add a dismiss button with the data-bs-dismiss="offcanvas" attribute, which triggers the JavaScript functionality. Be sure to use the <button> element with it for proper behavior across all devices.
Via data attributes
Toggle
Add data-bs-toggle="offcanvas" and a data-bs-target or href to the element to automatically assign control of one offcanvas element. The data-bs-target attribute accepts a CSS selector to apply the offcanvas to. Be sure to add the class offcanvas to the offcanvas element. If you’d like it to default open, add the additional class show.
Dismiss
Dismissal can be achieved with the data attribute on a button within the offcanvas as demonstrated below:
Responsive offcanvas classes are available across for each breakpoint.
.offcanvas
.offcanvas-sm
.offcanvas-md
.offcanvas-lg
.offcanvas-xl
.offcanvas-xxl
Accessibility
Since the offcanvas panel is conceptually a modal dialog, be sure to add aria-labelledby="...", referencing the offcanvas title—to .offcanvas. Note that you don’t need to add role="dialog" since we already add it via JavaScript.
The offcanvas plugin utilizes a few classes and attributes to handle the heavy lifting:
.offcanvas hides the content
.offcanvas.show shows the content
.offcanvas-start hides the offcanvas on the left
.offcanvas-end hides the offcanvas on the right
.offcanvas-top hides the offcanvas on the top
.offcanvas-bottom hides the offcanvas on the bottom
Add a dismiss button with the data-bs-dismiss="offcanvas" attribute, which triggers the JavaScript functionality. Be sure to use the <button> element with it for proper behavior across all devices.
Via data attributes
Toggle
Add data-bs-toggle="offcanvas" and a data-bs-target or href to the element to automatically assign control of one offcanvas element. The data-bs-target attribute accepts a CSS selector to apply the offcanvas to. Be sure to add the class offcanvas to the offcanvas element. If you’d like it to default open, add the additional class show.
Dismiss
Dismissal can be achieved with the data attribute on a button within the offcanvas as demonstrated below:
If you’re using navs to provide a navigation bar, be sure to add a role="navigation" to the most logical parent container of the <ul>, or wrap a <nav> element around the whole navigation. Do not add the role to the <ul> itself, as this would prevent it from being announced as an actual list by assistive technologies.
Note that navigation bars, even if visually styled as pills with the .nav-pills class, should not be given role="tablist"``, role="tab" or role="tabpanel" attributes. These are only appropriate for dynamic tabbed interfaces, as described in the WAI ARIA Authoring Practices. The aria-current attribute is not necessary on dynamic tabbed interfaces since our JavaScript handles the selected state by adding aria-selected="true" on the active tab.
You can activate a pill navigation without writing any JavaScript by simply specifying data-bs-toggle="pill" on an element. Use these data attributes on .nav-pills.
If you’re using navs to provide a navigation bar, be sure to add a role="navigation" to the most logical parent container of the <ul>, or wrap a <nav> element around the whole navigation. Do not add the role to the <ul> itself, as this would prevent it from being announced as an actual list by assistive technologies.
Note that navigation bars, even if visually styled as pills with the .nav-pills class, should not be given role="tablist"``, role="tab" or role="tabpanel" attributes. These are only appropriate for dynamic tabbed interfaces, as described in the WAI ARIA Authoring Practices. The aria-current attribute is not necessary on dynamic tabbed interfaces since our JavaScript handles the selected state by adding aria-selected="true" on the active tab.
You can activate a pill navigation without writing any JavaScript by simply specifying data-bs-toggle="pill" on an element. Use these data attributes on .nav-pills.
Making popovers work for keyboard and assistive technology users
To allow keyboard users to activate your popovers, you should only add them to HTML elements that are traditionally keyboard-focusable and interactive (such as links or form controls). Although arbitrary HTML elements (such as <span>s) can be made focusable by adding the tabindex="0" attribute, this will add potentially annoying and confusing tab stops on non-interactive elements for keyboard users, and most assistive technologies currently do not announce the popover’s content in this situation. Additionally, do not rely solely on hover as the trigger for your popovers, as this will make them impossible to trigger for keyboard users.
While you can insert rich, structured HTML in popovers with the html option, we strongly recommend that you avoid adding an excessive amount of content. The way popovers currently work is that, once displayed, their content is tied to the trigger element with the aria-describedby attribute. As a result, the entirety of the popover’s content will be announced to assistive technology users as one long, uninterrupted stream.
Additionally, while it is possible to also include interactive controls (such as form elements or links) in your popover (by adding these elements to the allowList of allowed attributes and tags), be aware that currently the popover does not manage keyboard focus order. When a keyboard user opens a popover, focus remains on the triggering element, and as the popover usually does not immediately follow the trigger in the document’s structure, there is no guarantee that moving forward/pressing TAB will move a keyboard user into the popover itself. In short, simply adding interactive controls to a popover is likely to make these controls unreachable/unusable for keyboard users and users of assistive technologies, or at the very least make for an illogical overall focus order. In these cases, consider using a modal dialog instead.
</div>
Options
As options can be passed via data attributes or JavaScript, you can append an option name to data-bs-, as in data-bs-animation="{value}". Make sure to change the case type of the option name from “camelCase” to “kebab-case” when passing the options via data attributes. For example, use data-bs-custom-class="beautifier" instead of data-bs-customClass="beautifier".
As of Bootstrap 5.2.0, all components support an experimental reserved data attribute data-bs-config that can house simple component configuration as a JSON string. When an element has data-bs-config='{"delay":0, "title":123}' and data-bs-title="456" attributes, the final title value will be 456 and the separate data attributes will override values given on data-bs-config. In addition, existing data attributes are able to house JSON values like data-bs-delay='{"show":0,"hide":150}'.
Note that for security reasons the sanitize, sanitizeFn, and allowList options cannot be supplied using data attributes.
Name
Type
Default
Description
allowList
object
Default value
Object which contains allowed attributes and tags.
animation
boolean
true
Apply a CSS fade transition to the popover
boundary
string, element
'clippingParents'
Overflow constraint boundary of the popover (applies only to Popper’s preventOverflow modifier). By default, it’s 'clippingParents' and can accept an HTMLElement reference (via JavaScript only). For more information refer to Popper’s detectOverflow docs.
container
string, element, false
false
Appends the popover to a specific element. Example: container: 'body'. This option is particularly useful in that it allows you to position the popover in the flow of the document near the triggering element - which will prevent the popover from floating away from the triggering element during a window resize.
content
string, element, function
''
Default content value if data-bs-content attribute isn’t present. If a function is given, it will be called with its this reference set to the element that the popover is attached to.
customClass
string, function
''
Add classes to the popover when it is shown. Note that these classes will be added in addition to any classes specified in the template. To add multiple classes, separate them with spaces: 'class-1 class-2'. You can also pass a function that should return a single string containing additional class names.
delay
number, object
0
Delay showing and hiding the popover (ms)—doesn’t apply to manual trigger type. If a number is supplied, delay is applied to both hide/show. Object structure is: delay: { "show": 500, "hide": 100 }.
fallbackPlacements
string, array
['top', 'right', 'bottom', 'left']
Define fallback placements by providing a list of placements in array (in order of preference). For more information refer to Popper’s behavior docs.
html
boolean
false
Allow HTML in the popover. If true, HTML tags in the popover’s title will be rendered in the popover. If false, innerText property will be used to insert content into the DOM. Use text if you’re worried about XSS attacks.
offset
number, string, function
[0, 0]
Offset of the popover relative to its target. You can pass a string in data attributes with comma separated values like: data-bs-offset="10,20". When a function is used to determine the offset, it is called with an object containing the popper placement, the reference, and popper rects as its first argument. The triggering element DOM node is passed as the second argument. The function must return an array with two numbers: skidding, distance. For more information refer to Popper’s offset docs.
placement
string, function
'top'
How to position the popover: auto, top, bottom, left, right. When auto is specified, it will dynamically reorient the popover. When a function is used to determine the placement, it is called with the popover DOM node as its first argument and the triggering element DOM node as its second. The this context is set to the popover instance.
popperConfig
null, object, function
null
To change Bootstrap’s default Popper config, see Popper’s configuration. When a function is used to create the Popper configuration, it’s called with an object that contains the Bootstrap’s default Popper configuration. It helps you use and merge the default with your own configuration. The function must return a configuration object for Popper.
sanitize
boolean
true
Enable or disable the sanitization. If activated 'template', 'content' and 'title' options will be sanitized.
sanitizeFn
null, function
null
Here you can supply your own sanitize function. This can be useful if you prefer to use a dedicated library to perform sanitization.
selector
string, false
false
If a selector is provided, popover objects will be delegated to the specified targets. In practice, this is used to also apply popovers to dynamically added DOM elements (jQuery.on support). See this issue and an informative example.
Base HTML to use when creating the popover. The popover’s title will be injected into the .popover-inner. .popover-arrow will become the popover’s arrow. The outermost wrapper element should have the .popover class and role="popover".
title
string, element, function
''
Default title value if title attribute isn’t present. If a function is given, it will be called with its this reference set to the element that the popover is attached to.
trigger
string
'hover focus'
How popover is triggered: click, hover, focus, manual. You may pass multiple triggers; separate them with a space. 'manual' indicates that the popover will be triggered programmatically via the .popover('show'), .popover('hide') and .popover('toggle') methods; this value cannot be combined with any other trigger. 'hover' on its own will result in popovers that cannot be triggered via the keyboard, and should only be used if alternative methods for conveying the same information for keyboard users is present.
Data attributes for individual popovers
Options for individual popovers can alternatively be specified through the use of data attributes, as explained above.
Using function with popperConfig
constpopover=newbootstrap.Popover(element,{
@@ -101,8 +101,8 @@
myPopoverTrigger.addEventListener('hidden.bs.popover',()=>{// do something...
})
-
The aria-labe, aria-valuemin, and aria-valuemax are static and must be configured in the HTML. aria-valuenow is updated dynamically by the foundation when the progress value is updated in determinate progress bars.
The aria-labe, aria-valuemin, and aria-valuemax are static and must be configured in the HTML. aria-valuenow is updated dynamically by the foundation when the progress value is updated in determinate progress bars.
All form controls should have labels, and this includes radio buttons, checkboxes, and switches. In most cases, this is done by using the <label> HTML element.
When a label can’t be used, it’s necessary to add an attribute directly to the input component. In this case, you can apply the additional attribute (e.g. aria-label, aria-labelledby, title) on the element.
All form controls should have labels, and this includes radio buttons, checkboxes, and switches. In most cases, this is done by using the <label> HTML element.
When a label can’t be used, it’s necessary to add an attribute directly to the input component. In this case, you can apply the additional attribute (e.g. aria-label, aria-labelledby, title) on the element.
By default, range inputs “snap” to integer values. To change this, you can specify a step value. In the example below, we double the number of steps by using step="0.5".
By default, range inputs “snap” to integer values. To change this, you can specify a step value. In the example below, we double the number of steps by using step="0.5".
To easily add scrollspy behavior to your topbar navigation, add data-bs-spy="scroll" to the element you want to spy on (most typically this would be the <body>). Then add the data-bs-target attribute with the id or class name of the parent element of any Bootstrap .nav component.
To easily add scrollspy behavior to your topbar navigation, add data-bs-spy="scroll" to the element you want to spy on (most typically this would be the <body>). Then add the data-bs-target attribute with the id or class name of the parent element of any Bootstrap .nav component.
+
diff --git a/components/stretched-link/index.html b/components/stretched-link/index.html
index 0794474..cd00307 100644
--- a/components/stretched-link/index.html
+++ b/components/stretched-link/index.html
@@ -65,8 +65,8 @@
will only be spread over the <code>p</code>-tag, because a transform is applied to it.
</p>
</div>
-</div>
Dynamic tabbed interfaces, as described in the ARIA Authoring Practices Guide tabs pattern, require role="tablist", role="tab", role="tabpanel", and additional aria- attributes in order to convey their structure, functionality, and current state to users of assistive technologies (such as screen readers). As a best practice, we recommend using <button> elements for the tabs, as these are controls that trigger a dynamic change, rather than links that navigate to a new page or location.
In line with the ARIA Authoring Practices pattern, only the currently active tab receives keyboard focus. When the JavaScript plugin is initialized, it will set tabindex="-1" on all inactive tab controls. Once the currently active tab has focus, the cursor keys activate the previous/next tab, with the plugin changing the roving tabindex accordingly. However, note that the JavaScript plugin does not distinguish between horizontal and vertical tab lists when it comes to cursor key interactions: regardless of the tab list’s orientation, both the up and left cursor go to the previous tab, and down and right cursor go to the next tab.
In general, to facilitate keyboard navigation, it’s recommended to make the tab panels themselves focusable as well, unless the first element containing meaningful content inside the tab panel is already focusable. The JavaScript plugin does not try to handle this aspect—where appropriate, you’ll need to explicitly make your tab panels focusable by adding tabindex="0" in your markup.
The tab JavaScript plugin does not support tabbed interfaces that contain dropdown menus, as these cause both usability and accessibility issues. From a usability perspective, the fact that the currently displayed tab’s trigger element is not immediately visible (as it’s inside the closed dropdown menu) can cause confusion. From an accessibility point of view, there is currently no sensible way to map this sort of construct to a standard WAI ARIA pattern, meaning that it cannot be easily made understandable to users of assistive technologies.
You can activate a tab navigation without writing any JavaScript by simply specifying data-bs-toggle="tab" on an element. Use these data attributes on .nav-tabs.
Dynamic tabbed interfaces, as described in the ARIA Authoring Practices Guide tabs pattern, require role="tablist", role="tab", role="tabpanel", and additional aria- attributes in order to convey their structure, functionality, and current state to users of assistive technologies (such as screen readers). As a best practice, we recommend using <button> elements for the tabs, as these are controls that trigger a dynamic change, rather than links that navigate to a new page or location.
In line with the ARIA Authoring Practices pattern, only the currently active tab receives keyboard focus. When the JavaScript plugin is initialized, it will set tabindex="-1" on all inactive tab controls. Once the currently active tab has focus, the cursor keys activate the previous/next tab, with the plugin changing the roving tabindex accordingly. However, note that the JavaScript plugin does not distinguish between horizontal and vertical tab lists when it comes to cursor key interactions: regardless of the tab list’s orientation, both the up and left cursor go to the previous tab, and down and right cursor go to the next tab.
In general, to facilitate keyboard navigation, it’s recommended to make the tab panels themselves focusable as well, unless the first element containing meaningful content inside the tab panel is already focusable. The JavaScript plugin does not try to handle this aspect—where appropriate, you’ll need to explicitly make your tab panels focusable by adding tabindex="0" in your markup.
The tab JavaScript plugin does not support tabbed interfaces that contain dropdown menus, as these cause both usability and accessibility issues. From a usability perspective, the fact that the currently displayed tab’s trigger element is not immediately visible (as it’s inside the closed dropdown menu) can cause confusion. From an accessibility point of view, there is currently no sensible way to map this sort of construct to a standard WAI ARIA pattern, meaning that it cannot be easily made understandable to users of assistive technologies.
You can activate a tab navigation without writing any JavaScript by simply specifying data-bs-toggle="tab" on an element. Use these data attributes on .nav-tabs.
<!-- Nav tabs --><ulclass="nav nav-tabs"id="myTab"role="tablist"><liclass="nav-item"role="presentation"><buttonclass="nav-link active"id="home-tab"data-bs-toggle="tab"data-bs-target="#home"type="button"role="tab"aria-controls="home"aria-selected="true">Home</button>
@@ -216,8 +216,8 @@
event.target// newly activated tab
event.relatedTarget// previous active tab
})
-
Avoid using placeholder text whenever possible. Make sure any critical information is communicated either in the field label or using helper text below the field. Search fields or brief examples are the only exceptions where placeholder text is OK.
Avoid using placeholder text whenever possible. Make sure any critical information is communicated either in the field label or using helper text below the field. Search fields or brief examples are the only exceptions where placeholder text is OK.
While technically it’s possible to add focusable/actionable controls (such as additional buttons or links) in your toast, you should avoid doing this for autohiding toasts. Even if you give the toast a long delay timeout, keyboard and assistive technology users may find it difficult to reach the toast in time to take action (since toasts don’t receive focus when they are displayed). If you absolutely must have further controls, we recommend using a toast with autohide: false.
While technically it’s possible to add focusable/actionable controls (such as additional buttons or links) in your toast, you should avoid doing this for autohiding toasts. Even if you give the toast a long delay timeout, keyboard and assistive technology users may find it difficult to reach the toast in time to take action (since toasts don’t receive focus when they are displayed). If you absolutely must have further controls, we recommend using a toast with autohide: false.
Tooltip position attempts to automatically change when a parent container has overflow: auto or overflow: scroll like our .table-responsive, but still keeps the original placement’s positioning. To resolve this, set the boundary option (for the flip modifier using the popperConfig option) to any HTMLElement to override the default value, 'clippingParents', such as document.body:
consttooltip=newbootstrap.Tooltip('#example',{boundary:document.body// or document.querySelector('#boundary')
@@ -93,8 +93,8 @@
})tooltip.hide()
-
Use border-none to remove an existing border style from an element.
-This is most commonly used to remove a border style that was applied at a smaller breakpoint.
Use shadow-none to remove an existing box shadow from an element. This is most commonly used to remove a shadow that was applied at a smaller breakpoint.
All clear utilities that supports responsive at specific breakpoints, using the following format clear-{breakpoint}-{value} for xs, sm, md, lg, xl, and xxl.
For example, use clear-md-none to apply the clear-none at only medium screen sizes and above.
+
diff --git a/docs/clearfix/index.html b/docs/clearfix/index.html
index b91fefb..b51b8fe 100644
--- a/docs/clearfix/index.html
+++ b/docs/clearfix/index.html
@@ -11,8 +11,8 @@
<imgclass="float-right ..."src="path/to/image.jpg"></div><p>Maybe we can live without libraries...</p>
-
+
diff --git a/docs/columns/index.html b/docs/columns/index.html
index 640ae8f..68e2494 100644
--- a/docs/columns/index.html
+++ b/docs/columns/index.html
@@ -207,8 +207,8 @@
<p>
And yet, here you are, still persevering in reading this placeholder text, hoping for some more insights, or some hidden easter egg of content. A joke, perhaps. Unfortunately, there's none of that here.
</p>
-</div>
+
diff --git a/docs/display/index.html b/docs/display/index.html
index 948b8fb..59d5a24 100644
--- a/docs/display/index.html
+++ b/docs/display/index.html
@@ -80,8 +80,8 @@
<div class="p-5 text-bg-purple d-none d-lg-block">hide on screens smaller than lg</div>
Breakpoints
The display utility classes that apply to all breakpoints, from xs to xxl, have no breakpoint abbreviation in them. This is because those classes are applied from min-width: 0; and up, and thus are not bound by a media query. The remaining breakpoints, however, do include a breakpoint abbreviation.
As such, the classes are named using the format:
.d-{value} for xs
.d-{breakpoint}-{value} for sm, md, lg, xl, and xxl.
Where value is one of:
none
inline
inline-block
block
grid
table
table-cell
table-row
flex
inline-flex
The display values can be altered by changing the display values defined in $utilities and recompiling the SCSS.
.d-sm-none
.d-sm-inline
.d-sm-inline-block
.d-sm-block
.d-sm-grid
.d-sm-table
.d-sm-table-cell
.d-sm-table-row
.d-sm-flex
.d-sm-inline-flex
.d-md-none
.d-md-inline
.d-md-inline-block
.d-md-block
.d-md-grid
.d-md-table
.d-md-table-cell
.d-md-table-row
.d-md-flex
.d-md-inline-flex
.d-lg-none
.d-lg-inline
.d-lg-inline-block
.d-lg-block
.d-lg-grid
.d-lg-table
.d-lg-table-cell
.d-lg-table-row
.d-lg-flex
.d-lg-inline-flex
.d-xl-none
.d-xl-inline
.d-xl-inline-block
.d-xl-block
.d-xl-grid
.d-xl-table
.d-xl-table-cell
.d-xl-table-row
.d-xl-flex
.d-xl-inline-flex
.d-xxl-none
.d-xxl-inline
.d-xxl-inline-block
.d-xxl-block
.d-xxl-grid
.d-xxl-table
.d-xxl-table-cell
.d-xxl-table-row
.d-xxl-flex
.d-xxl-inline-flex
The media queries affect screen widths with the given breakpoint or larger. For example, .d-lg-none sets display: none; on lg, xl, and xxl screens.
Change the display value of elements when printing with our print display utility classes. Includes support for the same display values as our responsive .d-* utilities.
.d-print-none
.d-print-inline
.d-print-inline-block
.d-print-block
.d-print-grid
.d-print-table
.d-print-table-row
.d-print-table-cell
.d-print-flex
.d-print-inline-flex
The print and display classes can be combined.
Screen Only (Hide on print only)
Print Only (Hide on screen only)
Hide up to large on screen, but always show on print
<div class="d-print-none">Screen Only (Hide on print only)</div>
<div class="d-none d-print-block">Print Only (Hide on screen only)</div>
-<div class="d-none d-lg-block d-print-block">Hide up to large on screen, but always show on print</div>
+
diff --git a/docs/floats/index.html b/docs/floats/index.html
index e650714..4f682ec 100644
--- a/docs/floats/index.html
+++ b/docs/floats/index.html
@@ -19,8 +19,8 @@
<p>Maybe we can live without libraries, people like you and me. ...</p>
Breakpoints and media queries
Responsive variations also exist for each float value.
Here are all the support classes:
.float-start
.float-end
.float-none
.float-sm-start
.float-sm-end
.float-sm-none
.float-md-start
.float-md-end
.float-md-none
.float-lg-start
.float-lg-end
.float-lg-none
.float-xl-start
.float-xl-end
.float-xl-none
.float-xxl-start
.float-xxl-end
.float-xxl-none
Float start on viewports sized SM (small) or wider
Float start on viewports sized MD (medium) or wider
Float start on viewports sized LG (large) or wider
Float start on viewports sized XL (extra-large) or wider
<div class="float-sm-start">Float start on viewports sized SM (small) or wider</div><br>
<div class="float-md-start">Float start on viewports sized MD (medium) or wider</div><br>
<div class="float-lg-start">Float start on viewports sized LG (large) or wider</div><br>
-<div class="float-xl-start">Float start on viewports sized XL (extra-large) or wider</div><br>
In Bootstrap 5, we’ve enabled responsive font sizes by default, allowing text to scale more naturally across device and viewport sizes. Have a look at the RFS page to find out how this works.
In Bootstrap 5, we’ve enabled responsive font sizes by default, allowing text to scale more naturally across device and viewport sizes. Have a look at the RFS page to find out how this works.
+
diff --git a/docs/font-style/index.html b/docs/font-style/index.html
index 771c12c..e30b3df 100644
--- a/docs/font-style/index.html
+++ b/docs/font-style/index.html
@@ -8,8 +8,8 @@
Get StartedTokensDocsComponents
Font Style
Utilities for controlling the font style of an element.
Contents
Quickly change the font-style of text using the font style utilities.
Quick reference
Class
Properties
.fst-italic
font-style: italic;
.fst-normal
font-style: normal;
Basic usage
Italicizing text
The fst-italic utility can be used to make text italic. Likewise, the fst-normal utility can be used to display text normally — typically to reset italic text at different breakpoints.
fst-italic
The quick brown fox jumps over the lazy dog.
fst-normal
The quick brown fox jumps over the lazy dog.
<pclass="fst-italic ...">The quick brown fox ...</p><pclass="fst-normal ...">The quick brown fox ...</p>
-
+
diff --git a/docs/font-weight/index.html b/docs/font-weight/index.html
index 440f400..6812fb8 100644
--- a/docs/font-weight/index.html
+++ b/docs/font-weight/index.html
@@ -11,8 +11,8 @@
<pclass="fw-semibold ...">The quick brown fox ...</p><pclass="fw-bold ...">The quick brown fox ...</p><pclass="fw-bolder ...">The quick brown fox ...</p>
-
When making any changes to the Sass variables or maps, you’ll need to save your changes and recompile. Doing so will output a brand-new set of predefined grid classes for column widths, offsets, and ordering. Responsive visibility utilities will also be updated to use the custom breakpoints. Make sure to set grid values in px (not rem, em, or %).
When making any changes to the Sass variables or maps, you’ll need to save your changes and recompile. Doing so will output a brand-new set of predefined grid classes for column widths, offsets, and ordering. Responsive visibility utilities will also be updated to use the custom breakpoints. Make sure to set grid values in px (not rem, em, or %).
Utilities for controlling the tracking (letter spacing) of an element.
Contents
Quick reference
Class
Properties
.ls-tighter
letter-spacing: -0.05em;
.ls-tight
letter-spacing: -0.025em;
.ls-normal
letter-spacing: 0em;
.ls-wide
letter-spacing: 0.025em;
.ls-wider
letter-spacing: 0.05em;
.ls-widest
letter-spacing: 0.1em;
Usage
Setting the letter spacing
Control the letter spacing of an element using the ls-{size} utilities.
ls-tight
The quick brown fox jumps over the lazy dog.
ls-normal
The quick brown fox jumps over the lazy dog.
ls-wide
The quick brown fox jumps over the lazy dog.
<pclass="ls-tight ...">The quick brown fox ...</p><pclass="ls-normal ...">The quick brown fox ...</p><pclass="ls-wide ...">The quick brown fox ...</p>
-
+
diff --git a/docs/line-height/index.html b/docs/line-height/index.html
index e906e21..ee48649 100644
--- a/docs/line-height/index.html
+++ b/docs/line-height/index.html
@@ -12,8 +12,8 @@
kinship of all living things but I tell you Jerry at that moment, I was a marine biologist.
<pclass="lh-1 ...">So I started to walk into the water...</p><pclass="lh-base ...">So I started to walk into the water...</p><pclass="lh-lg ...">So I started to walk into the water...</p>
-
In CSS, margin properties can utilize negative values (padding cannot). These negative margins are enabled by default in FastBootstrap, but can be disabled in Sass by setting $enable-negative-margins: false.
The syntax is nearly the same as the default, positive margin utilities, but with the addition of n before the requested size by the format {property}{sides}-n{size}.
All margin utilities that supports responsive at specific breakpoints, using the following format {property}{sides}-{breakpoint}-{size} for xs, sm, md, lg, xl, and xxl.
For example, use my-md-4 to apply the my-4 utility at only medium screen sizes and above, my-3 for xs by default.
The max-w-screen-{breakpoint} classes can be used to give an element a max-width matching a specific breakpoint.
-These values are automatically derived from the SASS variable $container-max-widths. See Breakpoints section.
Use overflow-scroll to add scrollbars to an element. Unlike .overflow-auto, which only shows scrollbars if they are necessary, this utility always shows them.
This is an example of using .overflow-scroll on an element with set width and height dimensions.
<divclass="overflow-scroll">...</div>
Scrolling horizontally if needed
Use overflow-x-auto to allow horizontal scrolling if needed.
This is an example of using .overflow-x-auto on an element with set width and height dimensions.
<divclass="overflow-x-auto">...</div>
Scrolling vertically if needed
Use overflow-y-auto to allow vertical scrolling if needed.
This is an example of using .overflow-y-auto on an element with set width and height dimensions. By design, this content will vertically scroll.
Control the vertical padding of an element using the py-{size} utilities.
py-6
<divclass="py-6 ...">py-6</div>
Add padding to all sides
Control the padding on all sides of an element using the p-{size} utilities.
p-5
<divclass="p-5 ...">p-5</div>
Breakpoints
All padding utilities that supports responsive at specific breakpoints, using the following format {property}{sides}-{breakpoint}-{size} for xs, sm, md, lg, xl, and xxl.
For example, use py-md-5 to apply the py-5 utility at only medium screen sizes and above.
+
diff --git a/docs/pointer-events/index.html b/docs/pointer-events/index.html
index baf17cc..bfaecfa 100644
--- a/docs/pointer-events/index.html
+++ b/docs/pointer-events/index.html
@@ -8,8 +8,8 @@
Get StartedTokensDocsComponents
Pointer Events
Utilities for controlling whether an element responds to pointer events.
Contents
Bootstrap provides .pe-none and .pe-auto classes to prevent or add element interactions.
Quick reference
Class
Properties
.pe-none
pointer-events: none;
.pe-auto
pointer-events: auto;
The .pe-none class (and the pointer-events CSS property it sets) only prevents interactions with a pointer (mouse, stylus, touch). Links and controls with .pe-none are, by default, still focusable and actionable for keyboard users. To ensure that they are completely neutralized even for keyboard users, you may need to add further attributes such as tabindex="-1" (to prevent them from receiving keyboard focus) and aria-disabled="true" (to convey the fact they are effectively disabled to assistive technologies), and possibly use JavaScript to completely prevent them from being actionable.
If possible, the simpler solution is:
For form controls, add the disabled HTML attribute.
For links, remove the href attribute, making it a non-interactive anchor or placeholder link.
This link can be clicked (this is default behavior).
This link can not be clicked because the pointer-events property is inherited from its parent. However, this link has a pe-auto class and can be clicked.
<p><a href="#" class="pe-none" tabindex="-1" aria-disabled="true">This link</a> can not be clicked.</p>
<p><a href="#" class="pe-auto">This link</a> can be clicked (this is default behavior).</p>
-<p class="pe-none"><a href="#" tabindex="-1" aria-disabled="true">This link</a> can not be clicked because the <code>pointer-events</code> property is inherited from its parent. However, <a href="#" class="pe-auto">this link</a> has a <code>pe-auto</code> class and can be clicked.</p>
-
+<p class="pe-none"><a href="#" tabindex="-1" aria-disabled="true">This link</a> can not be clicked because the <code>pointer-events</code> property is inherited from its parent. However, <a href="#" class="pe-auto">this link</a> has a <code>pe-auto</code> class and can be clicked.</p>
+
diff --git a/docs/reboot/index.html b/docs/reboot/index.html
index f4d72e6..ad09aa2 100644
--- a/docs/reboot/index.html
+++ b/docs/reboot/index.html
@@ -94,8 +94,8 @@
<summary>Even more details</summary>
<p>Here are even more details about the details.</p>
</details>
HTML5 [hidden] attribute
HTML5 adds a new global attribute named [hidden], which is styled as display: none by default. Borrowing an idea from PureCSS, we improve upon this default by making [hidden] { display: none !important; } to help prevent its display from getting accidentally overridden.
<inputtype="text"hidden>
-
jQuery incompatibility
[hidden] is not compatible with jQuery’s $(...).hide() and $(...).show() methods. Therefore, we don’t currently especially endorse [hidden] over other techniques for managing the display of elements.
To merely toggle the visibility of an element, meaning its display is not modified and the element can still affect the flow of the document, use the .invisible class instead.
[hidden] is not compatible with jQuery’s $(...).hide() and $(...).show() methods. Therefore, we don’t currently especially endorse [hidden] over other techniques for managing the display of elements.
To merely toggle the visibility of an element, meaning its display is not modified and the element can still affect the flow of the document, use the .invisible class instead.
+
diff --git a/docs/text-align/index.html b/docs/text-align/index.html
index 8880d71..284d821 100644
--- a/docs/text-align/index.html
+++ b/docs/text-align/index.html
@@ -18,8 +18,8 @@
kinship of all living things but I tell you Jerry at that moment, I was a marine biologist.
<pclass="text-start text-md-center"> So I started to walk into the water ...
</p>
-
+
diff --git a/docs/text-decoration/index.html b/docs/text-decoration/index.html
index 1fa0266..e30fc9e 100644
--- a/docs/text-decoration/index.html
+++ b/docs/text-decoration/index.html
@@ -10,8 +10,8 @@
<pclass="text-decoration-line-through ...">The quick brown fox ...</p><pclass="text-decoration-overline ...">The quick brown fox ...</p><pclass="text-decoration-none ...">The quick brown fox ...</p>
-
Remove underline from link
Remove the link underline when mouse on <a> element using text-decoration-none.
Use text-clip to truncate the text at the limit of the content area.
The longest word in any of the major English language dictionaries is
pneumonoultramicroscopicsilicovolcanoconiosis,
a word that refers to a lung disease contracted from the inhalation of very fine silica particles, specifically from a volcano; medically, it is the same as silicosis.
Utilities for controlling whether the user can select text in an element.
Contents
Change the way in which the content is selected when the user interacts with it.
Quick reference
Class
Properties
.user-select-all
user-select: all;
.user-select-auto
user-select: auto;
.user-select-none
user-select: none;
Basic usage
Disabling text selection
Use user-select-none to prevent selecting text in an element and its children.
The quick brown fox jumps over the lazy dog.
<div class="user-select-none fw-semibold">The quick brown fox jumps over the lazy dog.</div>
Try selecting the text to see the expected behaviour
Selecting all text in one click
Use user-select-all to automatically select all the text in an element when a user clicks.
The quick brown fox jumps over the lazy dog.
<div class="user-select-all fw-semibold">The quick brown fox jumps over the lazy dog.</div>
Try selecting the text to see the expected behaviour
Using auto select behaviour
Use user-select-auto to use the default browser behavior for selecting text. Useful for undoing other classes like .user-select-none at different breakpoints.
The quick brown fox jumps over the lazy dog.
<div class="user-select-auto fw-semibold">The quick brown fox jumps over the lazy dog.</div>
Try selecting the text to see the expected behaviour
Utilities for controlling whether the user can select text in an element.
Contents
Change the way in which the content is selected when the user interacts with it.
Quick reference
Class
Properties
.user-select-all
user-select: all;
.user-select-auto
user-select: auto;
.user-select-none
user-select: none;
Basic usage
Disabling text selection
Use user-select-none to prevent selecting text in an element and its children.
The quick brown fox jumps over the lazy dog.
<div class="user-select-none fw-semibold">The quick brown fox jumps over the lazy dog.</div>
Try selecting the text to see the expected behaviour
Selecting all text in one click
Use user-select-all to automatically select all the text in an element when a user clicks.
The quick brown fox jumps over the lazy dog.
<div class="user-select-all fw-semibold">The quick brown fox jumps over the lazy dog.</div>
Try selecting the text to see the expected behaviour
Using auto select behaviour
Use user-select-auto to use the default browser behavior for selecting text. Useful for undoing other classes like .user-select-none at different breakpoints.
The quick brown fox jumps over the lazy dog.
<div class="user-select-auto fw-semibold">The quick brown fox jumps over the lazy dog.</div>
Try selecting the text to see the expected behaviour
Use these helpers to visually hide elements but keep them accessible to assistive technologies.
Contents
Quick reference
Class
Properties
.visually-hidden
-
.visually-hidden-focusable
-
Both visually-hidden and visually-hidden-focusable can also be used as mixins.
Basic usage
.visually-hidden
Use visually-hidden to hide an element, but while still allowing it to be exposed to assistive technologies (such as screen readers)
Title for screen readers
<h2 class="visually-hidden">Title for screen readers</h2>
.visually-hidden-focusable
Use .visually-hidden-focusable to visually hide an element by default, but to display it when it’s focused (e.g. by a keyboard-only user).
.visually-hidden-focusable can also be applied to a container–thanks to :focus-within, the container will be displayed when any child element of the container receives focus.
<a class="visually-hidden-focusable" href="#content">Skip to main content</a>
-<div class="visually-hidden-focusable">A container with a <a href="#">focusable element</a>.</div>
+
diff --git a/docs/word-break/index.html b/docs/word-break/index.html
index c728189..fd8a79b 100644
--- a/docs/word-break/index.html
+++ b/docs/word-break/index.html
@@ -10,8 +10,8 @@
inhalation of very fine silica particles, specifically from a volcano; medically, it is the same as silicosis.
<pclass="break-normal ...">...</p>
Break Words
Use text-break to add line breaks mid-word if needed.
The longest word in any of the major English language dictionaries is pneumonoultramicroscopicsilicovolcanoconiosis, a word that refers to a lung disease contracted from the
inhalation of very fine silica particles, specifically from a volcano; medically, it is the same as silicosis.
To handle overlapping borders within components (e.g., buttons and inputs in input groups), we use low single digit z-index values of 1, 2, and 3 for default, hover, and active states. On hover/focus/active, we bring a particular element to the forefront with a higher z-index value to show their border over the sibling elements.
To handle overlapping borders within components (e.g., buttons and inputs in input groups), we use low single digit z-index values of 1, 2, and 3 for default, hover, and active states. On hover/focus/active, we bring a particular element to the forefront with a higher z-index value to show their border over the sibling elements.
Our color system is based on a Atlassian design color foundation that designed for our components and element styles.
Contents
Bootstrap theme there are have 6 main color scheme include primary, success, danger, warning and info, these color scheme also available on our color system.
For most components and element styles, colors are applied using Atlassian design’s design tokens.
Theme colors
We use a subset of all colors to create a smaller color palette for generating color schemes.
Description
Light value
Dark value
Text
The default text color of body.
background
The default background color of body.
Secondary
Used for lighter text color or background.
Tertiary
Used for even lighter text or background.
Primary
Main theme color, used for primary actions or focus styles, and component and form active states.
-
Success
Theme color, used for positive or successful actions and information.
-
Danger
Theme color, used for errors and dangerous actions.
-
Warning
Theme color, used for non-destructive warning messages.
-
Info
Theme color, used for informative content or something in progress.
-
Light
Additional theme option for less contrasting colors.
-
Dark
Additional theme option for higher contrasting colors.
Our color system is based on a Atlassian design color foundation that designed for our components and element styles.
Contents
Bootstrap theme there are have 6 main color scheme include primary, success, danger, warning and info, these color scheme also available on our color system.
For most components and element styles, colors are applied using Atlassian design’s design tokens.
Theme colors
We use a subset of all colors to create a smaller color palette for generating color schemes.
Description
Light value
Dark value
Text
The default text color of body.
background
The default background color of body.
Secondary
Used for lighter text color or background.
Tertiary
Used for even lighter text or background.
Primary
Main theme color, used for primary actions or focus styles, and component and form active states.
-
Success
Theme color, used for positive or successful actions and information.
-
Danger
Theme color, used for errors and dangerous actions.
-
Warning
Theme color, used for non-destructive warning messages.
-
Info
Theme color, used for informative content or something in progress.
-
Light
Additional theme option for less contrasting colors.
-
Dark
Additional theme option for higher contrasting colors.
Bootstrap is developed mobile first, a strategy in which we optimize code for mobile devices first and then scale up components as necessary using CSS media queries. To ensure proper rendering and touch zooming for all devices, add the responsive viewport meta tag to your <head>.
For improved cross-browser rendering, we use Reboot to correct inconsistencies across browsers and devices while providing slightly more opinionated resets to common HTML elements.
For improved cross-browser rendering, we use Reboot to correct inconsistencies across browsers and devices while providing slightly more opinionated resets to common HTML elements.
Overview of our new Bootstrap theme, what’s different from Bootstrap.
Contents
FastBootstrap as Bootstram theme project, crafted designed new beautifully UI components and element styles for Bootstrap based on Atlassian design system language, thanks to Atlassian design.
What’s different from Bootstrap
FastBootstrap is completely built on top of Bootstrap, You can use it as a theme to replace Bootstrap, or as a standard UI component library, which is 100% compatible with Bootstrap.
FastBootstrap includes compiled CSS including all components and utility CSS with some of options enabled by default.
Compiled options:
Options
Bootstrap
FastBootstrap
$enable-shadows
Enabled
-
$enable-negative-margins
-
Enabled
CSS files
CSS files
Layout
Content
Components
Utilities
fastbootstrap.css fastbootstrap.min.css
Included
Included
Included
Included
JS files
FastBootstrap includes compiled JavaScript of all components and third-party JS library. This is not required, you can still continue using Bootstrap JS files likes bootstrap.bundle.min.js.
JS Files
Popper
fastbootstrap.js fastbootstrap.min.js
Included
How to migrate from Bootstrap
It’s very simple. You just use the fastbootstrap.min.css file instead of bootstrap.min.css on your website.
Overview of our new Bootstrap theme, what’s different from Bootstrap.
Contents
FastBootstrap as Bootstram theme project, crafted designed new beautifully UI components and element styles for Bootstrap based on Atlassian design system language, thanks to Atlassian design.
What’s different from Bootstrap
FastBootstrap is completely built on top of Bootstrap, You can use it as a theme to replace Bootstrap, or as a standard UI component library, which is 100% compatible with Bootstrap.
FastBootstrap includes compiled CSS including all components and utility CSS with some of options enabled by default.
Compiled options:
Options
Bootstrap
FastBootstrap
$enable-shadows
Enabled
-
$enable-negative-margins
-
Enabled
CSS files
CSS files
Layout
Content
Components
Utilities
fastbootstrap.css fastbootstrap.min.css
Included
Included
Included
Included
JS files
FastBootstrap includes compiled JavaScript of all components and third-party JS library. This is not required, you can still continue using Bootstrap JS files likes bootstrap.bundle.min.js.
JS Files
Popper
fastbootstrap.js fastbootstrap.min.js
Included
How to migrate from Bootstrap
It’s very simple. You just use the fastbootstrap.min.css file instead of bootstrap.min.css on your website.
Awesome Bootstrap Theme Designed with Atlassian Design
A Beautiful Free Bootstrap theme with fully responsive, powerful CSS utilities, expertly crafted components with Atlassian Design. The perfect starting point for your next project.
+
diff --git a/sitemap.xml b/sitemap.xml
index 46c6e8f..e35823d 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -1 +1 @@
-https://fastbootstrap.com/tokens/color/2023-11-24T16:33:05+08:00https://fastbootstrap.com/get-started/installation/2023-11-24T16:33:05+08:00https://fastbootstrap.com/get-started/quick-start/2023-11-24T16:33:05+08:00https://fastbootstrap.com/tokens/shadow/2023-11-24T16:33:05+08:00https://fastbootstrap.com/get-started/dark-mode/2023-11-24T16:33:05+08:00https://fastbootstrap.com/tokens/space/2023-11-24T16:33:05+08:00https://fastbootstrap.com/get-started/what-is-new/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/accordion/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/alerts/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/align-content/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/align-items/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/align-self/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/animation/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/aspect-ratio/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/avatar/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/avatar-group/2023-11-24T16:33:05+08:00https://fastbootstrap.com/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/background-color/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/badge/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/blankslates/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/border-color/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/border-opacity/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/border-radius/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/border/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/border-style/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/border-width/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/box-shadow/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/breadcrumb/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/breakpoints/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/button/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/button-group/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/card/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/carousel/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/checkbox/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/clear/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/clearfix/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/close-button/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/collapse/2023-11-24T16:33:05+08:00https://fastbootstrap.com/get-started/color/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/columns/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/containers/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/content/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/css-grid/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/display/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/dropdown/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/figures/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/flex/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/flex-direction/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/flex-grow/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/flex-shrink/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/flex-wrap/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/floating-label/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/floats/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/focus-ring/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/font-family/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/font-size/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/font-style/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/font-weight/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/form/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/gap/2023-11-24T16:33:05+08:00https://fastbootstrap.com/get-started/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/grid/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/gutters/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/height/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/visually-hidden/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/icon-link/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/images/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/input-group/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/justify-content/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/layout/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/letter-spacing/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/line-height/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/link/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/list-group/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/margin/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/max-width/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/min-width/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/modal/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/navbar/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/offcanvas/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/opacity/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/order/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/overflow/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/padding/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/pagination/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/pills/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/placeholders/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/pointer-events/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/popover/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/position/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/progress-bar/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/radio/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/range/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/reboot/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/rotate/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/scrollspy/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/select/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/spinner/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/stacks/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/stretched-link/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/switch/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/table/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/tabs/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/text-align/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/text-color/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/text-decoration/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/textfield/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/text-overflow/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/text-transform/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/toast/2023-11-24T16:33:05+08:00https://fastbootstrap.com/tokens/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/tooltip/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/user-select/2023-11-24T16:33:05+08:00https://fastbootstrap.com/components/validation/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/vertical-align/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/vertical-rule/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/visibility/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/whitespace/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/width/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/word-break/2023-11-24T16:33:05+08:00https://fastbootstrap.com/docs/z-index/2023-11-24T16:33:05+08:00
\ No newline at end of file
+https://fastbootstrap.com/tokens/color/2023-11-30T20:40:39+08:00https://fastbootstrap.com/get-started/installation/2023-11-30T20:40:39+08:00https://fastbootstrap.com/get-started/quick-start/2023-11-30T20:40:39+08:00https://fastbootstrap.com/tokens/shadow/2023-11-30T20:40:39+08:00https://fastbootstrap.com/get-started/dark-mode/2023-11-30T20:40:39+08:00https://fastbootstrap.com/tokens/space/2023-11-30T20:40:39+08:00https://fastbootstrap.com/get-started/what-is-new/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/accordion/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/alerts/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/align-content/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/align-items/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/align-self/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/animation/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/aspect-ratio/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/avatar/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/avatar-group/2023-11-30T20:40:39+08:00https://fastbootstrap.com/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/background-color/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/badge/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/blankslates/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/border-color/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/border-opacity/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/border-radius/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/border/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/border-style/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/border-width/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/box-shadow/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/breadcrumb/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/breakpoints/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/button/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/button-group/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/card/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/carousel/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/checkbox/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/clear/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/clearfix/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/close-button/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/collapse/2023-11-30T20:40:39+08:00https://fastbootstrap.com/get-started/color/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/columns/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/containers/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/content/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/css-grid/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/display/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/dropdown/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/figures/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/flex/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/flex-direction/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/flex-grow/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/flex-shrink/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/flex-wrap/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/floating-label/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/floats/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/focus-ring/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/font-family/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/font-size/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/font-style/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/font-weight/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/form/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/gap/2023-11-30T20:40:39+08:00https://fastbootstrap.com/get-started/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/grid/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/gutters/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/height/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/visually-hidden/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/icon-link/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/images/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/input-group/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/justify-content/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/layout/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/letter-spacing/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/line-height/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/link/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/list-group/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/margin/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/max-width/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/min-width/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/modal/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/navbar/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/offcanvas/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/opacity/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/order/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/overflow/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/padding/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/pagination/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/pills/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/placeholders/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/pointer-events/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/popover/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/position/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/progress-bar/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/radio/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/range/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/reboot/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/rotate/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/scrollspy/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/select/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/spinner/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/stacks/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/stretched-link/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/switch/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/table/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/tabs/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/text-align/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/text-color/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/text-decoration/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/textfield/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/text-overflow/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/text-transform/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/toast/2023-11-30T20:40:39+08:00https://fastbootstrap.com/tokens/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/tooltip/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/user-select/2023-11-30T20:40:39+08:00https://fastbootstrap.com/components/validation/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/vertical-align/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/vertical-rule/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/visibility/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/whitespace/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/width/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/word-break/2023-11-30T20:40:39+08:00https://fastbootstrap.com/docs/z-index/2023-11-30T20:40:39+08:00
\ No newline at end of file
diff --git a/tokens/color/index.html b/tokens/color/index.html
index bd00bf4..9e010ae 100644
--- a/tokens/color/index.html
+++ b/tokens/color/index.html
@@ -6,8 +6,8 @@
Color tokens use for the text, background, icon, border and link of elements.
Contents
Link tokens
Token and description
Light value
Dark value
--ds-link
--ds-link-pressed
Use for links in a default or hovered state. Add an underline for hovered states.
--ds-link-visited
Use for links in a visited state.
Text tokens
Token and description
Light value
Dark value
--ds-text
Use for primary text, such as body copy, sentence case headers, and buttons.
--ds-text-accent-lime
Use for lime text on subtlest and subtler lime accent backgrounds when there is no meaning tied to the
--ds-text-accent-lime-bolder
Use for lime text on subtle lime accent backgrounds when there is no meaning tied to the
--ds-text-accent-red
Use for red text on subtlest and subtler red accent backgrounds when there is no meaning tied to the
--ds-text-accent-red-bolder
Use for red text on subtle red accent backgrounds when there is no meaning tied to the
--ds-text-accent-orange
Use for orange text on subtlest and subtler orange accent backgrounds when there is no meaning tied to the
--ds-text-accent-orange-bolder
Use for orange text on subtle orange accent backgrounds when there is no meaning tied to the
--ds-text-accent-yellow
Use for yellow text on subtlest and subtler yellow accent backgrounds when there is no meaning tied to the
--ds-text-accent-yellow-bolder
Use for yellow text on subtle yellow accent backgrounds when there is no meaning tied to the
--ds-text-accent-green
Use for green text on subtlest and subtler green accent backgrounds when there is no meaning tied to the
--ds-text-accent-green-bolder
Use for green text on subtle green accent backgrounds when there is no meaning tied to the
--ds-text-accent-teal
Use for teal text on subtlest and subtler teal accent backgrounds when there is no meaning tied to the
--ds-text-accent-teal-bolder
Use for teal text on subtle teal accent backgrounds when there is no meaning tied to the
--ds-text-accent-blue
Use for blue text on subtlest and subtler blue accent backgrounds when there is no meaning tied to the
--ds-text-accent-blue-bolder
Use for blue text on subtle blue accent backgrounds when there is no meaning tied to the
--ds-text-accent-purple
Use for purple text on subtlest and subtler purple accent backgrounds when there is no meaning tied to the
--ds-text-accent-purple-bolder
Use for purple text on subtle purple accent backgrounds when there is no meaning tied to the
--ds-text-accent-magenta
Use for magenta text on subtlest and subtler magenta accent backgrounds when there is no meaning tied to the
--ds-text-accent-magenta-bolder
Use for magenta text on subtle magenta accent backgrounds when there is no meaning tied to the
--ds-text-accent-gray
Use for text on non-bold gray accent backgrounds, such as colored tags.
--ds-text-accent-gray-bolder
Use for text and icons on gray subtle accent backgrounds.
--ds-text-disabled
Use for text in a disabled state.
--ds-text-inverse
Use for text on bold backgrounds.
--ds-text-selected
Use for text in selected or opened states, such as tabs and dropdown buttons.
--ds-text-brand
Use for text that reinforces our brand.
--ds-text-danger
Use for critical text, such as input field error messaging.
--ds-text-warning
Use for text to emphasize caution, such as in moved lozenges.
--ds-text-warning-inverse
Use for text when on bold warning backgrounds.
--ds-text-success
Use for text to communicate a favorable outcome, such as input field success messaging.
--ds-text-discovery
Use for text to emphasize change or something new, such as in new lozenges.
--ds-text-information
Use for informative text or to communicate something is in progress, such as in-progress lozenges.
--ds-text-subtlest
Use for tertiary text, such as meta-data, breadcrumbs, input field placeholder and helper text.
--ds-text-subtle
Use for secondary text, such as navigation, subtle button links, input field labels, and all caps subheadings.
Background tokens
Token and description
Light value
Dark value
--ds-background-accent-lime-subtlest
--ds-background-accent-lime-subtlest-hovered
--ds-background-accent-lime-subtlest-pressed
Use for for backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-lime-subtler
--ds-background-accent-lime-subtler-hovered
--ds-background-accent-lime-subtler-pressed
Use for for backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-lime-subtle
--ds-background-accent-lime-subtle-hovered
--ds-background-accent-lime-subtle-pressed
Use for vibrant for backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-lime-bolder
--ds-background-accent-lime-bolder-hovered
--ds-background-accent-lime-bolder-pressed
Use for for backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-red-subtlest
--ds-background-accent-red-subtlest-hovered
--ds-background-accent-red-subtlest-pressed
Use for red backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-red-subtler
--ds-background-accent-red-subtler-hovered
--ds-background-accent-red-subtler-pressed
Use for red backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-red-subtle
--ds-background-accent-red-subtle-hovered
--ds-background-accent-red-subtle-pressed
Use for vibrant red backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-red-bolder
--ds-background-accent-red-bolder-hovered
--ds-background-accent-red-bolder-pressed
Use for red backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-orange-subtlest
--ds-background-accent-orange-subtlest-hovered
--ds-background-accent-orange-subtlest-pressed
Use for orange backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-orange-subtler
--ds-background-accent-orange-subtler-hovered
--ds-background-accent-orange-subtler-pressed
Use for orange backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-orange-subtle
--ds-background-accent-orange-subtle-hovered
--ds-background-accent-orange-subtle-pressed
Use for vibrant orange backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-orange-bolder
--ds-background-accent-orange-bolder-hovered
--ds-background-accent-orange-bolder-pressed
Use for orange backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-yellow-subtlest
--ds-background-accent-yellow-subtlest-hovered
--ds-background-accent-yellow-subtlest-pressed
--ds-background-accent-yellow-subtler
--ds-background-accent-yellow-subtler-hovered
--ds-background-accent-yellow-subtler-pressed
Use for yellow backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-yellow-subtle
--ds-background-accent-yellow-subtle-hovered
--ds-background-accent-yellow-subtle-pressed
Use for vibrant yellow backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-yellow-bolder
--ds-background-accent-yellow-bolder-hovered
--ds-background-accent-yellow-bolder-pressed
Use for yellow backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-green-subtlest
--ds-background-accent-green-subtlest-hovered
--ds-background-accent-green-subtlest-pressed
Use for green backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-green-subtler
--ds-background-accent-green-subtler-hovered
--ds-background-accent-green-subtler-pressed
Use for green backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-green-subtle
--ds-background-accent-green-subtle-hovered
--ds-background-accent-green-subtle-pressed
Use for vibrant green backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-green-bolder
--ds-background-accent-green-bolder-hovered
--ds-background-accent-green-bolder-pressed
Use for green backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-teal-subtlest
--ds-background-accent-teal-subtlest-hovered
--ds-background-accent-teal-subtlest-pressed
Use for teal backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-teal-subtler
--ds-background-accent-teal-subtler-hovered
--ds-background-accent-teal-subtler-pressed
Use for teal backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-teal-subtle
--ds-background-accent-teal-subtle-hovered
--ds-background-accent-teal-subtle-pressed
Use for vibrant teal backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-teal-bolder
--ds-background-accent-teal-bolder-hovered
--ds-background-accent-teal-bolder-pressed
Use for teal backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-blue-subtlest
--ds-background-accent-blue-subtlest-hovered
--ds-background-accent-blue-subtlest-pressed
Use for blue backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-blue-subtler
--ds-background-accent-blue-subtler-hovered
--ds-background-accent-blue-subtler-pressed
Use for blue backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-blue-subtle
--ds-background-accent-blue-subtle-hovered
--ds-background-accent-blue-subtle-pressed
Use for vibrant blue backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-blue-bolder
--ds-background-accent-blue-bolder-hovered
--ds-background-accent-blue-bolder-pressed
Use for blue backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-purple-subtlest
--ds-background-accent-purple-subtlest-hovered
--ds-background-accent-purple-subtlest-pressed
Use for purple backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-purple-subtler
--ds-background-accent-purple-subtler-hovered
--ds-background-accent-purple-subtler-pressed
Use for purple backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-purple-subtle
--ds-background-accent-purple-subtle-hovered
--ds-background-accent-purple-subtle-pressed
Use for vibrant purple backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-purple-bolder
--ds-background-accent-purple-bolder-hovered
--ds-background-accent-purple-bolder-pressed
Use for purple backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-magenta-subtlest
--ds-background-accent-magenta-subtlest-hovered
--ds-background-accent-magenta-subtlest-pressed
Use for magenta backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-magenta-subtler
--ds-background-accent-magenta-subtler-hovered
--ds-background-accent-magenta-subtler-pressed
Use for magenta backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-magenta-subtle
--ds-background-accent-magenta-subtle-hovered
--ds-background-accent-magenta-subtle-pressed
Use for vibrant magenta backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-magenta-bolder
--ds-background-accent-magenta-bolder-hovered
--ds-background-accent-magenta-bolder-pressed
Use for magenta backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-gray-subtlest
--ds-background-accent-gray-subtlest-hovered
--ds-background-accent-gray-subtlest-pressed
Use for gray backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-gray-subtler
--ds-background-accent-gray-subtler-hovered
--ds-background-accent-gray-subtler-pressed
Use for gray backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-gray-subtle
--ds-background-accent-gray-subtle-hovered
--ds-background-accent-gray-subtle-pressed
Use for vibrant gray backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-gray-bolder
--ds-background-accent-gray-bolder-hovered
--ds-background-accent-gray-bolder-pressed
Use for gray backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-disabled
Use for backgrounds of elements in a disabled state.
--ds-background-input
--ds-background-input-hovered
--ds-background-input-pressed
Use for background of form UI elements, such as text fields, checkboxes, and radio buttons.
--ds-background-inverse-subtle
--ds-background-inverse-subtle-hovered
--ds-background-inverse-subtle-pressed
Use for backgrounds of elements on a bold background, such as in the buttons on spotlight cards.
--ds-background-neutral
--ds-background-neutral-hovered
--ds-background-neutral-pressed
The default background for neutral elements, such as default buttons.
--ds-background-neutral-subtle
--ds-background-neutral-subtle-hovered
--ds-background-neutral-subtle-pressed
Use for the background of elements that appear to have no background in a resting state, such as subtle buttons and menu items.
--ds-background-neutral-bold
--ds-background-neutral-bold-hovered
--ds-background-neutral-bold-pressed
A vibrant background option for neutral UI elements, such as announcement banners.
--ds-background-selected
--ds-background-selected-hovered
--ds-background-selected-pressed
Use for the background of elements in a selected state, such as in opened dropdown buttons.
--ds-background-selected-bold
--ds-background-selected-bold-hovered
--ds-background-selected-bold-pressed
Use for the backgrounds of elements in a selected state, such as checkboxes and radio buttons.
--ds-background-brand-subtlest
--ds-background-brand-subtlest-hovered
--ds-background-brand-subtlest-pressed
Use for the background of elements used to reinforce our brand, but with less emphasis.
--ds-background-brand-bold
--ds-background-brand-bold-hovered
--ds-background-brand-bold-pressed
Use for the background of elements used to reinforce our brand, but with more emphasis.
--ds-background-brand-boldest
--ds-background-brand-boldest-hovered
--ds-background-brand-boldest-pressed
Use for the background of elements used to reinforce our brand, that need to stand out a lot.
--ds-background-danger
--ds-background-danger-hovered
--ds-background-danger-pressed
Use for backgrounds communicating critical information, such in error section messages.
--ds-background-danger-bold
--ds-background-danger-bold-hovered
--ds-background-danger-bold-pressed
A vibrant background option for communicating critical information, such as in danger buttons and error banners.
--ds-background-warning
--ds-background-warning-hovered
--ds-background-warning-pressed
Use for backgrounds communicating caution, such as in warning section messages.
--ds-background-warning-bold
--ds-background-warning-bold-hovered
--ds-background-warning-bold-pressed
A vibrant background option for communicating caution, such as in warning buttons and warning banners.
--ds-background-success
--ds-background-success-hovered
--ds-background-success-pressed
Use for backgrounds communicating a favorable outcome, such as in success section messages.
--ds-background-success-bold
--ds-background-success-bold-hovered
--ds-background-success-bold-pressed
A vibrant background option for communicating a favorable outcome, such as in checked toggles.
--ds-background-discovery
--ds-background-discovery-hovered
--ds-background-discovery-pressed
Use for backgrounds communicating change or something new, such as in discovery section messages.
--ds-background-discovery-bold
--ds-background-discovery-bold-hovered
--ds-background-discovery-bold-pressed
A vibrant background option communicating change or something new, such as in onboarding spotlights.
--ds-background-information
--ds-background-information-hovered
--ds-background-information-pressed
Use for backgrounds communicating information or something in-progress, such as in information section messages.
--ds-background-information-bold
--ds-background-information-bold-hovered
--ds-background-information-bold-pressed
A vibrant background option for communicating information or something in-progress.
Surface tokens
Token and description
Light value
Dark value
--ds-surface
--ds-surface-hovered
--ds-surface-pressed
Use as the primary background for the UI.
--ds-surface-overlay
--ds-surface-overlay-hovered
--ds-surface-overlay-pressed
Use for the background of elements that sit on top of they UI, such as modals, dialogs, dropdown menus, floating toolbars, and floating single-action buttons. Also use for the background of raised cards in a dragged state. Combine with shadow.overlay.
--ds-surface-raised
--ds-surface-raised-hovered
--ds-surface-raised-pressed
Use for the background of cards that can be moved, such as Jira cards on a Kanban board. Combine with shadow.raised.
--ds-surface-sunken
A secondary background for the UI commonly used for grouping items, such as Jira cards in columns.
Icon tokens
Token and description
Light value
Dark value
--ds-icon
Use for icon-only buttons, or icons paired with text
--ds-icon-accent-lime
Use for lime icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-red
Use for red icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-orange
Use for orange icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-yellow
Use for yellow icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-green
Use for green icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-teal
Use for teal icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-blue
Use for blue icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-purple
Use for purple icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-magenta
Use for magenta icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-gray
Use for icons on non-bold gray accent backgrounds, such as file type icons.
--ds-icon-disabled
Use for icons in a disabled state.
--ds-icon-inverse
Use for icons on bold backgrounds.
--ds-icon-selected
Use for icons in selected or opened states, such as those used in dropdown buttons.
--ds-icon-brand
Use for icons that reinforce our brand.
--ds-icon-danger
Use for icons communicating critical information, such as those used in error handing.
--ds-icon-warning
Use for icons communicating caution, such as those used in warning section messages.
--ds-icon-warning-inverse
Use for icons when on bold warning backgrounds.
--ds-icon-success
Use for icons communicating a favorable outcome, such as those used in success section messaged.
--ds-icon-discovery
Use for icons communicating change or something new, such as discovery section messages.
--ds-icon-information
Use for icons communicating information or something in-progress, such as information section messages.
--ds-icon-subtle
Use for icons paired with text.subtle
Border tokens
Token and description
Light value
Dark value
--ds-border
Use to visually group or separate UI elements, such as flat cards or side panel dividers.
--ds-border-accent-lime
Use for lime borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-red
Use for red borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-orange
Use for orange borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-yellow
Use for yellow borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-green
Use for green borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-teal
Use for teal borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-blue
Use for blue borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-purple
Use for purple borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-magenta
Use for magenta borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-gray
Use for borders on non-bold gray accent backgrounds.
--ds-border-disabled
Use for borders of elements in a disabled state.
--ds-border-focused
Use for focus rings of elements in a focus state.
--ds-border-input
Use for borders of form UI elements, such as text fields, checkboxes, and radio buttons.
--ds-border-inverse
Use for borders on bold backgrounds.
--ds-border-selected
Use for borders or visual indicators of elements in a selected or opened state, such as in tabs or menu items.
--ds-border-brand
Use for borders or visual indicators of elements that reinforce our brand, such as logos or primary buttons.
--ds-border-danger
Use for borders communicating critical information, such as the borders on invalid text fields.
--ds-border-warning
Use for borders communicating caution.
--ds-border-success
Use for borders communicating a favorable outcome, such as the borders on validated text fields.
--ds-border-discovery
Use for borders communicating change or something new, such as the borders in onboarding spotlights.
--ds-border-information
Use for borders communicating information or something in-progress.
--ds-border-bold
A neutral border option that passes min 3:1 contrast ratios.
Color tokens use for the text, background, icon, border and link of elements.
Contents
Link tokens
Token and description
Light value
Dark value
--ds-link
--ds-link-pressed
Use for links in a default or hovered state. Add an underline for hovered states.
--ds-link-visited
Use for links in a visited state.
Text tokens
Token and description
Light value
Dark value
--ds-text
Use for primary text, such as body copy, sentence case headers, and buttons.
--ds-text-accent-lime
Use for lime text on subtlest and subtler lime accent backgrounds when there is no meaning tied to the
--ds-text-accent-lime-bolder
Use for lime text on subtle lime accent backgrounds when there is no meaning tied to the
--ds-text-accent-red
Use for red text on subtlest and subtler red accent backgrounds when there is no meaning tied to the
--ds-text-accent-red-bolder
Use for red text on subtle red accent backgrounds when there is no meaning tied to the
--ds-text-accent-orange
Use for orange text on subtlest and subtler orange accent backgrounds when there is no meaning tied to the
--ds-text-accent-orange-bolder
Use for orange text on subtle orange accent backgrounds when there is no meaning tied to the
--ds-text-accent-yellow
Use for yellow text on subtlest and subtler yellow accent backgrounds when there is no meaning tied to the
--ds-text-accent-yellow-bolder
Use for yellow text on subtle yellow accent backgrounds when there is no meaning tied to the
--ds-text-accent-green
Use for green text on subtlest and subtler green accent backgrounds when there is no meaning tied to the
--ds-text-accent-green-bolder
Use for green text on subtle green accent backgrounds when there is no meaning tied to the
--ds-text-accent-teal
Use for teal text on subtlest and subtler teal accent backgrounds when there is no meaning tied to the
--ds-text-accent-teal-bolder
Use for teal text on subtle teal accent backgrounds when there is no meaning tied to the
--ds-text-accent-blue
Use for blue text on subtlest and subtler blue accent backgrounds when there is no meaning tied to the
--ds-text-accent-blue-bolder
Use for blue text on subtle blue accent backgrounds when there is no meaning tied to the
--ds-text-accent-purple
Use for purple text on subtlest and subtler purple accent backgrounds when there is no meaning tied to the
--ds-text-accent-purple-bolder
Use for purple text on subtle purple accent backgrounds when there is no meaning tied to the
--ds-text-accent-magenta
Use for magenta text on subtlest and subtler magenta accent backgrounds when there is no meaning tied to the
--ds-text-accent-magenta-bolder
Use for magenta text on subtle magenta accent backgrounds when there is no meaning tied to the
--ds-text-accent-gray
Use for text on non-bold gray accent backgrounds, such as colored tags.
--ds-text-accent-gray-bolder
Use for text and icons on gray subtle accent backgrounds.
--ds-text-disabled
Use for text in a disabled state.
--ds-text-inverse
Use for text on bold backgrounds.
--ds-text-selected
Use for text in selected or opened states, such as tabs and dropdown buttons.
--ds-text-brand
Use for text that reinforces our brand.
--ds-text-danger
Use for critical text, such as input field error messaging.
--ds-text-warning
Use for text to emphasize caution, such as in moved lozenges.
--ds-text-warning-inverse
Use for text when on bold warning backgrounds.
--ds-text-success
Use for text to communicate a favorable outcome, such as input field success messaging.
--ds-text-discovery
Use for text to emphasize change or something new, such as in new lozenges.
--ds-text-information
Use for informative text or to communicate something is in progress, such as in-progress lozenges.
--ds-text-subtlest
Use for tertiary text, such as meta-data, breadcrumbs, input field placeholder and helper text.
--ds-text-subtle
Use for secondary text, such as navigation, subtle button links, input field labels, and all caps subheadings.
Background tokens
Token and description
Light value
Dark value
--ds-background-accent-lime-subtlest
--ds-background-accent-lime-subtlest-hovered
--ds-background-accent-lime-subtlest-pressed
Use for for backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-lime-subtler
--ds-background-accent-lime-subtler-hovered
--ds-background-accent-lime-subtler-pressed
Use for for backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-lime-subtle
--ds-background-accent-lime-subtle-hovered
--ds-background-accent-lime-subtle-pressed
Use for vibrant for backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-lime-bolder
--ds-background-accent-lime-bolder-hovered
--ds-background-accent-lime-bolder-pressed
Use for for backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-red-subtlest
--ds-background-accent-red-subtlest-hovered
--ds-background-accent-red-subtlest-pressed
Use for red backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-red-subtler
--ds-background-accent-red-subtler-hovered
--ds-background-accent-red-subtler-pressed
Use for red backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-red-subtle
--ds-background-accent-red-subtle-hovered
--ds-background-accent-red-subtle-pressed
Use for vibrant red backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-red-bolder
--ds-background-accent-red-bolder-hovered
--ds-background-accent-red-bolder-pressed
Use for red backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-orange-subtlest
--ds-background-accent-orange-subtlest-hovered
--ds-background-accent-orange-subtlest-pressed
Use for orange backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-orange-subtler
--ds-background-accent-orange-subtler-hovered
--ds-background-accent-orange-subtler-pressed
Use for orange backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-orange-subtle
--ds-background-accent-orange-subtle-hovered
--ds-background-accent-orange-subtle-pressed
Use for vibrant orange backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-orange-bolder
--ds-background-accent-orange-bolder-hovered
--ds-background-accent-orange-bolder-pressed
Use for orange backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-yellow-subtlest
--ds-background-accent-yellow-subtlest-hovered
--ds-background-accent-yellow-subtlest-pressed
--ds-background-accent-yellow-subtler
--ds-background-accent-yellow-subtler-hovered
--ds-background-accent-yellow-subtler-pressed
Use for yellow backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-yellow-subtle
--ds-background-accent-yellow-subtle-hovered
--ds-background-accent-yellow-subtle-pressed
Use for vibrant yellow backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-yellow-bolder
--ds-background-accent-yellow-bolder-hovered
--ds-background-accent-yellow-bolder-pressed
Use for yellow backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-green-subtlest
--ds-background-accent-green-subtlest-hovered
--ds-background-accent-green-subtlest-pressed
Use for green backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-green-subtler
--ds-background-accent-green-subtler-hovered
--ds-background-accent-green-subtler-pressed
Use for green backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-green-subtle
--ds-background-accent-green-subtle-hovered
--ds-background-accent-green-subtle-pressed
Use for vibrant green backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-green-bolder
--ds-background-accent-green-bolder-hovered
--ds-background-accent-green-bolder-pressed
Use for green backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-teal-subtlest
--ds-background-accent-teal-subtlest-hovered
--ds-background-accent-teal-subtlest-pressed
Use for teal backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-teal-subtler
--ds-background-accent-teal-subtler-hovered
--ds-background-accent-teal-subtler-pressed
Use for teal backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-teal-subtle
--ds-background-accent-teal-subtle-hovered
--ds-background-accent-teal-subtle-pressed
Use for vibrant teal backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-teal-bolder
--ds-background-accent-teal-bolder-hovered
--ds-background-accent-teal-bolder-pressed
Use for teal backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-blue-subtlest
--ds-background-accent-blue-subtlest-hovered
--ds-background-accent-blue-subtlest-pressed
Use for blue backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-blue-subtler
--ds-background-accent-blue-subtler-hovered
--ds-background-accent-blue-subtler-pressed
Use for blue backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-blue-subtle
--ds-background-accent-blue-subtle-hovered
--ds-background-accent-blue-subtle-pressed
Use for vibrant blue backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-blue-bolder
--ds-background-accent-blue-bolder-hovered
--ds-background-accent-blue-bolder-pressed
Use for blue backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-purple-subtlest
--ds-background-accent-purple-subtlest-hovered
--ds-background-accent-purple-subtlest-pressed
Use for purple backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-purple-subtler
--ds-background-accent-purple-subtler-hovered
--ds-background-accent-purple-subtler-pressed
Use for purple backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-purple-subtle
--ds-background-accent-purple-subtle-hovered
--ds-background-accent-purple-subtle-pressed
Use for vibrant purple backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-purple-bolder
--ds-background-accent-purple-bolder-hovered
--ds-background-accent-purple-bolder-pressed
Use for purple backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-magenta-subtlest
--ds-background-accent-magenta-subtlest-hovered
--ds-background-accent-magenta-subtlest-pressed
Use for magenta backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-magenta-subtler
--ds-background-accent-magenta-subtler-hovered
--ds-background-accent-magenta-subtler-pressed
Use for magenta backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-magenta-subtle
--ds-background-accent-magenta-subtle-hovered
--ds-background-accent-magenta-subtle-pressed
Use for vibrant magenta backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-magenta-bolder
--ds-background-accent-magenta-bolder-hovered
--ds-background-accent-magenta-bolder-pressed
Use for magenta backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-accent-gray-subtlest
--ds-background-accent-gray-subtlest-hovered
--ds-background-accent-gray-subtlest-pressed
Use for gray backgrounds when there is no meaning tied to the Reserved for when you only want a hint of
--ds-background-accent-gray-subtler
--ds-background-accent-gray-subtler-hovered
--ds-background-accent-gray-subtler-pressed
Use for gray backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-gray-subtle
--ds-background-accent-gray-subtle-hovered
--ds-background-accent-gray-subtle-pressed
Use for vibrant gray backgrounds when there is no meaning tied to the color, such as colored tags.
--ds-background-accent-gray-bolder
--ds-background-accent-gray-bolder-hovered
--ds-background-accent-gray-bolder-pressed
Use for gray backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.
--ds-background-disabled
Use for backgrounds of elements in a disabled state.
--ds-background-input
--ds-background-input-hovered
--ds-background-input-pressed
Use for background of form UI elements, such as text fields, checkboxes, and radio buttons.
--ds-background-inverse-subtle
--ds-background-inverse-subtle-hovered
--ds-background-inverse-subtle-pressed
Use for backgrounds of elements on a bold background, such as in the buttons on spotlight cards.
--ds-background-neutral
--ds-background-neutral-hovered
--ds-background-neutral-pressed
The default background for neutral elements, such as default buttons.
--ds-background-neutral-subtle
--ds-background-neutral-subtle-hovered
--ds-background-neutral-subtle-pressed
Use for the background of elements that appear to have no background in a resting state, such as subtle buttons and menu items.
--ds-background-neutral-bold
--ds-background-neutral-bold-hovered
--ds-background-neutral-bold-pressed
A vibrant background option for neutral UI elements, such as announcement banners.
--ds-background-selected
--ds-background-selected-hovered
--ds-background-selected-pressed
Use for the background of elements in a selected state, such as in opened dropdown buttons.
--ds-background-selected-bold
--ds-background-selected-bold-hovered
--ds-background-selected-bold-pressed
Use for the backgrounds of elements in a selected state, such as checkboxes and radio buttons.
--ds-background-brand-subtlest
--ds-background-brand-subtlest-hovered
--ds-background-brand-subtlest-pressed
Use for the background of elements used to reinforce our brand, but with less emphasis.
--ds-background-brand-bold
--ds-background-brand-bold-hovered
--ds-background-brand-bold-pressed
Use for the background of elements used to reinforce our brand, but with more emphasis.
--ds-background-brand-boldest
--ds-background-brand-boldest-hovered
--ds-background-brand-boldest-pressed
Use for the background of elements used to reinforce our brand, that need to stand out a lot.
--ds-background-danger
--ds-background-danger-hovered
--ds-background-danger-pressed
Use for backgrounds communicating critical information, such in error section messages.
--ds-background-danger-bold
--ds-background-danger-bold-hovered
--ds-background-danger-bold-pressed
A vibrant background option for communicating critical information, such as in danger buttons and error banners.
--ds-background-warning
--ds-background-warning-hovered
--ds-background-warning-pressed
Use for backgrounds communicating caution, such as in warning section messages.
--ds-background-warning-bold
--ds-background-warning-bold-hovered
--ds-background-warning-bold-pressed
A vibrant background option for communicating caution, such as in warning buttons and warning banners.
--ds-background-success
--ds-background-success-hovered
--ds-background-success-pressed
Use for backgrounds communicating a favorable outcome, such as in success section messages.
--ds-background-success-bold
--ds-background-success-bold-hovered
--ds-background-success-bold-pressed
A vibrant background option for communicating a favorable outcome, such as in checked toggles.
--ds-background-discovery
--ds-background-discovery-hovered
--ds-background-discovery-pressed
Use for backgrounds communicating change or something new, such as in discovery section messages.
--ds-background-discovery-bold
--ds-background-discovery-bold-hovered
--ds-background-discovery-bold-pressed
A vibrant background option communicating change or something new, such as in onboarding spotlights.
--ds-background-information
--ds-background-information-hovered
--ds-background-information-pressed
Use for backgrounds communicating information or something in-progress, such as in information section messages.
--ds-background-information-bold
--ds-background-information-bold-hovered
--ds-background-information-bold-pressed
A vibrant background option for communicating information or something in-progress.
Surface tokens
Token and description
Light value
Dark value
--ds-surface
--ds-surface-hovered
--ds-surface-pressed
Use as the primary background for the UI.
--ds-surface-overlay
--ds-surface-overlay-hovered
--ds-surface-overlay-pressed
Use for the background of elements that sit on top of they UI, such as modals, dialogs, dropdown menus, floating toolbars, and floating single-action buttons. Also use for the background of raised cards in a dragged state. Combine with shadow.overlay.
--ds-surface-raised
--ds-surface-raised-hovered
--ds-surface-raised-pressed
Use for the background of cards that can be moved, such as Jira cards on a Kanban board. Combine with shadow.raised.
--ds-surface-sunken
A secondary background for the UI commonly used for grouping items, such as Jira cards in columns.
Icon tokens
Token and description
Light value
Dark value
--ds-icon
Use for icon-only buttons, or icons paired with text
--ds-icon-accent-lime
Use for lime icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-red
Use for red icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-orange
Use for orange icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-yellow
Use for yellow icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-green
Use for green icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-teal
Use for teal icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-blue
Use for blue icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-purple
Use for purple icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-magenta
Use for magenta icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.
--ds-icon-accent-gray
Use for icons on non-bold gray accent backgrounds, such as file type icons.
--ds-icon-disabled
Use for icons in a disabled state.
--ds-icon-inverse
Use for icons on bold backgrounds.
--ds-icon-selected
Use for icons in selected or opened states, such as those used in dropdown buttons.
--ds-icon-brand
Use for icons that reinforce our brand.
--ds-icon-danger
Use for icons communicating critical information, such as those used in error handing.
--ds-icon-warning
Use for icons communicating caution, such as those used in warning section messages.
--ds-icon-warning-inverse
Use for icons when on bold warning backgrounds.
--ds-icon-success
Use for icons communicating a favorable outcome, such as those used in success section messaged.
--ds-icon-discovery
Use for icons communicating change or something new, such as discovery section messages.
--ds-icon-information
Use for icons communicating information or something in-progress, such as information section messages.
--ds-icon-subtle
Use for icons paired with text.subtle
Border tokens
Token and description
Light value
Dark value
--ds-border
Use to visually group or separate UI elements, such as flat cards or side panel dividers.
--ds-border-accent-lime
Use for lime borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-red
Use for red borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-orange
Use for orange borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-yellow
Use for yellow borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-green
Use for green borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-teal
Use for teal borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-blue
Use for blue borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-purple
Use for purple borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-magenta
Use for magenta borders on non-bold backgrounds when there is no meaning tied to the
--ds-border-accent-gray
Use for borders on non-bold gray accent backgrounds.
--ds-border-disabled
Use for borders of elements in a disabled state.
--ds-border-focused
Use for focus rings of elements in a focus state.
--ds-border-input
Use for borders of form UI elements, such as text fields, checkboxes, and radio buttons.
--ds-border-inverse
Use for borders on bold backgrounds.
--ds-border-selected
Use for borders or visual indicators of elements in a selected or opened state, such as in tabs or menu items.
--ds-border-brand
Use for borders or visual indicators of elements that reinforce our brand, such as logos or primary buttons.
--ds-border-danger
Use for borders communicating critical information, such as the borders on invalid text fields.
--ds-border-warning
Use for borders communicating caution.
--ds-border-success
Use for borders communicating a favorable outcome, such as the borders on validated text fields.
--ds-border-discovery
Use for borders communicating change or something new, such as the borders in onboarding spotlights.
--ds-border-information
Use for borders communicating information or something in-progress.
--ds-border-bold
A neutral border option that passes min 3:1 contrast ratios.
Use to create a shadow when content scrolls under other content.
--ds-shadow-overlay
Use for the box shadow of elements that sit on top of the UI, such as modals, dropdown menus, flags, and inline dialogs. Combine with elevation.surface.overlay Also use for the box shadow of raised cards in a dragged state.
--ds-shadow-raised
Use for the box shadow of raised card elements, such as Jira cards on a Kanban board. Combine with surface.raised
Use to create a shadow when content scrolls under other content.
--ds-shadow-overlay
Use for the box shadow of elements that sit on top of the UI, such as modals, dropdown menus, flags, and inline dialogs. Combine with elevation.surface.overlay Also use for the box shadow of raised cards in a dragged state.
--ds-shadow-raised
Use for the box shadow of raised card elements, such as Jira cards on a Kanban board. Combine with surface.raised