@compose-market/theme
v0.0.90
Published
Official design tokens and theme system for Compose.Market
Readme
@compose-market/theme
Official design tokens and theme system for Compose.Market - the Web3 Native AI Agent Marketplace.
Installation
npm install @compose-market/themeUsage
CSS Variables (Recommended)
Import the CSS directly for use in any project:
/* In your main CSS file */
@import "@compose-market/theme/css";
/* Or import individual files */
@import "@compose-market/theme/css/tokens"; /* Fonts, radius */
@import "@compose-market/theme/css/dark"; /* Dark theme */
@import "@compose-market/theme/css/light"; /* Light theme (optional) */Tailwind CSS Integration
Use the Tailwind preset for seamless integration:
// tailwind.config.js
import composeTheme from "@compose-market/theme/tailwind";
export default {
presets: [composeTheme],
content: ["./src/**/*.{js,ts,jsx,tsx}"],
};JavaScript/TypeScript
Access tokens programmatically:
import { tokens, themes, getThemeColors } from "@compose-market/theme";
// Get all design tokens
console.log(tokens.colors.brand.cyan); // "188 95% 43%"
// Get theme colors
const darkColors = getThemeColors("dark");
console.log(darkColors.primary); // "188 95% 43%"Design Tokens
Brand Colors
| Name | HSL | Hex | Usage |
|------|-----|-----|-------|
| Cyan (Primary) | 188 95% 43% | #22d3ee | Primary actions, links |
| Fuchsia (Accent) | 292 85% 55% | #d946ef | Accents, highlights |
| Dark Background | 222 47% 3% | #020617 | Main background |
Typography
- Display: Orbitron (headers, brand text)
- Body: Rajdhani (UI, paragraphs)
- Code: Fira Code (monospace, technical)
Semantic Colors
The theme uses semantic color names that adapt to light/dark mode:
background,foregroundcard,cardForegroundpopover,popoverForegroundprimary,primaryForegroundsecondary,secondaryForegroundmuted,mutedForegroundaccent,accentForegrounddestructive,destructiveForegroundborder,input,ring
Themes
Dark Theme (Default)
Cyberpunk-inspired dark theme with neon cyan and fuchsia accents.
/* Activate dark theme (default, no action needed) */
@import "@compose-market/theme/css";Light Theme
Clean, professional light theme with the same accent colors.
/* Import both themes */
@import "@compose-market/theme/css/tokens";
@import "@compose-market/theme/css/dark";
@import "@compose-market/theme/css/light";
/* Activate light mode via class */
<html class="light">Or via data attribute:
<html data-theme="light">File Structure
@compose-market/theme/
├── dist/
│ ├── index.js # Main JS export
│ ├── index.d.ts # Type definitions
│ ├── tokens/ # Token modules
│ ├── themes/ # Theme modules
│ ├── tailwind/ # Tailwind preset
│ └── css/
│ ├── index.css # Main CSS (tokens + dark)
│ ├── tokens.css # Base tokens (fonts, radius)
│ ├── dark.css # Dark theme colors
│ └── light.css # Light theme colors
└── src/ # Source TypeScriptVersioning
This package follows Semantic Versioning:
- Major: Breaking changes to token names or structure
- Minor: New tokens, themes, or features (backward compatible)
- Patch: Bug fixes, value adjustments
License
MIT © Compose.Market
