Start here
  • InstallationAdd Nelumbo to a shadcn project
  • ThemingBrand accent, neutrals, dynamic color
  • Biology componentsSequences, maps, plates and trees
  • katalyx.bio

    Color, depth and motion

    The interface is built from true neutrals: black, white and a ladder of grays for depth. Color comes from an accent palette, used for status, categories, charts and focus. Every role maps onto shadcn's variables, so existing components keep working. Change the brand accent or the gray temperature under Customize theme in the sidebar.

    Install

    Generate the theme with your brand accent, then add it to any shadcn project (Tailwind v4).

    npm run themenpm run registry:build​npx shadcn@latest add @nelumbo/theme

    Neutral roles

    Everything structural is neutral. Primary is near-black in light mode and near-white in dark mode.

    primaryPrimary actions
    primary-containerTonal buttons, selection
    secondarySecondary fills
    mutedQuiet areas, secondary text
    inverse-surfaceSnackbars, tooltips

    Accent palette

    Eight accents plus the brand, each in four roles: the color, the content on it, a soft container and the content on the container. Use them for meaning, never for decoration. destructive, success and warning map to red, green and amber.

    brand
    Focus, brand momentsText in brand
    blue
    In reviewText in blue
    cyan
    ScheduledText in cyan
    green
    ShippedText in green
    amber
    Needs attentionText in amber
    orange
    BlockedText in orange
    red
    OverdueText in red
    pink
    DesignText in pink
    purple
    ResearchText in purple

    Surfaces

    Five gray container tones give layers depth. In light mode they step down from white; in dark mode they step up, so raised layers read as lighter, the way lit objects do.

    container-lowest
    container-low
    container
    container-high
    container-highest

    Dynamic color

    The interface is black and white. Wrap a page or a section in data-color="dynamic" and the controls inside it switch to the accent: selection, progress, navigation indicators, date and time selection, the FAB. Buttons, text and surfaces stay neutral. Nest data-color="neutral" to turn it off again.

    Default
    data-color="dynamic"
    <section data-color="dynamic">  <Switch />          {/* accent */}  <Button>Save</Button> {/* still neutral */}</section>

    Tonal palettes

    HCT tones 0 to 100. Roles pick tones from these ramps, so contrast is the same for every accent.

    neutral
    0
    10
    20
    30
    40
    50
    60
    70
    80
    90
    95
    98
    100
    blue
    0
    10
    20
    30
    40
    50
    60
    70
    80
    90
    95
    98
    100
    cyan
    0
    10
    20
    30
    40
    50
    60
    70
    80
    90
    95
    98
    100
    green
    0
    10
    20
    30
    40
    50
    60
    70
    80
    90
    95
    98
    100
    amber
    0
    10
    20
    30
    40
    50
    60
    70
    80
    90
    95
    98
    100
    orange
    0
    10
    20
    30
    40
    50
    60
    70
    80
    90
    95
    98
    100
    red
    0
    10
    20
    30
    40
    50
    60
    70
    80
    90
    95
    98
    100
    pink
    0
    10
    20
    30
    40
    50
    60
    70
    80
    90
    95
    98
    100
    purple
    0
    10
    20
    30
    40
    50
    60
    70
    80
    90
    95
    98
    100

    Elevation

    Two layers per level: a tight contact shadow and a soft ambient one, both cast in the neutral. Use shadow-e1 to shadow-e5.

    e1Cards
    e2Raised buttons
    e3Menus
    e4Dialogs
    e5Drag

    Shape

    One knob, --radius (default 14px), drives the whole scale. Controls use pill shapes that tighten while pressed.

    xs
    sm
    md
    lg
    xl
    2xl
    3xl

    Type roles

    Material's role names with tighter optical tracking at large sizes. Each role sets size, line height, tracking and weight in one class.

    type-display-mdQuiet confidence
    type-headline-mdSettings and privacy
    type-title-lgNotification preferences
    type-title-smWeekly digest
    type-body-lgWe send one summary every Monday morning with the changes your team made last week.
    type-body-mdYou can pause the digest at any time. Paused digests resume on the next Monday.
    type-label-lgSave changes
    type-label-smLAST EDITED 2 MIN AGO

    Motion

    Springs are simulated at build time and shipped as CSS linear() easings, so they run on the compositor with no JavaScript.

    ease-spring

    Default movement

    ease-spring-bouncy

    Press release, toggles

    ease-spring-snappy

    Micro feedback

    ease-emphasized

    Large transitions

    Interaction

    state-layer adds a hover, focus and press overlay in the content color. tactile compresses on press and springs back on release. Every interactive component uses both.