Files
clj-ui-framework/src/ui/utilities.css
Florian Schroedl 18043cb150 feat: add 13 components adapted from Oat UI
Components (.cljc + .css + tests):
- Alert (success/warning/danger/info variants)
- Badge (primary/secondary/outline/success/warning/danger)
- Card (card/card-header/card-body/card-footer)
- Accordion (collapsible with open/closed state)
- Table (headers/rows, striped/bordered variants)
- Dialog (modal with header/body/footer sections)
- Breadcrumb (nav with active item)
- Pagination (current/total with prev/next)
- Progress (value bar with color variants)
- Spinner (sm/md/lg sizes)
- Skeleton (line/box/circle/heading placeholders)
- Switch (toggle with checked/disabled states)
- Tooltip (hover text via data-tooltip attr)

CSS-only additions:
- Form elements (inputs, selects, checkboxes, radios, range, groups)
- Grid (12-column system with offsets, responsive)
- Utilities (flex, spacing, alignment, sr-only)

Also adds warning/fg-on-warning tokens to light and dark themes.
All 3 dev targets updated with full component showcase.
40 tests, 213 assertions, all passing.
2026-03-03 11:37:05 +01:00

52 lines
1.2 KiB
CSS

.align-left { text-align: start; }
.align-center { text-align: center; }
.align-right { text-align: end; }
.text-muted { color: var(--fg-1); }
.text-faint { color: var(--fg-2); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.hstack {
display: flex;
align-items: center;
gap: var(--size-4);
flex-wrap: wrap;
}
.vstack {
display: flex;
flex-direction: column;
gap: var(--size-3);
}
.gap-1 { gap: var(--size-1); }
.gap-2 { gap: var(--size-2); }
.gap-3 { gap: var(--size-3); }
.gap-4 { gap: var(--size-4); }
.mt-2 { margin-top: var(--size-2); }
.mt-4 { margin-top: var(--size-4); }
.mt-6 { margin-top: var(--size-6); }
.mb-2 { margin-bottom: var(--size-2); }
.mb-4 { margin-bottom: var(--size-4); }
.mb-6 { margin-bottom: var(--size-6); }
.p-4 { padding: var(--size-4); }
.w-full { width: 100%; }
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}