@tempoxyz/ds 0.3.18 → 0.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arsenal/icons/Icon.d.ts +57 -0
- package/dist/arsenal/icons/Icon.d.ts.map +1 -0
- package/dist/arsenal/icons/Icon.js +117 -0
- package/dist/arsenal/icons/Icon.js.map +1 -0
- package/dist/arsenal/icons/glyphs.d.ts +5238 -0
- package/dist/arsenal/icons/glyphs.d.ts.map +1 -0
- package/dist/arsenal/icons/glyphs.js +2888 -0
- package/dist/arsenal/icons/glyphs.js.map +1 -0
- package/dist/arsenal/icons/index.d.ts +4 -0
- package/dist/arsenal/icons/index.d.ts.map +1 -0
- package/dist/arsenal/icons/index.js +4 -0
- package/dist/arsenal/icons/index.js.map +1 -0
- package/dist/docs/AGENTS.md +2 -2
- package/dist/docs/arsenal.md +4555 -0
- package/dist/docs/marketing.md +7082 -480
- package/dist/docs/product/documents.md +17 -1
- package/dist/document/Document.d.ts +1 -1
- package/dist/document/Document.d.ts.map +1 -1
- package/dist/document/Document.js +1 -0
- package/dist/document/Document.js.map +1 -1
- package/dist/document/document.css +12 -1
- package/dist/document/templates/brief.html +3 -3
- package/dist/document/templates/essay.html +3 -3
- package/dist/document/templates/post.html +3 -3
- package/dist/marketing/components/ArticleBody.css +1 -0
- package/dist/marketing/components/ArticleBody.d.ts +1013 -0
- package/dist/marketing/components/ArticleBody.d.ts.map +1 -0
- package/dist/marketing/components/ArticleBody.js +120 -0
- package/dist/marketing/components/ArticleBody.js.map +1 -0
- package/dist/marketing/components/ArticleBody.js.zyzz.json +1 -0
- package/dist/marketing/components/ArticleHero.css +1 -0
- package/dist/marketing/components/ArticleHero.d.ts +168 -0
- package/dist/marketing/components/ArticleHero.d.ts.map +1 -0
- package/dist/marketing/components/ArticleHero.js +74 -0
- package/dist/marketing/components/ArticleHero.js.map +1 -0
- package/dist/marketing/components/ArticleHero.js.zyzz.json +1 -0
- package/dist/marketing/components/ArticleIndex.css +1 -0
- package/dist/marketing/components/ArticleIndex.d.ts +164 -0
- package/dist/marketing/components/ArticleIndex.d.ts.map +1 -0
- package/dist/marketing/components/ArticleIndex.js +100 -0
- package/dist/marketing/components/ArticleIndex.js.map +1 -0
- package/dist/marketing/components/ArticleIndex.js.zyzz.json +1 -0
- package/dist/marketing/components/ArticleRail.css +1 -0
- package/dist/marketing/components/ArticleRail.d.ts +105 -0
- package/dist/marketing/components/ArticleRail.d.ts.map +1 -0
- package/dist/marketing/components/ArticleRail.js +96 -0
- package/dist/marketing/components/ArticleRail.js.map +1 -0
- package/dist/marketing/components/ArticleRail.js.zyzz.json +1 -0
- package/dist/marketing/components/AsideLayout.css +1 -0
- package/dist/marketing/components/AsideLayout.d.ts +39 -0
- package/dist/marketing/components/AsideLayout.d.ts.map +1 -0
- package/dist/marketing/components/AsideLayout.js +24 -0
- package/dist/marketing/components/AsideLayout.js.map +1 -0
- package/dist/marketing/components/AsideLayout.js.zyzz.json +1 -0
- package/dist/marketing/components/Breadcrumbs.css +1 -0
- package/dist/marketing/components/Breadcrumbs.d.ts +132 -0
- package/dist/marketing/components/Breadcrumbs.d.ts.map +1 -0
- package/dist/marketing/components/Breadcrumbs.js +75 -0
- package/dist/marketing/components/Breadcrumbs.js.map +1 -0
- package/dist/marketing/components/Breadcrumbs.js.zyzz.json +1 -0
- package/dist/marketing/components/Button.css +1 -0
- package/dist/marketing/components/Button.d.ts +421 -0
- package/dist/marketing/components/Button.d.ts.map +1 -0
- package/dist/marketing/components/Button.js +87 -0
- package/dist/marketing/components/Button.js.map +1 -0
- package/dist/marketing/components/Button.js.zyzz.json +1 -0
- package/dist/marketing/components/Card.css +1 -0
- package/dist/marketing/components/Card.d.ts +563 -0
- package/dist/marketing/components/Card.d.ts.map +1 -0
- package/dist/marketing/components/Card.js +171 -0
- package/dist/marketing/components/Card.js.map +1 -0
- package/dist/marketing/components/Card.js.zyzz.json +1 -0
- package/dist/marketing/components/Contact.css +1 -0
- package/dist/marketing/components/Contact.d.ts +51 -0
- package/dist/marketing/components/Contact.d.ts.map +1 -0
- package/dist/marketing/components/Contact.js +44 -0
- package/dist/marketing/components/Contact.js.map +1 -0
- package/dist/marketing/components/Contact.js.zyzz.json +1 -0
- package/dist/marketing/components/Cta.css +1 -0
- package/dist/marketing/components/Cta.d.ts +138 -0
- package/dist/marketing/components/Cta.d.ts.map +1 -0
- package/dist/marketing/components/Cta.js +71 -0
- package/dist/marketing/components/Cta.js.map +1 -0
- package/dist/marketing/components/Cta.js.zyzz.json +1 -0
- package/dist/marketing/components/CustomerStoryFeature.css +1 -0
- package/dist/marketing/components/CustomerStoryFeature.d.ts +48 -0
- package/dist/marketing/components/CustomerStoryFeature.d.ts.map +1 -0
- package/dist/marketing/components/CustomerStoryFeature.js +58 -0
- package/dist/marketing/components/CustomerStoryFeature.js.map +1 -0
- package/dist/marketing/components/CustomerStoryFeature.js.zyzz.json +1 -0
- package/dist/marketing/components/Faq.css +1 -0
- package/dist/marketing/components/Faq.d.ts +99 -0
- package/dist/marketing/components/Faq.d.ts.map +1 -0
- package/dist/marketing/components/Faq.js +83 -0
- package/dist/marketing/components/Faq.js.map +1 -0
- package/dist/marketing/components/Faq.js.zyzz.json +1 -0
- package/dist/marketing/components/FeatureAccordion.css +1 -0
- package/dist/marketing/components/FeatureAccordion.d.ts +230 -0
- package/dist/marketing/components/FeatureAccordion.d.ts.map +1 -0
- package/dist/marketing/components/FeatureAccordion.js +117 -0
- package/dist/marketing/components/FeatureAccordion.js.map +1 -0
- package/dist/marketing/components/FeatureAccordion.js.zyzz.json +1 -0
- package/dist/marketing/components/Footer.css +1 -0
- package/dist/marketing/components/Footer.d.ts +178 -0
- package/dist/marketing/components/Footer.d.ts.map +1 -0
- package/dist/marketing/components/Footer.js +109 -0
- package/dist/marketing/components/Footer.js.map +1 -0
- package/dist/marketing/components/Footer.js.zyzz.json +1 -0
- package/dist/marketing/components/Hero.css +1 -0
- package/dist/marketing/components/Hero.d.ts +200 -0
- package/dist/marketing/components/Hero.d.ts.map +1 -0
- package/dist/marketing/components/Hero.js +67 -0
- package/dist/marketing/components/Hero.js.map +1 -0
- package/dist/marketing/components/Hero.js.zyzz.json +1 -0
- package/dist/marketing/components/LeadCapture.css +1 -0
- package/dist/marketing/components/LeadCapture.d.ts +102 -0
- package/dist/marketing/components/LeadCapture.d.ts.map +1 -0
- package/dist/marketing/components/LeadCapture.js +78 -0
- package/dist/marketing/components/LeadCapture.js.map +1 -0
- package/dist/marketing/components/LeadCapture.js.zyzz.json +1 -0
- package/dist/marketing/components/Link.css +1 -0
- package/dist/marketing/components/Link.d.ts +342 -0
- package/dist/marketing/components/Link.d.ts.map +1 -0
- package/dist/marketing/components/Link.js +152 -0
- package/dist/marketing/components/Link.js.map +1 -0
- package/dist/marketing/components/Link.js.zyzz.json +1 -0
- package/dist/marketing/components/Logo.css +1 -0
- package/dist/marketing/components/Logo.d.ts +30 -0
- package/dist/marketing/components/Logo.d.ts.map +1 -0
- package/dist/marketing/components/Logo.js +38 -0
- package/dist/marketing/components/Logo.js.map +1 -0
- package/dist/marketing/components/Logo.js.zyzz.json +1 -0
- package/dist/marketing/components/LogoWall.css +1 -0
- package/dist/marketing/components/LogoWall.d.ts +156 -0
- package/dist/marketing/components/LogoWall.d.ts.map +1 -0
- package/dist/marketing/components/LogoWall.js +41 -0
- package/dist/marketing/components/LogoWall.js.map +1 -0
- package/dist/marketing/components/LogoWall.js.zyzz.json +1 -0
- package/dist/marketing/components/Mark.css +1 -0
- package/dist/marketing/components/Mark.d.ts +30 -0
- package/dist/marketing/components/Mark.d.ts.map +1 -0
- package/dist/marketing/components/Mark.js +38 -0
- package/dist/marketing/components/Mark.js.map +1 -0
- package/dist/marketing/components/Mark.js.zyzz.json +1 -0
- package/dist/marketing/components/Media.css +1 -0
- package/dist/marketing/components/Media.d.ts +74 -0
- package/dist/marketing/components/Media.d.ts.map +1 -0
- package/dist/marketing/components/Media.js +80 -0
- package/dist/marketing/components/Media.js.map +1 -0
- package/dist/marketing/components/Media.js.zyzz.json +1 -0
- package/dist/marketing/components/Nav.css +1 -0
- package/dist/marketing/components/Nav.d.ts +303 -0
- package/dist/marketing/components/Nav.d.ts.map +1 -0
- package/dist/marketing/components/Nav.js +166 -0
- package/dist/marketing/components/Nav.js.map +1 -0
- package/dist/marketing/components/Nav.js.zyzz.json +1 -0
- package/dist/marketing/components/PartnersIndex.css +1 -0
- package/dist/marketing/components/PartnersIndex.d.ts +267 -0
- package/dist/marketing/components/PartnersIndex.d.ts.map +1 -0
- package/dist/marketing/components/PartnersIndex.js +96 -0
- package/dist/marketing/components/PartnersIndex.js.map +1 -0
- package/dist/marketing/components/PartnersIndex.js.zyzz.json +1 -0
- package/dist/marketing/components/QuoteBand.css +1 -0
- package/dist/marketing/components/QuoteBand.d.ts +128 -0
- package/dist/marketing/components/QuoteBand.d.ts.map +1 -0
- package/dist/marketing/components/QuoteBand.js +73 -0
- package/dist/marketing/components/QuoteBand.js.map +1 -0
- package/dist/marketing/components/QuoteBand.js.zyzz.json +1 -0
- package/dist/marketing/components/Section.css +1 -0
- package/dist/marketing/components/Section.d.ts +132 -0
- package/dist/marketing/components/Section.d.ts.map +1 -0
- package/dist/marketing/components/Section.js +33 -0
- package/dist/marketing/components/Section.js.map +1 -0
- package/dist/marketing/components/Section.js.zyzz.json +1 -0
- package/dist/marketing/components/SectionHeading.css +1 -0
- package/dist/marketing/components/SectionHeading.d.ts +215 -0
- package/dist/marketing/components/SectionHeading.d.ts.map +1 -0
- package/dist/marketing/components/SectionHeading.js +48 -0
- package/dist/marketing/components/SectionHeading.js.map +1 -0
- package/dist/marketing/components/SectionHeading.js.zyzz.json +1 -0
- package/dist/marketing/components/Showcase.css +1 -0
- package/dist/marketing/components/Showcase.d.ts +269 -0
- package/dist/marketing/components/Showcase.d.ts.map +1 -0
- package/dist/marketing/components/Showcase.js +67 -0
- package/dist/marketing/components/Showcase.js.map +1 -0
- package/dist/marketing/components/Showcase.js.zyzz.json +1 -0
- package/dist/marketing/components/Stats.css +1 -0
- package/dist/marketing/components/Stats.d.ts +133 -0
- package/dist/marketing/components/Stats.d.ts.map +1 -0
- package/dist/marketing/components/Stats.js +34 -0
- package/dist/marketing/components/Stats.js.map +1 -0
- package/dist/marketing/components/Stats.js.zyzz.json +1 -0
- package/dist/marketing/components/Steps.css +1 -0
- package/dist/marketing/components/Steps.d.ts +53 -0
- package/dist/marketing/components/Steps.d.ts.map +1 -0
- package/dist/marketing/components/Steps.js +78 -0
- package/dist/marketing/components/Steps.js.map +1 -0
- package/dist/marketing/components/Steps.js.zyzz.json +1 -0
- package/dist/marketing/components/SymbolTile.css +1 -0
- package/dist/marketing/components/SymbolTile.d.ts +85 -0
- package/dist/marketing/components/SymbolTile.d.ts.map +1 -0
- package/dist/marketing/components/SymbolTile.js +35 -0
- package/dist/marketing/components/SymbolTile.js.map +1 -0
- package/dist/marketing/components/SymbolTile.js.zyzz.json +1 -0
- package/dist/marketing/components/Tab.css +1 -0
- package/dist/marketing/components/Tab.d.ts +280 -0
- package/dist/marketing/components/Tab.d.ts.map +1 -0
- package/dist/marketing/components/Tab.js +43 -0
- package/dist/marketing/components/Tab.js.map +1 -0
- package/dist/marketing/components/Tab.js.zyzz.json +1 -0
- package/dist/marketing/components/Table.css +1 -0
- package/dist/marketing/components/Table.d.ts +157 -0
- package/dist/marketing/components/Table.d.ts.map +1 -0
- package/dist/marketing/components/Table.js +80 -0
- package/dist/marketing/components/Table.js.map +1 -0
- package/dist/marketing/components/Table.js.zyzz.json +1 -0
- package/dist/marketing/components/Tag.css +1 -0
- package/dist/marketing/components/Tag.d.ts +254 -0
- package/dist/marketing/components/Tag.d.ts.map +1 -0
- package/dist/marketing/components/Tag.js +59 -0
- package/dist/marketing/components/Tag.js.map +1 -0
- package/dist/marketing/components/Tag.js.zyzz.json +1 -0
- package/dist/marketing/components/internal/Links.d.ts +9 -0
- package/dist/marketing/components/internal/Links.d.ts.map +1 -0
- package/dist/marketing/components/internal/Links.js +15 -0
- package/dist/marketing/components/internal/Links.js.map +1 -0
- package/dist/marketing/icons/ArrowUpRight.d.ts +6 -0
- package/dist/marketing/icons/ArrowUpRight.d.ts.map +1 -0
- package/dist/marketing/icons/ArrowUpRight.js +5 -0
- package/dist/marketing/icons/ArrowUpRight.js.map +1 -0
- package/dist/marketing/icons/Checkmark.d.ts +6 -0
- package/dist/marketing/icons/Checkmark.d.ts.map +1 -0
- package/dist/marketing/icons/Checkmark.js +5 -0
- package/dist/marketing/icons/Checkmark.js.map +1 -0
- package/dist/marketing/icons/ChevronRight.d.ts +6 -0
- package/dist/marketing/icons/ChevronRight.d.ts.map +1 -0
- package/dist/marketing/icons/ChevronRight.js +5 -0
- package/dist/marketing/icons/ChevronRight.js.map +1 -0
- package/dist/marketing/icons/Link.d.ts +6 -0
- package/dist/marketing/icons/Link.d.ts.map +1 -0
- package/dist/marketing/icons/Link.js +5 -0
- package/dist/marketing/icons/Link.js.map +1 -0
- package/dist/marketing/icons/Play.d.ts +6 -0
- package/dist/marketing/icons/Play.d.ts.map +1 -0
- package/dist/marketing/icons/Play.js +5 -0
- package/dist/marketing/icons/Play.js.map +1 -0
- package/dist/marketing/icons/Spinner.d.ts +6 -0
- package/dist/marketing/icons/Spinner.d.ts.map +1 -0
- package/dist/marketing/icons/Spinner.js +5 -0
- package/dist/marketing/icons/Spinner.js.map +1 -0
- package/dist/marketing/icons/Xmark.d.ts +6 -0
- package/dist/marketing/icons/Xmark.d.ts.map +1 -0
- package/dist/marketing/icons/Xmark.js +5 -0
- package/dist/marketing/icons/Xmark.js.map +1 -0
- package/dist/marketing/index.d.ts +34 -1
- package/dist/marketing/index.d.ts.map +1 -1
- package/dist/marketing/index.js +34 -1
- package/dist/marketing/index.js.map +1 -1
- package/dist/marketing/index.js.zyzz.json +1 -1
- package/package.json +8 -2
- package/src/arsenal/icons/CATALOGUE.md +471 -0
- package/src/arsenal/icons/CHANGELOG.md +181 -0
- package/src/arsenal/icons/Icon.tsx +187 -0
- package/src/arsenal/icons/README.md +53 -0
- package/src/arsenal/icons/glyphs.ts +2901 -0
- package/src/arsenal/icons/index.ts +12 -0
- package/src/document/Document.ts +1 -0
- package/src/document/document.css +12 -1
- package/src/marketing/README.md +13 -1
- package/src/marketing/components/ArticleBody.tsx +784 -0
- package/src/marketing/components/ArticleHero.tsx +331 -0
- package/src/marketing/components/ArticleIndex.tsx +457 -0
- package/src/marketing/components/ArticleRail.tsx +384 -0
- package/src/marketing/components/AsideLayout.tsx +52 -0
- package/src/marketing/components/Breadcrumbs.tsx +197 -0
- package/src/marketing/components/Button.tsx +469 -0
- package/src/marketing/components/Card.tsx +865 -0
- package/src/marketing/components/Contact.tsx +157 -0
- package/src/marketing/components/Cta.tsx +297 -0
- package/src/marketing/components/CustomerStoryFeature.tsx +218 -0
- package/src/marketing/components/Faq.tsx +334 -0
- package/src/marketing/components/FeatureAccordion.tsx +459 -0
- package/src/marketing/components/Footer.tsx +440 -0
- package/src/marketing/components/Hero.tsx +275 -0
- package/src/marketing/components/LeadCapture.tsx +322 -0
- package/src/marketing/components/Link.tsx +508 -0
- package/src/marketing/components/Logo.tsx +71 -0
- package/src/marketing/components/LogoWall.tsx +185 -0
- package/src/marketing/components/Mark.tsx +67 -0
- package/src/marketing/components/Media.tsx +275 -0
- package/src/marketing/components/Nav.tsx +1030 -0
- package/src/marketing/components/PartnersIndex.tsx +448 -0
- package/src/marketing/components/QuoteBand.tsx +288 -0
- package/src/marketing/components/Section.tsx +110 -0
- package/src/marketing/components/SectionHeading.tsx +227 -0
- package/src/marketing/components/Showcase.tsx +301 -0
- package/src/marketing/components/Stats.tsx +130 -0
- package/src/marketing/components/Steps.tsx +215 -0
- package/src/marketing/components/SymbolTile.tsx +89 -0
- package/src/marketing/components/Tab.tsx +306 -0
- package/src/marketing/components/Table.tsx +255 -0
- package/src/marketing/components/Tag.tsx +289 -0
- package/src/marketing/components/internal/Links.ts +19 -0
- package/src/marketing/icons/ArrowUpRight.tsx +25 -0
- package/src/marketing/icons/Checkmark.tsx +25 -0
- package/src/marketing/icons/ChevronRight.tsx +25 -0
- package/src/marketing/icons/Link.tsx +25 -0
- package/src/marketing/icons/Play.tsx +25 -0
- package/src/marketing/icons/Spinner.tsx +25 -0
- package/src/marketing/icons/Xmark.tsx +25 -0
- package/src/marketing/index.ts +34 -1
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Tempo Icons, the library in this folder. Product takes icons from here; the path never changes, and each release
|
|
4
|
+
adds its entry at the top. Within a major, a release adds glyphs or aliases (a minor) or fixes a reported defect in
|
|
5
|
+
named glyphs (a patch); redraws for taste, family-wide changes (weight, corners, keylines, sizing) and removed or
|
|
6
|
+
renamed glyphs wait for the next major (R83). History before 1.0 is in
|
|
7
|
+
tempoxyz/creative-studio, `skills/tempo-iconography/archive/CHANGELOG-pre-1.0.md`.
|
|
8
|
+
|
|
9
|
+
## 2.2.0 (2026-11-16)
|
|
10
|
+
|
|
11
|
+
Two glyphs added. Nothing else changes.
|
|
12
|
+
|
|
13
|
+
- **swords** (Crossed swords): two swords crossed, points up, the right-hand one in front. Each blade flares from the
|
|
14
|
+
guard to a shouldered point, on a crossguard and a small cut-diamond pommel. Arsenal's mark.
|
|
15
|
+
- **pen-nib** (Pen tool): a pen nib pointing northeast, for the pen tool or vector drawing.
|
|
16
|
+
- 398 glyphs, none removed or renamed. Both are in all six builds and their maps.
|
|
17
|
+
|
|
18
|
+
## 2.1.0 (2026-11-12)
|
|
19
|
+
|
|
20
|
+
Scales picked by where an icon sits, a Large build, and Emphasis added per part. Regular at Small and Medium is
|
|
21
|
+
unchanged.
|
|
22
|
+
|
|
23
|
+
- **Three scales, by context:** Small (`svg-small/`) for icons in text, tags, chips and small controls; Medium
|
|
24
|
+
(`svg/`), the default; and Large (`svg-large/`), new, for standalone icons at 32 px and up, 12% lighter for its
|
|
25
|
+
size. No pixel size switches the scale.
|
|
26
|
+
- **Emphasis** is 2.0's Medium weight, renamed so it can't be confused with the Medium scale: `svg-emphasis/`,
|
|
27
|
+
`svg-small-emphasis/` and `svg-large-emphasis/`. A scale and Emphasis multiply, up to 20% heavier.
|
|
28
|
+
- **Emphasis per part:** fifteen dense glyphs get a real Emphasis, with their frames thicker and their `$`, letters,
|
|
29
|
+
numerals and marks as in Regular: add-funds, captions, coin, coin-fill, coin-lock, coin-refund, coin-send, file-cog,
|
|
30
|
+
fuel-cost, gas-price, list-numbers, money, shield-question, target and withdraw. In 2.0 their Emphasis was their
|
|
31
|
+
Regular drawing. fingerprint and qr-code, fine parts throughout, keep theirs.
|
|
32
|
+
- **2.0's names are unchanged:** `svg-14/`, `svg-medium/`, `svg-14-medium/` and their three maps ship 2.0's drawings,
|
|
33
|
+
so no screen built on them restyles. The per-part Emphasis ships under the new names.
|
|
34
|
+
- 396 glyphs, none added, removed or renamed.
|
|
35
|
+
|
|
36
|
+
## 2.0.0 (2026-11-11)
|
|
37
|
+
|
|
38
|
+
Tempo Icons in four builds, two sizes at two weights, with one line inside and out. A major: interior weights, tall
|
|
39
|
+
glyphs, pointed shapes and some drawings change. Pin it: within 2.x a release only adds icons or fixes named defects.
|
|
40
|
+
|
|
41
|
+
- **Four builds:** `svg/` (MD Regular) is the drawing, 1.25 px at 16 as in 1.x, for slots of 15 px and up; it never
|
|
42
|
+
draws lighter. `svg-14/` (SM Regular) is the same glyphs drawn for 12–14 px slots, 10% heavier so they hold at 1×.
|
|
43
|
+
`svg-medium/` and `svg-14-medium/` are Medium, the one emphasis, 20% heavier for text at weight 500 and up. The
|
|
44
|
+
steps don't stack, so SM Medium is MD Medium's line drawn for 14. `glyphs.ts` exports them as `ICON_PATHS`,
|
|
45
|
+
`ICON_PATHS_14`, `ICON_PATHS_MEDIUM` and `ICON_PATHS_14_MEDIUM`.
|
|
46
|
+
- **One line inside and out:** interior marks take their glyph's line; the lighter interior weights are gone. The
|
|
47
|
+
chevrons and minus draw 10% heavier. Sixteen dense glyphs draw at 90% of the line, whole, and have one weight (their
|
|
48
|
+
Medium is their Regular drawing): add-funds, captions, coin, coin-lock, coin-refund, coin-send, file-cog,
|
|
49
|
+
fingerprint, fuel-cost, gas-price, list-numbers, money, qr-code, shield-question, target and withdraw.
|
|
50
|
+
- **Tall glyphs:** the tall class (files, lock, clipboard, bookmark, smartphone and the rest) stands 5% smaller, at the
|
|
51
|
+
same line.
|
|
52
|
+
- **Small marks:** plus-small, minus-small, xmark-small (alias close-small), check-small and chevron-right-small,
|
|
53
|
+
chevron-left-small, chevron-up-small and chevron-down-small, drawn at 0.7 of their glyph at the full line, for a mark
|
|
54
|
+
beside text or in a control.
|
|
55
|
+
- **Pointed shapes:** pointed and diagonal shapes reach 13.83 px (the limit was 14.33): edit, link, link-off and
|
|
56
|
+
alert-triangle come in.
|
|
57
|
+
- **Redrawn so Medium holds:** the `!` and `?` are a little shorter and their dots higher in their rings; add-funds',
|
|
58
|
+
withdraw's, coin-send's and coin-refund's `$` take one terminal cut so the S stays open; chat-text and file-text space their lines wider and file-code's
|
|
59
|
+
brackets are smaller; copy-check's check and compass's needle are smaller; pending's dots and palette's wells sit
|
|
60
|
+
further apart; security-key's contact is solid; a few more (face-id, database, phone, bank, chart-area, chart-bar,
|
|
61
|
+
receipt-refund, signature, building, users) are adjusted the same way.
|
|
62
|
+
- **Corners stay 1.2's.** A closed part too small for a build's line fills in solid.
|
|
63
|
+
- 396 glyphs (were 388): the eight small marks. No glyph removed or renamed. Against 1.2.0, 204 glyphs ship
|
|
64
|
+
byte-identical in `svg/` and 184 change.
|
|
65
|
+
|
|
66
|
+
## 1.2.0 (2026-11-10)
|
|
67
|
+
|
|
68
|
+
- **Five fills for the selected state (R65):** folder-fill, inbox-fill, bot-fill, users-fill and settings-fill, each
|
|
69
|
+
derived from its outline and paired with it, so outline and fill toggle with no step. inbox-fill knocks the rim out
|
|
70
|
+
through both walls, so lid and tray stand apart; settings-fill knocks the hub out as a round hole; bot-fill fills
|
|
71
|
+
the head and keeps the antenna as drawn; users-fill fills both figures whole, each bust on a level base. The
|
|
72
|
+
library has ten fills.
|
|
73
|
+
- **folder's tab reads at small sizes:** it rises 1.69 px above the back (was 1.19). folder-open and folder-plus,
|
|
74
|
+
which share it, follow.
|
|
75
|
+
- **bot's antenna top reads apart from the antenna:** its knob is 2.5 px a side (was 1.8), and the head sits
|
|
76
|
+
0.35 px lower, so the antenna keeps its length. bot-off follows.
|
|
77
|
+
- 388 glyphs (were 383). No glyph removed or renamed.
|
|
78
|
+
|
|
79
|
+
## 1.1.5 (2026-11-10)
|
|
80
|
+
|
|
81
|
+
- **The ellipsis holds its weight:** more-horizontal, more-vertical and grip take 2.5 px dots, twice the stroke
|
|
82
|
+
(were 2.25 and 2.12), 2 px apart.
|
|
83
|
+
- **Redrawn:** keyboard is two equal rows of key, wide key and key; smile has upright oval eyes and a smile at the
|
|
84
|
+
ring's weight; hard-drive's status light is a square dot beside its slot. No glyph added, removed or renamed.
|
|
85
|
+
|
|
86
|
+
## 1.1.4 (2026-11-10)
|
|
87
|
+
|
|
88
|
+
- **Every glyph at Material 3's proportions:** the live area is now 13.33 × 13.33 px (1.33–14.67), Material 3's 20
|
|
89
|
+
dp live area in its 24 dp canvas, with a 1.33 px margin, down from 14 × 14. Each glyph is about 5% smaller
|
|
90
|
+
(×0.952): circles are 13.33 px across (were 14), closed squares 12.07 (were 12.66) and rectangles 13.33 × 11.09
|
|
91
|
+
(were 14 × 11.64), and pointed and diagonal shapes reach 14.33 (were 15). Line weights, corner radii and knockout
|
|
92
|
+
gaps are unchanged, and dots still take half the step: interior dots ship 1.43 px (were 1.48), a line's full stop
|
|
93
|
+
1.26 (were 1.30) and more-horizontal's and more-vertical's dots 2.25 px across (were 2.37); keyboard's keys still
|
|
94
|
+
fill whole pixels.
|
|
95
|
+
- **Badges** are a 5.75 px disc on (12.25, 12.25), and the slash on every -off glyph has its tips on 1.44 / 14.56.
|
|
96
|
+
- **chain** keeps its 14 px row, so its blocks stay legible: the one path that doesn't change.
|
|
97
|
+
- **Adjusted at the new size:** flame sits 0.125 px higher, so it centres; sound-off's speaker sits 0.14 px lower,
|
|
98
|
+
clear of the slash; dark-mode's horns turn a hair wider, so both outline clean; money's and coin-lock's $ cut
|
|
99
|
+
their terminals a little lower, so each arm still drops 0.5 px before its cut; and the marks in check-square,
|
|
100
|
+
copy-check, backspace, search-x, zoom-in and zoom-out take their circled masters' share of their containers at
|
|
101
|
+
the new size.
|
|
102
|
+
- **Kept clean at the new size:** currency-yen's bars and copy-check's check take the 1.15 px detail line, since at
|
|
103
|
+
regular the yen's bars pooled where they cross the stem and copy-check's check stood under 1 px from its square;
|
|
104
|
+
users' two figures stand 3.20 px apart (were 3.26), so the knockout leaves the back shoulder a whole line. No
|
|
105
|
+
glyph added, removed or renamed.
|
|
106
|
+
|
|
107
|
+
## 1.1.3 (2026-11-09)
|
|
108
|
+
|
|
109
|
+
- **Regular weight by default:** 112 glyphs draw their interior marks, secondary parts and scaled parts at the
|
|
110
|
+
family's 1.25 px line, where they used the 1.075 px detail weight: text lines, hands, dots, inner arrows and
|
|
111
|
+
marks, links, columns and the like.
|
|
112
|
+
- **Detail is 1.15 px and rare:** 24 glyphs keep a detail line, where the regular one would crowd, clog or pool:
|
|
113
|
+
the framed person (user-circle, contacts, id-card, id-card-check), the calendars, cpu, bell-ring, chart-bar,
|
|
114
|
+
life-buoy, chain, translate, command, the `$`'s stubs (currency-dollar, instant-payment) and six dense objects
|
|
115
|
+
(archive, bank, bank-add, print, send, shopping-bag, waypoints).
|
|
116
|
+
- **Adjusted at the new weights:** archive's slot, print's output sheet and shopping-bag's handle legs are a
|
|
117
|
+
little shorter, so they stay under the ink line; seal-check, rosette-check and shield-check raise their checks
|
|
118
|
+
slightly so they stay centred.
|
|
119
|
+
|
|
120
|
+
## 1.1.2 (2026-11-09)
|
|
121
|
+
|
|
122
|
+
- **users** is redrawn closer to user: its two figures are 0.9 of user's size (were 0.8) at user's 1.25 px line
|
|
123
|
+
(was 1.075), 3.26 px apart (were 3.86), so the pair is 14.16 × 11.56 px (was 13.50 × 10.49), closer to square.
|
|
124
|
+
The back figure's knockout is 1.5 px, so the two heads stay apart at 1×.
|
|
125
|
+
|
|
126
|
+
## 1.1.1 (2026-11-09)
|
|
127
|
+
|
|
128
|
+
- **Dots read at their weight again:** after the step-up the dots kept their old size while every drawing grew
|
|
129
|
+
round them, so they read light, at 16 px most. A dot now grows by half its glyph's growth: interior dots ship
|
|
130
|
+
1.48 px (were 1.35), list's bullets 1.30 (were 1.19), and round dots 1.75 px across (were 1.60). Changes
|
|
131
|
+
building, calculator, cookie, grip, hard-drive, list, palette, passcode, pending, server, server-off,
|
|
132
|
+
shield-pending, smile, tablet and target.
|
|
133
|
+
- **more-horizontal and more-vertical** are heavier: their dots are the whole drawing, so they grow with the step,
|
|
134
|
+
2.37 px across (were 2.00).
|
|
135
|
+
- **keyboard's keys** sit on whole pixels again (1 and 2 px wide, 1.02 px tall), so each fills its pixels at 16 px
|
|
136
|
+
instead of smearing grey over two rows.
|
|
137
|
+
- **smile** runs its smile parallel to the ring, so the eyes and smile keep one margin inside it.
|
|
138
|
+
- 18 glyphs changed, none added, removed or renamed. Twelve change through the dot rule alone (calculator, cookie,
|
|
139
|
+
grip, hard-drive, palette, passcode, pending, server, server-off, shield-pending, tablet, target); each was judged
|
|
140
|
+
beside its 1.1.0 drawing at 8×, 2× and 16 px, and none reads worse.
|
|
141
|
+
|
|
142
|
+
## 1.1.0 (2026-11-09)
|
|
143
|
+
|
|
144
|
+
- **Every glyph one step larger:** the live area is now 14 × 14 px (1–15) on the same 16 × 16 viewBox, with a
|
|
145
|
+
1 px margin, up from 12 × 12. Line weights, corner radii, dots and knockout gaps are unchanged.
|
|
146
|
+
- **Optical scaling on every glyph:** each glyph is sized by its shape so they read as one size: closed shapes to
|
|
147
|
+
one area within the live area, pointed and diagonal shapes to the same area up to 15 px, lines by the step.
|
|
148
|
+
Pairs and variants drawn on one base keep one size and place, so a toggle never steps (bell, bell-off and
|
|
149
|
+
bell-ring; wifi and wifi-off; folder and folder-open; credit-card and credit-card-off; link and link-off; sound
|
|
150
|
+
and sound-off; pin and pin-off; expand-screen and collapse-screen; the align set). user and its badged twins
|
|
151
|
+
take the step alone, so users, which can't grow past the live area, keeps their weight.
|
|
152
|
+
- **Badges** are a 6 px disc on (12.5, 12.5), on every badged glyph.
|
|
153
|
+
- **One slash on every -off glyph:** the family slash steps with the live area, never with its base's optical
|
|
154
|
+
factor, so all 13 carry the same slash, its tips on 1.12 / 14.88; a glyph's centring nudge carries its slash with
|
|
155
|
+
it (cloud-off's and pin-off's sit 0.25 px higher, with cloud and pin).
|
|
156
|
+
- **pin-off** draws pin whole on pin's place under the family slash, its needle kept.
|
|
157
|
+
- **Solids** that are drawings grow with the step: stop, pause and record keep play's proportions, and barcode's
|
|
158
|
+
bars, toggle's knob, circle-dot's dot, play-circle's triangle and the candlesticks grow with their frames.
|
|
159
|
+
- **Letter marks** keep their 1.25 px gap between stem and dot in warning, octagon-alert, alert-triangle,
|
|
160
|
+
shield-alert, clock-alert, help-circle, shield-question and info-circle; the ! and the ? share a dot row
|
|
161
|
+
0.05 px lower on the grid.
|
|
162
|
+
- **Adjusted at the new size:** boost and check-square re-centre their marks; bell-ring's alarm arcs run lower;
|
|
163
|
+
cloud-download's arrow is shorter; money's and coin-lock's $ cut their terminals higher; file-spreadsheet's
|
|
164
|
+
table lines sit 0.5 px higher; id-card-check's bust is wider, so it meets the badge cleanly; microphone-off draws
|
|
165
|
+
its capsule open under the slash; sound-off's speaker sits closer to the slash; filter-x sits lower; flask and
|
|
166
|
+
phone are a little smaller, so they centre.
|
|
167
|
+
- **Redrawn after review:** disconnect's hash marks take the link's weight; copy-check, check-square, search-x,
|
|
168
|
+
zoom-in, zoom-out and backspace size their marks by one share of their container, as the circled marks do;
|
|
169
|
+
split's branches are each one smooth curve; coin-lock's padlock is lock's drawing at half size; chart-bar's bars
|
|
170
|
+
are centred; list's bullets are rounded squares like its lines; puzzle's top-right notch takes an ink trap;
|
|
171
|
+
users' figures stand closer; the ? is drawn at the !'s stroke weight with the same dot (shield-question's smaller
|
|
172
|
+
? keeps its fine line, with its dot scaled to match).
|
|
173
|
+
- **Added:** chevron-left-large, chevron-right-large, chevron-up-large and chevron-down-large, 12.8 px chevrons
|
|
174
|
+
for navigation at chevron-right's weight. No glyph removed or renamed; paths changed for all 379 others.
|
|
175
|
+
|
|
176
|
+
## 1.0.0 (2026-11-06)
|
|
177
|
+
|
|
178
|
+
- **379 glyphs**, 16 px, each one `fill="currentColor"` path: the set as of 2.15.0, released. No glyph changes.
|
|
179
|
+
- **One path:** the library is this folder (`svg/`, `glyphs.ts`, `CATALOGUE.md`, `overview.png`), no longer
|
|
180
|
+
`tempo-icons-<n>/` named for its glyph count.
|
|
181
|
+
- Every glyph is released: the drafts and provisional glyphs before 1.0, fills included, are ruled.
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/** Draws Tempo Icons in React from the release's paths, and gives each glyph's SVG and source to copy. @module */
|
|
2
|
+
import type { SVGProps } from 'react'
|
|
3
|
+
import * as Glyphs from './glyphs.js'
|
|
4
|
+
|
|
5
|
+
/** A glyph's name, or an older name it still answers to. */
|
|
6
|
+
export type IconName = Glyphs.IconGlyph | keyof typeof Glyphs.ICON_ALIASES
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Where the icon sits: small in text, tags, chips and small controls, medium everywhere else, and
|
|
10
|
+
* large for standalone icons at 32px and up.
|
|
11
|
+
*/
|
|
12
|
+
export type IconScale = 'large' | 'medium' | 'small'
|
|
13
|
+
|
|
14
|
+
/** The text beside it: regular at 400, emphasis at 500 and up. `medium` is 2.0's name and draws 2.0's Medium. */
|
|
15
|
+
export type IconWeight = 'emphasis' | 'medium' | 'regular'
|
|
16
|
+
|
|
17
|
+
const builds = {
|
|
18
|
+
large: { emphasis: Glyphs.ICON_PATHS_LARGE_EMPHASIS, regular: Glyphs.ICON_PATHS_LARGE },
|
|
19
|
+
medium: { emphasis: Glyphs.ICON_PATHS_EMPHASIS, regular: Glyphs.ICON_PATHS },
|
|
20
|
+
small: { emphasis: Glyphs.ICON_PATHS_SMALL_EMPHASIS, regular: Glyphs.ICON_PATHS_SMALL },
|
|
21
|
+
} as const satisfies Record<IconScale, Record<'emphasis' | 'regular', Record<string, string>>>
|
|
22
|
+
|
|
23
|
+
/** Returns the glyph a name draws: itself, or the glyph an older name now points to. */
|
|
24
|
+
export function glyphOf(name: IconName): Glyphs.IconGlyph {
|
|
25
|
+
if (Object.hasOwn(Glyphs.ICON_ALIASES, name))
|
|
26
|
+
return Glyphs.ICON_ALIASES[name as keyof typeof Glyphs.ICON_ALIASES]
|
|
27
|
+
|
|
28
|
+
return name as Glyphs.IconGlyph
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Draws one glyph as an inline SVG that takes the text color. Without a `label` it is decorative and
|
|
33
|
+
* hidden from assistive technology. A glyph marked to mirror, such as a back arrow, flips where
|
|
34
|
+
* `--icon-mirror: scaleX(-1)` is set under `[dir="rtl"]`, and a transform of the caller's own applies
|
|
35
|
+
* after the flip.
|
|
36
|
+
*/
|
|
37
|
+
export function Icon(props: Icon.Props) {
|
|
38
|
+
const { label, name, scale, size = 16, style, weight = 'regular', ...rest } = props
|
|
39
|
+
const named = label ? { 'aria-label': label, role: 'img' } : { 'aria-hidden': true }
|
|
40
|
+
|
|
41
|
+
// `none` can't share a transform list, so beside a caller's transform the flip falls back to
|
|
42
|
+
// scaleX(1), which keeps the caller's transform wherever --icon-mirror is unset.
|
|
43
|
+
const flipped = (() => {
|
|
44
|
+
if (!mirrors(name)) return style
|
|
45
|
+
|
|
46
|
+
if (style?.transform)
|
|
47
|
+
return { ...style, transform: `var(--icon-mirror, scaleX(1)) ${style.transform}` }
|
|
48
|
+
|
|
49
|
+
return { ...style, transform: 'var(--icon-mirror, none)' }
|
|
50
|
+
})()
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<svg
|
|
54
|
+
fill="none"
|
|
55
|
+
height={size}
|
|
56
|
+
viewBox="0 0 16 16"
|
|
57
|
+
width={size}
|
|
58
|
+
{...named}
|
|
59
|
+
style={flipped}
|
|
60
|
+
{...rest}
|
|
61
|
+
>
|
|
62
|
+
<path d={iconPath(name, { scale, size, weight })} fill="currentColor" />
|
|
63
|
+
</svg>
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export declare namespace Icon {
|
|
68
|
+
/** Properties for the Icon component, plus any native SVG attribute except its accessible name and children. */
|
|
69
|
+
type Props = Omit<SVGProps<SVGSVGElement>, 'aria-hidden' | 'aria-label' | 'children' | 'role'> & {
|
|
70
|
+
/** Accessible name for screen readers. Absent, the icon is decorative and hidden from them. */
|
|
71
|
+
label?: string | undefined
|
|
72
|
+
/** The glyph to draw, or an older name for it. */
|
|
73
|
+
name: IconName
|
|
74
|
+
/** The build, from where the icon sits. Absent, a px size under 15 draws small, as in 2.0. */
|
|
75
|
+
scale?: IconScale | undefined
|
|
76
|
+
/** Width and height, in px as a number or as any CSS length. Defaults to 16. It sets pixels only. */
|
|
77
|
+
size?: number | string | undefined
|
|
78
|
+
/** The weight of the text beside it. Defaults to `regular`. */
|
|
79
|
+
weight?: IconWeight | undefined
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** Returns a standalone component that draws one glyph, to paste into any React codebase. */
|
|
84
|
+
export function iconComponent(name: IconName, options: iconPath.Options = {}) {
|
|
85
|
+
const { size = 16, weight = 'regular' } = options
|
|
86
|
+
const glyph = glyphOf(name)
|
|
87
|
+
const at = scaleOf(size, options.scale)
|
|
88
|
+
const build = [
|
|
89
|
+
at !== 'medium' && `${at[0]?.toUpperCase()}${at.slice(1)}`,
|
|
90
|
+
weight === 'emphasis' && 'Emphasis',
|
|
91
|
+
weight === 'medium' && '2.0 Medium',
|
|
92
|
+
]
|
|
93
|
+
.filter(Boolean)
|
|
94
|
+
.join(' ')
|
|
95
|
+
const flip = mirrors(glyph) ? ` style={{ transform: "var(--icon-mirror, none)" }}` : ''
|
|
96
|
+
// A number is a JSX expression and a CSS length a string literal, so every size the option accepts pastes as valid TSX.
|
|
97
|
+
const length = typeof size === 'number' ? `{${size}}` : JSON.stringify(size)
|
|
98
|
+
|
|
99
|
+
return [
|
|
100
|
+
`import type { SVGProps } from "react";`,
|
|
101
|
+
``,
|
|
102
|
+
`/** Tempo Icons: ${glyph}${build ? `, ${build}` : ''}. */`,
|
|
103
|
+
`export function Icon${pascal(glyph)}(props: SVGProps<SVGSVGElement>) {`,
|
|
104
|
+
` return (`,
|
|
105
|
+
` <svg viewBox="0 0 16 16" width=${length} height=${length} fill="none" aria-hidden="true"${flip} {...props}>`,
|
|
106
|
+
` <path d="${iconPath(glyph, options)}" fill="currentColor" />`,
|
|
107
|
+
` </svg>`,
|
|
108
|
+
` );`,
|
|
109
|
+
`}`,
|
|
110
|
+
``,
|
|
111
|
+
].join('\n')
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Returns the path a glyph draws at a size, scale and weight. A name the release doesn't have draws
|
|
116
|
+
* nothing, so the icon stays an empty box.
|
|
117
|
+
*/
|
|
118
|
+
export function iconPath(name: IconName, options: iconPath.Options = {}): string {
|
|
119
|
+
const { size = 16, weight = 'regular' } = options
|
|
120
|
+
const paths = pathsOf(scaleOf(size, options.scale), weight)
|
|
121
|
+
const glyph = glyphOf(name)
|
|
122
|
+
|
|
123
|
+
// Own keys only, so a name such as toString, which every object answers to, draws nothing too.
|
|
124
|
+
return Object.hasOwn(paths, glyph) ? (paths[glyph] ?? '') : ''
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export declare namespace iconPath {
|
|
128
|
+
/** Options that pick a glyph's build. */
|
|
129
|
+
type Options = {
|
|
130
|
+
/** The build, from where the icon sits. Absent, a px size under 15 draws small, as in 2.0. */
|
|
131
|
+
scale?: IconScale | undefined
|
|
132
|
+
/** Size in px, or a px string such as `14px`. Defaults to 16, and picks a build only without a scale. */
|
|
133
|
+
size?: number | string | undefined
|
|
134
|
+
/** The weight of the text beside it. Defaults to `regular`. */
|
|
135
|
+
weight?: IconWeight | undefined
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/** Returns a glyph's SVG exactly as its release file holds it, in `svg/`, `svg-small/`, `svg-large/` or their `-emphasis` folders. */
|
|
140
|
+
export function iconSvg(name: IconName, options: iconPath.Options = {}) {
|
|
141
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="${iconPath(name, options)}" fill="currentColor"/></svg>`
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/** Whether a glyph mirrors in right-to-left layouts, such as a back arrow. */
|
|
145
|
+
function mirrors(name: IconName) {
|
|
146
|
+
const glyph = glyphOf(name)
|
|
147
|
+
|
|
148
|
+
return Object.hasOwn(Glyphs.ICON_META, glyph) && Glyphs.ICON_META[glyph].rtl === 'mirror'
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/** A component name from a glyph name: arrow-right → ArrowRight. */
|
|
152
|
+
function pascal(name: string) {
|
|
153
|
+
return name
|
|
154
|
+
.split(/[^a-z0-9]+/i)
|
|
155
|
+
.filter(Boolean)
|
|
156
|
+
.map((word) => `${word[0]?.toUpperCase()}${word.slice(1)}`)
|
|
157
|
+
.join('')
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/** The paths of a scale and weight. 2.0's `medium` keeps 2.0's drawings, and an unknown weight draws regular. */
|
|
161
|
+
function pathsOf(scale: IconScale, weight: IconWeight): Record<string, string> {
|
|
162
|
+
if (weight === 'medium') {
|
|
163
|
+
if (scale === 'small') return Glyphs.ICON_PATHS_14_MEDIUM
|
|
164
|
+
if (scale === 'large') return Glyphs.ICON_PATHS_LARGE_EMPHASIS
|
|
165
|
+
|
|
166
|
+
return Glyphs.ICON_PATHS_MEDIUM
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return builds[scale][weight === 'emphasis' ? 'emphasis' : 'regular']
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/** A size in px, from a number or a px string such as `14px`. Other CSS lengths have none. */
|
|
173
|
+
function pxOf(size: number | string) {
|
|
174
|
+
if (typeof size === 'number') return size
|
|
175
|
+
if (/^\s*\d+(\.\d+)?(px)?\s*$/.test(size)) return Number.parseFloat(size)
|
|
176
|
+
|
|
177
|
+
return undefined
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/** The scale a call draws: the one it names, or without one, as 2.0 picked it, small for a px size under 15. */
|
|
181
|
+
function scaleOf(size: number | string, scale?: IconScale | undefined): IconScale {
|
|
182
|
+
if (scale && Object.hasOwn(builds, scale)) return scale
|
|
183
|
+
|
|
184
|
+
const px = pxOf(size)
|
|
185
|
+
|
|
186
|
+
return px !== undefined && px < 15 ? 'small' : 'medium'
|
|
187
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Tempo Icons 2.2
|
|
2
|
+
|
|
3
|
+
`@tempoxyz/ds/arsenal/icons` exports Tempo Icons, Arsenal's library of 398 interface icons. The version and what each release changed are in `CHANGELOG.md`.
|
|
4
|
+
|
|
5
|
+
Each icon is one `fill="currentColor"` path on a 16 × 16 viewBox, drawn on a 13.33 × 13.33 live area with a 1.33 px margin (Material 3's proportions), with a 1.25 px line at 16 px, so it takes the text color and scales with its box.
|
|
6
|
+
|
|
7
|
+
- `Icon`: draws any glyph in React, from `glyphs.ts`.
|
|
8
|
+
- `svg/<name>.svg`: one file per icon, in this folder. The other five builds sit beside it (below).
|
|
9
|
+
- `Glyphs`: the same paths as data, one map per build, plus `ICON_ALIASES` (older names such as `close` → `xmark`), `ICON_META` (label, meaning, category, RTL) and `ICON_CATEGORIES`.
|
|
10
|
+
- `CATALOGUE.md`: every icon's name, label, meaning, aliases and whether it mirrors in right-to-left layouts.
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```tsx
|
|
15
|
+
import { Icon } from '@tempoxyz/ds/arsenal/icons'
|
|
16
|
+
|
|
17
|
+
;<Icon name="arrow-right" />
|
|
18
|
+
;<Icon label="Settings" name="settings" scale="small" weight="emphasis" />
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`scale` and `weight` pick the build, and `size` only sets pixels. Calls written for 2.0 draw as they did: without a `scale`, a px size under 15 draws Small, and `weight="medium"` draws 2.0's Medium. Set `--icon-mirror: scaleX(-1)` under `[dir="rtl"]` to flip the icons marked `mirror` (back and next arrows and chevrons).
|
|
22
|
+
|
|
23
|
+
`iconPath`, `iconSvg` and `iconComponent` return a glyph's path, its SVG file and a standalone component to paste, for the same `scale`, `size` and `weight` options.
|
|
24
|
+
|
|
25
|
+
The six SVG folders here are the release's files, for design tools and stacks without React. The package doesn't ship them: `iconSvg` returns any of them exactly, for the same options.
|
|
26
|
+
|
|
27
|
+
## Scales and Weights
|
|
28
|
+
|
|
29
|
+
Pick the scale from where the icon sits and the weight from the text beside it. The size only sets pixels.
|
|
30
|
+
|
|
31
|
+
| | Use it for | Regular | Emphasis |
|
|
32
|
+
| ---------- | ------------------------------------------------------ | -------------------------------- | -------------------------------------------------- |
|
|
33
|
+
| **Small** | icons in text, tags, chips and small controls | `svg-small/`, `ICON_PATHS_SMALL` | `svg-small-emphasis/`, `ICON_PATHS_SMALL_EMPHASIS` |
|
|
34
|
+
| **Medium** | everything else: the default | `svg/`, `ICON_PATHS` | `svg-emphasis/`, `ICON_PATHS_EMPHASIS` |
|
|
35
|
+
| **Large** | standalone icons at 32 px and up, such as empty states | `svg-large/`, `ICON_PATHS_LARGE` | `svg-large-emphasis/`, `ICON_PATHS_LARGE_EMPHASIS` |
|
|
36
|
+
|
|
37
|
+
- **Regular** goes beside text at 400, **Emphasis** beside text at 500 and up. In dense icons (the coins with a `$`, captions, target and the like) Emphasis thickens only the frame, so the inside stays open.
|
|
38
|
+
- **For a quiet mark beside text or in a control, use the small mark,** not a smaller icon: `plus-small`, `minus-small`, `xmark-small`, `check-small` and `chevron-{right,left,up,down}-small`.
|
|
39
|
+
- 2.0's map names still work and keep 2.0's drawings: `ICON_PATHS_14` is Small, and `ICON_PATHS_MEDIUM` and `ICON_PATHS_14_MEDIUM` are 2.0's Emphasis, where dense icons keep their Regular drawing.
|
|
40
|
+
|
|
41
|
+
## Rules
|
|
42
|
+
|
|
43
|
+
- An icon-only control needs an accessible name; decorative icons beside text stay hidden.
|
|
44
|
+
- Filled icons mark the selected state only: `<name>-fill` is that glyph selected (a current tab, a done toast), never a second style.
|
|
45
|
+
- Don't edit the paths or SVGs. The Iconography skill in tempoxyz/creative-studio (`skills/tempo-iconography/`) draws every glyph and writes each release here.
|
|
46
|
+
|
|
47
|
+
## Versions
|
|
48
|
+
|
|
49
|
+
Pin a version. Within a major version, a release only adds icons, aliases or builds (a minor) or fixes a reported defect in named icons (a patch), so an upgrade inside 2.x never restyles a screen. Family-wide changes (line weight, corners, sizing) and redraws for taste wait for the next major, which lists every change with before and after sheets in `CHANGELOG.md`.
|
|
50
|
+
|
|
51
|
+
## Source
|
|
52
|
+
|
|
53
|
+
Tempo draws every glyph with the Iconography engine, from its own constructions in code rather than from an icon set.
|