forked from smallcloudai/refact
-
-
Notifications
You must be signed in to change notification settings - Fork 4
GUI Theming
refact-planner edited this page Jun 7, 2026
·
1 revision
The GUI theme system combines Radix Themes tokens with CSS Modules and strict styling conventions for consistent, dark-mode-friendly UI.
The preferred building blocks are:
- Radix Themes design tokens
- CSS Modules for component-scoped styles
Use Radix primitives such as Flex, Box, Text, Card, and Button when possible.
- Use tokens like
var(--space-3)andvar(--accent-9)instead of hardcoded values. - Do not use inline styles.
- Do not introduce hardcoded colors.
- Avoid magic numbers.
- Avoid global CSS unless there is a very strong reason.
These rules keep the UI consistent and make theme changes predictable.
- Components:
PascalCase.tsx - Hooks:
useCamelCase.ts - Utilities:
camelCase.ts - Styles:
PascalCase.module.css
The styling system is expected to work in dark mode without ad hoc overrides. Rely on theme tokens and component primitives so the same layout and spacing rules hold across light and dark appearances.
See also: GUI Architecture, Context Compression
Refact on GitHub: https://github.com/JegernOUTT/refact
- Agent Modes
- Agent Tools
- Task Planner & Cards
- Worktrees
- Subagents
- Memory & Knowledge
- Hidden Roles & Plans
- Context Compression
- Scheduler & Cron
- Processes & PTY
- Buddy
- MCP
- Skills, Commands & Hooks
- Marketplace
- Chat System
- Providers
- Caps & Models
- Code Completion (FIM)
- AST
- VecDB
- Exec Runtime
- HTTP API
- Checkpoints & Git
- Voice