mirror of https://github.com/go-gitea/gitea.git
[`colord`](https://github.com/omgovich/colord) is significantly smaller than [`tinycolor2`](https://github.com/bgrins/TinyColor) (~4KB vs ~29KB minified) and ships its own TypeScript types, removing the need for `@types/tinycolor2`. Behaviour is exactly the same for our use cases. By using `.alpha(1)` we force the function to always output 6-digit hex format (it would output 8-digit for non-opaque colors). --------- Signed-off-by: silverwind <me@silverwind.io> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| color.test.ts | ||
| color.ts | ||
| dom.test.ts | ||
| dom.ts | ||
| glob.test.ts | ||
| glob.test.txt | ||
| glob.ts | ||
| html.test.ts | ||
| html.ts | ||
| image.test.ts | ||
| image.ts | ||
| match.test.ts | ||
| match.ts | ||
| testhelper.ts | ||
| time.test.ts | ||
| time.ts | ||
| url.test.ts | ||
| url.ts | ||