UBO Mini Design System Styles
This page documents style definitions currently present in the local repo, based on the shared Syncfusion/Tailwind style layer and extension CSS files.
Main source files:
packages/ubo-react-components/src/styles/ubo-theme.css and
packages/ubo-react-components/src/styles/ubo-syncfusion-tailwind.css.
Brand Tokens
Defined in ubo-theme.css as custom CSS variables.
Semantic Theme Colors (Syncfusion Theme Settings)
Additional semantic colors are defined in
packages/tailwind-config/settings.json.
This is where text/background intent values are configured for Syncfusion theme generation.
Note: explicit tokens named foreground / background are not
defined as standalone variables in the UBO theme file; semantic text/background intent is
represented through tokens like $primary-text and
$success-bg-color.
| Token | Value | Preview |
|---|---|---|
$primary | #3e4760 | |
$primary-text | #ffffff | |
$success-bg-color | #15803d | |
$success-border-color | #15803d | |
$success-text | #ffffff | |
$danger-bg-color | #dc2626 | |
$danger-border-color | #dc2626 | |
$danger-text | #ffffff | |
$info-bg-color | #0e7490 | |
$info-border-color | #0e7490 | |
$info-text | #ffffff | |
$warning | #c2410c | |
$warning-bg-color | #c2410c | |
$warning-border-color | #c2410c | |
$warning-text | #ffffff |
Neutral and Base Palette (Defined)
Also defined in packages/tailwind-config/settings.json. Useful for foreground/background planning.
Status Tokens
| Group | Defined variables | Preview |
|---|---|---|
| Error | --color-error-700, -600, -500, -400, -300, -200, -100, -25 |
|
| Warning | --color-warning-700, -600, -100, -25 |
|
| Success | --color-success-700, -600, -400, -300, -200, -100, -25 |
|
| Pending | --color-pending-700, -600, -550, -500, -400, -300, -200, -100, -25 |
|
Button Style Definitions
Local button overrides currently include global Syncfusion button padding and custom brand variants.
| Class / selector | Defined behavior | Visual |
|---|---|---|
.e-btn.e-lib |
Global button padding set to 0.55rem. |
Default button padding |
.e-btn.e-primary |
Uses brand primary background and border (--color-brand-600). |
Primary |
.e-btn.ubo-secondary |
Uses light brand background + border (--color-brand-50/--color-brand-200). |
Secondary |
.e-btn.e-outline (Syncfusion class) |
Outline button style from EJ2 theme (not custom overridden here). | Outline |
Other Local Style Hooks
| Area | Key selectors/classes | Purpose |
|---|---|---|
| Tooltip | .ubo-tooltip.e-tooltip-wrap |
Brand-colored tooltip background, border, and arrow styling. |
| Grid utility classes | .e-grid-hide-filterbar, .e-detailrow-remove-indent, .e-detailrow-remove-border, .e-grid-row-pointer |
Hide/show grid sub-elements and improve row interaction UX. |
| Loading spinner | .ubo-loading-spinner, .e-spinner-pane ... |
Forces spinner stroke color to brand primary. |
| Pill Tabs | .ubo-pill-tabs |
Pill-style tab headers with active state border in brand color. |
| File Uploader | .ubo-file-uploader--drop-area, .ubo-file-uploader.e-upload |
Custom drag/drop layout and Syncfusion uploader control cleanup. |
| Input Prefix | .ubo-prefix-input, .ubo-prefix |
Prefixed input layout with shared spacing, borders, and typography. |
Recommended Next Steps
- Promote this doc as a single source for designers while the design system evolves.
- Add screenshot examples from Storybook for each style hook.
- Document semantic usage guidance (when to use primary vs secondary vs outline).
- Keep style token changes synchronized with Syncfusion component docs.