Refactor and Enhance Hex Colours Simulator in Astro #11

Closed
opened 2026-03-01 15:32:52 +00:00 by alexander.lyall · 0 comments

Context

The Hex Colours simulator needs to be migrated from the legacy HTML structure into the new Astro architecture. It must be updated to match the new dark-mode design language established by the Binary and Hexadecimal simulators.

Objective

Rebase the Hex Colours page into Astro, adopt the global BaseLayout.astro, implement the interactive RGB hex cards, and add the newly designed toolbox features.

Acceptance Criteria

  • Migration: Create hex-colours.astro using the global layout.
  • Layout: Implement the side-by-side readout container for Denary, Hexadecimal, Binary, and the visual colour preview boxes.
  • Interactive UI: Build container-query responsive "Hex Cards" for the Red, Green, and Blue channels with built-in increment/decrement buttons and 4-bit SVG lightbulbs.
  • Toolbox Features: Implement functional buttons for "Custom Hex", "Custom RGB", "Invert Colour", "Random Colour", and "Reset".
  • Styling: Ensure the binary and hex text dynamically injects the .text-red, .text-green, and .text-blue CSS classes for clear visual hierarchy.
### Context The Hex Colours simulator needs to be migrated from the legacy HTML structure into the new Astro architecture. It must be updated to match the new dark-mode design language established by the Binary and Hexadecimal simulators. ### Objective Rebase the Hex Colours page into Astro, adopt the global `BaseLayout.astro`, implement the interactive RGB hex cards, and add the newly designed toolbox features. ### Acceptance Criteria - [ ] **Migration:** Create `hex-colours.astro` using the global layout. - [ ] **Layout:** Implement the side-by-side readout container for Denary, Hexadecimal, Binary, and the visual colour preview boxes. - [ ] **Interactive UI:** Build container-query responsive "Hex Cards" for the Red, Green, and Blue channels with built-in increment/decrement buttons and 4-bit SVG lightbulbs. - [ ] **Toolbox Features:** Implement functional buttons for "Custom Hex", "Custom RGB", "Invert Colour", "Random Colour", and "Reset". - [ ] **Styling:** Ensure the binary and hex text dynamically injects the `.text-red`, `.text-green`, and `.text-blue` CSS classes for clear visual hierarchy.
alexander.lyall added this to the Version 2.0 milestone 2026-03-01 15:32:52 +00:00
alexander.lyall added the
Priority
Medium
3
Kind/EnhancementKind/Feature
labels 2026-03-01 15:32:52 +00:00
alexander.lyall self-assigned this 2026-03-01 15:32:52 +00:00
alexander.lyall added this to the Version 2.0 project 2026-03-01 15:32:52 +00:00
alexander.lyall added reference Version-2-Rebase 2026-03-01 15:33:37 +00:00
alexander.lyall moved this to Done in Version 2.0 on 2026-03-01 15:38:32 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: alexander.lyall/computing-box#11