---
title: Insert colours, icons and values
project: TotalEdit
version: Latest
section: guides
language: en
license: 
url: https://totaljs.es/docs/totaledit/latest/guides/insert/
updated: 2026-12-02T15:40:06.047Z
---

# Insert colours, icons and values

> TotalEdit shows the colours and the Total.js icons that are in your code, and writes new ones for you, as well as identifiers, tokens and dates.

## Change a colour

A small square before each colour shows how it looks. It finds colours written as `#hex`, `rgb()` and `hsl()`, with or without transparency. Colours by name, such as `red`, have no square.

1. Press the square, or press the right button on the colour and choose **Change the colour…**
2. Choose another: move in the large area, the hue and the opacity, write its value, or take one of the colours of the same file.
3. Press Esc, or click outside.

The code changes while you choose, and keeps the way it was written. **HEX**, **RGB** and **HSL** change it. Esc does not take back what you chose: undo it as any other change.

To write a new one, press the right button where you want it and choose **Insert a colour…**

## Change a Total.js icon

An icon such as `ti ti-home` shows its drawing before its name.

1. Press the drawing, or put the cursor on the name and press F6.
2. Write what you look for, such as `user`. The arrows go from icon to icon.
3. Press Enter, or the icon.

F6 anywhere else inserts an icon, with its class: `ti ti-home`.

The icons come from the Total.js CDN, `cdn.componentator.com`, when a file names one or you open the list. TotalEdit keeps them to work without a connection, and asks for them again when they are more than two weeks old.

## Insert a value

Press the right button in the code and choose **Insert UID, GUID, a token…**

| Choice | What it writes |
| --- | --- |
| **UID() of Total.js** | An identifier like those that `UID()` makes |
| **GUID** | A random GUID, with its hyphens |
| **Random UID** | 12 small letters and digits |
| **Token** | 35 letters and digits |
| **Password** | 20 characters, without those that are easy to confuse, such as `l` and `1` |
| **Date and time** | The time now, in UTC, such as `2030-01-31T10:20:30.000Z` |
| **Timestamp** | The time now, in milliseconds since 1970 |

With [several cursors](/totaledit/latest/guides/many-cursors/), each one gets its own identifier, token or password. What was selected is replaced.

All of them are also in the list of commands, under **Insert**.
