Skip to content

Package entrypoints and APIs

Use the package root for:

  • NativeStylesDiagnosticCode
  • withNativeStyles

Use this entrypoint in .css.ts authoring modules for:

  • style
  • styleVariants
  • recipe
  • componentRecipe, componentRecipeFromRecipe, and extendComponentRecipe
  • defineProperties, createSprinkles, and createSprinklesLookupPlan for finite, primitive-scoped utility scales
  • createThemeContract
  • createTheme
  • viewStyle
  • textStyle
  • imageStyle
  • createVar, fallbackVar for typed standalone scalar inputs
  • type exports such as NativeRecipeProps, NativeComponentRecipeProps, NativeComponentPublicProps, and NativeComponentResolvedStyles

componentRecipe declares a component’s named view, text, and image style slots. Each slot checks style properties against its React Native primitive, while every slot shares the component’s single variant selection.

button.css.ts
import {
componentRecipe,
type NativeComponentRecipeProps,
} from "@opsydyn/crumbs-css/style"
export const button = componentRecipe({
slots: { root: "view", label: "text", icon: "image" } as const,
base: {
root: { paddingHorizontal: 12 },
label: { fontWeight: "700" },
icon: { resizeMode: "contain" },
},
variants: {
status: {
ready: { root: { opacity: 1 } },
loading: { root: { opacity: 0.7 } },
},
busy: {
false: { root: { opacity: 1 } },
true: { root: { opacity: 0.8 } },
},
tone: {
primary: {
root: { backgroundColor: "#1648d8" },
label: { color: "white" },
},
quiet: {
root: { backgroundColor: "transparent" },
label: { color: "#202020" },
},
},
},
defaultVariants: { status: "ready", busy: false, tone: "primary" },
stateVariants: {
status: {
ready: { busy: [false], tone: ["primary", "quiet"] },
loading: { busy: [true], tone: ["primary"] },
},
},
}, "button")
export type ButtonSelection = NativeComponentRecipeProps<typeof button>
const readyQuiet: ButtonSelection = { tone: "quiet" }
const loadingPrimary: ButtonSelection = {
status: "loading",
busy: true,
tone: "primary",
}

stateVariants adds one discriminator over the recipe’s existing variant axes. Its cases must cover every value of that discriminator exactly once; each case may constrain other axes to non-empty lists of values declared by those variants. These constraints add no style branches: the ordinary variants map continues to own the styles.

The type ButtonSelection reflects those case constraints. For example, readyQuiet uses the defaults status: "ready" and busy: false, so the quiet tone is permitted. loadingPrimary explicitly selects the required loading values. At runtime Crumbs merges defaultVariants with the supplied selection before checking the active case. If a selection violates that case’s constraints, the resolver returns only base styles for every slot, skips variant and compound styles, and reports the invalid state in development. This fail-closed behavior also covers untyped callers and runtime data; invalid independent variant values outside a state constraint retain their existing warn-and-skip behavior.

Newly authored component recipes emit descriptor version 2 with the finite state map. Runtime readers continue to accept version 1 descriptors with their previous unconstrained behavior, as well as version 2; unsupported descriptor versions fail closed. The resolver stores authored variant branches and state cases, then checks only the selected case. It does not materialize the Cartesian product of all variant values.

Resolve tokenized descriptors through the theme hook before creating a resolver. The same selection is applied to all slots; omitted slot branches resolve to empty arrays. Results append base styles, matching variants in authored order, then matching compounds in authored order.

import { useMemo } from "react"
import type { ImageStyle, TextStyle, ViewStyle } from "react-native"
import { createComponentRecipeResolver } from "@opsydyn/crumbs-css/theme/recipes"
import { useThemedStyles } from "@opsydyn/crumbs-css/theme/core"
import { button, type ButtonSelection } from "./button.css"
function useButtonStyles(tone: NonNullable<ButtonSelection["tone"]>) {
const themed = useThemedStyles({ button })
const resolve = useMemo(
() => createComponentRecipeResolver(themed.button),
[themed.button],
)
const selection: ButtonSelection = { tone }
const styles = resolve(selection)
const rootStyles: ReadonlyArray<ViewStyle> = styles.root
const labelStyles: ReadonlyArray<TextStyle> = styles.label
const iconStyles: ReadonlyArray<ImageStyle> = styles.icon
return { rootStyles, labelStyles, iconStyles }
}

createComponentRecipeResolver(recipe, { cacheSize }) builds one plan and one resolver-local least-recently-used cache for every slot. The default cache is 32 selections, bounded to 0..1024; 0 disables retention. It exposes getCacheStats(), clearCache(), and dispose(). Invalid runtime variant values are warned about and skipped. componentRecipeFromRecipe(recipe, { slot }) wraps a legacy recipe in one named view slot; it preserves that recipe’s variant selection and cannot relabel the style as text or image.

Public tokens, component contracts, and extensions

Section titled “Public tokens, component contracts, and extensions”

Token visibility is declared by the token contract that owns each path. An omitted visibility option keeps identified tokens public for compatibility; when a list is supplied, every other definition token is private. Aliases inherit visibility from their terminal definition.

import { createTokenContract, defineAlias, defineToken } from "@opsydyn/crumbs-css/tokens"
export const tokens = createTokenContract({
color: {
accent: defineToken("color"),
implementation: defineToken("color"),
},
semantic: {
foreground: defineAlias("color.accent"),
},
}, {
identity: { owner: "@acme/tokens", name: "brand", version: 1 },
visibility: { public: [["color", "accent"]] },
})

The public path set participates in the stable contract identity. Keep it unchanged for that identity or increment its version when the published surface changes. Visibility is compatibility metadata, not secrecy or an authorization boundary: runtime values and descriptors are inspectable.

A component contract publishes the slots and variant values that consumers may select, and opts in to each extension operation. Omitted extension points are sealed. The owner keeps a richer selection type than consumers receive:

import {
componentRecipe,
extendComponentRecipe,
type NativeComponentPublicProps,
type NativeComponentRecipeProps,
} from "@opsydyn/crumbs-css/style"
import { tokens } from "./tokens"
export const button = componentRecipe({
contract: {
identity: { owner: "@acme/ui", name: "Button", version: 1 },
public: {
slots: ["root", "label"],
variants: { tone: ["primary", "quiet"] },
},
extensionPoints: {
defaults: ["tone"],
variantValues: ["tone"],
compoundVariants: true,
slotStyles: ["root"],
},
},
slots: { root: "view", label: "text", internalIcon: "image" } as const,
variants: {
tone: {
primary: { root: { backgroundColor: tokens.color.accent } },
quiet: { root: { opacity: 0.8 } },
dangerInternal: { root: { opacity: 0.4 } },
},
density: { compact: { internalIcon: { width: 12 } } },
},
defaultVariants: { tone: "primary", density: "compact" },
}, "button")
type OwnerSelection = NativeComponentRecipeProps<typeof button>
type ConsumerSelection = NativeComponentPublicProps<typeof button>
const ownerSelection: OwnerSelection = { density: "compact", tone: "dangerInternal" }
const consumerSelection: ConsumerSelection = { tone: "quiet" }
export const brandedButton = extendComponentRecipe(button, {
identity: { owner: "@acme/brand", name: "BrandedButton", version: 1 },
defaultVariants: { tone: "brand" },
variants: { tone: { brand: { root: { backgroundColor: tokens.semantic.foreground } } } },
slotOverrides: { root: { borderRadius: 12 } },
})
type BrandedSelection = NativeComponentPublicProps<typeof brandedButton>
const brandedSelection: BrandedSelection = { tone: "brand" }

The owner can select private implementation variants through NativeComponentRecipeProps. NativeComponentPublicProps contains only the contract’s public axes and values, plus values added through the extension chain. Extension defaults, new values, compounds, and slot styles each require the matching extensionPoints permission; extension identities form one validated base-to-leaf chain. Extension resolvers reject explicit selections of private owner values before cache lookup. Unknown public values retain the resolver’s warn-and-skip behavior. TypeScript checks inferred extension configs against the same permissions, including mixed and union-shaped maps, compound records, and identity keys; runtime validation also protects JavaScript and widened inputs.

Defaults merge from owner to extensions in base-to-leaf order, then caller selection wins:

const selected = { ...ownerDefaults, ...baseExtensionDefaults, ...leafExtensionDefaults, ...caller }

For a valid v3 selection, every slot receives styles in this order:

  1. Owner base slot styles.
  2. Ordinary variant branches in the owner’s authored axis order, including permitted extension values on those axes.
  3. The state-discriminator branch, after ordinary variants.
  4. Matching compounds: owner first, then each extension base-to-leaf.
  5. Permitted slot overrides, extension base-to-leaf.

If a state case rejects the normalized selection, resolution returns only the owner’s base slot styles and skips variants, compounds, and overrides. This behavior applies to typed and untyped callers. Existing v1 descriptors retain their unconstrained behavior, v2 descriptors retain state constraints, and contract-bearing recipes use v3. Unsupported future versions fail closed.

createComponentRecipeResolver validates the complete extension chain and builds its plan once. It stores authored branches and constraints rather than materializing every variant combination; selection caching remains bounded and resolver-local. Manifest generation, policy checks, and automated public surface impact tooling belong to M9 and are not part of the runtime contract API.

Define each finite scale against the primitive kinds that may consume it. The property value is checked against the React Native property type, and branded domain tokens retain their colour, length, opacity, or enum boundary.

import { createSprinkles, defineProperties } from "@opsydyn/crumbs-css/style"
const viewProperties = defineProperties({
primitives: ["view"] as const,
properties: {
paddingLeft: { sm: 8, lg: 24 },
paddingRight: { sm: 8, lg: 24 },
backgroundColor: { canvas: "#0a0a0a" },
},
shorthands: {
px: ["paddingLeft", "paddingRight"] as const,
},
})
export const sprinkles = createSprinkles(viewProperties)
export const card = sprinkles({ px: "sm", paddingLeft: "lg" })

Selection keys are resolved in authored object order. Here px first assigns both physical sides, then paddingLeft: "lg" replaces only the left side; paddingRight remains 8. false, null, and undefined omit a selection, and an unknown scale or shorthand target fails before a class is emitted.

Utility outputs compose directly with Crumbs helpers and recipe branches. The mapper overload follows vanilla-extract’s data-first shape while retaining the native result type:

const spacing = { compact: "sm", roomy: "lg" } as const
export const spacingStates = styleVariants(spacing, (scale, state) => {
return sprinkles({ px: scale })
})
export const card = recipe({
base: sprinkles({ px: "sm" }),
variants: {
density: {
compact: spacingStates.compact,
roomy: spacingStates.roomy,
},
},
})

The mapper receives the finite value and its key. Static utility classes keep their primitive scope and token payload through composition, mapped variants, recipe bases, branches, and compound styles.

For values chosen from component state, export a generated lookup plan from the authored module. It contains one compiled reference per property and scale, so runtime selection does not expand a Cartesian product of all combinations:

spacing.css.ts
import { createSprinklesLookupPlan } from "@opsydyn/crumbs-css/style"
export const sprinklesPlan = createSprinklesLookupPlan(viewProperties, "spacing")

Resolve the plan through the normal theme path, then create a bounded runtime resolver. Selection order remains authored order, including shorthand targets; the resolver returns a readonly array suitable for a React Native style prop.

import { createSprinklesResolver } from "@opsydyn/crumbs-css/theme/sprinkles"
import { useThemedStyles } from "@opsydyn/crumbs-css/theme/core"
import { useMemo } from "react"
import { View } from "react-native"
import * as s from "./spacing.css"
export function Card({ compact }: { compact: boolean }) {
const themed = useThemedStyles(s)
const resolve = useMemo(
() => createSprinklesResolver(themed.sprinklesPlan),
[themed.sprinklesPlan],
)
return <View style={resolve({ px: compact ? "sm" : "lg" })} />
}

createSprinklesResolver(plan, { cacheSize }) defaults to a resolver-local least-recently-used cache of 32 selections, bounded to 0..1024; 0 disables retention. It exposes getCacheStats(), clearCache(), and dispose() just like the recipe resolver. createSprinkles remains the authored static path; the NativeSprinklesLookupPlan and NativeSprinklesResolver types make the static/runtime boundary explicit.

Use this compatibility entrypoint in runtime/component code when you need the advanced theme APIs:

  • createThemeDependencyPlan
  • createThemeDependencyResolver
  • resolveRecipeStyle
  • createRecipeResolver
  • resolveComponentRecipeStyles
  • createComponentRecipeResolver
  • createSprinklesResolver
  • TokenThemeProvider
  • TokenThemeScopeProvider
  • useTokenTheme

Use this lean entrypoint for common provider, hook and token-resolution code:

  • ThemeProvider
  • useTheme
  • useThemeSelector
  • useThemedStyle
  • useThemedStyles
  • resolveThemeTokens
  • resolveThemeStyles
  • createThemeTokenReference
  • isThemeTokenReference

It is emitted as an independent graph so consumers that do not need scopes, dependency plans or recipe controls do not load those implementations. Both theme entrypoints retain a React-only external runtime dependency boundary.

Use this additive path for flat native style maps whose token references should retain the domain and value type from createTokenContract:

import { createTokenStyles, themeToken, ThemeProvider, useTokenStyles } from "@opsydyn/crumbs-css/theme/token"
import { createTokenContract, createTokenTheme, defineToken } from "@opsydyn/crumbs-css/tokens"
import type { ViewStyle } from "react-native"
import { View } from "react-native"
const vars = createTokenContract({
color: { surface: defineToken("color") },
space: { card: defineToken("length") },
})
const light = createTokenTheme(vars, { color: { surface: "#ffffff" }, space: { card: 16 } })
const styles = createTokenStyles<ViewStyle>()({
card: {
backgroundColor: themeToken(vars.color.surface),
padding: themeToken(vars.space.card),
},
})
function Card() {
const themed = useTokenStyles(styles)
return <View style={themed.card} />
}
export function App() {
return <ThemeProvider theme={light}><Card /></ThemeProvider>
}

themeToken accepts only a domain-branded reference from createTokenContract. createTokenStyles<ViewStyle | TextStyle | ImageStyle>() checks that each token domain and its contract-derived value fit the selected native property. Use resolveTokenStyles(styles, theme) for non-React resolution. The supported shape is a flat record of style names to primitive native properties; arrays, nested style values, conditions, recipes, component slots, and extensions stay on the existing authoring/runtime paths.

This path is opt-in and additive. Its provider shares the canonical theme store with the existing theme entries. It does not replace theme/core, change an existing import, or promise a smaller application bundle, startup time, native frame time, or memory use. Use theme/core for the general style-resolution surface and theme/token when contract-derived token/property compatibility is the reason to choose a narrower API.

Use these additive paths when a package or application module needs one theme feature family without importing the wider compatibility API:

PathAPI family
@opsydyn/crumbs-css/theme/conditionsNative condition snapshots, normalization, branch tracing, store and React subscription hook.
@opsydyn/crumbs-css/theme/expressionsTyped expression data, constructors, dependency inspection, evaluation, tracing and folding.
@opsydyn/crumbs-css/theme/recipesRecipe and component-recipe plan constructors, resolvers and cache controls.
@opsydyn/crumbs-css/theme/sprinklesBounded runtime Sprinkles resolver and lookup/resolution plan types.

The paths are additive and share canonical bindings with theme; existing imports remain supported. Conditions has a React peer dependency for its hook, while expressions, recipes and Sprinkles have no runtime external dependency. Choose a focused path for a narrower public dependency boundary. It does not by itself guarantee a smaller application bundle: bundler tree-shaking, reachable imports and the consuming app determine the result. Check the production consumer bundle and source maps before claiming a size improvement.

Use this runtime-safe entrypoint for domain-aware token contracts and theme snapshots:

  • createTokenContract
  • createTokenTheme
  • createTokenThemeFromExternalPayload
  • applyTokenThemePatch
  • createTokenThemeScope
  • alias and defineAlias
  • defineToken and token

Its contract/theme construction graph contains only plain runtime data and validation helpers. @opsydyn/crumbs-css/tokens/schema and @opsydyn/crumbs-css/tokens/optic are explicit advanced boundaries for Effect Schema decoding and Optic-based updates.

createRecipeResolver(recipe, { cacheSize }) precomputes the recipe selection plan and returns a callable resolver with getCacheStats(), clearCache() and dispose() controls. The cache is resolver-local, least-recently-used and bounded to 0..1024 entries; the default is 32 and 0 disables retention.

useThemeSelector(selector) subscribes to the selected value of the nearest theme snapshot. Selectors should return a stable reference for unchanged input; primitives are the simplest choice. The hook is intended for focused token or derived-style reads when a component should not observe unrelated theme changes.

Use this synchronous, opt-in tooling entrypoint to import an explicitly selected DTCG Format/Resolver snapshot into a manifest-backed Crumbs theme payload. It accepts an in-memory absolute-URI document map, a selected manifest contract identity, optional modifier selections, and an explicit remBasePx when the selected sources contain rem dimensions. It returns the version-1 theme payload with a provenance sidecar or stable diagnostics; it does not read files or fetch URLs.

The supported DTCG profile and native conversion matrix are deliberately narrow. Effect 4 is bundled inside this tooling boundary; consumers do not add an Effect dependency or use an Effect runner. The adapter is not re-exported from ordinary runtime entrypoints. See the DTCG import guide.

Use this local-only tooling entrypoint to decode a versioned ownership map, annotate supported reports against explicitly supplied manifests, and encode a canonical owned-report envelope. It exports decodeDesignSystemOwnership, annotateDesignSystemReport, and encodeCanonicalOwnedReport, together with plain ownership, attribution, and report types. The report adapters cover compatibility, policy, source migration, style explanation, and DTCG import results. Assignments use exact stable manifest IDs; names and paths are not identity fallbacks. Effect 4 Schema is bundled behind this entrypoint, so consumers do not add an Effect dependency. See the local ownership guide.

Use this entrypoint in metro.config.js for:

  • withNativeStyles

Advanced/debugging surface for direct transformer access. Most consumers should not import this directly in app code.

Opt in to assignVars, resolveAssignedStyles and useAssignedStyles. The six type exports are NativeLocalVar, NativeLocalFallback, NativeLocalVarShape, NativeLocalVarValues, NativeVarAssignments and ResolvedAssignedStyles. Authoring declarations share their nominal graph. These APIs are not re-exported by the root or other theme entries. See local assignments. Support requires local-plan-v1 compiler/runtime capability, included in the published stable 1.0.0 package.

@opsydyn/crumbs-css/theme/containers publishes six values: defineContainer, getContainerBucket, resolveContainerValue, useContainerLayout, ContainerProvider, useContainerValue. Its seven public types are NativeContainerAxis, NativeContainerDefinitionInput, NativeContainerDefinition, NativeContainerBucket, NativeContainerValues, NativeContainerLayout and ContainerProviderProps. It is an independent React-only runtime graph.

Use container conditions describes exhaustive maps, independently constrained owners and portal adapters. These exports are opt-in and are not forwarded from root/theme/core. Availability belongs to the exact tarball, not every historical alpha package with the same version.

@opsydyn/crumbs-css/theme/motion exports only defineMotion at runtime; NativeMotionChannel, NativeMotionTarget, NativeMotionDefinitionInput, NativeMotionDefinition, NativeMotionState and NativeMotionEasing are types. It has no runtime peers.

@opsydyn/crumbs-css/theme/motion/native exports only useNativeMotion; options/controller/run/result and pure motion types are type-only. This optional graph uses public React/React Native. Both entries build independently and add no values through older entries or aliases. See native motion.

@opsydyn/crumbs-css/tokens/algebra (M11.4)

Section titled “@opsydyn/crumbs-css/tokens/algebra (M11.4)”

Pure optional authoring exports: createColor, mixColor, setColorAlpha, multiplyColorAlpha, toNativeColor, createTypography, scaleTypography, createTypographyScale, toNativeTypography, TokenAlgebraError.

Types: AlgebraColor, AlgebraColorInput, ColorInterpolationSpace, ColorMixOptions, Typography, TypographyInput, TypographyScaleOptions, TypographyScale, NativeTypographyStyle, TokenAlgebraErrorCode. No existing entry re-exports these values. ESM and CommonJS have separate JavaScript graphs and canonical shared type identity. The entry has zero runtime externals. See token algebra.

@opsydyn/crumbs-css/extensions exports only defineExtension and ExtensionError as values. A type-only module witness preserves a selected named factory’s argument tuple and callable result. The entry has no runtime peers. Generated modules statically import the real runtime factory; their dependencies come from that explicit endpoint. See Create typed runtime extensions.

This index lists every public runtime value and type-only export in the v1 declarations and JavaScript. Import paths are relative to @opsydyn/crumbs-css; type-only exports use import type. Internal dist files outside the export map are not public APIs.

All values and types by entrypoint

.

Values: NATIVE_RESPONSIVE_CONDITION_MATCHERS, NATIVE_RESPONSIVE_CONDITION_NAMES, NativeExpressionEvaluationError, NativeExpressionProgramType, NativeExpressionProgramVersion, NativeExpressionType, NativeExpressionVersion, NativeSprinklesLookupPlanType, NativeSprinklesLookupPlanVersion, NativeStylesDiagnosticCode, NativeThemeTokenReferenceType, createNativeExpressionAdd, createNativeExpressionAlias, createNativeExpressionClamp, createNativeExpressionCompose, createNativeExpressionConditionReference, createNativeExpressionDomain, createNativeExpressionFallback, createNativeExpressionLiteral, createNativeExpressionMatch, createNativeExpressionProgram, createNativeExpressionRuntime, createNativeExpressionScale, createNativeExpressionSubtract, createNativeExpressionTokenReference, createNativeMapValueFn, createNativeNormalizeValueFn, createSprinkles, createSprinklesLookupPlan, createTheme, createThemeContract, createThemeTokenReference, defineProperties, evaluateNativeExpression, foldNativeExpression, formatNativeStylesDiagnostic, getThemeTokenPath, getThemeVarName, imageStyle, isNativeExpression, isNativeExpressionProgram, isThemeTokenReference, isThemeVar, mapNativeConditionValueToBranches, nativeExpressionDependencyKey, nativeExpressionDomainKey, recipe, style, styleVariants, textStyle, viewStyle, withNativeStyles.

Type-only exports: NativeConditionDefinitions, NativeConditionKey, NativeConditionNameList, NativeConditionValue, NativeConditionValueMapper, NativeConditionalRecord, NativeConditionalTuple, NativeConditionalValue, NativeExpression, NativeExpressionAdd, NativeExpressionAlias, NativeExpressionClamp, NativeExpressionColorDomain, NativeExpressionCompose, NativeExpressionConditionReference, NativeExpressionDependency, NativeExpressionDomain, NativeExpressionDomainInput, NativeExpressionDurationDomain, NativeExpressionEnumDomain, NativeExpressionEvaluationErrorCode, NativeExpressionEvaluationState, NativeExpressionFallback, NativeExpressionLengthDomain, NativeExpressionLiteral, NativeExpressionMatch, NativeExpressionMatchCase, NativeExpressionMatchOptions, NativeExpressionNumberDomain, NativeExpressionOpacityDomain, NativeExpressionProgram, NativeExpressionRuntime, NativeExpressionRuntimeStats, NativeExpressionScale, NativeExpressionSubtract, NativeExpressionTokenReference, NativeExpressionValue, NativeImageStyleInput, NativeMapValueFn, NativeNormalizeValueFn, NativeNormalizedConditionalValue, NativeRecipe, NativeRecipeCompoundVariant, NativeRecipeConfig, NativeRecipeProps, NativeRecipeSelection, NativeRecipeStyleInput, NativeRecipeVariants, NativeSprinkleDefinition, NativeSprinklePropertyConfig, NativeSprinklePropertyKey, NativeSprinkleShorthandConfig, NativeSprinkleStaticResult, NativeSprinklesConfig, NativeSprinklesLookupPlan, NativeSprinklesSelection, NativeStyle, NativeStyleComposition, NativeStyleInput, NativeStyleRule, NativeStyleVariants, NativeStylesDiagnosticCodeValue, NativeTextStyleInput, NativeTheme, NativeThemeTokenReference, NativeThemeValue, NativeThemeVar, NativeViewStyleInput, ThemeContract, ThemeContractInput, ThemeValues.

Values: NATIVE_RESPONSIVE_CONDITION_MATCHERS, NATIVE_RESPONSIVE_CONDITION_NAMES, NativeComponentRecipeContractVersion, NativeComponentRecipeExtensionType, NativeComponentRecipeExtensionVersion, NativeComponentRecipeType, NativeComponentRecipeVersion, NativeExpressionEvaluationError, NativeExpressionProgramType, NativeExpressionProgramVersion, NativeExpressionType, NativeExpressionVersion, NativeRecipeClassType, NativeRecipeType, NativeSprinklesLookupPlanType, NativeSprinklesLookupPlanVersion, NativeThemeTokenReferenceType, componentRecipe, componentRecipeFromRecipe, createNativeExpressionAdd, createNativeExpressionAlias, createNativeExpressionClamp, createNativeExpressionCompose, createNativeExpressionConditionReference, createNativeExpressionDomain, createNativeExpressionFallback, createNativeExpressionLiteral, createNativeExpressionMatch, createNativeExpressionProgram, createNativeExpressionRuntime, createNativeExpressionScale, createNativeExpressionSubtract, createNativeExpressionTokenReference, createNativeMapValueFn, createNativeNormalizeValueFn, createSprinkles, createSprinklesLookupPlan, createTheme, createThemeContract, createThemeTokenReference, createVar, defineProperties, evaluateNativeExpression, extendComponentRecipe, fallbackVar, foldNativeExpression, getThemeTokenPath, getThemeVarName, imageStyle, isNativeExpression, isNativeExpressionProgram, isThemeTokenReference, isThemeVar, mapNativeConditionValueToBranches, nativeExpressionDependencyKey, nativeExpressionDomainKey, recipe, style, styleVariants, textStyle, viewStyle.

Type-only exports: DomainThemeVar, LegacyNativeThemeVar, NativeComponentCompoundVariant, NativeComponentContract, NativeComponentContractExtensionPoints, NativeComponentContractIdentity, NativeComponentPublicProps, NativeComponentRecipe, NativeComponentRecipeConfig, NativeComponentRecipeExtensionConfig, NativeComponentRecipeExtensionDescriptor, NativeComponentRecipeProps, NativeComponentResolvedStyles, NativeComponentSlotKind, NativeComponentSlotStyleInput, NativeComponentSlotStyles, NativeComponentSlots, NativeComponentStateVariants, NativeComponentVariantSelection, NativeComponentVariantsConfig, NativeConditionDefinitions, NativeConditionKey, NativeConditionNameList, NativeConditionValue, NativeConditionValueMapper, NativeConditionalRecord, NativeConditionalTuple, NativeConditionalValue, NativeExpression, NativeExpressionAdd, NativeExpressionAlias, NativeExpressionClamp, NativeExpressionColorDomain, NativeExpressionCompose, NativeExpressionConditionReference, NativeExpressionDependency, NativeExpressionDomain, NativeExpressionDomainInput, NativeExpressionDurationDomain, NativeExpressionEnumDomain, NativeExpressionEvaluationErrorCode, NativeExpressionEvaluationState, NativeExpressionFallback, NativeExpressionLengthDomain, NativeExpressionLiteral, NativeExpressionMatch, NativeExpressionMatchCase, NativeExpressionMatchOptions, NativeExpressionNumberDomain, NativeExpressionOpacityDomain, NativeExpressionProgram, NativeExpressionRuntime, NativeExpressionRuntimeStats, NativeExpressionScale, NativeExpressionSubtract, NativeExpressionTokenReference, NativeExpressionValue, NativeImageStyleInput, NativeMapValueFn, NativeNormalizeValueFn, NativeNormalizedConditionalValue, NativeRecipe, NativeRecipeCompoundVariant, NativeRecipeConfig, NativeRecipeProps, NativeRecipeSelection, NativeRecipeStyleInput, NativeRecipeVariantSelection, NativeRecipeVariantValue, NativeRecipeVariants, NativeRecipeVariantsConfig, NativeSprinkleDefinition, NativeSprinklePropertyConfig, NativeSprinklePropertyKey, NativeSprinkleShorthandConfig, NativeSprinkleStaticResult, NativeSprinklesConfig, NativeSprinklesLookupPlan, NativeSprinklesSelection, NativeStyle, NativeStyleComposition, NativeStyleInput, NativeStyleRule, NativeStyleTokenDomainForProperty, NativeStyleVariants, NativeTextStyleInput, NativeTheme, NativeThemeTokenReference, NativeThemeValue, NativeThemeVar, NativeViewStyleInput, ThemeContract, ThemeContractInput, ThemeValues, ThemeVar, TokenDomain, TokenDomainValue.

Values: NATIVE_CONDITION_BREAKPOINTS, NATIVE_RESPONSIVE_CONDITION_MATCHERS, NATIVE_RESPONSIVE_CONDITION_NAMES, NativeExpressionEvaluationError, NativeThemeTokenReferenceType, ThemeProvider, TokenThemeProvider, TokenThemeScopeProvider, createComponentRecipeResolutionPlan, createComponentRecipeResolver, createNativeConditionResolver, createNativeConditionStore, createNativeExpressionRuntime, createNativeMapValueFn, createNativeNormalizeValueFn, createRecipeResolver, createSprinklesResolver, createThemeDependencyPlan, createThemeDependencyResolver, createThemeTokenReference, defaultNativeConditionSnapshot, evaluateNativeExpression, foldNativeExpression, isThemeTokenReference, isTokenThemeCompatible, mapNativeConditionValueToBranches, nativeConditionSnapshotKey, normalizeNativeConditionInput, resolveComponentRecipeResolutionPlan, resolveComponentRecipeStyles, resolveRecipeStyle, resolveThemeStyles, resolveThemeTokens, useNativeConditionSnapshot, useTheme, useThemeSelector, useThemedStyle, useThemedStyles, useTokenTheme.

Type-only exports: BoundedNativeComponentRecipeResolver, BoundedNativeRecipeResolver, BoundedNativeSprinklesResolver, ComponentRecipeCompoundMatcher, ComponentRecipeInvalidVariantReporter, ComponentRecipeResolutionPlan, ComponentRecipeResolutionVariant, ComponentRecipeResolverControls, ComponentRecipeResolverOptions, NativeComponentRecipeResolver, NativeConditionBranch, NativeConditionDefinitions, NativeConditionInput, NativeConditionMatcher, NativeConditionNameList, NativeConditionSnapshot, NativeConditionSource, NativeConditionStore, NativeConditionStoreOptions, NativeConditionStoreStats, NativeConditionValueMapper, NativeConditionalRecord, NativeConditionalTuple, NativeConditionalValue, NativeContrastPreference, NativeDirection, NativeExpressionEvaluationErrorCode, NativeExpressionEvaluationState, NativeExpressionRuntime, NativeExpressionRuntimeStats, NativeFontScaleBucket, NativeHeightBucket, NativeMapValueFn, NativeMotionPreference, NativeNormalizeValueFn, NativeNormalizedConditionalValue, NativeOrientation, NativePlatform, NativeRecipeResolver, NativeSprinklesLookupPlan, NativeSprinklesResolutionPlan, NativeSprinklesResolutionSelection, NativeSprinklesResolver, NativeSprinklesSelection, NativeThemeTokenReference, NativeWidthBucket, RecipeCompoundMatcher, RecipeResolutionInput, RecipeResolutionPlan, RecipeResolutionVariant, RecipeResolverCacheStats, RecipeResolverControls, RecipeResolverOptions, ResolvedThemeStyles, SprinklesResolverControls, SprinklesResolverOptions, ThemeDependencyPathSegment, ThemeDependencyPlan, ThemeDependencyPlanEntry, ThemeDependencyResolution, ThemeDependencyResolutionMetrics, ThemeDependencyResolver, TokenThemeProviderProps, TokenThemeScopeProviderProps.

Values: NATIVE_CONDITION_BREAKPOINTS, NATIVE_RESPONSIVE_CONDITION_MATCHERS, NATIVE_RESPONSIVE_CONDITION_NAMES, NativeThemeTokenReferenceType, ThemeProvider, createNativeConditionResolver, createNativeConditionStore, createNativeMapValueFn, createNativeNormalizeValueFn, createThemeTokenReference, defaultNativeConditionSnapshot, isThemeTokenReference, mapNativeConditionValueToBranches, nativeConditionSnapshotKey, normalizeNativeConditionInput, resolveThemeStyles, resolveThemeTokens, useNativeConditionSnapshot, useTheme, useThemeSelector, useThemedStyle, useThemedStyles.

Type-only exports: NativeConditionBranch, NativeConditionDefinitions, NativeConditionInput, NativeConditionMatcher, NativeConditionNameList, NativeConditionSnapshot, NativeConditionSource, NativeConditionStore, NativeConditionStoreOptions, NativeConditionStoreStats, NativeConditionValueMapper, NativeConditionalRecord, NativeConditionalTuple, NativeConditionalValue, NativeContrastPreference, NativeDirection, NativeFontScaleBucket, NativeHeightBucket, NativeMapValueFn, NativeMotionPreference, NativeNormalizeValueFn, NativeNormalizedConditionalValue, NativeOrientation, NativePlatform, NativeThemeTokenReference, NativeWidthBucket, ResolvedThemeStyles.

Values: ThemeProvider, createTokenStyles, resolveTokenStyles, themeToken, useTokenStyles.

Type-only exports: ResolvedTokenNativeStyle, ResolvedTokenStyleMap, ThemeStyleToken.

Values: NATIVE_CONDITION_BREAKPOINTS, NATIVE_RESPONSIVE_CONDITION_MATCHERS, NATIVE_RESPONSIVE_CONDITION_NAMES, createNativeConditionResolver, createNativeConditionStore, createNativeMapValueFn, createNativeNormalizeValueFn, defaultNativeConditionSnapshot, mapNativeConditionValueToBranches, nativeConditionSnapshotKey, normalizeNativeConditionInput, traceNativeConditionBranches, useNativeConditionSnapshot.

Type-only exports: NativeConditionBranch, NativeConditionBranchDecision, NativeConditionBranchTrace, NativeConditionDefinitions, NativeConditionInput, NativeConditionMatcher, NativeConditionNameList, NativeConditionSnapshot, NativeConditionSource, NativeConditionStore, NativeConditionStoreOptions, NativeConditionStoreStats, NativeConditionValueMapper, NativeConditionalRecord, NativeConditionalTuple, NativeConditionalValue, NativeContrastPreference, NativeDirection, NativeFontScaleBucket, NativeHeightBucket, NativeMapValueFn, NativeMotionPreference, NativeNormalizeValueFn, NativeNormalizedConditionalValue, NativeOrientation, NativePlatform, NativeWidthBucket.

Values: NativeExpressionEvaluationError, NativeExpressionProgramType, NativeExpressionProgramVersion, NativeExpressionType, NativeExpressionVersion, createNativeExpressionAdd, createNativeExpressionAlias, createNativeExpressionClamp, createNativeExpressionCompose, createNativeExpressionConditionReference, createNativeExpressionDomain, createNativeExpressionFallback, createNativeExpressionLiteral, createNativeExpressionMatch, createNativeExpressionProgram, createNativeExpressionRuntime, createNativeExpressionScale, createNativeExpressionSubtract, createNativeExpressionTokenReference, evaluateNativeExpression, evaluateNativeExpressionWithTrace, foldNativeExpression, isNativeExpression, isNativeExpressionProgram, nativeExpressionDependencyKey, nativeExpressionDomainKey.

Type-only exports: NativeConditionKey, NativeConditionValue, NativeExpression, NativeExpressionAdd, NativeExpressionAlias, NativeExpressionClamp, NativeExpressionColorDomain, NativeExpressionCompose, NativeExpressionConditionReference, NativeExpressionDependency, NativeExpressionDomain, NativeExpressionDomainInput, NativeExpressionDurationDomain, NativeExpressionEnumDomain, NativeExpressionEvaluationErrorCode, NativeExpressionEvaluationState, NativeExpressionFallback, NativeExpressionLengthDomain, NativeExpressionLiteral, NativeExpressionMatch, NativeExpressionMatchCase, NativeExpressionMatchOptions, NativeExpressionMatchTrace, NativeExpressionNumberDomain, NativeExpressionOpacityDomain, NativeExpressionProgram, NativeExpressionRuntime, NativeExpressionRuntimeStats, NativeExpressionScale, NativeExpressionSubtract, NativeExpressionTokenReference, NativeExpressionValue.

Values: createComponentRecipeResolutionPlan, createComponentRecipeResolver, createRecipeResolver, resolveComponentRecipeResolutionPlan, resolveComponentRecipeStyles, resolveRecipeStyle.

Type-only exports: BoundedNativeComponentRecipeResolver, BoundedNativeRecipeResolver, ComponentRecipeCompoundMatcher, ComponentRecipeInvalidVariantReporter, ComponentRecipeResolutionPlan, ComponentRecipeResolutionVariant, ComponentRecipeResolverControls, ComponentRecipeResolverOptions, NativeComponentRecipeResolver, NativeRecipeResolver, RecipeCompoundMatcher, RecipeResolutionInput, RecipeResolutionPlan, RecipeResolutionVariant, RecipeResolverCacheStats, RecipeResolverControls, RecipeResolverOptions.

Values: createSprinklesResolver.

Type-only exports: BoundedNativeSprinklesResolver, NativeSprinklesLookupPlan, NativeSprinklesResolutionPlan, NativeSprinklesResolutionSelection, NativeSprinklesResolver, NativeSprinklesSelection, SprinklesResolverControls, SprinklesResolverOptions.

Values: TOKEN_THEME_CONTEXT_PRECEDENCE, TokenAliasDefinitionType, TokenDefinitionType, alias, applyTokenThemePatch, createTokenContract, createTokenTheme, createTokenThemeFromExternalPayload, createTokenThemeScope, createTokenThemeScopedSnapshot, createTokenThemeSnapshot, defineAlias, defineToken, getTokenContractIdentity, getTokenContractKey, getTokenId, getTokenOrigin, isTokenAliasDefinition, isTokenDefinition, isTokenDomainValue, token.

Type-only exports: DomainThemeVar, ExternalTokenThemePayload, ExternalTokenThemeResult, LegacyNativeThemeVar, NativeThemeVar, PrivateDomainThemeVar, PublicDomainThemeVar, ThemeTokenOrigin, ThemeTokenOriginStep, ThemeTokenVisibility, TokenAliasDefinition, TokenAliasTarget, TokenContract, TokenContractIdentity, TokenContractIdentityInput, TokenContractInput, TokenContractOptions, TokenContractVisibility, TokenContractVisibilityPath, TokenDefinition, TokenDefinitionInput, TokenDomain, TokenDomainDefinition, TokenDomainValue, TokenThemeContextName, TokenThemeContexts, TokenThemeLayer, TokenThemeOperationError, TokenThemePatchResult, TokenThemeSnapshotInput, TokenThemeValues.

Values: createTokenThemeFocus.

Type-only exports: TokenThemeFocus, TokenThemeFocusResult.

Values: decodeExternalTokenTheme, decodeTokenValue, encodeExternalTokenTheme, externalTokenThemeCodec.

Type-only exports: ExternalTokenTheme.

Values: decodeTokenValue.

Type-only exports: none.

Values: DESIGN_SYSTEM_MANIFEST_FORMAT, DESIGN_SYSTEM_MANIFEST_VERSION, MANIFEST_COMPATIBILITY_REPORT_FORMAT, MANIFEST_COMPATIBILITY_REPORT_VERSION, assembleManifest, checkManifestConsumers, compareManifests, decodeManifest, decodeManifestCompatibilityReport, decodeManifestContractIdentity, decodeManifestLifecycleAnnotation, decodeManifestSourceOrigin, decodeManifestUnresolvedReference, encodeCanonicalManifest, encodeCanonicalManifestCompatibilityReport, projectComponentRecipe, projectTokenContract, transformCssTsToStyleSheetWithManifestSidecar.

Type-only exports: CompilerManifestSidecar, ComponentRecipeRoot, DesignSystemManifest, ManifestAnalysisLimit, ManifestAnalysisLimitCode, ManifestArtifact, ManifestAssemblyInput, ManifestCapability, ManifestCompatibilityFinding, ManifestCompatibilityFindingCode, ManifestCompatibilityFindingLevel, ManifestCompatibilityReport, ManifestCompatibilityReportMode, ManifestCompiler, ManifestComponent, ManifestConsumerReference, ManifestContractIdentity, ManifestCoverageRoot, ManifestDependency, ManifestLifecycle, ManifestLifecycleAnnotation, ManifestModule, ManifestPackage, ManifestProducer, ManifestReportJson, ManifestSidecarPropertyOrigin, ManifestSourceOrigin, ManifestStateConstraint, ManifestToken, ManifestTokenAlias, ManifestTokenDomain, ManifestUnresolvedReference, TokenContractRoot, TransformCssTsManifestSidecarOptions, TransformCssTsOptions, TransformCssTsWithManifestSidecarResult.

Values: DESIGN_SYSTEM_POLICY_FORMAT, DESIGN_SYSTEM_POLICY_PRESET_VERSION, DESIGN_SYSTEM_POLICY_REPORT_FORMAT, DESIGN_SYSTEM_POLICY_REPORT_VERSION, DESIGN_SYSTEM_POLICY_VERSION, POLICY_RULE_IDS, checkDesignSystemPolicy, decodeDesignSystemPolicy, decodeDesignSystemPolicyReport, decodePolicyEvaluationDate, decodePolicyMeasurements, encodeCanonicalDesignSystemPolicyReport, getBuiltInPolicyPreset.

Type-only exports: BuiltInPolicyPreset, CheckDesignSystemPolicyInput, DesignSystemManifest, DesignSystemPolicy, DesignSystemPolicyFinding, DesignSystemPolicyReport, PolicyAnalysisLimit, PolicyAnalysisLimitCode, PolicyException, PolicyExceptionDiagnostic, PolicyFindingException, PolicyLevel, PolicyMeasurement, PolicyOutputBudget, PolicyPresetIdentity, PolicyPresetName, PolicyPropertyScope, PolicyProviderIdentity, PolicyReportJson, PolicyRuleId, PolicyTargetCapability, PolicyTargetProfile, StyleExplanationMetadata.

Values: SOURCE_MIGRATION_DIAGNOSTIC_CODES, SOURCE_MIGRATION_FORMAT, SOURCE_MIGRATION_REPORT_FORMAT, SOURCE_MIGRATION_REPORT_VERSION, SOURCE_MIGRATION_VERSION, decodeSourceMigration, decodeSourceMigrationReport, encodeCanonicalSourceMigrationReport, planSourceMigration.

Type-only exports: SourceComponentMigration, SourceImportBinding, SourceMigration, SourceMigrationAnalysisLimit, SourceMigrationDiagnostic, SourceMigrationDiagnosticCode, SourceMigrationFileReport, SourceMigrationFileStatus, SourceMigrationPlan, SourceMigrationReport, SourceTokenMigration.

Values: CRUMBS_DTCG_DIAGNOSTIC_CODES, CRUMBS_DTCG_FORMAT_PROFILE, CRUMBS_DTCG_IMPORT_FORMAT, CRUMBS_DTCG_IMPORT_VERSION, CRUMBS_DTCG_METADATA_FORMAT, CRUMBS_DTCG_METADATA_VERSION, CRUMBS_DTCG_RESOLVER_VERSIONS, importDtcgTheme.

Type-only exports: CrumbsDtcgDiagnostic, CrumbsDtcgDiagnosticCode, CrumbsDtcgImportRequest, CrumbsDtcgImportResult, CrumbsDtcgResolverVersion, CrumbsDtcgThemeImport, DtcgGroupMetadata, DtcgImportSidecar, DtcgJsonObject, DtcgJsonPrimitive, DtcgJsonValue, DtcgOperationResult, DtcgOrigin, DtcgTokenMetadata, DtcgTokenProvenance.

Values: DESIGN_SYSTEM_OWNED_REPORT_FORMAT, DESIGN_SYSTEM_OWNED_REPORT_VERSION, DESIGN_SYSTEM_OWNERSHIP_FORMAT, DESIGN_SYSTEM_OWNERSHIP_VERSION, OWNERSHIP_ANALYSIS_LIMIT_CODES, OWNERSHIP_MAX_REPORT_REFERENCES, OWNERSHIP_UNRESOLVED_REASON_CODES, annotateDesignSystemReport, decodeDesignSystemOwnership, decodeOwnedReport, encodeCanonicalOwnedReport.

Type-only exports: DesignSystemOwnership, OwnedReport, OwnershipAnalysisLimit, OwnershipAnalysisLimitCode, OwnershipAssignment, OwnershipAttribution, OwnershipOwner, OwnershipUnresolvedReason, SupportedSourceReport.

Values: STYLE_EXPLANATION_METADATA_TYPE, STYLE_EXPLANATION_REPORT_TYPE, STYLE_EXPLANATION_VALUE_TYPE, STYLE_EXPLANATION_VERSION, StyleExplanationInputError, explainStyle.

Type-only exports: ExplainStyleInput, StyleExplanationBranchDecision, StyleExplanationBranchKind, StyleExplanationBranchMetadata, StyleExplanationBranchReason, StyleExplanationChangedInput, StyleExplanationConditionDecision, StyleExplanationCoverage, StyleExplanationCoverageReason, StyleExplanationDeclaration, StyleExplanationExportMetadata, StyleExplanationExpressionDecision, StyleExplanationInputErrorCode, StyleExplanationJsonValue, StyleExplanationMetadata, StyleExplanationNegativeZero, StyleExplanationOpaqueReason, StyleExplanationOpaqueValue, StyleExplanationPath, StyleExplanationPathSegment, StyleExplanationPropertyExplanation, StyleExplanationReport, StyleExplanationSnapshot, StyleExplanationThemeToken, StyleExplanationThemeTokenIdentity, StyleExplanationTransitionStatus, StyleExplanationUndefined, StyleExplanationValue, StyleExplanationValueArray, StyleExplanationValueRecord.

Values: CrumbsDevtoolsProvider, CrumbsDevtoolsWidget, useCrumbsInspectorTarget.

Type-only exports: CrumbsDevtoolsCapture, CrumbsDevtoolsWidgetProps, CrumbsInspectorInput, CrumbsInspectorTargetId, CrumbsInspectorTargetOptions.

Opt-in React Native inspector for explicitly registered mounted targets. Requires a host clipboard adapter and a development-only import boundary. This entry is not in v1.2.0; it is introduced in v1.3.0. Check the release status for publication. See the explanation guide.

Values: createNativeStylesCacheStore, withNativeStyles.

Type-only exports: none.

Values: buildStyleSheetCode, getCacheKey, transform, transformCssTsToStyleSheet, transformCssTsToStyleSheetWithManifestSidecar.

Type-only exports: TransformCssTsManifestSidecarOptions, TransformCssTsOptions, TransformCssTsWithManifestSidecarResult.

Compatibility alias of /metro-plugin; the values and types are identical.

Compatibility alias of /theme; the values and types are identical.

Values: assignVars, resolveAssignedStyles, useAssignedStyles.

Type-only exports: NativeLocalFallback, NativeLocalVar, NativeLocalVarShape, NativeLocalVarValues, NativeVarAssignments, ResolvedAssignedStyles.

Values: ContainerProvider, defineContainer, getContainerBucket, resolveContainerValue, useContainerLayout, useContainerValue.

Type-only exports: ContainerProviderProps, NativeContainerAxis, NativeContainerBucket, NativeContainerDefinition, NativeContainerDefinitionInput, NativeContainerLayout, NativeContainerValues.

Values: defineMotion.

Type-only exports: NativeMotionChannel, NativeMotionDefinition, NativeMotionDefinitionInput, NativeMotionEasing, NativeMotionState, NativeMotionTarget.

Values: useNativeMotion.

Type-only exports: NativeMotionChannel, NativeMotionController, NativeMotionDefinition, NativeMotionDefinitionInput, NativeMotionEasing, NativeMotionOptions, NativeMotionResult, NativeMotionRun, NativeMotionState, NativeMotionTarget.

Values: TokenAlgebraError, createColor, createTypography, createTypographyScale, mixColor, multiplyColorAlpha, scaleTypography, setColorAlpha, toNativeColor, toNativeTypography.

Type-only exports: AlgebraColor, AlgebraColorInput, ColorInterpolationSpace, ColorMixOptions, NativeTypographyStyle, TokenAlgebraErrorCode, Typography, TypographyInput, TypographyScale, TypographyScaleOptions.

Values: ExtensionError, defineExtension.

Type-only exports: ExtensionConfig, ExtensionErrorCode, ExtensionFactory, ExtensionModule.

Package metadata, including the exact installed version, peer ranges and public export map.