Package Exports
- @tokis/theme
- @tokis/theme/base
- @tokis/theme/base/reset
- @tokis/theme/base/variables
- @tokis/theme/components
- @tokis/theme/components/accordion
- @tokis/theme/components/alert
- @tokis/theme/components/avatar
- @tokis/theme/components/button
- @tokis/theme/components/card
- @tokis/theme/components/checkbox
- @tokis/theme/components/dialog
- @tokis/theme/components/drawer
- @tokis/theme/components/input
- @tokis/theme/components/navigation
- @tokis/theme/components/progress
- @tokis/theme/components/select
- @tokis/theme/components/slider
- @tokis/theme/components/switch
- @tokis/theme/components/tabs
- @tokis/theme/components/tooltip
- @tokis/theme/utilities
Readme
/theme
Default visual theme for the Tokis design system — CSS variables, component styles, reset, and typography. Zero-runtime, precompiled CSS.
Installation
npm install /themeOr install everything at once:
npm install tokis
Usage
Import the full theme (recommended):
import '/theme';Or import individual layers:
import '/theme/base'; // Variables + reset
import '/theme/components'; // All component styles
import '/theme/utilities'; // Utility classesOr import specific component styles:
import '/theme/base';
import '/theme/components/button';
import '/theme/components/dialog';What's Included
- CSS Variables — Full token set: colors, spacing, radius, shadows, typography, motion, z-index
- Reset — Minimal, opinionated CSS reset
- Component Styles — Styles for every
/reactcomponent - Dark Mode — Automatic via
[data-theme="dark"]attribute - Utilities — Common helper classes
Documentation
Visit tokis.dev for the theming guide.
License
MIT