Customize
Components
Every component reads its sizes and colors from its own CSS variables — change them for one element, one part of a page, or the whole site, without writing new rules.
<style>
.btn-round-wide { --mo-btn-radius: 99px; --mo-btn-padding-x: 1.5rem; }
.btn-big { --mo-btn-height: 3rem; --mo-btn-font-size: 1.0625rem; }
</style>
<div class="cluster">
<button class="btn btn-default btn-solid">Default</button>
<button class="btn btn-default btn-solid btn-round-wide">Round and wide</button>
<button class="btn btn-default btn-solid btn-big">Big</button>
</div>
One button, one area, or everything
The same variable works at any level — whatever is closest wins.
/* every button on the site */
:root { --mo-btn-radius: .375rem; }
/* only in the checkout */
.checkout { --mo-btn-height: 3rem; }
/* one card */
.card-roomy { --mo-card-padding: 2rem; }
<div class="card card-roomy">…</div>
Your own CSS always wins
Moey's CSS sits in layers (tokens → reboot → layout → content → forms → components → helpers → utilities). Anything you write outside a layer beats all of them — no !important, no fighting specificity.
/* your stylesheet, after moey.css */
.card { box-shadow: 0 1px 2px rgb(0 0 0 / .1); } /* wins over Moey's .card */
/* or slot into Moey's order, to stay below the utilities: */
@layer components { .card { box-shadow: … } }
Every component's variables
Generated from Moey's own CSS, so this list is always complete. Click a component for its page.
| Component | Variables |
|---|---|
| Accordion | --mo-accordion-padding-x --mo-accordion-padding-y --mo-accordion-bg --mo-accordion-radius |
| Alert | --mo-alert-padding-x --mo-alert-padding-y --mo-alert-gap --mo-alert-font-size --mo-alert-icon-size --mo-alert-color --mo-alert-bg --mo-alert-border --mo-alert-icon-color --mo-alert-radius --mo-alert-mark --mo-alert-dash |
| App shell | --mo-sidebar-width --mo-sidebar-width-collapsed --mo-sidebar-bg --mo-topbar-height --mo-topbar-bg --mo-app-padding |
| Avatar | --mo-avatar-size --mo-avatar-radius --mo-avatar-ring |
| Badge | --mo-badge-ring --mo-badge-height --mo-badge-padding-x --mo-badge-font-size --mo-badge-radius --mo-badge-color --mo-badge-bg --mo-badge-border |
| Breadcrumb | --mo-breadcrumb-gap |
| Button | --mo-btn-height --mo-btn-color --mo-btn-bg --mo-btn-border --mo-btn-hover-color --mo-btn-hover-bg --mo-btn-hover-border --mo-btn-active-bg --mo-btn-padding-x --mo-btn-font-size --mo-btn-font-weight --mo-btn-radius --mo-btn-gap |
| Button group | --mo-segment-active --mo-segment-on |
| Card | --mo-card-padding --mo-card-gap --mo-card-bg --mo-card-color --mo-card-border --mo-card-radius --mo-card-mark --mo-card-dash --mo-card-muted |
| Carousel | --mo-carousel-per-view --mo-carousel-gap --mo-carousel-peek |
| Close button | --mo-close-size --mo-close-icon |
| Data table | --mo-datatable-height |
| Datepicker | --mo-dp-cell |
| Description list | --mo-dl-label --mo-dl-gap |
| Dialog / drawer / sheet | --mo-dialog-padding --mo-dialog-footer-padding --mo-dialog-bg --mo-dialog-fg --mo-dialog-duration --mo-dialog-width --mo-sheet-height --mo-sheet-max-width --mo-drawer-size |
| Divider | --mo-divider-color --mo-divider-space --mo-divider-style |
| Dropzone | --mo-dropzone-min-height |
| Floating labels | --mo-floating-height --mo-floating-scale |
| Form controls | --mo-check-mark --mo-check-dash --mo-control-bg --mo-control-fill --mo-control-padding-x --mo-control-font-size --mo-control-placeholder --mo-check-size --mo-control-height --mo-check-on-text --mo-check-on-body |
| Input group | --mo-ig-line --mo-ig-addon-bg |
| List group | --mo-list-padding-y --mo-list-padding-x --mo-list-bg --mo-list-radius |
| Media object | --mo-media-gap |
| Menu | --mo-menu-max-height --mo-menu-bg --mo-menu-padding --mo-menu-radius --mo-menu-item-radius --mo-menu-item-height --mo-menu-min-width --mo-menu-hover --mo-menu-hover-color --mo-menu-muted |
| Nav | --mo-nav-gap --mo-nav-link-height --mo-nav-link-padding-x --mo-nav-hover --mo-nav-active |
| Navbar | --mo-navbar-height --mo-navbar-padding-x --mo-navbar-bg |
| OTP input | --mo-otp-size --mo-otp-gap --mo-otp-font-size --mo-otp-sep-width |
| Pagination | --mo-page-size |
| Command palette | --mo-palette-width --mo-palette-height --mo-palette-active |
| Popover | --mo-popover-width --mo-popover-padding --mo-popover-bg --mo-popover-close-size |
| Progress | --mo-progress-height --mo-progress-track --mo-progress-fill --mo-progress-size --mo-progress-thickness --mo-progress-angle |
| Prose | --mo-prose-size |
| Rating | --mo-rating-size --mo-rating-color --mo-rating-empty --mo-rating-shape --mo-rating-max |
| Scrollbars | --mo-scrollbar-size --mo-scrollbar-inset --mo-scrollbar-thumb-color --mo-scrollbar-thumb-hover --mo-scrollbar-track --mo-scrollbar-thumb |
| Skeleton | --mo-skeleton-base --mo-skeleton-shine --mo-skeleton-size |
| Spinner | --mo-spinner-size --mo-spinner-thickness |
| Stacks | --mo-stack-gap |
| Steps | --mo-step-size --mo-step-line |
| Table | --mo-table-cell-y --mo-table-cell-x --mo-table-edge --mo-table-font-size --mo-table-head-bg --mo-table-row-hover --mo-table-row-stripe --mo-table-row-selected |
| Tabs | --mo-tab-height --mo-tab-padding-x --mo-tab-gap --mo-tab-radius --mo-tab-indicator |
| Timeline | --mo-timeline-marker --mo-timeline-gap --mo-timeline-dot |
| Toasts | --mo-toast-bg --mo-toast-width --mo-toast-accent --mo-toast-line --mo-toast-icon --mo-toast-gap --mo-toast-edge --mo-toast-enter |
| Tooltip | --mo-tooltip-bg --mo-tooltip-fg |
| Tree view | --mo-tree-indent --mo-tree-row --mo-tree-chevron |
| Entrance animations | --mo-enter-duration --mo-enter-ease --mo-stagger |