Guides · docs/guides/migrate-from-v6.md
Migrate from Cardsite Icons 6
The rename tables below come from the manifest.
What changes
| v6 | v7 |
|---|---|
| filled blocks on a 48 grid, one style | line on a 24 grid, five styles: light · regular · bold · duotone · fill |
signal="family" | "lime" | "mono" |
gone. Icons are currentColor; emphasis is variant="duotone" (+ .cs-tone-accent for lime) |
variant="glyph" | "tile" |
glyphs are UI icons; tiles are brand assets (build/brand/{products,tools,features}) |
<CsIcon name signal variant size> |
<CsIcon name variant size title tone> |
--icon-ink, --icon-family-* tokens |
--cs-icon-*, --cs-tile-*, --cs-ill-*, --cs-file-* (build/tokens/tokens.css) |
| light and dark files per icon | one file per style; theming through currentColor and tokens |
| a 24 px v6 glyph | a 20 px v7 Regular (the default size is now 20) |
Steps
- Import
build/tokens/tokens.cssin place of the v6tokens/tokens.css. - Delete
signal="mono". Wheresignal="lime"marked a selection, usevariant="duotone" className="cs-tone-accent"; delete it everywhere else. - Rename icons with the table below. Old names keep working, with a development warning, through 7.x and are removed in 8.0.
product-*,file-*,rating-*andstudio-*are brand assets now: use<img>or<CsTile>with the paths below.- Check that every icon-only button has an accessible name (
titleoraria-label).
Write the rename map for a codemod:
node tools/cli.mjs aliases > aliases.json
UI icon renames (173)
| v6 name | v7 name |
|---|---|
account |
user |
add |
plus |
admin |
user-shield |
advance |
settings |
alert |
alert-circle |
amount |
coin |
audio |
music |
avatar |
user |
back |
arrow-left |
background |
gradient |
birthday |
cake |
border-circle |
border |
border-color |
border |
border-double |
border |
border-inset |
border |
border-outset |
border |
border-radius |
radius |
border-rounded |
radius |
border-size |
border |
border-solid |
border |
border-straight |
border |
border-style |
border |
browser |
browser-stats |
cancel |
x-circle |
cancellation |
ban |
card |
vcard |
chart |
chart-bar |
circle |
shape-circle |
city |
building |
click |
cursor |
code-bubble |
embed |
color |
palette |
company |
building |
config |
sliders |
confirmation |
check-circle |
continue |
arrow-right |
correction |
erase |
countdown |
timer |
country |
map |
coupon |
ticket |
create |
sparkles |
css |
code |
cta |
button |
cta-play |
play |
custom-eyes |
qr-eye-outer |
customize |
wand |
danger |
warning |
dark |
moon |
datetime |
clock |
dial |
gauge |
dismiss |
close |
doc |
file-text |
donation |
gift |
dots |
more-vertical |
down |
chevron-down |
duplicate |
copy |
email |
mail |
encryption |
lock |
end-time |
clock-end |
expiration |
hourglass |
export |
download |
facetime |
video |
favicon |
smile |
feature |
apps |
first |
page-first |
folder-add |
folder-plus |
font |
typography |
foreground |
gradient |
foreground-diagonal |
gradient |
foreground-horizontal |
gradient |
foreground-inverse |
gradient |
foreground-radial |
gradient |
foreground-vertical |
gradient |
forward |
fast-forward |
full |
expand |
gear |
settings |
generate |
sparkles |
home-alt |
home |
html |
code |
inner-eyes |
qr-eye-inner |
js |
code |
last |
page-last |
latitude |
coordinates |
left |
chevron-left |
light |
sun |
link-circle |
external |
link-square |
external |
linked |
link |
links |
link |
location |
map-pin |
login |
sign-in |
logo |
cardsite |
logout |
sign-out |
longitude |
coordinates |
margin |
spacing |
media-cut |
scissors |
media-next |
skip-forward |
media-pause |
pause |
media-play |
play |
media-playlist |
playlist |
media-previous |
skip-back |
media-record |
record |
media-repeat |
repeat |
media-rewind |
rewind |
media-sound |
volume |
media-stop |
stop |
medium |
layers |
member |
users |
meta |
code |
method |
credit-card |
mic-capsule |
mic |
minus-square |
minus |
more |
more-horizontal |
next |
chevron-right |
outer-eyes |
qr-eye-outer |
overflow |
more-horizontal |
overview |
analytics |
pause-circle |
paused |
payment |
receipt |
phone-circle |
phone |
photo |
user |
pie-chart |
chart-pie |
plan |
bolt |
play-circle |
play |
plus-square |
plus |
position |
move |
previous |
chevron-left |
printer |
print |
product |
package |
product-analytics |
analytics |
provider |
payment-link |
qr |
qr-code |
qrcode |
qr-code |
record-circle |
record |
referral |
handshake |
region |
map |
region-chart |
chart-pie |
remove |
minus-circle |
right |
chevron-right |
scanner |
scan |
schedule |
hourglass |
security |
shield |
seo |
search-index |
seo-search |
search |
service |
plug |
services-circle |
plug |
size |
frame |
sms |
chat |
socials-circle |
share-nodes |
song |
music |
soundwave |
waveform |
start-time |
clock-start |
stats |
chart-line |
status |
live |
stop-circle |
stop |
storage |
database |
street |
navigation |
style |
brush |
subs |
subscription |
success |
check-circle |
team |
users |
text-center |
align-center |
text-justify |
align-justify |
text-left |
align-left |
text-right |
align-right |
up |
chevron-up |
url |
external |
verify |
verified |
view |
eye |
volume-add |
volume-plus |
volume-none |
volume-off |
write |
edit |
zip |
mailbox |
Moved to the brand layer
{theme} is light or dark for files and badges, and ink, paper, lime or vars for tiles.
| v6 name | v7 asset |
|---|---|
file-3ds |
build/brand/files/{theme}/file-3ds.svg |
file-aac |
build/brand/files/{theme}/file-aac.svg |
file-ai |
build/brand/files/{theme}/file-ai.svg |
file-avi |
build/brand/files/{theme}/file-avi.svg |
file-bmp |
build/brand/files/{theme}/file-bmp.svg |
file-cad |
build/brand/files/{theme}/file-cad.svg |
file-cdr |
build/brand/files/{theme}/file-cdr.svg |
file-css |
build/brand/files/{theme}/file-css.svg |
file-csv |
build/brand/files/{theme}/file-csv.svg |
file-dat |
build/brand/files/{theme}/file-dat.svg |
file-dll |
build/brand/files/{theme}/file-dll.svg |
file-dmg |
build/brand/files/{theme}/file-dmg.svg |
file-doc |
build/brand/files/{theme}/file-doc.svg |
file-docx |
build/brand/files/{theme}/file-docx.svg |
file-eps |
build/brand/files/{theme}/file-eps.svg |
file-fbx |
build/brand/files/{theme}/file-fbx.svg |
file-fig |
build/brand/files/{theme}/file-fig.svg |
file-figma |
build/brand/files/{theme}/file-fig.svg |
file-fla |
build/brand/files/{theme}/file-fla.svg |
file-flv |
build/brand/files/{theme}/file-flv.svg |
file-gif |
build/brand/files/{theme}/file-gif.svg |
file-heic |
build/brand/files/{theme}/file-heic.svg |
file-html |
build/brand/files/{theme}/file-html.svg |
file-indd |
build/brand/files/{theme}/file-indd.svg |
file-iso |
build/brand/files/{theme}/file-iso.svg |
file-jpg |
build/brand/files/{theme}/file-jpg.svg |
file-js |
build/brand/files/{theme}/file-js.svg |
file-json |
build/brand/files/{theme}/file-json.svg |
file-key |
build/brand/files/{theme}/file-key.svg |
file-md |
build/brand/files/{theme}/file-md.svg |
file-mid |
build/brand/files/{theme}/file-midi.svg |
file-midi |
build/brand/files/{theme}/file-midi.svg |
file-mov |
build/brand/files/{theme}/file-mov.svg |
file-mp3 |
build/brand/files/{theme}/file-mp3.svg |
file-mp4 |
build/brand/files/{theme}/file-mp4.svg |
file-mpg |
build/brand/files/{theme}/file-mpg.svg |
file-obj |
build/brand/files/{theme}/file-obj.svg |
file-pages |
build/brand/files/{theme}/file-pages.svg |
file-pdf |
build/brand/files/{theme}/file-pdf.svg |
file-php |
build/brand/files/{theme}/file-php.svg |
file-png |
build/brand/files/{theme}/file-png.svg |
file-ppt |
build/brand/files/{theme}/file-ppt.svg |
file-pptx |
build/brand/files/{theme}/file-pptx.svg |
file-psd |
build/brand/files/{theme}/file-psd.svg |
file-py |
build/brand/files/{theme}/file-py.svg |
file-rar |
build/brand/files/{theme}/file-rar.svg |
file-raw |
build/brand/files/{theme}/file-raw.svg |
file-rtf |
build/brand/files/{theme}/file-rtf.svg |
file-sketch |
build/brand/files/{theme}/file-sketch.svg |
file-sql |
build/brand/files/{theme}/file-sql.svg |
file-stl |
build/brand/files/{theme}/file-stl.svg |
file-svg |
build/brand/files/{theme}/file-svg.svg |
file-tif |
build/brand/files/{theme}/file-tif.svg |
file-tiff |
build/brand/files/{theme}/file-tif.svg |
file-ts |
build/brand/files/{theme}/file-ts.svg |
file-txt |
build/brand/files/{theme}/file-txt.svg |
file-wav |
build/brand/files/{theme}/file-wav.svg |
file-webm |
build/brand/files/{theme}/file-webm.svg |
file-webp |
build/brand/files/{theme}/file-webp.svg |
file-wmv |
build/brand/files/{theme}/file-wmv.svg |
file-xls |
build/brand/files/{theme}/file-xls.svg |
file-xlsx |
build/brand/files/{theme}/file-xlsx.svg |
file-xml |
build/brand/files/{theme}/file-xml.svg |
file-zip |
build/brand/files/{theme}/file-zip.svg |
product-analytics |
build/brand/products/{theme}/analytics.svg |
product-apis |
build/brand/products/{theme}/apis.svg |
product-domains |
build/brand/products/{theme}/domains.svg |
product-links |
build/brand/products/{theme}/links.svg |
product-qrs |
build/brand/products/{theme}/qrs.svg |
product-sites |
build/brand/products/{theme}/sites.svg |
rating-10 |
build/brand/badges/{theme}/rating-10.svg |
rating-17 |
build/brand/badges/{theme}/rating-17.svg |
rating-18 |
build/brand/badges/{theme}/rating-18.svg |
rating-21 |
build/brand/badges/{theme}/rating-21.svg |
rating-3 |
build/brand/badges/{theme}/rating-3.svg |
rating-a |
build/brand/badges/{theme}/rating-a.svg |
rating-e |
build/brand/badges/{theme}/rating-e.svg |
rating-m |
build/brand/badges/{theme}/rating-m.svg |
rating-p |
build/brand/badges/{theme}/rating-p.svg |
rating-t |
build/brand/badges/{theme}/rating-t.svg |
studio-careers |
build/brand/tools/{theme}/career.svg |
studio-chat |
build/brand/tools/{theme}/reply.svg |
studio-cloud |
build/brand/tools/{theme}/drive.svg |
studio-compose |
build/brand/tools/{theme}/compose.svg |
studio-dealbook |
build/brand/tools/{theme}/crm.svg |
studio-helpdesk |
build/brand/tools/{theme}/support.svg |
studio-insight |
build/brand/tools/{theme}/insight.svg |
studio-keyword |
build/brand/tools/{theme}/keyword.svg |
studio-mailbox |
build/brand/tools/{theme}/mailbox.svg |
studio-notes |
build/brand/tools/{theme}/notes.svg |
studio-portal |
build/brand/tools/{theme}/portal.svg |
studio-status |
build/brand/tools/{theme}/status.svg |
studio-studio |
build/brand/tools/{theme}/studio.svg |
studio-task |
build/brand/tools/{theme}/task.svg |
Changes of meaning
- Duplicates merged:
account,avatar,photo→user;close,dismiss→close;cancel→x-circle;add,plus-square→plus;qr,qrcode→qr-code;link,linked,links→link;url,link-square,link-circle→external; 11border-*→border,border-dashed,radius; 6foreground-*andbackground→gradient. - Fixed meanings:
zip(postcode) →mailbox;tagno longer means currency (pricedoes);generate→sparkles;logo→cardsite;plan→bolt;file-figma→file-fig(the real extension). - New in v7:
slug,short-link,redirect,route,subdomain,domain,card-view,link-in-bio,qr-dynamic,gate,content-warning,age-gate,globe-lock,shield-bot,search-index,workspace,bot,webhook,history.