@nevv-ui/themes
v2.0.0
Published
Theme system and presets for Nevv UI - customize colors and styles
Maintainers
Readme
@nevv-ui/themes
Theme presets and builders for Nevv UI - customize colors and appearance.
Installation
npm install @nevv-ui/themes @nevv-ui/styles
# or
pnpm add @nevv-ui/themes @nevv-ui/stylesWhat are Themes?
Themes provide preset color palettes and configuration builders for consistent design:
- Presets - Ready-to-use color schemes
- Customizable - Build your own themes
- CSS Variables - Semantic color tokens
- Dark Mode - Built-in dark theme support
Built-in Presets
Default Theme
Modern, professional light theme (default)
<link rel="stylesheet" href="@nevv-ui/themes/presets/default.css">Dark Theme
Professional dark color scheme
<link rel="stylesheet" href="@nevv-ui/styles/base/theme-dark.css">Ocean Blue
Cool blue color palette
<link rel="stylesheet" href="@nevv-ui/themes/presets/oceanblue.css">Forest
Natural green color palette
<link rel="stylesheet" href="@nevv-ui/themes/presets/forest.css">Using Themes
Global Theme
<html data-theme="light">
<head>
<link rel="stylesheet" href="@nevv-ui/styles">
<link rel="stylesheet" href="@nevv-ui/themes/presets/default.css">
</head>
<body>...</body>
</html>Component-level Theme
<div data-theme="dark">
<!-- Components inside will use dark theme -->
</div>Runtime Theme Switching
document.documentElement.dataset.theme = 'dark'Building Custom Themes
Use the theme builder to create custom themes:
import { createTheme } from '@nevv-ui/themes/builder'
const myTheme = createTheme({
primary: '#007AFF',
success: '#34C759',
warning: '#FF9500',
error: '#FF3B30',
info: '#00B0FF'
})CSS Variables
All colors use --nv- prefix CSS variables:
:root[data-theme="light"] {
--nv-primary-color: #007AFF;
--nv-primary-color-hover: #0051D5;
--nv-primary-color-pressed: #003D99;
--nv-primary-color-disabled: rgba(0, 122, 255, 0.5);
}License
MIT © ESTENX LTD
