{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "periodic-table",
  "title": "Periodic table",
  "description": "Periodic table is a production-ready tables component from BJORK UI, packaged for shadcn registries.",
  "dependencies": [
    "clsx",
    "framer-motion",
    "next-themes",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "components/bjork-ui/tables/periodic-table.tsx",
      "content": "\"use client\";\n\nimport { useCallback, useEffect, useRef, useState } from \"react\";\nimport {\n  AnimatePresence,\n  motion,\n  useReducedMotion,\n  type Variants,\n} from \"framer-motion\";\nimport { useTheme } from \"next-themes\";\nimport { cn } from \"@/lib/utils\";\nimport {\n  type BjorkTableThemeMode,\n  useBjorkTableIsDark,\n} from \"./table-theme\";\n\nexport type ElementCategory =\n  | \"alkali\"\n  | \"alkaline\"\n  | \"transition\"\n  | \"post-transition\"\n  | \"metalloid\"\n  | \"nonmetal\"\n  | \"halogen\"\n  | \"noble-gas\"\n  | \"lanthanide\"\n  | \"actinide\";\n\nexport interface ChemicalElement {\n  number: number;\n  symbol: string;\n  name: string;\n  mass: string;\n  category: ElementCategory;\n  col: number;\n  row: number;\n  period: number;\n  group: number | null;\n  block: \"main\" | \"f\";\n}\n\nexport const ELEMENTS: ChemicalElement[] = [\n  { number: 1, symbol: \"H\", name: \"Hydrogen\", mass: \"1.008\", category: \"nonmetal\", col: 1, row: 1, period: 1, group: 1, block: \"main\" },\n  { number: 2, symbol: \"He\", name: \"Helium\", mass: \"4.0026\", category: \"noble-gas\", col: 18, row: 1, period: 1, group: 18, block: \"main\" },\n  { number: 3, symbol: \"Li\", name: \"Lithium\", mass: \"6.94\", category: \"alkali\", col: 1, row: 2, period: 2, group: 1, block: \"main\" },\n  { number: 4, symbol: \"Be\", name: \"Beryllium\", mass: \"9.0122\", category: \"alkaline\", col: 2, row: 2, period: 2, group: 2, block: \"main\" },\n  { number: 5, symbol: \"B\", name: \"Boron\", mass: \"10.81\", category: \"metalloid\", col: 13, row: 2, period: 2, group: 13, block: \"main\" },\n  { number: 6, symbol: \"C\", name: \"Carbon\", mass: \"12.011\", category: \"nonmetal\", col: 14, row: 2, period: 2, group: 14, block: \"main\" },\n  { number: 7, symbol: \"N\", name: \"Nitrogen\", mass: \"14.007\", category: \"nonmetal\", col: 15, row: 2, period: 2, group: 15, block: \"main\" },\n  { number: 8, symbol: \"O\", name: \"Oxygen\", mass: \"15.999\", category: \"nonmetal\", col: 16, row: 2, period: 2, group: 16, block: \"main\" },\n  { number: 9, symbol: \"F\", name: \"Fluorine\", mass: \"18.998\", category: \"halogen\", col: 17, row: 2, period: 2, group: 17, block: \"main\" },\n  { number: 10, symbol: \"Ne\", name: \"Neon\", mass: \"20.180\", category: \"noble-gas\", col: 18, row: 2, period: 2, group: 18, block: \"main\" },\n  { number: 11, symbol: \"Na\", name: \"Sodium\", mass: \"22.990\", category: \"alkali\", col: 1, row: 3, period: 3, group: 1, block: \"main\" },\n  { number: 12, symbol: \"Mg\", name: \"Magnesium\", mass: \"24.305\", category: \"alkaline\", col: 2, row: 3, period: 3, group: 2, block: \"main\" },\n  { number: 13, symbol: \"Al\", name: \"Aluminium\", mass: \"26.982\", category: \"post-transition\", col: 13, row: 3, period: 3, group: 13, block: \"main\" },\n  { number: 14, symbol: \"Si\", name: \"Silicon\", mass: \"28.085\", category: \"metalloid\", col: 14, row: 3, period: 3, group: 14, block: \"main\" },\n  { number: 15, symbol: \"P\", name: \"Phosphorus\", mass: \"30.974\", category: \"nonmetal\", col: 15, row: 3, period: 3, group: 15, block: \"main\" },\n  { number: 16, symbol: \"S\", name: \"Sulfur\", mass: \"32.06\", category: \"nonmetal\", col: 16, row: 3, period: 3, group: 16, block: \"main\" },\n  { number: 17, symbol: \"Cl\", name: \"Chlorine\", mass: \"35.45\", category: \"halogen\", col: 17, row: 3, period: 3, group: 17, block: \"main\" },\n  { number: 18, symbol: \"Ar\", name: \"Argon\", mass: \"39.948\", category: \"noble-gas\", col: 18, row: 3, period: 3, group: 18, block: \"main\" },\n  { number: 19, symbol: \"K\", name: \"Potassium\", mass: \"39.098\", category: \"alkali\", col: 1, row: 4, period: 4, group: 1, block: \"main\" },\n  { number: 20, symbol: \"Ca\", name: \"Calcium\", mass: \"40.078\", category: \"alkaline\", col: 2, row: 4, period: 4, group: 2, block: \"main\" },\n  { number: 21, symbol: \"Sc\", name: \"Scandium\", mass: \"44.956\", category: \"transition\", col: 3, row: 4, period: 4, group: 3, block: \"main\" },\n  { number: 22, symbol: \"Ti\", name: \"Titanium\", mass: \"47.867\", category: \"transition\", col: 4, row: 4, period: 4, group: 4, block: \"main\" },\n  { number: 23, symbol: \"V\", name: \"Vanadium\", mass: \"50.942\", category: \"transition\", col: 5, row: 4, period: 4, group: 5, block: \"main\" },\n  { number: 24, symbol: \"Cr\", name: \"Chromium\", mass: \"51.996\", category: \"transition\", col: 6, row: 4, period: 4, group: 6, block: \"main\" },\n  { number: 25, symbol: \"Mn\", name: \"Manganese\", mass: \"54.938\", category: \"transition\", col: 7, row: 4, period: 4, group: 7, block: \"main\" },\n  { number: 26, symbol: \"Fe\", name: \"Iron\", mass: \"55.845\", category: \"transition\", col: 8, row: 4, period: 4, group: 8, block: \"main\" },\n  { number: 27, symbol: \"Co\", name: \"Cobalt\", mass: \"58.933\", category: \"transition\", col: 9, row: 4, period: 4, group: 9, block: \"main\" },\n  { number: 28, symbol: \"Ni\", name: \"Nickel\", mass: \"58.693\", category: \"transition\", col: 10, row: 4, period: 4, group: 10, block: \"main\" },\n  { number: 29, symbol: \"Cu\", name: \"Copper\", mass: \"63.546\", category: \"transition\", col: 11, row: 4, period: 4, group: 11, block: \"main\" },\n  { number: 30, symbol: \"Zn\", name: \"Zinc\", mass: \"65.38\", category: \"transition\", col: 12, row: 4, period: 4, group: 12, block: \"main\" },\n  { number: 31, symbol: \"Ga\", name: \"Gallium\", mass: \"69.723\", category: \"post-transition\", col: 13, row: 4, period: 4, group: 13, block: \"main\" },\n  { number: 32, symbol: \"Ge\", name: \"Germanium\", mass: \"72.630\", category: \"metalloid\", col: 14, row: 4, period: 4, group: 14, block: \"main\" },\n  { number: 33, symbol: \"As\", name: \"Arsenic\", mass: \"74.922\", category: \"metalloid\", col: 15, row: 4, period: 4, group: 15, block: \"main\" },\n  { number: 34, symbol: \"Se\", name: \"Selenium\", mass: \"78.971\", category: \"nonmetal\", col: 16, row: 4, period: 4, group: 16, block: \"main\" },\n  { number: 35, symbol: \"Br\", name: \"Bromine\", mass: \"79.904\", category: \"halogen\", col: 17, row: 4, period: 4, group: 17, block: \"main\" },\n  { number: 36, symbol: \"Kr\", name: \"Krypton\", mass: \"83.798\", category: \"noble-gas\", col: 18, row: 4, period: 4, group: 18, block: \"main\" },\n  { number: 37, symbol: \"Rb\", name: \"Rubidium\", mass: \"85.468\", category: \"alkali\", col: 1, row: 5, period: 5, group: 1, block: \"main\" },\n  { number: 38, symbol: \"Sr\", name: \"Strontium\", mass: \"87.62\", category: \"alkaline\", col: 2, row: 5, period: 5, group: 2, block: \"main\" },\n  { number: 39, symbol: \"Y\", name: \"Yttrium\", mass: \"88.906\", category: \"transition\", col: 3, row: 5, period: 5, group: 3, block: \"main\" },\n  { number: 40, symbol: \"Zr\", name: \"Zirconium\", mass: \"91.224\", category: \"transition\", col: 4, row: 5, period: 5, group: 4, block: \"main\" },\n  { number: 41, symbol: \"Nb\", name: \"Niobium\", mass: \"92.906\", category: \"transition\", col: 5, row: 5, period: 5, group: 5, block: \"main\" },\n  { number: 42, symbol: \"Mo\", name: \"Molybdenum\", mass: \"95.95\", category: \"transition\", col: 6, row: 5, period: 5, group: 6, block: \"main\" },\n  { number: 43, symbol: \"Tc\", name: \"Technetium\", mass: \"98\", category: \"transition\", col: 7, row: 5, period: 5, group: 7, block: \"main\" },\n  { number: 44, symbol: \"Ru\", name: \"Ruthenium\", mass: \"101.07\", category: \"transition\", col: 8, row: 5, period: 5, group: 8, block: \"main\" },\n  { number: 45, symbol: \"Rh\", name: \"Rhodium\", mass: \"102.91\", category: \"transition\", col: 9, row: 5, period: 5, group: 9, block: \"main\" },\n  { number: 46, symbol: \"Pd\", name: \"Palladium\", mass: \"106.42\", category: \"transition\", col: 10, row: 5, period: 5, group: 10, block: \"main\" },\n  { number: 47, symbol: \"Ag\", name: \"Silver\", mass: \"107.87\", category: \"transition\", col: 11, row: 5, period: 5, group: 11, block: \"main\" },\n  { number: 48, symbol: \"Cd\", name: \"Cadmium\", mass: \"112.41\", category: \"transition\", col: 12, row: 5, period: 5, group: 12, block: \"main\" },\n  { number: 49, symbol: \"In\", name: \"Indium\", mass: \"114.82\", category: \"post-transition\", col: 13, row: 5, period: 5, group: 13, block: \"main\" },\n  { number: 50, symbol: \"Sn\", name: \"Tin\", mass: \"118.71\", category: \"post-transition\", col: 14, row: 5, period: 5, group: 14, block: \"main\" },\n  { number: 51, symbol: \"Sb\", name: \"Antimony\", mass: \"121.76\", category: \"metalloid\", col: 15, row: 5, period: 5, group: 15, block: \"main\" },\n  { number: 52, symbol: \"Te\", name: \"Tellurium\", mass: \"127.60\", category: \"metalloid\", col: 16, row: 5, period: 5, group: 16, block: \"main\" },\n  { number: 53, symbol: \"I\", name: \"Iodine\", mass: \"126.90\", category: \"halogen\", col: 17, row: 5, period: 5, group: 17, block: \"main\" },\n  { number: 54, symbol: \"Xe\", name: \"Xenon\", mass: \"131.29\", category: \"noble-gas\", col: 18, row: 5, period: 5, group: 18, block: \"main\" },\n  { number: 55, symbol: \"Cs\", name: \"Caesium\", mass: \"132.91\", category: \"alkali\", col: 1, row: 6, period: 6, group: 1, block: \"main\" },\n  { number: 56, symbol: \"Ba\", name: \"Barium\", mass: \"137.33\", category: \"alkaline\", col: 2, row: 6, period: 6, group: 2, block: \"main\" },\n  { number: 72, symbol: \"Hf\", name: \"Hafnium\", mass: \"178.49\", category: \"transition\", col: 4, row: 6, period: 6, group: 4, block: \"main\" },\n  { number: 73, symbol: \"Ta\", name: \"Tantalum\", mass: \"180.95\", category: \"transition\", col: 5, row: 6, period: 6, group: 5, block: \"main\" },\n  { number: 74, symbol: \"W\", name: \"Tungsten\", mass: \"183.84\", category: \"transition\", col: 6, row: 6, period: 6, group: 6, block: \"main\" },\n  { number: 75, symbol: \"Re\", name: \"Rhenium\", mass: \"186.21\", category: \"transition\", col: 7, row: 6, period: 6, group: 7, block: \"main\" },\n  { number: 76, symbol: \"Os\", name: \"Osmium\", mass: \"190.23\", category: \"transition\", col: 8, row: 6, period: 6, group: 8, block: \"main\" },\n  { number: 77, symbol: \"Ir\", name: \"Iridium\", mass: \"192.22\", category: \"transition\", col: 9, row: 6, period: 6, group: 9, block: \"main\" },\n  { number: 78, symbol: \"Pt\", name: \"Platinum\", mass: \"195.08\", category: \"transition\", col: 10, row: 6, period: 6, group: 10, block: \"main\" },\n  { number: 79, symbol: \"Au\", name: \"Gold\", mass: \"196.97\", category: \"transition\", col: 11, row: 6, period: 6, group: 11, block: \"main\" },\n  { number: 80, symbol: \"Hg\", name: \"Mercury\", mass: \"200.59\", category: \"transition\", col: 12, row: 6, period: 6, group: 12, block: \"main\" },\n  { number: 81, symbol: \"Tl\", name: \"Thallium\", mass: \"204.38\", category: \"post-transition\", col: 13, row: 6, period: 6, group: 13, block: \"main\" },\n  { number: 82, symbol: \"Pb\", name: \"Lead\", mass: \"207.2\", category: \"post-transition\", col: 14, row: 6, period: 6, group: 14, block: \"main\" },\n  { number: 83, symbol: \"Bi\", name: \"Bismuth\", mass: \"208.98\", category: \"post-transition\", col: 15, row: 6, period: 6, group: 15, block: \"main\" },\n  { number: 84, symbol: \"Po\", name: \"Polonium\", mass: \"209\", category: \"post-transition\", col: 16, row: 6, period: 6, group: 16, block: \"main\" },\n  { number: 85, symbol: \"At\", name: \"Astatine\", mass: \"210\", category: \"halogen\", col: 17, row: 6, period: 6, group: 17, block: \"main\" },\n  { number: 86, symbol: \"Rn\", name: \"Radon\", mass: \"222\", category: \"noble-gas\", col: 18, row: 6, period: 6, group: 18, block: \"main\" },\n  { number: 87, symbol: \"Fr\", name: \"Francium\", mass: \"223\", category: \"alkali\", col: 1, row: 7, period: 7, group: 1, block: \"main\" },\n  { number: 88, symbol: \"Ra\", name: \"Radium\", mass: \"226\", category: \"alkaline\", col: 2, row: 7, period: 7, group: 2, block: \"main\" },\n  { number: 104, symbol: \"Rf\", name: \"Rutherfordium\", mass: \"267\", category: \"transition\", col: 4, row: 7, period: 7, group: 4, block: \"main\" },\n  { number: 105, symbol: \"Db\", name: \"Dubnium\", mass: \"268\", category: \"transition\", col: 5, row: 7, period: 7, group: 5, block: \"main\" },\n  { number: 106, symbol: \"Sg\", name: \"Seaborgium\", mass: \"269\", category: \"transition\", col: 6, row: 7, period: 7, group: 6, block: \"main\" },\n  { number: 107, symbol: \"Bh\", name: \"Bohrium\", mass: \"270\", category: \"transition\", col: 7, row: 7, period: 7, group: 7, block: \"main\" },\n  { number: 108, symbol: \"Hs\", name: \"Hassium\", mass: \"277\", category: \"transition\", col: 8, row: 7, period: 7, group: 8, block: \"main\" },\n  { number: 109, symbol: \"Mt\", name: \"Meitnerium\", mass: \"278\", category: \"transition\", col: 9, row: 7, period: 7, group: 9, block: \"main\" },\n  { number: 110, symbol: \"Ds\", name: \"Darmstadtium\", mass: \"281\", category: \"transition\", col: 10, row: 7, period: 7, group: 10, block: \"main\" },\n  { number: 111, symbol: \"Rg\", name: \"Roentgenium\", mass: \"282\", category: \"transition\", col: 11, row: 7, period: 7, group: 11, block: \"main\" },\n  { number: 112, symbol: \"Cn\", name: \"Copernicium\", mass: \"285\", category: \"transition\", col: 12, row: 7, period: 7, group: 12, block: \"main\" },\n  { number: 113, symbol: \"Nh\", name: \"Nihonium\", mass: \"286\", category: \"post-transition\", col: 13, row: 7, period: 7, group: 13, block: \"main\" },\n  { number: 114, symbol: \"Fl\", name: \"Flerovium\", mass: \"289\", category: \"post-transition\", col: 14, row: 7, period: 7, group: 14, block: \"main\" },\n  { number: 115, symbol: \"Mc\", name: \"Moscovium\", mass: \"290\", category: \"post-transition\", col: 15, row: 7, period: 7, group: 15, block: \"main\" },\n  { number: 116, symbol: \"Lv\", name: \"Livermorium\", mass: \"293\", category: \"post-transition\", col: 16, row: 7, period: 7, group: 16, block: \"main\" },\n  { number: 117, symbol: \"Ts\", name: \"Tennessine\", mass: \"294\", category: \"halogen\", col: 17, row: 7, period: 7, group: 17, block: \"main\" },\n  { number: 118, symbol: \"Og\", name: \"Oganesson\", mass: \"294\", category: \"noble-gas\", col: 18, row: 7, period: 7, group: 18, block: \"main\" },\n  // Lanthanides (f-block row 1, cols 3-17)\n  { number: 57, symbol: \"La\", name: \"Lanthanum\", mass: \"138.91\", category: \"lanthanide\", col: 3, row: 1, period: 6, group: null, block: \"f\" },\n  { number: 58, symbol: \"Ce\", name: \"Cerium\", mass: \"140.12\", category: \"lanthanide\", col: 4, row: 1, period: 6, group: null, block: \"f\" },\n  { number: 59, symbol: \"Pr\", name: \"Praseodymium\", mass: \"140.91\", category: \"lanthanide\", col: 5, row: 1, period: 6, group: null, block: \"f\" },\n  { number: 60, symbol: \"Nd\", name: \"Neodymium\", mass: \"144.24\", category: \"lanthanide\", col: 6, row: 1, period: 6, group: null, block: \"f\" },\n  { number: 61, symbol: \"Pm\", name: \"Promethium\", mass: \"145\", category: \"lanthanide\", col: 7, row: 1, period: 6, group: null, block: \"f\" },\n  { number: 62, symbol: \"Sm\", name: \"Samarium\", mass: \"150.36\", category: \"lanthanide\", col: 8, row: 1, period: 6, group: null, block: \"f\" },\n  { number: 63, symbol: \"Eu\", name: \"Europium\", mass: \"151.96\", category: \"lanthanide\", col: 9, row: 1, period: 6, group: null, block: \"f\" },\n  { number: 64, symbol: \"Gd\", name: \"Gadolinium\", mass: \"157.25\", category: \"lanthanide\", col: 10, row: 1, period: 6, group: null, block: \"f\" },\n  { number: 65, symbol: \"Tb\", name: \"Terbium\", mass: \"158.93\", category: \"lanthanide\", col: 11, row: 1, period: 6, group: null, block: \"f\" },\n  { number: 66, symbol: \"Dy\", name: \"Dysprosium\", mass: \"162.50\", category: \"lanthanide\", col: 12, row: 1, period: 6, group: null, block: \"f\" },\n  { number: 67, symbol: \"Ho\", name: \"Holmium\", mass: \"164.93\", category: \"lanthanide\", col: 13, row: 1, period: 6, group: null, block: \"f\" },\n  { number: 68, symbol: \"Er\", name: \"Erbium\", mass: \"167.26\", category: \"lanthanide\", col: 14, row: 1, period: 6, group: null, block: \"f\" },\n  { number: 69, symbol: \"Tm\", name: \"Thulium\", mass: \"168.93\", category: \"lanthanide\", col: 15, row: 1, period: 6, group: null, block: \"f\" },\n  { number: 70, symbol: \"Yb\", name: \"Ytterbium\", mass: \"173.05\", category: \"lanthanide\", col: 16, row: 1, period: 6, group: null, block: \"f\" },\n  { number: 71, symbol: \"Lu\", name: \"Lutetium\", mass: \"174.97\", category: \"lanthanide\", col: 17, row: 1, period: 6, group: null, block: \"f\" },\n  // Actinides (f-block row 2, cols 3-17)\n  { number: 89, symbol: \"Ac\", name: \"Actinium\", mass: \"227\", category: \"actinide\", col: 3, row: 2, period: 7, group: null, block: \"f\" },\n  { number: 90, symbol: \"Th\", name: \"Thorium\", mass: \"232.04\", category: \"actinide\", col: 4, row: 2, period: 7, group: null, block: \"f\" },\n  { number: 91, symbol: \"Pa\", name: \"Protactinium\", mass: \"231.04\", category: \"actinide\", col: 5, row: 2, period: 7, group: null, block: \"f\" },\n  { number: 92, symbol: \"U\", name: \"Uranium\", mass: \"238.03\", category: \"actinide\", col: 6, row: 2, period: 7, group: null, block: \"f\" },\n  { number: 93, symbol: \"Np\", name: \"Neptunium\", mass: \"237\", category: \"actinide\", col: 7, row: 2, period: 7, group: null, block: \"f\" },\n  { number: 94, symbol: \"Pu\", name: \"Plutonium\", mass: \"244\", category: \"actinide\", col: 8, row: 2, period: 7, group: null, block: \"f\" },\n  { number: 95, symbol: \"Am\", name: \"Americium\", mass: \"243\", category: \"actinide\", col: 9, row: 2, period: 7, group: null, block: \"f\" },\n  { number: 96, symbol: \"Cm\", name: \"Curium\", mass: \"247\", category: \"actinide\", col: 10, row: 2, period: 7, group: null, block: \"f\" },\n  { number: 97, symbol: \"Bk\", name: \"Berkelium\", mass: \"247\", category: \"actinide\", col: 11, row: 2, period: 7, group: null, block: \"f\" },\n  { number: 98, symbol: \"Cf\", name: \"Californium\", mass: \"251\", category: \"actinide\", col: 12, row: 2, period: 7, group: null, block: \"f\" },\n  { number: 99, symbol: \"Es\", name: \"Einsteinium\", mass: \"252\", category: \"actinide\", col: 13, row: 2, period: 7, group: null, block: \"f\" },\n  { number: 100, symbol: \"Fm\", name: \"Fermium\", mass: \"257\", category: \"actinide\", col: 14, row: 2, period: 7, group: null, block: \"f\" },\n  { number: 101, symbol: \"Md\", name: \"Mendelevium\", mass: \"258\", category: \"actinide\", col: 15, row: 2, period: 7, group: null, block: \"f\" },\n  { number: 102, symbol: \"No\", name: \"Nobelium\", mass: \"259\", category: \"actinide\", col: 16, row: 2, period: 7, group: null, block: \"f\" },\n  { number: 103, symbol: \"Lr\", name: \"Lawrencium\", mass: \"266\", category: \"actinide\", col: 17, row: 2, period: 7, group: null, block: \"f\" },\n];\n\nexport const ELEMENT_CATEGORY_LABELS: Record<ElementCategory, string> = {\n  alkali: \"Alkali metal\",\n  alkaline: \"Alkaline earth\",\n  transition: \"Transition metal\",\n  \"post-transition\": \"Post-transition\",\n  metalloid: \"Metalloid\",\n  nonmetal: \"Nonmetal\",\n  halogen: \"Halogen\",\n  \"noble-gas\": \"Noble gas\",\n  lanthanide: \"Lanthanide\",\n  actinide: \"Actinide\",\n};\n\ninterface CategoryPalette {\n  text: string;\n  bg: string;\n  border: string;\n  dot: string;\n}\n\nexport function getElementCategoryPalette(\n  category: ElementCategory,\n  isDark: boolean\n): CategoryPalette {\n  const palettes: Record<ElementCategory, CategoryPalette> = {\n    alkali: {\n      text: isDark ? \"text-[#d86a2c]\" : \"text-[#9f4317]\",\n      bg: isDark ? \"bg-[#ec5c13]/14\" : \"bg-[#ead9cb]\",\n      border: isDark ? \"border-[#ec5c13]/28\" : \"border-[#d5b59f]\",\n      dot: isDark ? \"bg-[#d86a2c]\" : \"bg-[#9f4317]\",\n    },\n    alkaline: {\n      text: isDark ? \"text-[#c8a24a]\" : \"text-[#8a6d1f]\",\n      bg: isDark ? \"bg-[#c9a227]/12\" : \"bg-[#ede4cd]\",\n      border: isDark ? \"border-[#c9a227]/24\" : \"border-[#dccfa8]\",\n      dot: isDark ? \"bg-[#c8a24a]\" : \"bg-[#8a6d1f]\",\n    },\n    transition: {\n      text: isDark ? \"text-[#a89f8d]\" : \"text-[#6f6653]\",\n      bg: isDark ? \"bg-[#a89f8d]/12\" : \"bg-[#e7e0d4]\",\n      border: isDark ? \"border-[#a89f8d]/20\" : \"border-[#d3c9b8]\",\n      dot: isDark ? \"bg-[#a89f8d]\" : \"bg-[#6f6653]\",\n    },\n    \"post-transition\": {\n      text: isDark ? \"text-[#a8b36b]\" : \"text-[#66703a]\",\n      bg: isDark ? \"bg-[#97a05c]/14\" : \"bg-[#e3e5d2]\",\n      border: isDark ? \"border-[#97a05c]/24\" : \"border-[#ccd1ae]\",\n      dot: isDark ? \"bg-[#a8b36b]\" : \"bg-[#66703a]\",\n    },\n    metalloid: {\n      text: isDark ? \"text-[#77b596]\" : \"text-[#3d6f5c]\",\n      bg: isDark ? \"bg-[#5f9f88]/14\" : \"bg-[#d8e5de]\",\n      border: isDark ? \"border-[#5f9f88]/26\" : \"border-[#b7cfc2]\",\n      dot: isDark ? \"bg-[#77b596]\" : \"bg-[#3d6f5c]\",\n    },\n    nonmetal: {\n      text: isDark ? \"text-[#77b58b]\" : \"text-[#47785c]\",\n      bg: isDark ? \"bg-[#3e6f52]/18\" : \"bg-[#dce8dc]\",\n      border: isDark ? \"border-[#5f9f78]/28\" : \"border-[#bad0bd]\",\n      dot: isDark ? \"bg-[#77b58b]\" : \"bg-[#47785c]\",\n    },\n    halogen: {\n      text: isDark ? \"text-[#7bb5b3]\" : \"text-[#3f6d6c]\",\n      bg: isDark ? \"bg-[#5f9f9c]/14\" : \"bg-[#d9e4e4]\",\n      border: isDark ? \"border-[#5f9f9c]/26\" : \"border-[#b5cbca]\",\n      dot: isDark ? \"bg-[#7bb5b3]\" : \"bg-[#3f6d6c]\",\n    },\n    \"noble-gas\": {\n      text: isDark ? \"text-[#8fa5c4]\" : \"text-[#4d6076]\",\n      bg: isDark ? \"bg-[#6f87a8]/14\" : \"bg-[#dde2e8]\",\n      border: isDark ? \"border-[#6f87a8]/26\" : \"border-[#c0c9d6]\",\n      dot: isDark ? \"bg-[#8fa5c4]\" : \"bg-[#4d6076]\",\n    },\n    lanthanide: {\n      text: isDark ? \"text-[#cf8a6b]\" : \"text-[#94573f]\",\n      bg: isDark ? \"bg-[#c4704f]/14\" : \"bg-[#ead8d2]\",\n      border: isDark ? \"border-[#c4704f]/26\" : \"border-[#d7bcb2]\",\n      dot: isDark ? \"bg-[#cf8a6b]\" : \"bg-[#94573f]\",\n    },\n    actinide: {\n      text: isDark ? \"text-[#cf7c72]\" : \"text-[#9d5149]\",\n      bg: isDark ? \"bg-[#87463f]/18\" : \"bg-[#eadad5]\",\n      border: isDark ? \"border-[#c46a61]/28\" : \"border-[#d7bcb4]\",\n      dot: isDark ? \"bg-[#cf7c72]\" : \"bg-[#9d5149]\",\n    },\n  };\n\n  return palettes[category];\n}\n\ninterface PeriodicTableProps {\n  elements?: ChemicalElement[];\n  onElementSelect?: (element: ChemicalElement) => void;\n  className?: string;\n  theme?: BjorkTableThemeMode;\n  enableAnimations?: boolean;\n  showLegend?: boolean;\n}\n\ninterface CardAnchor {\n  element: ChemicalElement;\n  x: number;\n  y: number;\n  placeBelow: boolean;\n}\n\nconst CARD_GAP = 10;\nconst CARD_WIDTH = 228;\n\nexport function PeriodicTable({\n  elements = ELEMENTS,\n  onElementSelect,\n  className = \"\",\n  theme = \"auto\",\n  enableAnimations = true,\n  showLegend = true,\n}: PeriodicTableProps) {\n  const [mounted, setMounted] = useState(false);\n  const { resolvedTheme } = useTheme();\n  const forcedTheme = theme === \"auto\" ? undefined : theme;\n  const detectedIsDark = useBjorkTableIsDark(resolvedTheme, forcedTheme);\n  const isDark = !mounted && theme === \"auto\" ? true : detectedIsDark;\n  const shouldReduceMotion = useReducedMotion();\n  const shouldAnimate = enableAnimations && !shouldReduceMotion;\n\n  const containerRef = useRef<HTMLDivElement>(null);\n  const cellRefs = useRef(new Map<number, HTMLButtonElement>());\n  const [anchor, setAnchor] = useState<CardAnchor | null>(null);\n\n  useEffect(() => {\n    setMounted(true);\n  }, []);\n\n  const handleElementEnter = useCallback((element: ChemicalElement) => {\n    const node = cellRefs.current.get(element.number);\n    const container = containerRef.current;\n    if (!node || !container) return;\n    const placeBelow = element.block === \"main\" && element.period <= 2;\n    // Keep the card fully inside the container on narrow screens\n    const halfCard = CARD_WIDTH / 2 + 8;\n    const rawX = node.offsetLeft + node.offsetWidth / 2;\n    const maxX = container.clientWidth - halfCard;\n    setAnchor({\n      element,\n      x: Math.min(Math.max(rawX, halfCard), Math.max(maxX, halfCard)),\n      y: placeBelow\n        ? node.offsetTop + node.offsetHeight + CARD_GAP\n        : node.offsetTop - CARD_GAP,\n      placeBelow,\n    });\n  }, []);\n\n  const clearAnchor = useCallback(() => setAnchor(null), []);\n\n  const mainElements = elements.filter((element) => element.block === \"main\");\n  const fBlockElements = elements.filter((element) => element.block === \"f\");\n\n  const cellVariants: Variants = {\n    hidden: { opacity: 0, y: 14, scale: 0.92, filter: \"blur(4px)\" },\n    visible: (index: number) => ({\n      opacity: 1,\n      y: 0,\n      scale: 1,\n      filter: \"blur(0px)\",\n      transition: {\n        type: \"spring\",\n        stiffness: 420,\n        damping: 30,\n        mass: 0.7,\n        delay: 0.05 + index * 0.004,\n      },\n    }),\n  };\n\n  const anchorSpring = shouldReduceMotion\n    ? { duration: 0.12 }\n    : { type: \"spring\" as const, stiffness: 480, damping: 38, mass: 0.8 };\n\n  const activeCategory = anchor\n    ? getElementCategoryPalette(anchor.element.category, isDark)\n    : null;\n\n  return (\n    <div\n      ref={containerRef}\n      onMouseLeave={clearAnchor}\n      onClick={clearAnchor}\n      className={cn(\n        \"relative mx-auto w-full max-w-[1060px] rounded-[20px] border\",\n        \"border-[var(--bjork-border)] bg-[var(--bjork-surface)] p-4 shadow-[var(--bjork-shadow-surface)] sm:p-5\",\n        className\n      )}\n    >\n      {showLegend && (\n        <div className=\"mb-4 flex flex-wrap items-center gap-x-3.5 gap-y-1.5 px-1\">\n          {(Object.keys(ELEMENT_CATEGORY_LABELS) as ElementCategory[]).map(\n            (category) => {\n              const categoryPalette = getElementCategoryPalette(\n                category,\n                isDark\n              );\n              return (\n                <span\n                  key={category}\n                  className=\"flex items-center gap-1.5 text-[11px] leading-none\"\n                >\n                  <span\n                    className={cn(\"size-1.5 rounded-full\", categoryPalette.dot)}\n                  />\n                  <span className=\"text-[var(--bjork-text-muted)]\">\n                    {ELEMENT_CATEGORY_LABELS[category]}\n                  </span>\n                </span>\n              );\n            }\n          )}\n        </div>\n      )}\n\n      <div className=\"grid grid-cols-[repeat(18,minmax(0,1fr))] gap-1\">\n        {mainElements.map((element, index) => (\n          <ElementCell\n            key={element.number}\n            element={element}\n            index={index}\n            isActive={anchor?.element.number === element.number}\n            isDark={isDark}\n            shouldAnimate={shouldAnimate}\n            variants={cellVariants}\n            registerCell={(node) => {\n              if (node) cellRefs.current.set(element.number, node);\n              else cellRefs.current.delete(element.number);\n            }}\n            onEnter={handleElementEnter}\n            onLeave={clearAnchor}\n            onSelect={onElementSelect}\n          />\n        ))}\n        {/* f-block placeholders in the main grid */}\n        <div\n          style={{ gridColumn: 3, gridRow: 6 }}\n          className=\"pointer-events-none flex aspect-square items-center justify-center rounded-[8px] border border-dashed border-[var(--bjork-border-strong)] text-[10px] tabular-nums text-[var(--bjork-text-faint)]\"\n        >\n          57-71\n        </div>\n        <div\n          style={{ gridColumn: 3, gridRow: 7 }}\n          className=\"pointer-events-none flex aspect-square items-center justify-center rounded-[8px] border border-dashed border-[var(--bjork-border-strong)] text-[10px] tabular-nums text-[var(--bjork-text-faint)]\"\n        >\n          89-103\n        </div>\n      </div>\n\n      <div className=\"mt-3 grid grid-cols-[repeat(18,minmax(0,1fr))] gap-1\">\n        {fBlockElements.map((element, index) => (\n          <ElementCell\n            key={element.number}\n            element={element}\n            index={mainElements.length + index}\n            isActive={anchor?.element.number === element.number}\n            isDark={isDark}\n            shouldAnimate={shouldAnimate}\n            variants={cellVariants}\n            registerCell={(node) => {\n              if (node) cellRefs.current.set(element.number, node);\n              else cellRefs.current.delete(element.number);\n            }}\n            onEnter={handleElementEnter}\n            onLeave={clearAnchor}\n            onSelect={onElementSelect}\n          />\n        ))}\n      </div>\n\n      {/* Floating element card */}\n      <AnimatePresence>\n        {anchor && activeCategory && (\n          <motion.div\n            key=\"periodic-element-card\"\n            className=\"pointer-events-none absolute left-0 top-0 z-30\"\n            initial={{ x: anchor.x, y: anchor.y }}\n            animate={{ x: anchor.x, y: anchor.y }}\n            transition={anchorSpring}\n          >\n            <div\n              className={cn(\n                \"-translate-x-1/2\",\n                anchor.placeBelow ? \"\" : \"-translate-y-full\"\n              )}\n            >\n              <motion.div\n                initial={\n                  shouldAnimate\n                    ? {\n                        opacity: 0,\n                        y: anchor.placeBelow ? -12 : 12,\n                        scale: 0.94,\n                        filter: \"blur(8px)\",\n                      }\n                    : { opacity: 0 }\n                }\n                animate={\n                  shouldAnimate\n                    ? { opacity: 1, y: 0, scale: 1, filter: \"blur(0px)\" }\n                    : { opacity: 1 }\n                }\n                exit={\n                  shouldAnimate\n                    ? {\n                        opacity: 0,\n                        y: anchor.placeBelow ? -6 : 6,\n                        scale: 0.97,\n                        filter: \"blur(6px)\",\n                        transition: { duration: 0.12, ease: \"easeOut\" },\n                      }\n                    : { opacity: 0, transition: { duration: 0.1 } }\n                }\n                transition={\n                  shouldReduceMotion\n                    ? { duration: 0.15 }\n                    : {\n                        type: \"spring\",\n                        stiffness: 420,\n                        damping: 30,\n                        mass: 0.7,\n                      }\n                }\n                className=\"w-[228px] rounded-[16px] border border-[var(--bjork-border-muted)] bg-[var(--bjork-surface)] p-4 text-[var(--bjork-text-medium)] shadow-[var(--bjork-shadow-menu)]\"\n              >\n                <motion.div\n                  key={anchor.element.number}\n                  initial={{ opacity: 0, filter: \"blur(3px)\" }}\n                  animate={{ opacity: 1, filter: \"blur(0px)\" }}\n                  transition={{ duration: 0.14, ease: \"easeOut\" }}\n                >\n                  <div className=\"flex items-center justify-between\">\n                    <span className=\"text-sm font-semibold tabular-nums text-[var(--bjork-accent)]\">\n                      {anchor.element.number}\n                    </span>\n                    <span\n                      className={cn(\n                        \"rounded-[8px] border px-1.5 py-0.5 text-[11px] font-medium leading-none\",\n                        activeCategory.bg,\n                        activeCategory.border,\n                        activeCategory.text\n                      )}\n                    >\n                      {ELEMENT_CATEGORY_LABELS[anchor.element.category]}\n                    </span>\n                  </div>\n\n                  <div className=\"mt-2 flex items-end justify-between gap-3\">\n                    <div className=\"min-w-0\">\n                      <div className=\"text-[34px] font-bold leading-none tracking-tight text-[var(--bjork-text-strong)]\">\n                        {anchor.element.symbol}\n                      </div>\n                      <div className=\"mt-1.5 truncate text-[13px] text-[var(--bjork-text-muted)]\">\n                        {anchor.element.name}\n                      </div>\n                    </div>\n                  </div>\n\n                  <div className=\"mt-3 grid grid-cols-3 gap-2 border-t border-[var(--bjork-border-muted)] pt-2.5\">\n                    <div>\n                      <div className=\"text-[12px] font-medium tabular-nums text-[var(--bjork-text-strong)]\">\n                        {anchor.element.mass}\n                      </div>\n                      <div className=\"mt-0.5 text-[11px] leading-none text-[var(--bjork-text-soft)]\">\n                        Mass\n                      </div>\n                    </div>\n                    <div>\n                      <div className=\"text-[12px] font-medium tabular-nums text-[var(--bjork-text-strong)]\">\n                        {anchor.element.group ?? \"f-block\"}\n                      </div>\n                      <div className=\"mt-0.5 text-[11px] leading-none text-[var(--bjork-text-soft)]\">\n                        Group\n                      </div>\n                    </div>\n                    <div>\n                      <div className=\"text-[12px] font-medium tabular-nums text-[var(--bjork-text-strong)]\">\n                        {anchor.element.period}\n                      </div>\n                      <div className=\"mt-0.5 text-[11px] leading-none text-[var(--bjork-text-soft)]\">\n                        Period\n                      </div>\n                    </div>\n                  </div>\n                </motion.div>\n              </motion.div>\n            </div>\n          </motion.div>\n        )}\n      </AnimatePresence>\n    </div>\n  );\n}\n\ninterface ElementCellProps {\n  element: ChemicalElement;\n  index: number;\n  isActive: boolean;\n  isDark: boolean;\n  shouldAnimate: boolean;\n  variants: Variants;\n  registerCell: (node: HTMLButtonElement | null) => void;\n  onEnter: (element: ChemicalElement) => void;\n  onLeave: () => void;\n  onSelect?: (element: ChemicalElement) => void;\n}\n\nfunction ElementCell({\n  element,\n  index,\n  isActive,\n  isDark,\n  shouldAnimate,\n  variants,\n  registerCell,\n  onEnter,\n  onLeave,\n  onSelect,\n}: ElementCellProps) {\n  const categoryPalette = getElementCategoryPalette(element.category, isDark);\n\n  return (\n    <motion.button\n      ref={registerCell}\n      type=\"button\"\n      style={{ gridColumn: element.col, gridRow: element.row }}\n      custom={index}\n      initial={shouldAnimate ? \"hidden\" : \"visible\"}\n      animate=\"visible\"\n      variants={shouldAnimate ? variants : undefined}\n      whileHover={{ scale: 1.14, y: -2 }}\n      whileTap={{ scale: 0.94 }}\n      transition={{ type: \"spring\", stiffness: 500, damping: 28 }}\n      onMouseEnter={() => onEnter(element)}\n      onMouseLeave={onLeave}\n      onFocus={() => onEnter(element)}\n      onBlur={onLeave}\n      onClick={() => {\n        onEnter(element);\n        onSelect?.(element);\n      }}\n      aria-label={`${element.name}, atomic number ${element.number}`}\n      className={cn(\n        \"relative z-0 flex aspect-square cursor-pointer flex-col items-center justify-center rounded-[8px] border outline-none\",\n        \"focus-visible:ring-2 focus-visible:ring-[#ec5c13]/40\",\n        \"border-[var(--bjork-border-muted)] bg-[var(--bjork-field)] shadow-[var(--bjork-shadow-soft)]\",\n        \"transition-colors hover:border-[var(--bjork-border-strong)] hover:bg-[var(--bjork-surface-hover)]\",\n        isActive &&\n          \"border-[var(--bjork-accent-muted)] bg-[var(--bjork-accent-soft)] hover:border-[var(--bjork-accent-muted)] hover:bg-[var(--bjork-accent-soft)]\",\n        isActive && \"z-10\"\n      )}\n    >\n      <span className=\"absolute left-[5px] top-[3px] text-[10px] leading-none tabular-nums text-[var(--bjork-text-soft)]\">\n        {element.number}\n      </span>\n      <span\n        className={cn(\n          \"text-[13px] font-semibold leading-none tracking-tight\",\n          categoryPalette.text\n        )}\n      >\n        {element.symbol}\n      </span>\n    </motion.button>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/bjork-ui/tables/periodic-table.tsx"
    },
    {
      "path": "lib/utils.ts",
      "content": "import { clsx, type ClassValue } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs))\n}\n",
      "type": "registry:lib",
      "target": "@lib/utils.ts"
    },
    {
      "path": "components/bjork-ui/tables/table-theme.ts",
      "content": "import { useEffect, useState } from \"react\";\n\nexport type BjorkTableThemeMode = \"light\" | \"dark\" | \"auto\";\n\nexport function useBjorkTableIsDark(\n  resolvedTheme?: string,\n  forcedTheme?: Exclude<BjorkTableThemeMode, \"auto\">\n) {\n  const [documentTheme, setDocumentTheme] = useState<\"light\" | \"dark\" | null>(null);\n  const [previewTheme, setPreviewTheme] = useState<\"light\" | \"dark\" | null>(null);\n  // Server and first client render must agree, otherwise React keeps the\n  // server-rendered (dark) classes when the real theme resolves to light.\n  const [mounted, setMounted] = useState(false);\n\n  useEffect(() => {\n    setMounted(true);\n    const syncDocumentTheme = () => {\n      const root = document.documentElement;\n      const searchParams = new URLSearchParams(window.location.search);\n      const theme = searchParams.get(\"theme\");\n\n      setPreviewTheme(theme === \"light\" || theme === \"dark\" ? theme : null);\n\n      setDocumentTheme(\n        root.classList.contains(\"light\")\n          ? \"light\"\n          : root.classList.contains(\"dark\")\n            ? \"dark\"\n            : null\n      );\n    };\n\n    syncDocumentTheme();\n\n    const observer = new MutationObserver(syncDocumentTheme);\n    observer.observe(document.documentElement, {\n      attributes: true,\n      attributeFilter: [\"class\"],\n    });\n\n    return () => observer.disconnect();\n  }, []);\n\n  const activeTheme =\n    forcedTheme ?? previewTheme ?? documentTheme ?? (mounted ? resolvedTheme : undefined);\n\n  return activeTheme !== \"light\";\n}\n\nexport function getBjorkTablePalette(isDark: boolean) {\n  return {\n    container: isDark\n      ? \"border-[#1c1c1c] bg-[#121212] shadow-[inset_0_7px_14px_rgba(255,255,255,0.03),inset_0_0.5px_0.5px_rgba(255,255,255,0.06),0_14px_20px_-6px_rgba(0,0,0,0.45)]\"\n      : \"border-[#f5ede2] bg-[#fffcf6] shadow-[inset_0_7px_14px_rgba(88,72,49,0.045),inset_0_0.5px_0.5px_rgba(255,255,255,0.92),inset_1px_0_0_rgba(88,72,49,0.026),inset_-1px_0_0_rgba(255,255,255,0.68),0_14px_22px_-9px_rgba(66,52,33,0.11)]\",\n    header: isDark\n      ? \"border-[#232323] bg-[#181818] text-[#ededed]/42\"\n      : \"border-[#f1e8dc] bg-[#fbf7ef] text-[#171717]/60\",\n    row: isDark\n      ? \"border-[#232323] hover:bg-[#181818]/70\"\n      : \"border-[#f1e8dc] hover:bg-[#f8f2e7]/72\",\n    selectedRow: isDark\n      ? \"border-[#2a2a2a] bg-[#181818]\"\n      : \"border-[#eadfce] bg-[#f8f2e7]\",\n    control: isDark\n      ? \"border-[#232323] bg-[#181818] text-[#ededed]/70 hover:bg-[#202020] shadow-[inset_0_1px_0_rgba(255,255,255,0.045)]\"\n      : \"border-[#eadfce] bg-[#fffcf6] text-[#171717]/68 shadow-[var(--bjork-shadow-soft)] hover:bg-[#f8f2e7]\",\n    menu: isDark\n      ? \"border-[#232323] bg-[#181818] text-[#ededed]/76 shadow-[inset_0_1px_0_rgba(255,255,255,0.055),inset_0_12px_24px_rgba(255,255,255,0.018),0_22px_42px_-22px_rgba(0,0,0,0.9)]\"\n      : \"border-[#eadfce] bg-[#fffcf6] text-[#171717]/76 shadow-[inset_0_1px_0_rgba(88,72,49,0.04),inset_0_12px_24px_rgba(88,72,49,0.022),0_22px_44px_-26px_rgba(66,52,33,0.22)]\",\n    menuItem: isDark ? \"hover:bg-[#232323]\" : \"hover:bg-[#f8f2e7]\",\n    menuActive: isDark ? \"bg-[#232323]\" : \"bg-[#f8f2e7]\",\n    divider: isDark ? \"border-[#232323]\" : \"border-[#f1e8dc]\",\n    primaryText: isDark ? \"text-[#ededed]/90\" : \"text-[#171717]/86\",\n    secondaryText: isDark ? \"text-[#ededed]/38\" : \"text-[#171717]/60\",\n    mutedSurface: isDark ? \"bg-[#181818]\" : \"bg-[#f8f2e7]\",\n    popover: isDark ? \"bg-[#111] text-[#ededed]\" : \"bg-[#fffcf6] text-[#171717]\",\n    accent: isDark ? \"text-[#d86a2c]\" : \"text-[#bd4514]\",\n    accentBg: isDark ? \"bg-[#ec5c13]/12\" : \"bg-[#ec5c13]/14\",\n    accentBorder: isDark ? \"border-[#ec5c13]/24\" : \"border-[#bd4514]/22\",\n    checkboxAccent: isDark ? \"#d86a2c\" : \"#bd4514\",\n  };\n}\n\nexport function getBjorkSignalPalette(\n  tone: \"green\" | \"red\" | \"orange\" | \"neutral\",\n  isDark: boolean\n) {\n  const palettes = {\n    green: {\n      bgColor: isDark ? \"bg-[#3e6f52]/18\" : \"bg-[#dce8dc]\",\n      borderColor: isDark ? \"border-[#5f9f78]/28\" : \"border-[#bad0bd]\",\n      textColor: isDark ? \"text-[#77b58b]\" : \"text-[#47785c]\",\n      dotColor: isDark ? \"bg-[#77b58b]\" : \"bg-[#47785c]\",\n      color: isDark ? \"#77b58b\" : \"#47785c\",\n    },\n    red: {\n      bgColor: isDark ? \"bg-[#87463f]/18\" : \"bg-[#eadad5]\",\n      borderColor: isDark ? \"border-[#c46a61]/28\" : \"border-[#d7bcb4]\",\n      textColor: isDark ? \"text-[#cf7c72]\" : \"text-[#9d5149]\",\n      dotColor: isDark ? \"bg-[#cf7c72]\" : \"bg-[#9d5149]\",\n      color: isDark ? \"#cf7c72\" : \"#9d5149\",\n    },\n    orange: {\n      bgColor: isDark ? \"bg-[#ec5c13]/14\" : \"bg-[#ead9cb]\",\n      borderColor: isDark ? \"border-[#ec5c13]/28\" : \"border-[#d5b59f]\",\n      textColor: isDark ? \"text-[#d86a2c]\" : \"text-[#9f4317]\",\n      dotColor: isDark ? \"bg-[#d86a2c]\" : \"bg-[#9f4317]\",\n      color: isDark ? \"#d86a2c\" : \"#9f4317\",\n    },\n    neutral: {\n      bgColor: isDark ? \"bg-[#ededed]/8\" : \"bg-[#ded7ca]\",\n      borderColor: isDark ? \"border-[#ededed]/14\" : \"border-[#cfc6b7]\",\n      textColor: isDark ? \"text-[#ededed]/58\" : \"text-[#171717]/60\",\n      dotColor: isDark ? \"bg-[#ededed]/45\" : \"bg-[#171717]/42\",\n      color: isDark ? \"#a3a3a3\" : \"#706b62\",\n    },\n  } as const;\n\n  return palettes[tone];\n}\n",
      "type": "registry:component",
      "target": "@components/bjork-ui/tables/table-theme.ts"
    }
  ],
  "cssVars": {
    "light": {
      "bjork-bg": "#f7f3ea",
      "bjork-surface": "#fffcf6",
      "bjork-surface-muted": "rgba(250, 246, 237, 0.94)",
      "bjork-surface-hover": "#f5efe3",
      "bjork-surface-active": "#efe7d8",
      "bjork-panel": "#f8f2e7",
      "bjork-menu": "rgba(255, 252, 246, 0.98)",
      "bjork-field": "rgba(255, 252, 246, 0.96)",
      "bjork-field-muted": "rgba(248, 242, 231, 0.82)",
      "bjork-field-inset": "rgba(239, 231, 216, 0.72)",
      "bjork-error-bg": "#fff0e8",
      "bjork-text": "#171717",
      "bjork-text-strong": "rgba(23, 23, 23, 0.9)",
      "bjork-text-medium": "rgba(23, 23, 23, 0.78)",
      "bjork-text-muted": "rgba(23, 23, 23, 0.68)",
      "bjork-text-soft": "rgba(23, 23, 23, 0.62)",
      "bjork-text-faint": "rgba(23, 23, 23, 0.22)",
      "bjork-inverted-text": "#fff8f0",
      "bjork-border": "#eee6db",
      "bjork-border-muted": "#f5ede2",
      "bjork-border-strong": "#e1d7c8",
      "bjork-thumb": "#a49b8e",
      "bjork-track": "#ded6ca",
      "bjork-accent": "#ec7d43",
      "bjork-accent-hover": "#f0935f",
      "bjork-accent-soft": "rgba(236, 125, 67, 0.1)",
      "bjork-accent-muted": "rgba(236, 125, 67, 0.2)",
      "bjork-accent-badge": "rgba(236, 125, 67, 0.16)",
      "bjork-accent-badge-foreground": "#8d421d",
      "bjork-accent-foreground": "#3f2112",
      "bjork-accent-fill": "#ec7d43",
      "bjork-accent-fill-hover": "#f0935f",
      "bjork-shadow-surface": "inset 0 7px 14px rgba(88, 72, 49, 0.045), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.92), inset 1px 0 0 rgba(88, 72, 49, 0.026), inset -1px 0 0 rgba(255, 255, 255, 0.68), 0 14px 22px -9px rgba(66, 52, 33, 0.11)",
      "bjork-shadow-soft": "inset 0 1px 0 rgba(88, 72, 49, 0.045), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.86)",
      "bjork-shadow-panel": "inset 0 1px 0 rgba(88, 72, 49, 0.04), inset 1px 0 0 rgba(88, 72, 49, 0.024), inset -1px 0 0 rgba(255, 255, 255, 0.64), 0 18px 38px -30px rgba(66, 52, 33, 0.2)",
      "bjork-shadow-menu": "inset 0 1px 0 rgba(88, 72, 49, 0.04), inset 0 12px 24px rgba(88, 72, 49, 0.022), inset 1px 0 0 rgba(88, 72, 49, 0.024), inset -1px 0 0 rgba(255, 255, 255, 0.62), 0 22px 44px -26px rgba(66, 52, 33, 0.22)",
      "bjork-shadow-inset": "inset 0 1px 10px rgba(88, 72, 49, 0.12), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.72)",
      "bjork-ring-offset": "#f7f3ea"
    },
    "dark": {
      "bjork-bg": "#111111",
      "bjork-surface": "#121212",
      "bjork-surface-muted": "rgba(22, 22, 22, 0.92)",
      "bjork-surface-hover": "#161616",
      "bjork-surface-active": "#202020",
      "bjork-panel": "#0d0d0d",
      "bjork-menu": "rgba(18, 18, 18, 0.98)",
      "bjork-field": "rgba(18, 18, 18, 0.95)",
      "bjork-field-muted": "rgba(18, 18, 18, 0.55)",
      "bjork-field-inset": "rgba(9, 9, 9, 0.75)",
      "bjork-error-bg": "#130d0a",
      "bjork-text": "#ededed",
      "bjork-text-strong": "rgba(237, 237, 237, 0.9)",
      "bjork-text-medium": "rgba(237, 237, 237, 0.72)",
      "bjork-text-muted": "rgba(237, 237, 237, 0.6)",
      "bjork-text-soft": "rgba(237, 237, 237, 0.5)",
      "bjork-text-faint": "rgba(237, 237, 237, 0.22)",
      "bjork-inverted-text": "#080808",
      "bjork-border": "#232323",
      "bjork-border-muted": "#1c1c1c",
      "bjork-border-strong": "#343434",
      "bjork-thumb": "#626262",
      "bjork-track": "#090909",
      "bjork-accent": "#ec5c13",
      "bjork-accent-hover": "#f07832",
      "bjork-accent-soft": "rgba(236, 92, 19, 0.12)",
      "bjork-accent-muted": "rgba(236, 92, 19, 0.24)",
      "bjork-accent-badge": "#b84a12",
      "bjork-accent-badge-foreground": "#fff2ea",
      "bjork-accent-foreground": "#fff2ea",
      "bjork-accent-fill": "#b84a12",
      "bjork-accent-fill-hover": "#a84a14",
      "bjork-shadow-surface": "inset 0 7px 14px rgba(255, 255, 255, 0.03), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.06), 0 14px 20px -6px rgba(0, 0, 0, 0.45)",
      "bjork-shadow-soft": "inset 0 1px 0 rgba(255, 255, 255, 0.045)",
      "bjork-shadow-panel": "inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 36px -28px rgba(0, 0, 0, 0.9)",
      "bjork-shadow-menu": "inset 0 1px 0 rgba(255, 255, 255, 0.055), inset 0 12px 24px rgba(255, 255, 255, 0.018), inset 0 -18px 26px rgba(0, 0, 0, 0.24), 0 22px 42px -22px rgba(0, 0, 0, 0.9)",
      "bjork-shadow-inset": "inset 0 1px 10px rgba(0, 0, 0, 0.45)",
      "bjork-ring-offset": "#080808"
    }
  },
  "css": {
    ".bjork-range": {
      "box-shadow": "inset 0 1px 1px rgba(255, 255, 255, 0.04), 0 0 14px rgba(189, 69, 20, 0.06)"
    },
    ".bjork-range::-webkit-slider-thumb": {
      "appearance": "none",
      "width": "16px",
      "height": "8px",
      "border": "0",
      "border-radius": "999px",
      "background": "var(--bjork-thumb)",
      "box-shadow": "inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.42)"
    },
    ".bjork-range::-moz-range-thumb": {
      "width": "16px",
      "height": "8px",
      "border": "0",
      "border-radius": "999px",
      "background": "var(--bjork-thumb)",
      "box-shadow": "inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.42)"
    },
    ".bjork-layered-button-accent, .bjork-layered-button-raised": {
      "position": "relative",
      "isolation": "isolate",
      "appearance": "none",
      "overflow": "hidden",
      "border": "0",
      "border-radius": "13px",
      "box-shadow": "inset 0 1px 0 #ffffff38, 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a",
      "transition": "filter 150ms ease-out, box-shadow 150ms ease-out"
    },
    ".bjork-layered-button-accent::after, .bjork-layered-button-raised::after": {
      "position": "absolute",
      "inset": "0",
      "pointer-events": "none",
      "content": "\"\"",
      "border": "1.5px solid transparent",
      "border-radius": "inherit",
      "background": "linear-gradient(#ffffffb8, #0000003d 41% 75%, #ffffff47) border-box",
      "mix-blend-mode": "overlay",
      "-webkit-mask-image": "linear-gradient(#000, #000), linear-gradient(#000, #000)",
      "mask-image": "linear-gradient(#000, #000), linear-gradient(#000, #000)",
      "-webkit-mask-clip": "padding-box, border-box",
      "mask-clip": "padding-box, border-box",
      "-webkit-mask-origin": "padding-box, border-box",
      "mask-origin": "padding-box, border-box",
      "-webkit-mask-composite": "xor",
      "mask-composite": "exclude"
    },
    ".bjork-layered-button-accent": {
      "color": "oklch(100% 0 0)",
      "text-shadow": "0 -1px #00000040",
      "background": "radial-gradient(ellipse at -20px top, rgba(255, 255, 255, 0.14), transparent), linear-gradient(180deg, #ec5c13 0%, #ec5c13 62%, color-mix(in oklab, #ec5c13 84%, black 16%) 100%)"
    },
    ".bjork-layered-button-raised": {
      "color": "oklch(100% 0 0)",
      "text-shadow": "0 -1px #00000026",
      "background": "radial-gradient(ellipse at -20px top, #ffffff38, #fff0), linear-gradient(180deg, oklch(0.1881 0.006 265), oklch(0.5493 0.0081 265))"
    },
    ".dark .bjork-layered-button-raised": {
      "color": "oklch(0.2574 0.0056 265)",
      "text-shadow": "0 -1px #00000026",
      "background": "radial-gradient(ellipse at -20px top, #ffffff38, #fff0), linear-gradient(180deg, color-mix(in oklab, oklch(0.9674 0.0013 265) 80%, oklch(0.2574 0.0056 265) 20%), color-mix(in oklab, oklch(0.669 0.0107 265) 80%, oklch(0.2574 0.0056 265) 20%))"
    },
    "@media (hover: hover)": {
      ".bjork-layered-button-accent:hover": {
        "filter": "brightness(1.08) saturate(1.04)"
      },
      ".bjork-layered-button-raised:hover": {
        "filter": "brightness(1.08) contrast(0.9)"
      }
    }
  },
  "meta": {
    "collection": "Tables",
    "registryUrl": "https://ui.isaiahbjork.com/periodic-table.json",
    "installCommand": "npx shadcn@latest add https://ui.isaiahbjork.com/periodic-table.json"
  },
  "type": "registry:component"
}