Getting started

Add the compiled stylesheet to your page and put the destiny class on a wrapping element (usually <body>). All framework classes only apply inside that scope.

<link href="destiny2-full-framework.css" rel="stylesheet" /> <body class="destiny"> <button class="button">Launch</button> </body>

The framework uses Neue Haas Grotesk Display Pro when available and falls back to Helvetica. Every demo below has a view code toggle showing the exact markup used.

Colors

The palette is sampled from the game: item rarity tiers, damage types, and interface states. Each color is available as a .text-* and .bg-* utility class.

Common.bg-common
Uncommon.bg-uncommon
Rare.bg-rare
Legendary.bg-legendary
Exotic.bg-exotic
Kinetic.bg-kinetic
Arc.bg-arc
Solar.bg-solar
Void.bg-void
Stasis.bg-stasis
Strand.bg-strand
Exotic · Legendary · Rare · Arc · Solar · Void · Strand · Gold · Danger · Muted
Theming

Every color in the framework is a CSS custom property on the .destiny scope. Derived shades (gradients, hover borders, translucent fills) are computed from the same variables with color-mix(), so overriding one token re-colors everything that uses it — no rebuild needed.

.destiny { --d2-rarity-exotic: #e0c257; /* item tiles, tooltips, buttons, text… */ --d2-accent-green: #6ab87a; /* checkbox, radio, toggle, confirm buttons */ --d2-damage-solar: #ff7b2e; }

Try it live — these pickers set the variables on this page, and every component in the showcase follows:

The full token list is in src/_variables.scss — text, surfaces, borders, five rarity tiers, six damage types, states and progress colors.

Typography

Header, HUD and body-copy styles matching the different text treatments used across the game's screens.

Spaced header
Sub-screen header
Tooltip header
Tracked title
General header

HUD header
HUD sub-header
HUD description

General body copy
Sub-title
Bold sub-title
Body fiction copy — "Whether we wanted it or not…"
000,000,000
000

On-screen buttons

Buttons

The classic menu button: a quiet translucent frame that fills white on hover. Variants exist for confirm, destructive, exotic and borderless actions, plus three sizes and a hold-to-confirm sweep.

.hold animates a fill sweep while the pointer is held down — wire your own event for the actual confirmation.

Key hints

Keyboard and controller prompts for on-screen actions.

E Interact F Hold to revive A Select Esc Back Shift + Space Icarus dash
Form controls
Items & rarity

Inventory tiles with rarity-gradient backgrounds, hover/selected states, masterwork frames, quantity and power overlays — plus engrams. Add a background-image inline to use a real item icon.

1810
99
1815
Item tooltips

The item inspection card: rarity-colored header, power and damage type, perk rows and flavor text.

Gjallarhorn
Rocket LauncherExotic
1810 Solar · Heavy
Wolfpack RoundsRounds split into tracking cluster missiles.
Pack HunterNearby allies' rockets gain Wolfpack Rounds.
"If there is beauty in destruction, why not also in its delivery?" —Feizel Crux
Fatebringer
Hand CannonLegendary
1802 Kinetic · Energy
Explosive PayloadProjectiles create an area-of-effect detonation.
FireflyPrecision kills create an explosion.
Delivering the inevitable, one bullet at a time.
Progress bars

XP bars, objective trackers and element-colored charge bars, with an optional label row above.

Season rank 8473,410 / 100,000
XP
Defeat combatants with Solar damage12/20
Super — Arc
Super — Solar
Super — Void
Stat bars

Weapon and armor stat readouts. A .stat-delta segment previews a gain (green) or loss (red) against another item.

Impact 84 Range 46 Stability 55 Handling 62 Reload speed 71
Cards

Translucent panels for quests, vendor categories and detail panes. Accent classes add a colored edge; .selectable makes the whole card respond to hover.

The Arms Dealer Strike
Bracus Zahn is dealing weapons from a hidden armory. Track him down and put his operation out of business.
Xûr has arrived Agent of the Nine
A merchant of the strange and exotic has appeared in the Tower Hangar. His wares rotate weekly.
Nightstalker Void · Hunter
Draw from the Void. Light the way.
Tables

Scoreboard-style tables; .highlight marks your own row and .num right-aligns numeric columns.

GuardianClassKillsDeathsEfficiencyScore
Saint-14Titan2137.002,450
YouHunter1863.002,105
Ikora ReyWarlock1653.201,980
Shaxx (spectating)000
Dialogs

The centered confirmation prompt with rules above and below the message. Use .dialog-backdrop as a fixed overlay — the demo uses the .inline helper to render in the page flow.

Dismantle
Dismantle Fatebringer? This weapon will be lost forever, and its masterwork materials refunded.
Examples
Character screen

Components composed into an inventory view: navigation tabs, an equipment grid, and an inspection tooltip with stat bars.

Power1810
Ace of Spades
Hand CannonExotic
1810 Kinetic · Primary
Impact 84 Range 70 Stability 58
"Folding was never an option." —Cayde-6
Settings panel

Setting rows composed with toggles, selects and sub-navigation.

Settings Gameplay
Crossplay
Fireteam privacy
Text chat
Field of view
Post-game scoreboard

A Crucible match summary composed from headers, tables and progress bars.

Victory
Control
Alpha100
Bravo87
GuardianKillsAssistsDeathsScore
You249113,320
Lord Shaxx's Favorite1912102,940
SweatyCrucibleMain177142,410