Donut scoping addresses the challenge of preventing parent styles from leaking to nested content. Originating from a 2011 concept by Nicole Sullivan, the issue has evolved, culminating in 2024’s @scope at-rule. This allows for more precise CSS styling, safeguarding content from unwanted inheritance while managing global…
Invoker Commands: Additional Ways to Work With Dialog, Popover… and More?
Web browsers are experimenting with two HTML attributes — technically, they’re called “invoker commands” — that are designed to invoke popovers, dialogs, and further down the line, all kinds of actions without writing JavaScript. Although, if you do reach for JavaScript, the new attributes come with…
Dancing with currents and waves in the Maldives
Any child who’s spent a morning building sandcastles only to watch the afternoon tide ruin them in minutes knows the ocean always wins.
Yet, coastal protection strategies have historically focused on battling the sea — attempting to hold back tides and fighting waves and currents by armoring coastlines with jetties and seawalls and taking sand from the ocean floor to “renourish” beaches. These approaches are temporary fixes, but eventually the sea retakes dredged sand, intense surf breaches seawalls, and jetties may just push erosion to a neighboring beach. The ocean wins.
With climate change accelerating sea level rise and coastal erosion, the need for better solutions is urgent. Noting that eight of the world’s 10 largest cities are near a coast, a recent National Oceanic and Atmospheric Administration (NOAA) report pointed to 2023’s record-high global sea level and warned that high tide flooding is now 300 to 900 percent more frequent than it was 50 years ago, threatening homes, businesses, roads and bridges, and a range of public infrastructure, from water supplies to power plants.
Island nations face these threats more acutely than other countries and there’s a critical need for better solutions. MIT’s Self-Assembly Lab is refining an innovative one that demonstrates the value of letting nature take its course — with some human coaxing.
The Maldives, an Indian Ocean archipelago of nearly 1,200 islands, has traditionally relied on land reclamation via dredging to replenish its eroding coastlines. Working with the Maldivian climate technology company Invena Private Limited, the Self-Assembly Lab is pursuing technological solutions to coastal erosion that mimic nature by harnessing ocean currents to accumulate sand. The Growing Islands project creates and deploys underwater structures that take advantage of wave energy to promote accumulation of sand in strategic locations — helping to expand islands and rebuild coastlines in sustainable ways that can eventually be scaled to coastal areas around the world.
“There’s room for a new perspective on climate adaptation, one that builds with nature and leverages data for equitable decision-making,” says Invena co-founder and CEO Sarah Dole.
MIT’s pioneering work was the topic of multiple presentations during the United Nations General Assembly and Climate week in New York City in late September. During the week, Self-Assembly Lab co-founder and director Skylar Tibbits and Maldives Minister of Climate Change, Environment and Energy Thoriq Ibrahim also presented findings of the Growing Islands project at MIT Solve’s Global Challenge Finals in New York.
“There’s this interesting story that’s emerging around the dynamics of islands,” says Tibbits, whose U.N.-sponsored panel (“Adaptation Through Innovation: How the Private Sector Could Lead the Way”) was co-hosted by the Government of Maldives and the U.S. Agency for International Development, a Growing Islands project funder.
In a recent interview, Tibbits said islands “are almost lifelike in their characteristics. They can adapt and grow and change and fluctuate.” Despite some predictions that the Maldives might be inundated by sea level rise and ravaged by erosion, “maybe these islands are actually more resilient than we thought. And maybe there’s a lot more we can learn from these natural formations of sand … maybe they are a better model for how we adapt in the future for sea level rise and erosion and climate change than our man-made cities.”
Building on a series of lab experiments begun in 2017, the MIT Self-Assembly Lab and Invena have been testing the efficacy of submersible structures to expand islands and rebuild coasts in the Maldivian capital of Male since 2019. Since then, researchers have honed the experiments based on initial results that demonstrate the promise of using submersible bladders and other structures to utilize natural currents to encourage strategic accumulation of sand.
The work is “boundary-pushing,” says Alex Moen, chief explorer engagement officer at the National Geographic Society, an early funder of the project.
“Skylar and his team’s innovative technology reflect the type of forward-thinking, solutions-oriented approaches necessary to address the growing threat of sea level rise and erosion to island nations and coastal regions,” Moen said.
Most recently, in August 2024, the team submerged a 60-by-60-meter structure in a lagoon near Male. The structure is six times the size of its predecessor installed in 2019, Tibbits says, adding that while the 2019 island-building experiment was a success, ocean currents in the Maldives change seasonally and it only allowed for accretion of sand in one season.
“The idea of this was to make it omnidirectional. We wanted to make it work year-round. In any direction, any season, we should be accumulating sand in the same area,” Tibbits says. “This is our largest experiment so far, and I think it has the best chance to accumulate the most amount of sand, so we’re super excited about that.”
The next experiment will focus not on building islands, but on overcoming beach erosion. This project, planned for installation later this fall, is envisioned to not only enlarge a beach but also provide recreational benefits for local residents and enhanced habitat for marine life such as fish and corals.
“This will be the first large-scale installment that’s intentionally designed for marine habitats,” Tibbits says.
Another key aspect of the Growing Islands project takes place in Tibbits’ lab at MIT, where researchers are improving the ability to predict and track changes in low-lying islands through satellite imagery analysis — a technique that promises to facilitate what is now a labor-intensive process involving land and sea surveys by drones and researchers on foot and at sea.
“In the future, we could be monitoring and predicting coastlines around the world — every island, every coastline around the world,” Tibbits says. “Are these islands getting smaller, getting bigger? How fast are they losing ground? No one really knows unless we do it by physically surveying right now and that’s not scalable. We do think we have a solution for that coming.”
Also hopefully coming soon is financial support for a Mobile Ocean Innovation Lab, a “floating hub” that would provide small island developing states with advanced technologies to foster coastal and climate resilience, conservation, and renewable energy. Eventually, Tibbits says, it would enable the team to travel “any place around the world and partner with local communities, local innovators, artists, and scientists to help co-develop and deploy some of these technologies in a better way.”
Expanding the reach of climate change solutions that collaborate with, rather than oppose, natural forces depends on getting more people, organizations, and governments on board.
“There are two challenges,” Tibbits says. “One of them is the legacy and history of what humans have done in the past that constrains what we think we can do in the future. For centuries, we’ve been building hard infrastructure at our coastlines, so we have a lot of knowledge about that. We have companies and practices and expertise, and we have a built-up confidence, or ego, around what’s possible. We need to change that.
“The second problem,” he continues, “is the money-speed-convenience problem — or the known-versus-unknown problem. The hard infrastructure, whether that’s groins or seawalls or just dredging … these practices in some ways have a clear cost and timeline, and we are used to operating in that mindset. And nature doesn’t work that way. Things grow, change, and adapt on their on their own timeline.”
Teaming up with waves and currents to preserve islands and coastlines requires a mindset shift that’s difficult, but ultimately worthwhile, Tibbits contends.
“We need to dance with nature. We’re never going to win if we’re trying to resist it,” he says. “But the best-case scenario is that we can take all the positive attributes in the environment and take all the creative, positive things we can do as humans and work together to create something that’s more than the sum of its parts.”
Graph-based AI model maps the future of innovation
Imagine using artificial intelligence to compare two seemingly unrelated creations — biological tissue and Beethoven’s “Symphony No. 9.” At first glance, a living system and a musical masterpiece might appear to have no connection. However, a novel AI method developed by Markus J. Buehler, the McAfee Professor of Engineering and professor of civil and environmental engineering and mechanical engineering at MIT, bridges this gap, uncovering shared patterns of complexity and order.
“By blending generative AI with graph-based computational tools, this approach reveals entirely new ideas, concepts, and designs that were previously unimaginable. We can accelerate scientific discovery by teaching generative AI to make novel predictions about never-before-seen ideas, concepts, and designs,” says Buehler.
The open-access research, recently published in Machine Learning: Science and Technology, demonstrates an advanced AI method that integrates generative knowledge extraction, graph-based representation, and multimodal intelligent graph reasoning.
The work uses graphs developed using methods inspired by category theory as a central mechanism to teach the model to understand symbolic relationships in science. Category theory, a branch of mathematics that deals with abstract structures and relationships between them, provides a framework for understanding and unifying diverse systems through a focus on objects and their interactions, rather than their specific content. In category theory, systems are viewed in terms of objects (which could be anything, from numbers to more abstract entities like structures or processes) and morphisms (arrows or functions that define the relationships between these objects). By using this approach, Buehler was able to teach the AI model to systematically reason over complex scientific concepts and behaviors. The symbolic relationships introduced through morphisms make it clear that the AI isn’t simply drawing analogies, but is engaging in deeper reasoning that maps abstract structures across different domains.
Buehler used this new method to analyze a collection of 1,000 scientific papers about biological materials and turned them into a knowledge map in the form of a graph. The graph revealed how different pieces of information are connected and was able to find groups of related ideas and key points that link many concepts together.
“What’s really interesting is that the graph follows a scale-free nature, is highly connected, and can be used effectively for graph reasoning,” says Buehler. “In other words, we teach AI systems to think about graph-based data to help them build better world representations models and to enhance the ability to think and explore new ideas to enable discovery.”
Researchers can use this framework to answer complex questions, find gaps in current knowledge, suggest new designs for materials, and predict how materials might behave, and link concepts that had never been connected before.
The AI model found unexpected similarities between biological materials and “Symphony No. 9,” suggesting that both follow patterns of complexity. “Similar to how cells in biological materials interact in complex but organized ways to perform a function, Beethoven’s 9th symphony arranges musical notes and themes to create a complex but coherent musical experience,” says Buehler.
In another experiment, the graph-based AI model recommended creating a new biological material inspired by the abstract patterns found in Wassily Kandinsky’s painting, “Composition VII.” The AI suggested a new mycelium-based composite material. “The result of this material combines an innovative set of concepts that include a balance of chaos and order, adjustable property, porosity, mechanical strength, and complex patterned chemical functionality,” Buehler notes. By drawing inspiration from an abstract painting, the AI created a material that balances being strong and functional, while also being adaptable and capable of performing different roles. The application could lead to the development of innovative sustainable building materials, biodegradable alternatives to plastics, wearable technology, and even biomedical devices.
With this advanced AI model, scientists can draw insights from music, art, and technology to analyze data from these fields to identify hidden patterns that could spark a world of innovative possibilities for material design, research, and even music or visual art.
“Graph-based generative AI achieves a far higher degree of novelty, explorative of capacity and technical detail than conventional approaches, and establishes a widely useful framework for innovation by revealing hidden connections,” says Buehler. “This study not only contributes to the field of bio-inspired materials and mechanics, but also sets the stage for a future where interdisciplinary research powered by AI and knowledge graphs may become a tool of scientific and philosophical inquiry as we look to other future work.”
Anchoreum: A New Game for Learning Anchor Positioning
You’ve played Flexbox Froggy before, right? Or maybe Grid Garden? They’re both absolute musts for learning the basics of modern CSS layout using Flexbox and CSS Grid. Thomas Park made those and he’s back with another game: Anchoreum.
Anchoreum: A New Game for Learning Anchor Positioning originally…
The Different (and Modern) Ways to Toggle Content
Let’s spend some time looking at disclosures, the Dialog API, the Popover API, and more. We’ll look at the right time to use each one depending on your needs. Modal or non-modal? JavaScript or pure HTML/CSS? Not sure? Don’t worry, we’ll go into all that.
The Different (and Modern)…
Popping Comments With CSS Anchor Positioning and View-Driven Animations
The State of CSS 2024 survey wrapped up and the results are interesting, as always. Even though each section is worth analyzing, we are usually most hyped about the section on the most used CSS features. And if you …
Popping Comments With CSS Anchor Positioning and…
A portable light system that can digitize everyday objects
When Nikola Tesla predicted we’d have handheld phones that could display videos, photographs, and more, his musings seemed like a distant dream. Nearly 100 years later, smartphones are like an extra appendage for many of us.
Digital fabrication engineers are now working toward expanding the display capabilities of other everyday objects. One avenue they’re exploring is reprogrammable surfaces — or items whose appearances we can digitally alter — to help users present important information, such as health statistics, as well as new designs on things like a wall, mug, or shoe.
Researchers from MIT’s Computer Science and Artificial Intelligence Laboratory (CSAIL), the University of California at Berkeley, and Aarhus University have taken an intriguing step forward by fabricating “PortaChrome,” a portable light system and design tool that can change the color and textures of various objects. Equipped with ultraviolet (UV) and red, green, and blue (RGB) LEDs, the device can be attached to everyday objects like shirts and headphones. Once a user creates a design and sends it to a PortaChrome machine via Bluetooth, the surface can be programmed into multicolor displays of health data, entertainment, and fashion designs.
To make an item reprogrammable, the object must be coated with photochromic dye, an invisible ink that can be turned into different colors with light patterns. Once it’s coated, individuals can create and relay patterns to the item via the team’s graphic design software, or use the team’s API to interact with the device directly and embed data-driven designs. When attached to a surface, PortaChrome’s UV lights saturate the dye while the RGB LEDs desaturate it, activating the colors and ensuring each pixel is toned to match the intended design.
Zhu and her colleagues’ integrated light system changes objects’ colors in less than four minutes on average, which is eight times faster than their prior work, “Photo-Chromeleon.” This speed boost comes from switching to a light source that makes contact with the object to transmit UV and RGB rays. Photo-Chromeleon used a projector to help activate the color-changing properties of photochromic dye, where the light on the object’s surface is at a reduced intensity.
“PortaChrome provides a more convenient way to reprogram your surroundings,” says Yunyi Zhu ’20, MEng ’21, an MIT PhD student in electrical engineering and computer science, affiliate of CSAIL, and lead author on a paper about the work. “Compared with our projector-based system from before, PortaChrome is a more portable light source that can be placed directly on top of the photochromic surface. This allows the color change to happen without user intervention and helps us avoid contaminating our environment with UV. As a result, users can wear their heart rate chart on their shirt after a workout, for instance.”
Giving everyday objects a makeover
In demos, PortaChrome displayed health data on different surfaces. A user hiked with PortaChrome sewed onto their backpack, putting it into direct contact with the back of their shirt, which was coated in photochromic dye. Altitude and heart rate sensors sent data to the lighting device, which was then converted into a chart through a reprogramming script developed by the researchers. This process created a health visualization on the back of the user’s shirt. In a similar showing, MIT researchers displayed a heart gradually coming together on the back of a tablet to show how a user was progressing toward a fitness goal.
PortaChrome also showed a flair for customizing wearables. For example, the researchers redesigned some white headphones with sideways blue lines and horizontal yellow and purple stripes. The photochromic dye was coated on the headphones and the team then attached the PortaChrome device to the inside of the headphone case. Finally, the researchers successfully reprogrammed their patterns onto the object, which resembled watercolor art. Researchers also recolored a wrist splint to match different clothes using this process.
Eventually, the work could be used to digitize consumers’ belongings. Imagine putting on a cloak that can change your entire shirt design, or using your car cover to give your vehicle a new look.
PortaChrome’s main ingredients
On the hardware end, PortaChrome is a combination of four main ingredients. Their portable device consists of a textile base as a sort of backbone, a textile layer with the UV lights soldered on and another with the RGB stuck on, and a silicone diffusion layer to top it off. Resembling a translucent honeycomb, the silicone layer covers the interlaced UV and RGB LEDs and directs them toward individual pixels to properly illuminate a design over a surface.
This device can be flexibly wrapped around objects with different shapes. For tables and other flat surfaces, you could place PortaChrome on top, like a placemat. For a curved item like a thermos, you could wrap the light source around like a coffee cup sleeve to ensure it reprograms the entire surface.
The portable, flexible light system is crafted with maker space-available tools (like laser cutters, for example), and the same method can be replicated with flexible PCB materials and other mass manufacturing systems.
While it can also quickly convert our surroundings into dynamic displays, Zhu and her colleagues believe it could benefit from further speed boosts. They’d like to use smaller LEDs, with the likely result being a surface that could be reprogrammed in seconds with a higher-resolution design, thanks to increased light intensity.
“The surfaces of our everyday things are encoded with colors and visual textures, delivering crucial information and shaping how we interact with them,” says Georgia Tech postdoc Tingyu Cheng, who was not involved with the research. “PortaChrome is taking a leap forward by providing reprogrammable surfaces with the integration of flexible light sources (UV and RGB LEDs) and photochromic pigments into everyday objects, pixelating the environment with dynamic color and patterns. The capabilities demonstrated by PortaChrome could revolutionize the way we interact with our surroundings, particularly in domains like personalized fashion and adaptive user interfaces. This technology enables real-time customization that seamlessly integrates into daily life, offering a glimpse into the future of ‘ubiquitous displays.’”
Zhu is joined by nine CSAIL affiliates on the paper: MIT PhD student and MIT Media Lab affiliate Cedric Honnet; former visiting undergraduate researchers Yixiao Kang, Angelina J. Zheng, and Grace Tang; MIT undergraduate student Luca Musk; University of Michigan Assistant Professor Junyi Zhu SM ’19, PhD ’24; recent postdoc and Aarhus University assistant professor Michael Wessely; and senior author Stefanie Mueller, the TIBCO Career Development Associate Professor in the MIT departments of Electrical Engineering and Computer Science and Mechanical Engineering and leader of the HCI Engineering Group at CSAIL.
This work was supported by the MIT-GIST Joint Research Program and was presented at the ACM Symposium on User Interface Software and Technology in October.
Fluid Everything Else
We can apply the concept of fluid typography to almost anything. This way we can have a layout that fluidly changes with the size of its parent container. Few users will ever see the transition, but they will all appreciate the results. Honestly, they will.
Fluid Everything…
Q&A: A STEAM framework that prepares learners for evolving careers and technologies
As educators are challenged to balance student learning and well-being with planning authentic and relevant course materials, MIT pK-12 at Open Learning developed a framework that can help. The student-centered STEAM learning architecture, initially co-created for Itz’at STEAM Academy in Belize, now serves as a model for schools worldwide.
Three core pillars guide MIT pK-12’s vision for teaching and learning: social-emotional and cultural learning, transdisciplinary academics, and community engagement. Claudia Urrea, principal investigator for this project and senior associate director of MIT pK-12, says this innovative framework supports learners’ growth as engaged and self-directed students. Joining these efforts on the pK-12 team are Joe Diaz, program coordinator, and Emily Glass, senior learning innovation designer.
Now that Itz’at has completed its first academic year, the MIT pK-12 team reflects on how the STEAM learning architecture works in practice and how it could be adapted to other schools.
Q: Why would a new school need a STEAM learning architecture? How is this framework used?
Glass: In the case of Itz’at STEAM Academy, the school aims to prepare its students for careers and jobs of the future, recognizing that learners will be navigating an evolving global economy with significant technological changes. Since the local and global landscape will continue to evolve over time, in order to stay innovative, the STEAM learning architecture serves as a reference document for the school to reflect, iterate, and improve its program. Learners will need to think critically, solve large problems, embrace creativity, and utilize digital technologies and tools to their benefit.
Q: How do you begin developing a school from scratch?
Urrea: To build a school that reflected local values and aspired towards global goals, our team knew we needed a deep understanding of the strengths and needs of Belize’s larger education ecosystem and culture. We collaborated with Belize’s Ministry of Education, Culture, Science, and Technology, as well as the newly hired Itz’at staff.
Next, we conducted an extensive review of research, drawing from MIT pK-12’s own work and outside academic studies on competency-based education, constructionism, and other foundational pedagogies. We gathered best practices of innovative schools through interviews and global site visits.
MIT’s collective team experience included the creation of schools for the NuVuX network, constructionist pedagogical research and practice, and the development of STEAM-focused educational materials for both formal and informal learning environments.
Q: Why was co-creation important for this process?
Urrea: MIT pK-12 could not imagine doing this project without strong co-creation. Everyone involved has their own expertise and understanding of what works best for learners and educators, and collaborating ensures that all stakeholders have a voice in the school’s pedagogy. We co-designed an innovative framework that’s relevant to Belize.
However, there’s no one-size-fits-all pedagogy that will be successful in every context. This framework allows educators to adapt their approaches. The school and the ministry can sustain Itz’at’s experimental nature with continual reflection, iteration, and improvement.
Q: What was the reasoning behind the framework’s core pillars?
Glass: MIT pK-12 found that many successful schools had strong social-emotional support, specific approaches to academics, and reciprocal relationships with their surrounding communities.
We tailored each core pillar to Itz’at. To better support learners’ social-emotional well-being, Belizean cultural identity is an essential part of the learning needed to anchor this project locally. A transdisciplinary approach most clearly aligns with the school’s focus on the United Nations Sustainable Development Goals, encouraging learners to ask big questions facing the world today. And to engage learners in real-world learning experiences, the school coordinates internships with the local community.
Q: Which areas of learning science research were most significant to the STEAM architecture? How does this pedagogy differ from Itz’at educators’ previous experiences?
Urrea: Learning at the Itz’at STEAM Academy focuses on authentic learning experiences and concrete evidence of concept mastery. Educators say that this is different from other schools in Belize, where conventional grading is based on rote memorization in isolated academic subjects.
Together as a team, Itz’at educators shifted their teaching to follow the foundational principles from the STEAM learning architecture, both bringing in their own experiences and implementing new practices.
Glass: Itz’at’s competency-based approach promotes a more holistic educational experience. Instead of traditional subjects like science, history, math, and language arts, Itz’at classes cover sustainable environments, global humanities, qualitative reasoning, arts and fabrication, healthy living, and real-world learning. Combining disciplines in multiple ways allows learners to draw stronger connections between different subjects.
Diaz: When the curriculum is relevant to learners’ lives, learners can also more easily connect what happens inside and outside of the classroom. Itz’at educators embraced bringing in experts from the local community to enrich learning experiences.
Q: How does the curriculum support learners with career preparation?
Diaz: To ensure learners can transition smoothly from school to the workforce, Itz’at offers exposure to potential careers early in their journey. Internships with local businesses, community organizations, and government agencies provide learners with real-world experience in professional environments.
Students begin preparing for internships in their second year and attend seminars in their third year. By their fourth and final year, they are expected to begin internships and capstone projects that demonstrate academic rigor, innovative thinking, and mastery of concepts, topics, and skills of their choosing.
Q: What do you hope the impact of the STEAM architecture will be?
Glass: Our hope is that the STEAM learning architecture will serve as a resource for educators, school administrators, policymakers, and researchers beyond Belize. This framework can help educational practitioners respond to critical challenges, including preparation for life and careers, thinking beyond short-term outcomes, learners’ mental health and well-being, and more.