Swatch picker (PT colours)
F1 variant22 · swatch-picker
PT colour tiles from the one backend matrix (Q23): code search, the selected tile, retired colours hidden by default (struck when shown).
Covers: swatch-picker primitive. Exports: SwatchPicker.
Whole page:CompactComfortableLaravel · navyDTC · midnight green
Search code or colour PT-0101NavyPT-0102BlackPT-0103Mid greyPT-0104TanPT-0105BurgundyPT-0106EcruPT-0107OlivePT-0108SkyPT-0109OxbloodPT-0110StonePT-0111BottlePT-0112Silver
Codes and colour names are example values (dotted rule); the matrix comes from admin.pt-colors.matrix.
States
5 states, left to right, top to bottom. A mock poll never finishes, so each state is drawn on purpose.
selectedSearch code or colour PT-0101NavyPT-0102BlackPT-0103Mid greyPT-0104TanPT-0105BurgundyPT-0106EcruPT-0107OlivePT-0108SkyPT-0109OxbloodPT-0110StonePT-0111BottlePT-0112Silver
Codes and colour names are example values (dotted rule); the matrix comes from admin.pt-colors.matrix. searchPT-0101NavyPT-0102BlackPT-0103Mid greyPT-0104TanPT-0105BurgundyPT-0106EcruPT-0107OlivePT-0108SkyPT-0109OxbloodPT-0110StonePT-0111BottlePT-0112Silver
Codes and colour names are example values (dotted rule); the matrix comes from admin.pt-colors.matrix. retired shownSearch code or colour PT-0101NavyPT-0102BlackPT-0103Mid greyPT-0104TanPT-0105BurgundyPT-0106EcruPT-0107OlivePT-0108SkyPT-0109OxbloodPT-0110StonePT-0111BottlePT-0112Silver
Codes and colour names are example values (dotted rule); the matrix comes from admin.pt-colors.matrix. no matchSearch code or colour No PT colour matches “PT-09”
Retired colours are hidden; switch them on to search them too.
Codes and colour names are example values (dotted rule); the matrix comes from admin.pt-colors.matrix. loadingSearch code or colour
Codes and colour names are example values (dotted rule); the matrix comes from admin.pt-colors.matrix.
Density
Compact (2b ultra, the default) and comfortable, side by side. Same markup, only the density tokens change.
compact · default · data-density=compactSearch code or colour PT-0101NavyPT-0102BlackPT-0103Mid greyPT-0104TanPT-0105BurgundyPT-0106EcruPT-0107OlivePT-0108SkyPT-0109OxbloodPT-0110StonePT-0111BottlePT-0112Silver
Codes and colour names are example values (dotted rule); the matrix comes from admin.pt-colors.matrix. comfortable · data-density=comfortableSearch code or colour PT-0101NavyPT-0102BlackPT-0103Mid greyPT-0104TanPT-0105BurgundyPT-0106EcruPT-0107OlivePT-0108SkyPT-0109OxbloodPT-0110StonePT-0111BottlePT-0112Silver
Codes and colour names are example values (dotted rule); the matrix comes from admin.pt-colors.matrix.
enSearch code or colour PT-0101NavyPT-0102BlackPT-0103Mid greyPT-0104TanPT-0105BurgundyPT-0106EcruPT-0107OlivePT-0108SkyPT-0109OxbloodPT-0110StonePT-0111BottlePT-0112Silver
Codes and colour names are example values (dotted rule); the matrix comes from admin.pt-colors.matrix. 中文 · lang=zh-HansPT-0101藏青PT-0102黑PT-0103中灰PT-0104棕褐PT-0105酒红PT-0106米白PT-0107橄榄PT-0108天蓝PT-0109牛血红PT-0110石色PT-0111墨绿PT-0112银灰
编码和颜色名为示例值;矩阵来自 admin.pt-colors.matrix。
long stringSearch code or colour PT-0101Navy (thread + buttons + lining, primary binding at VBC)PT-0102BlackPT-0103Mid greyPT-0104TanPT-0105BurgundyPT-0106EcruPT-0107OlivePT-0108SkyPT-0109OxbloodPT-0110StonePT-0111BottlePT-0112Silver
Codes and colour names are example values (dotted rule); the matrix comes from admin.pt-colors.matrix. permission deniedSearch code or colour PT-0101NavyPT-0102BlackPT-0103Mid greyPT-0104TanPT-0105BurgundyPT-0106EcruPT-0107OlivePT-0108SkyPT-0109OxbloodPT-0110StonePT-0111BottlePT-0112Silver
Pick only · editing bindings needs pt-colors:write
Codes and colour names are example values (dotted rule); the matrix comes from admin.pt-colors.matrix.
Both apps
One @rj/admin-kit component, two themes: the Laravel admin (navy pinned) and the DTC admin (kit v4 Midnight green), by token swap only.
Laravel admin · :rootSearch code or colour PT-0101NavyPT-0102BlackPT-0103Mid greyPT-0104TanPT-0105BurgundyPT-0106EcruPT-0107OlivePT-0108SkyPT-0109OxbloodPT-0110StonePT-0111BottlePT-0112Silver
Codes and colour names are example values (dotted rule); the matrix comes from admin.pt-colors.matrix. DTC admin · data-theme=dtcSearch code or colour PT-0101NavyPT-0102BlackPT-0103Mid greyPT-0104TanPT-0105BurgundyPT-0106EcruPT-0107OlivePT-0108SkyPT-0109OxbloodPT-0110StonePT-0111BottlePT-0112Silver
Codes and colour names are example values (dotted rule); the matrix comes from admin.pt-colors.matrix.
- Export
SwatchPicker · @rj/admin-kit- Props
colours · value · excludeRetired · search- States
- selected · retired · empty · loading · read-only
- shadcn / Radix
- RadioGroup (tiles)
- Accessibility
- radiogroup; each tile names code + colour
- API operations
- admin.pt-colors.matrix (exclude_retired) · admin.pt-colors.index
- Phone variant
- 3-column grid