Miscellaneous design tokens and utilities for use in the design system.
Waterhole defines a global border radius variable:
--radius: 10px;
The .rounded utility class will apply this border radius, while .pill will apply maximum rounding:
.rounded
.pill
<div class="stack gap-md"> <div class="rounded bg-fill p-sm">.rounded</div> <input type="text" class="pill input" value=".pill" /> </div>
Waterhole defines two levels of shadow:
--shadow-sm
--shadow-md
<div class="row gap-md"> <div class="rounded p-sm" style="box-shadow: var(--shadow-sm)">shadow-sm</div> <div class="rounded p-sm" style="box-shadow: var(--shadow-md)">shadow-md</div> </div>
Z-index values are defined to ensure proper layering of elements:
--z-index-header
--z-index-overlay
--z-index-alerts
Waterhole includes various other utilities that may be useful:
.js-only
.no-js-only
.light-only
.dark-only
.hide-if-empty
:empty
.hide-if-not-only-child
.visually-hidden
.no-pointer
.no-select
.clickable
cursor: pointer
.cursor-default
.cursor-help
.cursor-pointer
.full-width
width: 100%
.full-height
height: 100%
.rotate-90
.rotate-180
.rotate-270
.flip-horizontal
.flip-vertical
.nowrap
.block
display: block
.inline
display: inline
vertical-align: middle
.float-left
float: left
.float-right
float: right
.scrollable
overflow: auto
.overflow-visible
overflow: visible
.overflow-hidden
overflow: hidden
.overflow-ellipsis
No Results Found
Something Went Wrong