# Car dashboard warning lights

> Car warning icons that light up amber or red and explain the alert on a small scanline display.

- Category: [Tooltips](https://library.aimran.es/components/tooltips)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-tip-car-warnings
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

A dark instrument cluster with four warning lights for tire pressure, oil, fuel and seat belt. Hover or focus one and it flickers on with a colored glow while a monospaced display opens from a thin line, like a dashboard screen waking up, with a code tag and the message. It suits car apps, fleet tools, IoT dashboards and device status panels.

The main color is used for warnings and the second for critical alerts. Assign each icon its level through a CSS variable, and keep messages short and uppercase so they read like the real thing.

## Code

### HTML

```html
<div class="uvq08-car" role="group" aria-label="Car warnings"><div class="wl"><span class="wr" style="--w:var(--c1)"><button type="button" aria-label="Tire pressure" aria-describedby="uvq08-car-0"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.5 19C4.9 17.4 4 15.3 4 13s.9-4.4 2.5-6M17.5 19c1.6-1.6 2.5-3.7 2.5-6s-.9-4.4-2.5-6M6.5 19h11M12 8.5V13"/><circle cx="12" cy="16" r=".6"/></svg></button><span class="tt" role="tooltip" id="uvq08-car-0"><span class="cd">TPMS</span><span class="ms">Low pressure in the rear left tire</span></span></span><span class="wr" style="--w:var(--c2)"><button type="button" aria-label="Engine oil" aria-describedby="uvq08-car-1"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 10h5l2-2h3l6-1.5-4 6.5H6a2 2 0 0 1-2-2zM11 8V6.5M9.5 6.5h3"/><path d="M20 14c.6.9.9 1.5.9 1.9a.9.9 0 0 1-1.8 0c0-.4.3-1 .9-1.9z"/></svg></button><span class="tt" role="tooltip" id="uvq08-car-1"><span class="cd">OIL</span><span class="ms">Low oil level</span></span></span><span class="wr pk" style="--w:var(--c1)"><button type="button" aria-label="Fuel" aria-describedby="uvq08-car-2"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="4" width="9" height="16" rx="1.5"/><path d="M5 10h9M14 8l3 2v7a1.5 1.5 0 0 0 3 0V9l-2.5-2.5"/></svg></button><span class="tt" role="tooltip" id="uvq08-car-2"><span class="cd">FUEL</span><span class="ms">Reserve: 48 km left</span></span></span><span class="wr" style="--w:var(--c2)"><button type="button" aria-label="Seat belt" aria-describedby="uvq08-car-3"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="4.8" r="2"/><path d="M8 21v-6l-2-4 3-3.5h4l2 4.5h3M8.5 8.5L15.5 18"/></svg></button><span class="tt" role="tooltip" id="uvq08-car-3"><span class="cd">BELT</span><span class="ms">Fasten your seat belt</span></span></span></div><div class="od" aria-hidden="true"><span>ODO</span><b>048213</b><span>km</span></div></div>
```

### CSS

```css
.uvq08-car {
  --c1: #ffb000;
  --c2: #ff3b30;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq08-car {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  margin-top: 5em;
  padding: 1.1em 1.3em .8em;
  border-radius: 2.4em 2.4em 1em 1em;
  background: radial-gradient(120% 90% at 50% 0,#23272e,#0a0b0d 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07),inset 0 -.6em 1.2em rgba(0,0,0,.6),0 1.2em 2em -1em rgba(0,0,0,.6);
}

.uvq08-car .wl {
  display: flex;
  gap: .7em;
}

.uvq08-car .wr {
  position: relative;
}

.uvq08-car button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  place-items: center;
  width: 2.9em;
  height: 2.9em;
  border-radius: .7em;
  color: #3b4048;
  background: rgba(255,255,255,.03);
  transition: color calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1),filter calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.2s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq08-car button svg {
  width: 1.65em;
  height: 1.65em;
}

.uvq08-car button:hover {
  background: rgba(255,255,255,.06);
}

.uvq08-car button:active {
  transform: scale(.92);
}

.uvq08-car button:focus-visible {
  outline: 2px solid var(--w);
  outline-offset: 2px;
}

.uvq08-car .wr:hover button,.uvq08-car .wr:focus-within button,.uvq08-car .wr.pk button {
  color: var(--w);
  filter: drop-shadow(0 0 .35em var(--w));
  animation: uvq08-car-l calc(0.5s / var(--k)) steps(1,end);
}

.uvq08-car .tt {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .9em);
  z-index: 3;
  width: 10.5em;
  padding: .6em .75em .65em;
  border-radius: .4em;
  font: 600 .72em/1.4 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  color: var(--w);
  background: repeating-linear-gradient(180deg,rgba(255,255,255,.04) 0 1px,transparent 1px 3px),#0c0d10;
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--w) 40%,transparent),0 0 1.4em -.3em color-mix(in srgb,var(--w) 45%,transparent),0 1em 1.5em -.8em rgba(0,0,0,.6);
  text-shadow: 0 0 .5em color-mix(in srgb,var(--w) 70%,transparent);
  translate: -50% 0;
  clip-path: inset(50% 0 50% 0);
  opacity: 0;
  pointer-events: none;
  transition: clip-path calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1),opacity 0s calc(0.15s / var(--k));
}

.uvq08-car .wr:first-child .tt {
  left: -.2em;
  translate: 0 0;
}

.uvq08-car .wr:last-child .tt {
  left: auto;
  right: -.2em;
  translate: 0 0;
}

.uvq08-car .cd {
  display: inline-block;
  margin-bottom: .4em;
  padding: .05em .4em;
  border-radius: .2em;
  font-weight: 800;
  letter-spacing: .12em;
  color: #0c0d10;
  background: var(--w);
  text-shadow: none;
}

.uvq08-car .ms {
  display: block;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.uvq08-car .wr:hover .tt,.uvq08-car .wr:focus-within .tt,.uvq08-car .wr.pk .tt {
  clip-path: inset(0);
  opacity: 1;
  transition: clip-path calc(0.35s / var(--k)) cubic-bezier(.22,1,.36,1),opacity 0s;
}

.uvq08-car .od {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .5em;
  margin-top: .9em;
  font: 600 .6em/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  letter-spacing: .14em;
  color: #6b7280;
}

.uvq08-car .od b {
  font-size: 1.35em;
  letter-spacing: .22em;
  color: #d1d5db;
}

@keyframes uvq08-car-l {
  0% {
    opacity: .3;
  }
  20% {
    opacity: 1;
  }
  35% {
    opacity: .4;
  }
  55% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq08-car,.uvq08-car *,.uvq08-car *::before,.uvq08-car *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
```

### JavaScript

```js
document.querySelectorAll(".uvq08-car").forEach(el => {
  const unpk=()=>{el.classList.remove("pk");el.querySelectorAll(".pk").forEach(x=>x.classList.remove("pk"))};el.addEventListener("pointerover",unpk,{once:true});el.addEventListener("focusin",unpk,{once:true});
});
```

### React

```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq08-car {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  margin-top: 5em;
  padding: 1.1em 1.3em .8em;
  border-radius: 2.4em 2.4em 1em 1em;
  background: radial-gradient(120% 90% at 50% 0,#23272e,#0a0b0d 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07),inset 0 -.6em 1.2em rgba(0,0,0,.6),0 1.2em 2em -1em rgba(0,0,0,.6);
}

.uvq08-car .wl {
  display: flex;
  gap: .7em;
}

.uvq08-car .wr {
  position: relative;
}

.uvq08-car button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  place-items: center;
  width: 2.9em;
  height: 2.9em;
  border-radius: .7em;
  color: #3b4048;
  background: rgba(255,255,255,.03);
  transition: color calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1),filter calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.2s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq08-car button svg {
  width: 1.65em;
  height: 1.65em;
}

.uvq08-car button:hover {
  background: rgba(255,255,255,.06);
}

.uvq08-car button:active {
  transform: scale(.92);
}

.uvq08-car button:focus-visible {
  outline: 2px solid var(--w);
  outline-offset: 2px;
}

.uvq08-car .wr:hover button,.uvq08-car .wr:focus-within button,.uvq08-car .wr.pk button {
  color: var(--w);
  filter: drop-shadow(0 0 .35em var(--w));
  animation: uvq08-car-l calc(0.5s / var(--k)) steps(1,end);
}

.uvq08-car .tt {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .9em);
  z-index: 3;
  width: 10.5em;
  padding: .6em .75em .65em;
  border-radius: .4em;
  font: 600 .72em/1.4 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  color: var(--w);
  background: repeating-linear-gradient(180deg,rgba(255,255,255,.04) 0 1px,transparent 1px 3px),#0c0d10;
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--w) 40%,transparent),0 0 1.4em -.3em color-mix(in srgb,var(--w) 45%,transparent),0 1em 1.5em -.8em rgba(0,0,0,.6);
  text-shadow: 0 0 .5em color-mix(in srgb,var(--w) 70%,transparent);
  translate: -50% 0;
  clip-path: inset(50% 0 50% 0);
  opacity: 0;
  pointer-events: none;
  transition: clip-path calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1),opacity 0s calc(0.15s / var(--k));
}

.uvq08-car .wr:first-child .tt {
  left: -.2em;
  translate: 0 0;
}

.uvq08-car .wr:last-child .tt {
  left: auto;
  right: -.2em;
  translate: 0 0;
}

.uvq08-car .cd {
  display: inline-block;
  margin-bottom: .4em;
  padding: .05em .4em;
  border-radius: .2em;
  font-weight: 800;
  letter-spacing: .12em;
  color: #0c0d10;
  background: var(--w);
  text-shadow: none;
}

.uvq08-car .ms {
  display: block;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.uvq08-car .wr:hover .tt,.uvq08-car .wr:focus-within .tt,.uvq08-car .wr.pk .tt {
  clip-path: inset(0);
  opacity: 1;
  transition: clip-path calc(0.35s / var(--k)) cubic-bezier(.22,1,.36,1),opacity 0s;
}

.uvq08-car .od {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .5em;
  margin-top: .9em;
  font: 600 .6em/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  letter-spacing: .14em;
  color: #6b7280;
}

.uvq08-car .od b {
  font-size: 1.35em;
  letter-spacing: .22em;
  color: #d1d5db;
}

@keyframes uvq08-car-l {
  0% {
    opacity: .3;
  }
  20% {
    opacity: 1;
  }
  35% {
    opacity: .4;
  }
  55% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq08-car,.uvq08-car *,.uvq08-car *::before,.uvq08-car *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const unpk=()=>{el.classList.remove("pk");el.querySelectorAll(".pk").forEach(x=>x.classList.remove("pk"))};el.addEventListener("pointerover",unpk,{once:true});el.addEventListener("focusin",unpk,{once:true});
}

export default function TipCarWarnings() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#ffb000",
          "--c2": "#ff3b30",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq08-car" role="group" aria-label="Car warnings"><div className="wl"><span className="wr" style={{ "--w": "var(--c1)" } as CSSProperties}><button type="button" aria-label="Tire pressure" aria-describedby="uvq08-car-0"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.7" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M6.5 19C4.9 17.4 4 15.3 4 13s.9-4.4 2.5-6M17.5 19c1.6-1.6 2.5-3.7 2.5-6s-.9-4.4-2.5-6M6.5 19h11M12 8.5V13" /><circle cx="12" cy="16" r=".6" /></svg></button><span className="tt" role="tooltip" id="uvq08-car-0"><span className="cd">TPMS</span><span className="ms">Low pressure in the rear left tire</span></span></span><span className="wr" style={{ "--w": "var(--c2)" } as CSSProperties}><button type="button" aria-label="Engine oil" aria-describedby="uvq08-car-1"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.7" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M4 10h5l2-2h3l6-1.5-4 6.5H6a2 2 0 0 1-2-2zM11 8V6.5M9.5 6.5h3" /><path d="M20 14c.6.9.9 1.5.9 1.9a.9.9 0 0 1-1.8 0c0-.4.3-1 .9-1.9z" /></svg></button><span className="tt" role="tooltip" id="uvq08-car-1"><span className="cd">OIL</span><span className="ms">Low oil level</span></span></span><span className="wr pk" style={{ "--w": "var(--c1)" } as CSSProperties}><button type="button" aria-label="Fuel" aria-describedby="uvq08-car-2"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.7" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><rect x="5" y="4" width="9" height="16" rx="1.5" /><path d="M5 10h9M14 8l3 2v7a1.5 1.5 0 0 0 3 0V9l-2.5-2.5" /></svg></button><span className="tt" role="tooltip" id="uvq08-car-2"><span className="cd">FUEL</span><span className="ms">Reserve: 48 km left</span></span></span><span className="wr" style={{ "--w": "var(--c2)" } as CSSProperties}><button type="button" aria-label="Seat belt" aria-describedby="uvq08-car-3"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.7" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><circle cx="11" cy="4.8" r="2" /><path d="M8 21v-6l-2-4 3-3.5h4l2 4.5h3M8.5 8.5L15.5 18" /></svg></button><span className="tt" role="tooltip" id="uvq08-car-3"><span className="cd">BELT</span><span className="ms">Fasten your seat belt</span></span></span></div><div className="od" aria-hidden="true"><span>ODO</span><b>048213</b><span>km</span></div></div>
      </div>
    </>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “Car dashboard warning lights” block (Tooltips) from AIMRAN Library to my project.

## What it is
Car warning icons that light up amber or red and explain the alert on a small scanline display.

## Chosen settings
- Main color: #ffb000
- Secondary color: #ff3b30
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Avisos del coche"

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with plain HTML and CSS (the reference wraps it in a React component with its CSS). If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq08-car {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  margin-top: 5em;
  padding: 1.1em 1.3em .8em;
  border-radius: 2.4em 2.4em 1em 1em;
  background: radial-gradient(120% 90% at 50% 0,#23272e,#0a0b0d 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07),inset 0 -.6em 1.2em rgba(0,0,0,.6),0 1.2em 2em -1em rgba(0,0,0,.6);
}

.uvq08-car .wl {
  display: flex;
  gap: .7em;
}

.uvq08-car .wr {
  position: relative;
}

.uvq08-car button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  place-items: center;
  width: 2.9em;
  height: 2.9em;
  border-radius: .7em;
  color: #3b4048;
  background: rgba(255,255,255,.03);
  transition: color calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1),filter calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.2s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq08-car button svg {
  width: 1.65em;
  height: 1.65em;
}

.uvq08-car button:hover {
  background: rgba(255,255,255,.06);
}

.uvq08-car button:active {
  transform: scale(.92);
}

.uvq08-car button:focus-visible {
  outline: 2px solid var(--w);
  outline-offset: 2px;
}

.uvq08-car .wr:hover button,.uvq08-car .wr:focus-within button,.uvq08-car .wr.pk button {
  color: var(--w);
  filter: drop-shadow(0 0 .35em var(--w));
  animation: uvq08-car-l calc(0.5s / var(--k)) steps(1,end);
}

.uvq08-car .tt {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .9em);
  z-index: 3;
  width: 10.5em;
  padding: .6em .75em .65em;
  border-radius: .4em;
  font: 600 .72em/1.4 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  color: var(--w);
  background: repeating-linear-gradient(180deg,rgba(255,255,255,.04) 0 1px,transparent 1px 3px),#0c0d10;
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--w) 40%,transparent),0 0 1.4em -.3em color-mix(in srgb,var(--w) 45%,transparent),0 1em 1.5em -.8em rgba(0,0,0,.6);
  text-shadow: 0 0 .5em color-mix(in srgb,var(--w) 70%,transparent);
  translate: -50% 0;
  clip-path: inset(50% 0 50% 0);
  opacity: 0;
  pointer-events: none;
  transition: clip-path calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1),opacity 0s calc(0.15s / var(--k));
}

.uvq08-car .wr:first-child .tt {
  left: -.2em;
  translate: 0 0;
}

.uvq08-car .wr:last-child .tt {
  left: auto;
  right: -.2em;
  translate: 0 0;
}

.uvq08-car .cd {
  display: inline-block;
  margin-bottom: .4em;
  padding: .05em .4em;
  border-radius: .2em;
  font-weight: 800;
  letter-spacing: .12em;
  color: #0c0d10;
  background: var(--w);
  text-shadow: none;
}

.uvq08-car .ms {
  display: block;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.uvq08-car .wr:hover .tt,.uvq08-car .wr:focus-within .tt,.uvq08-car .wr.pk .tt {
  clip-path: inset(0);
  opacity: 1;
  transition: clip-path calc(0.35s / var(--k)) cubic-bezier(.22,1,.36,1),opacity 0s;
}

.uvq08-car .od {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .5em;
  margin-top: .9em;
  font: 600 .6em/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  letter-spacing: .14em;
  color: #6b7280;
}

.uvq08-car .od b {
  font-size: 1.35em;
  letter-spacing: .22em;
  color: #d1d5db;
}

@keyframes uvq08-car-l {
  0% {
    opacity: .3;
  }
  20% {
    opacity: 1;
  }
  35% {
    opacity: .4;
  }
  55% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq08-car,.uvq08-car *,.uvq08-car *::before,.uvq08-car *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const unpk=()=>{el.classList.remove("pk");el.querySelectorAll(".pk").forEach(x=>x.classList.remove("pk"))};el.addEventListener("pointerover",unpk,{once:true});el.addEventListener("focusin",unpk,{once:true});
}

export default function TipCarWarnings() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#ffb000",
          "--c2": "#ff3b30",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq08-car" role="group" aria-label="Car warnings"><div className="wl"><span className="wr" style={{ "--w": "var(--c1)" } as CSSProperties}><button type="button" aria-label="Tire pressure" aria-describedby="uvq08-car-0"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.7" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M6.5 19C4.9 17.4 4 15.3 4 13s.9-4.4 2.5-6M17.5 19c1.6-1.6 2.5-3.7 2.5-6s-.9-4.4-2.5-6M6.5 19h11M12 8.5V13" /><circle cx="12" cy="16" r=".6" /></svg></button><span className="tt" role="tooltip" id="uvq08-car-0"><span className="cd">TPMS</span><span className="ms">Low pressure in the rear left tire</span></span></span><span className="wr" style={{ "--w": "var(--c2)" } as CSSProperties}><button type="button" aria-label="Engine oil" aria-describedby="uvq08-car-1"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.7" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M4 10h5l2-2h3l6-1.5-4 6.5H6a2 2 0 0 1-2-2zM11 8V6.5M9.5 6.5h3" /><path d="M20 14c.6.9.9 1.5.9 1.9a.9.9 0 0 1-1.8 0c0-.4.3-1 .9-1.9z" /></svg></button><span className="tt" role="tooltip" id="uvq08-car-1"><span className="cd">OIL</span><span className="ms">Low oil level</span></span></span><span className="wr pk" style={{ "--w": "var(--c1)" } as CSSProperties}><button type="button" aria-label="Fuel" aria-describedby="uvq08-car-2"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.7" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><rect x="5" y="4" width="9" height="16" rx="1.5" /><path d="M5 10h9M14 8l3 2v7a1.5 1.5 0 0 0 3 0V9l-2.5-2.5" /></svg></button><span className="tt" role="tooltip" id="uvq08-car-2"><span className="cd">FUEL</span><span className="ms">Reserve: 48 km left</span></span></span><span className="wr" style={{ "--w": "var(--c2)" } as CSSProperties}><button type="button" aria-label="Seat belt" aria-describedby="uvq08-car-3"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.7" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><circle cx="11" cy="4.8" r="2" /><path d="M8 21v-6l-2-4 3-3.5h4l2 4.5h3M8.5 8.5L15.5 18" /></svg></button><span className="tt" role="tooltip" id="uvq08-car-3"><span className="cd">BELT</span><span className="ms">Fasten your seat belt</span></span></span></div><div className="od" aria-hidden="true"><span>ODO</span><b>048213</b><span>km</span></div></div>
      </div>
    </>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
