Skip to content
menu palettetanreidark_modetranslate

Color mode

Contrast

Design system

Showcase systems imitate other design systems to show how far Tanrei can go. They are examples, not designs Tanrei supports.

Copy linkEdit theme
palettetanrei

Color mode

Contrast

Design system

Showcase systems imitate other design systems to show how far Tanrei can go. They are examples, not designs Tanrei supports.

Copy linkEdit theme
Getting startedWebReactSwiftUIJetpack ComposeFlutterReact NativePresetsYour own design systemUsing Tanrei with AI agentsBrandDesign tokensDesign systems and customizationTheme StudioColorTypographyIconsShapeElevationMotionInteraction statesBehaviourLayoutSize and densityAccessibilityWordsColor tokensTypescale tokensShape tokensElevation tokensMotion tokensState tokensSpace and measure tokensComponentsButtonMain action buttonSegmented buttonShipped by cupertino, m3-likeButton groupButton with menuToolbarCopy buttonCheckboxRadio buttonSwitchChipMenuSliderSlider fieldCalendarDateTimePickerField groupRadio groupCheckbox groupSelectSelect fieldMenubarFile uploadFile picker AdvancedDrop zoneRatingText input AdvancedText fieldChip fieldFieldCombobox AdvancedCombobox fieldNumber input AdvancedNumber fieldColor input AdvancedColor fieldOne-time-code input AdvancedOne-time-code fieldEmbedded text input AdvancedChat composerCardDividerModal layer AdvancedDialogListList rowBottom sheetSide sheetCarouselCode blockTablePopoverStepsAccordionDescription listFigureApp shellPage headerTree viewTimelineImage previewHandleResizable frameSplit viewScroll areaSize transitionBadgeProgress indicatorMeterNumber tickerLoading indicatorSnackbarTooltipKeyboard shortcutTagInline codeCalloutAvatarEmpty stateTag groupSkeletonFile itemSwatchMarquee textTabsTab viewApp barNavigation barNavigation drawerSearchLinkPaginationPrevious and next linksStepperBreadcrumbsTable of contentsLink cardFAB menuShipped by m3-likeStatusHow Tanrei is builtContributingLicense and attribution
HomeToken referenceSpace and measure tokens

Space and measure tokens

The spacing scale, minimum targets, icon sizes, border widths and focus ring measurements.

content_copyView as Markdown

Dimension tokens under tanrei.sys. For guidance, read Layout and Accessibility.

Space

Token Value Preview
--tanrei-sys-space-space0 0px
--tanrei-sys-space-space25 2px
--tanrei-sys-space-space50 4px
--tanrei-sys-space-space75 6px
--tanrei-sys-space-space100 8px
--tanrei-sys-space-space125 10px
--tanrei-sys-space-space150 12px
--tanrei-sys-space-space175 14px
--tanrei-sys-space-space200 16px
--tanrei-sys-space-space250 20px
--tanrei-sys-space-space300 24px
--tanrei-sys-space-space400 32px
--tanrei-sys-space-space450 36px
--tanrei-sys-space-space500 40px
--tanrei-sys-space-space600 48px
--tanrei-sys-space-space700 56px
--tanrei-sys-space-space800 64px
--tanrei-sys-space-space900 72px

Generated from design/tokens/tanrei.light.tokens.json, tokens/sys/space.tokens.json

Minimum target

The least sizes of what a person presses. minimum is the least height (and, for an icon-only control, width) anything pressable is drawn at; touch and pointer are the least areas a press is taken from, under a finger and under a fine pointer, never less than minimum. Where they are above it, a control that stands alone reaches them past what it draws, and a row that touches its neighbours is drawn that high.

Token Value Preview
--tanrei-sys-target-minimum 36px
--tanrei-sys-target-pointer 36px
--tanrei-sys-target-spacing 8px
--tanrei-sys-target-touch 36px

Generated from design/tokens/tanrei.light.tokens.json, tokens/sys/measure.tokens.json

Icon

Token Value Preview
--tanrei-sys-icon-extra-small 16px
--tanrei-sys-icon-large 32px
--tanrei-sys-icon-medium 24px
--tanrei-sys-icon-small 20px

Generated from design/tokens/tanrei.light.tokens.json, tokens/sys/measure.tokens.json

Border

Token Value Preview
--tanrei-sys-border-hairline 1px
--tanrei-sys-border-thick 2px

Generated from design/tokens/tanrei.light.tokens.json, tokens/sys/measure.tokens.json

Focus ring

The focus indicator, from the control outwards: `offset` (negative = drawn inside the control), then an optional inner stroke in sys.color.focus-ring-inner, then the outer stroke in sys.color.focus-ring. Never animated.

Token Value Preview
--tanrei-sys-focus-inner-width 0px
--tanrei-sys-focus-offset 2px
--tanrei-sys-focus-outer-width 2px

Generated from design/tokens/tanrei.light.tokens.json, tokens/sys/measure.tokens.json