ThemeProvider
Apply light or dark themes with primitive and component-token overrides.
A token-driven React Native component library for building consistent, expressive, and scalable interfaces across platforms.
npm install @impulse-ui-native/toolkitVersion
17.1.0
License
MIT
Package
Toolkit
Good morning
Alex Rivera
Sessions
248↑ 12.4%Active
36live nowNotifications
Push & email
MIT licensed, public from day one.
Strong types across every component.
Built for native iOS and Android.
Primitive, semantic, and component layers.
Built in the open with contributors.
Browse exported component families by purpose, capability, and package. Use native Storybook for interactions and the roadmap for remaining API and device-validation work.
Apply light or dark themes with primitive and component-token overrides.
Compose native layouts with token-aware spacing, surfaces, borders, and dimensions.
Apply native safe-area edges alongside themed layout and spacing.
Virtualize native rows with fixed-size initial positioning through useFlatListInitialScroll.
Scroll native content and reveal an initially selected child using measured layout.
Render text through shared Montserrat presets, weights, and semantic colors.
Build native actions with shared pressed and disabled feedback.
Compose field labels, addons, values, loaders, and errors from child-only parts.
Render typed icon glyphs and named wrappers from the separate icon package.
Collect typed text with themed labels, validation, and supporting content.
Collect longer text with character counting and bounded auto-grow behavior.
Toggle checked, unchecked, and indeterminate states across shared sizes and variants.
Present a single-choice control with caller-managed group selection.
Toggle settings with animated state changes and disabled or loading behavior.
Choose one value in a searchable native flyout with external search and loading support.
Choose multiple values with searchable options, loading feedback, and tone-matched tags.
Select numeric values with native drag feedback, precise steps, marks, and value bubbles.
Drag two thumbs to choose numeric bounds with configurable steps and enforced minimum spacing.
Choose colors with native spectrum and slider gestures, hex/RGB entry, opacity, presets, and optional Apply/Cancel actions.
Choose one option from a composable group of labeled or icon segments.
Compose labels, descriptions, required state, and validation around custom controls.
Select a calendar date with clear/apply actions and quick-date choices.
Select start and end calendar dates in a native flyout.
Select a date together with hours, minutes, and seconds.
Select a start and end date-time with staged apply/cancel actions.
Select hours, minutes, and seconds using native scrolling columns.
Represent people and entities with images, initials, fallbacks, and presence states.
Display a non-pressable icon surface with shared sizes, variants, and semantic tones.
Group media, headers, content, and footers using Card or composable static and pressable parts.
Render static or pressable rows with leading and trailing content using List or composable parts.
Browse horizontal slides with snapping, optional peeking, controls, and pagination.
Separate content horizontally or vertically with logical insets and semantic colors.
Reveal collapsible sections with single or multiple expansion and animated content height.
Show timed notifications with semantic tones, optional actions, and composable Toast parts.
Label status and categories with semantic colors and optional dismissal.
Display compact semantic states and metadata with optional leading or trailing content.
Communicate indeterminate work with token-aware sizes and semantic colors.
Show determinate or indeterminate progress with linear and circular variants.
Communicate loading layouts with animated bones, text, and shape presets.
Coordinate loading, error, empty, and content states with supplied views and actions.
Navigate pages with a responsive page window or compact previous and next controls.
Switch sections with a flat items API, scrollable underline tabs, and only the active panel mounted.
Guide multi-step content with controlled selection and shared next, previous, and goto methods.
Compose dialogs and confirmation actions with header/footer parts, backdrop dismissal, and Android Back handling.
Present compact actions and choices beside a trigger with composable parts and automatic placement.
Show a brief hint on long-press with an inverse surface and timed dismissal.
Present top or bottom sheets with keyboard-aware bodies, scroll containers, and gesture dismissal.
Show a continuous trend across numeric, date, or categorical values.
Compare multiple series against the same axes, domain, and grid.
Compare categorical values, including positive and negative measurements.
Compare grouped series across categories with configurable spacing.
Communicate proportions as a token-colored pie or donut chart.
Display independently normalized data as concentric proportional rings.
variant="filled" size="medium"Variant
Size
State
These values come directly from the theme package. AppTheme combines colors, space, radii, borderSize, fontFamily, fontWeight, fontSize, lineHeight, letterSpacing, and generated component tokens.
The neutral palette shared by light and dark themes.
colors.neutral.0#ffffffcolors.neutral.1#f8f9facolors.neutral.2#f1f3f5colors.neutral.3#e9ecefcolors.neutral.4#dee2e6colors.neutral.5#ced4dacolors.neutral.6#adb5bdcolors.neutral.7#868e96colors.neutral.8#495057colors.neutral.9#343a40colors.neutral.10#212529colors.neutral.11#16191dcolors.neutral.12#0d0f12colors.neutral.13#000000The complete spacing scale in logical pixels.
space.none0space.xxs4space.xs8space.mxs12space.sm16space.msm24space.md32space.lg48space.xl64space.xxl96The complete corner-radius scale in logical pixels.
radii.sm4radii.md8radii.lg16radii.xl32radii.xxl64radii.xxxl128radii.round100000The complete Montserrat size scale in logical pixels.
fontSize.xxs8fontSize.xs12fontSize.xsm14fontSize.sm16fontSize.md18fontSize.lg20fontSize.xl24fontSize.xxl28fontSize.xxxl32fontSize.huge36fontSize.massive40fontSize.giant48fontSize.colossal56Line heights paired with the typography scale.
lineHeight.xxs12lineHeight.xs16lineHeight.xsm20lineHeight.sm24lineHeight.md26lineHeight.lg28lineHeight.xl32lineHeight.xxl36lineHeight.xxxl40lineHeight.huge44lineHeight.massive48lineHeight.giant56lineHeight.colossal64Named weights from thin through black.
fontWeight.thin100fontWeight.extraLight200fontWeight.light300fontWeight.regular400fontWeight.medium500fontWeight.semiBold600fontWeight.bold700fontWeight.extraBold800fontWeight.black900Tracking values in logical pixels.
letterSpacing.tightest-1letterSpacing.tighter-0.5letterSpacing.tight-0.25letterSpacing.normal0letterSpacing.wide0.25letterSpacing.wider0.5letterSpacing.widest0.75letterSpacing.ultraWide1The complete border-width scale in logical pixels.
borderSize.sm1borderSize.md2borderSize.lg3borderSize.xl5borderSize.xxl10Normal and italic Montserrat families are keyed by weights 100–900. Examples at weight 400:
fontFamily.normal[400]Montserrat_400RegularfontFamily.italic[400]Montserrat_400Regular_Italicexport const SpaceTokens = {
"none": 0,
"xxs": 4,
"xs": 8,
"mxs": 12,
"sm": 16,
"msm": 24,
"md": 32,
"lg": 48,
"xl": 64,
"xxl": 96
};
export const RadiiTokens = {
"sm": 4,
"md": 8,
"lg": 16,
"xl": 32,
"xxl": 64,
"xxxl": 128,
"round": 100000
};LightTheme and DarkTheme share primitive scales and provide distinct semantic palettes. ThemeProvider defaults to light; set the scheme prop to dark and supply per-scheme theme overrides or component-token overrides. The phone preview shows the light theme.
Good morning
Alex Rivera
Sessions
248↑ 12.4%Active
36live nowNotifications
Push & email
11 light / dark pairscolors.primary.valueLight #F55D6BDark #FA9EA7colors.accent.contrastLight #16191dDark #16191dcolors.secondary.contrastLight #c92a3bDark #FA9EA7colors.surface.canvas.valueLight #f1f3f5Dark #16191dcolors.surface.subtle.valueLight #f1f3f5Dark #16191dcolors.surface.default.valueLight #ffffffDark #212529colors.text.primaryLight #16191dDark #ffffffcolors.text.disabledLight #868e96Dark #868e96colors.border.focus.valueLight #c92a3bDark #FA9EA7colors.feedback.warning.valueLight #a65300Dark #ffc078colors.feedback.success.valueLight #526b00Dark #c0eb75A traceable pipeline from raw values to shipping interfaces. Every layer remains replaceable, testable, and documented.
Raw colors, dimensions, type, and spacing.
#f55d6bspace.smradii.mdIntent-driven roles for surfaces and actions.
colors.surface.canvas.valuecolors.text.disabledcolors.border.focus.valueFactories translate the theme into exact anatomy.
components.button.sizescomponents.tag.colorscomponents.controlContainer.colorsComposable React Native building blocks.
ButtonInputSelectYour screens remain coherent as the system changes.
OnboardingDashboardSettingscomponents.colorPickercomponents.chartscomponents.modalcomponents.toastcomponents.popovercomponents.carouselcomponents.accordioncomponents.avatarcomponents.badgecomponents.buttoncomponents.cardcomponents.listcomponents.checkboxcomponents.iconButtoncomponents.iconcomponents.iconViewcomponents.paginationcomponents.pressablecomponents.progresscomponents.radiocomponents.tagcomponents.controlAddoncomponents.controlContainercomponents.controlErrorcomponents.controlInputcomponents.controlLabelcomponents.selectcomponents.segmentedControlcomponents.tabscomponents.datetimePickercomponents.dividercomponents.timePickercomponents.flyoutcomponents.skeletoncomponents.slidercomponents.spinnercomponents.steppercomponents.switchcomponents.textareacomponents.dataStateExtend, wrap, and recompose components without leaving the token contract.
Use names that describe intent instead of one-off pixel values.
Keep behavior and visual language aligned across supported platforms.
<Button />size"small" | "medium" | "large"Default: "medium"variant"filled" | "outlined" | "soft" | "ghost"Default: "filled"tone"neutral" | "primary" | "secondary"Default: "primary"loadingbooleanDefault: falsedisabledbooleanDefault: undefinedonPressPressableProps['onPress']Default: –shadow"none" | "xs" | "sm" | "md" | "lg" | "xl"Default: –ImpulseUI Native is shaped in the open. Explore the source, report issues, suggest improvements, and contribute new ideas.
Start with application setup, choose components by task, and follow source-derived API guides and typechecked recipes. Use native Storybook to explore interactions on iOS and Android.