@codervigi/rn-shad-themes
v0.1.0
Published
Theme presets for rn-shad React Native components
Maintainers
Readme
@rn-shad/themes
Theme presets for rn-shad React Native components.
Installation
npm install @rn-shad/themesUsage
import { defaultTheme } from '@rn-shad/themes';
import type { Theme, ThemeColors } from '@rn-shad/themes';
// Use the default theme
const colors = defaultTheme.colors.light;
// Create a custom theme
const customTheme: Theme = {
name: 'custom',
colors: {
light: {
background: '#ffffff',
foreground: '#09090b',
// ... other colors
},
dark: {
background: '#09090b',
foreground: '#fafafa',
// ... other colors
},
},
};Theme Structure
Themes follow the shadcn/ui color system with support for light and dark modes:
background- Background colorforeground- Foreground color (text, icons)card- Card background colorcardForeground- Card foreground colorprimary- Primary action colorprimaryForeground- Primary foreground colorsecondary- Secondary action colordestructive- Destructive action colormuted- Muted background coloraccent- Accent colorborder- Border colorinput- Input border colorring- Focus ring color
License
MIT
