Skip to content

Title 5

dvk-title-5 is a recessed large-screen title header for command centers, city operations screens, and data visualization systems. Its top guide rail steps down through a shoulder on each side into a flat, brightly lit bottom edge, so the title sits inside a shallow trapezoidal recess instead of on a plain band. The recess is measured from the title box — a long name pushes the shoulders outward, a short one lets them close in — and the shoulder slant is solved against the host's aspect ratio so it keeps its angle on any screen. Use it at 56–64px tall.

html
<dvk-title-5 title-text="态势感知"></dvk-title-5>
html
<dvk-title-5 title-text="实时人数监控中心"></dvk-title-5>
综合态势感知平台
html
<dvk-title-5 colors="#52f0b5,#2f8cff,#b7f8ff">
  <span>综合态势感知平台</span>
</dvk-title-5>

Props

NameTypeDefaultNotes
colorstringCSS variable fallbackPrimary cyan color for the guide rails, the recess bottom edge, the outer ticks, and the title text glow. When set as a JavaScript property, a DataV-style color array is also accepted.
secondary-colorstringCSS variable fallbackSecondary blue color for the recess fill, the inner rail, and the slash accents.
accent-colorstringCSS variable fallbackAccent cyan color for the bright centre of the recess bottom edge.
colorsstringemptyComma-separated primary, secondary, and accent colors.
title-textstringemptyOptional centered system name. When omitted, the default slot is rendered inside the title area.

Events

NameDetail
dvk-ready{ tagName }

CSS Variables

NameMeaning
--dvk-color-primaryPrimary cyan fallback color.
--dvk-color-secondarySecondary blue fallback color.
--dvk-title-5-accentAccent cyan fallback color for the bright centre of the bottom edge.
--dvk-title-5-glow-opacityOpacity of the blurred rail glow and bottom-edge glow.
--dvk-title-5-title-topVertical position of the title box as a share of the host height. Defaults slightly above the recess centre so the bright bottom edge does not crowd the text.
--dvk-title-5-title-widthTitle box width, never exceeding the host. When unset the box follows its own text, and its measured width sets the recess.
--dvk-title-5-title-gapPadding between the title text and the recess edge. Any CSS length, defaulting to 2em so it scales with the title font. The measured box includes it, so the recess sits one gap beyond the text.
--dvk-title-5-title-colorTitle text color.
--dvk-title-5-title-fontTitle font shorthand.
--dvk-title-5-title-letter-spacingTitle letter spacing.
--dvk-title-5-title-strokeTight title text glow.
--dvk-title-5-title-glowWide title text glow.

Parts

PartDescription
graphicInternal SVG.
top-edgeThin gradient hairline along the very top of the header.
guide-railShared part for the straight outer guide rails beside the recess.
guide-rail-leftLeft guide rail, ending where the left shoulder begins.
guide-rail-rightMirrored right guide rail.
recessFilled trapezoidal recess surface under the title.
inner-railQuiet rail running parallel to and inside the main rail.
railShared part for the main rail outline.
rail-glowBlurred glow copy of the main rail.
rail-coreCrisp main rail stroke.
accentShared part for the bright bottom edge of the recess.
accent-glowBlurred glow under the recess bottom edge.
accent-coreCrisp bright stroke on the recess bottom edge.
slashShared part for the symmetric slash accents beside the recess.
slash-leftLeft group of slash accents.
slash-rightMirrored right group of slash accents.
tickShort quiet ticks near each outer end.
contentTitle content wrapper.
titleTitle box whose measured width sets the recess.
title-textGenerated title text when title-text is used.