Skip to content

Periodic Table

Interactive periodic table explorer with property coloring and comprehensive element data for all 118 elements.

Source: src/lib/periodic-table/, src/lib/element/

Components

ComponentDescription
PeriodicTable.svelteFull interactive periodic table
PeriodicTableControls.svelteProperty selector and color scale controls
PropertySelect.svelteDropdown for choosing which property to display
TableInset.svelteLegend/color scale inset
ElementTile.svelteIndividual element cell with symbol and value

Element Detail Components

ComponentDescription
ElementHeading.svelteElement name, symbol, and number
ElementPhoto.svelteElement appearance image
ElementStats.svelteProperty table with all data
BohrAtom.svelteBohr model atom diagram
Nucleus.svelteNucleus visualization

Element Database

The element database (src/lib/element/data.ts) contains comprehensive data for all 118 elements:

Properties Available

CategoryProperties
IdentitySymbol, name, atomic number
MassAtomic mass (u)
RadiiAtomic radius, covalent radius, ionic radius (A)
ElectronegativityPauling scale
PositionPeriod (row), group (column), block (s/p/d/f)
ClassificationMetal, nonmetal, metalloid, noble gas, halogen, transition metal, lanthanoid, actinoid, alkali, alkaline earth
PhysicalMelting point, boiling point, density, specific heat
ElectronicElectron configuration, ionization energies, electron affinity
HistoryDiscoverer, year discovered
AppearanceDescription and color

Features

  • Property coloring — color elements by any numeric property (electronegativity, atomic radius, density, etc.)
  • Color scales — viridis, plasma, turbo, and other D3 color interpolators
  • Click to select — view full element details
  • Hover tooltips — quick property preview
  • Category highlighting — highlight element groups (metals, nonmetals, etc.)
  • Responsive layout — adapts to container size

Released under the MIT License.