Skip to content

Title 4 ​

dvk-title-4 is a wide title banner for command centers, park operations screens, and data visualization systems. A long upper rail runs in from each edge, steps down through a shoulder into a flat bottom horizon, and carries a white-hot core at its centre, so the title sits above a luminous baseline instead of inside a recess. Translucent diagonal ribbons and support rails sit just past each shoulder, and the frame is measured from the title box — a long name pushes the shoulders outward, a short one lets them close in — while the shoulder slant is solved against the host's aspect ratio so it keeps its angle on any screen. The artwork is drawn on a 2048×150 canvas (about 13.7:1), but a header this shape reads better a little taller — around 10:1, which is roughly 64px tall for a 638px-wide slot or 120px at 1200px. The title font follows whichever of the two dimensions is tighter, so extra height adds vertical air rather than enlarging the text. The component never sets its own height; give the host the box you want.

html
<dvk-title-4 title-text="智慧园区综合运营监控平台"></dvk-title-4>
html
<dvk-title-4 title-text="态势感知"></dvk-title-4>
综合态势感知平台
html
<dvk-title-4 colors="#52f0b5,#2f8cff,#b7f8ff">
  <span>综合态势感知平台</span>
</dvk-title-4>

Props ​

NameTypeDefaultNotes
colorstringCSS variable fallbackPrimary blue color for the bright end of the upper rails, the outer ticks, and the horizon halo. When set as a JavaScript property, a DataV-style color array is also accepted.
secondary-colorstringCSS variable fallbackSecondary deep blue color for the dim end of the upper rails, the ribbons, the support rails, and the quiet ends of the horizon.
accent-colorstringCSS variable fallbackAccent color for the white-hot centre of the horizon.
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 blue fallback color.
--dvk-color-secondarySecondary deep blue fallback color.
--dvk-title-4-accentAccent fallback color for the white-hot centre of the horizon.
--dvk-title-4-glow-opacityMultiplier on the blurred glow layers. Defaults to 1, which keeps the design's own glow weights.
--dvk-title-4-title-topVertical position of the title box as a share of the host height. Defaults to 37.33%, the design's title centre.
--dvk-title-4-title-widthTitle box width, never exceeding the host. When unset the box follows its own text, and its measured width sets the frame.
--dvk-title-4-title-gapPadding between the title text and the title box edge, so the frame sits one gap beyond the text. Defaults to 1.11em — twice the prototype's own 40-unit clearance, which read as crowded — and scales with the font, like the rest of the title family.
--dvk-title-4-title-sizeTitle font size. When unset it follows the host: 72 × min(hostHeight / 150, hostWidth / 2048). An explicit value always wins.
--dvk-title-4-title-fontTitle font shorthand. Replaces the family, weight, size, and line-height in one declaration.
--dvk-title-4-title-letter-spacingTitle letter spacing.
--dvk-title-4-title-colorTitle text color.
--dvk-title-4-title-strokeRestrained cool shadow under the title glyphs.
--dvk-title-4-title-glowDark depth shadow under the title glyphs.

Parts ​

PartDescription
graphicInternal SVG.
ribbonShared part for the diagonal ribbons beside each shoulder.
ribbon-leftLeft diagonal ribbon.
ribbon-rightMirrored right diagonal ribbon.
railShared part for the upper rail outline.
rail-leftLeft upper rail, ending where it bends into the shoulder.
rail-rightMirrored right upper rail.
rail-glowBlurred glow copy of the upper rails.
rail-coreCrisp upper rail stroke.
support-railShared part for the thin support rails that fade out before the title.
support-rail-leftLeft support rail.
support-rail-rightMirrored right support rail.
tickShared part for the two-level edge ticks.
tick-brightBright short tick head at each outer end.
tick-dimDimmer continuation behind each tick head.
horizonShared part for the bottom horizon.
horizon-glowBlurred dark underlay of the horizon.
horizon-coreCrisp gradient stroke on the horizon.
horizon-haloWide low-energy halo around the centre of the horizon.
coreShared part for the centre highlight.
core-blurBlurred radial hot core.
core-lineCrisp white centre stroke.
contentTitle content wrapper.
titleTitle box whose measured width sets the frame.
title-textGenerated title text when title-text is used.