diff --git a/ui/packages/consul-peerings/app/components/consul/peer/bento-box/index.hbs b/ui/packages/consul-peerings/app/components/consul/peer/bento-box/index.hbs index 8066b55cfa..a4414b3293 100644 --- a/ui/packages/consul-peerings/app/components/consul/peer/bento-box/index.hbs +++ b/ui/packages/consul-peerings/app/components/consul/peer/bento-box/index.hbs @@ -2,7 +2,7 @@
Status
@@ -10,14 +10,15 @@
Latest heartbeat
{{#if @peering.LastHeartbeat}} {{#let (smart-date-format @peering.LastHeartbeat) as |smartDate|}} {{#if smartDate.isNearDate}} {{smartDate.relative}} @@ -32,7 +33,7 @@
Latest receipt
{{#if @peering.LastReceive}} @@ -50,7 +51,7 @@
Latest send
{{#if @peering.LastSend}} diff --git a/ui/packages/consul-peerings/app/templates/dc/peers/show/exported.hbs b/ui/packages/consul-peerings/app/templates/dc/peers/show/exported.hbs index 10af30503c..86a020f994 100644 --- a/ui/packages/consul-peerings/app/templates/dc/peers/show/exported.hbs +++ b/ui/packages/consul-peerings/app/templates/dc/peers/show/exported.hbs @@ -53,10 +53,12 @@ @items={{search.data.items}} as |service index| > -
  • +
  • +

    HDS is awesome

    ``` -Regular tailwindCss colors aren't available. You can only use colors defined in HDS with this pattern. +Regular TailwindCSS colors aren't available. ```hbs preview-template -

    +

    TailwindCSS colors won't work

    ``` -### Other tokens +### HDS core styles -Other tokens than colors are available via the provided `hds`-[helper-classes](https://design-system-components-hashicorp.vercel.app/foundations/typography) made available via `@hashicorp/design-system-tokens`. +HDS core styles are available via the provided `hds`-[utility-classes](https://design-system-components-hashicorp.vercel.app/foundations/typography) made available via `@hashicorp/design-system-tokens`. -You for example would work with HDS' typography tokens in this way: +You for example would work with HDS' typography styles in this way: ```hbs preview-template -

    +

    A paragraph styled via HDS.

    ``` +Because HDS provides utility classes for core styles, you should not be using Tailwind classes to customize core styles like typography. + ### Combining HDS and Tailwind -Because we are working with a customized tailwind configuration it is easy to combine HDS design tokens with regular tailwind utility classes: +Tailwind is used as a supplement to what HDS provides. You will be using Tailwind for layouting and other utility functionality that isn't provided by HDS. ```hbs preview-template - ``` @@ -57,46 +57,58 @@ Because we are working with a customized tailwind configuration it is easy to co All components from Hashicorp Design System are available for you to use. Here's an example that shows how to implement a navigation bar with HDS and Tailwind in combination. ```hbs preview-template -