--- title: Hashicorp Design System --- # Hashicorp Design System The application integrates setup that make it possible to use the [Hashicorp Design System (HDS)](https://github.com/hashicorp/design-system) in the application. ## Design Tokens HDS ships a set of [design tokens](https://design-system-components-hashicorp.vercel.app/foundations/tokens), which are implemented as CSS custom properties. To make it easy to work with these design tokens without having to work with verbose CSS properties all over the place, we have setup a [TailwindCSS](https://tailwindcss.com/)-configuration that makes the color tokens available via functional [utility classes](https://tailwindcss.com/docs/customizing-colors). ### Colors You can work with any color from the HDS by prefixing colors with the `hds-`-prefix. The `hds-`-prefix makes it easy to see what classes are auto-generated from HDS. When we wanted to color a header tag with the `consul-brand`-color we could do it like this for example: ```hbs preview-template

HDS is awesome

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

TailwindCSS colors won't work

``` ### Other tokens 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`. You for example would work with HDS' typography tokens in this way: ```hbs preview-template

A paragraph styled via HDS.

``` ### 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: ```hbs preview-template ``` ### Components 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 ```