Add 80+ additional icons from FontAwesome (#6803)

* Add 80+ additional icons from FontAwesome

* fix: color switch transition, add 6 more icons to fill out grid

* Add strict validation for collection icon

* fix: Avoid import from app in server
This commit is contained in:
Tom Moor
2024-04-13 12:33:07 -06:00
committed by GitHub
parent 689886797c
commit 765ae7b298
18 changed files with 429 additions and 155 deletions

View File

@@ -11,7 +11,7 @@ type Props = {
/** Whether the text should be selectable (defaults to false) */
selectable?: boolean;
/** The font weight of the text */
weight?: "bold" | "normal";
weight?: "xbold" | "bold" | "normal";
/** Whether the text should be truncated with an ellipsis */
ellipsis?: boolean;
};
@@ -47,7 +47,9 @@ const Text = styled.span<Props>`
${(props) =>
props.weight &&
css`
font-weight: ${props.weight === "bold"
font-weight: ${props.weight === "xbold"
? 600
: props.weight === "bold"
? 500
: props.weight === "normal"
? 400