꾸준히 성장하는 개발자

Google Maretial Icons 본문

HTML

Google Maretial Icons

ahleum 2021. 12. 31. 01:12

구글에서 제공하는 아이콘을 사용하는 방법

 

현업에서는 매번 새로운 디자인들을 디자이너에게 요청할 수 없기 때문에 

구글에서 제공하는 아이콘을 이용하는 방법이 있다

 

https://material.io/design/iconography/system-icons.html    원래 여기에 설명이 있었던것 같은데....

 

Material Design

Build beautiful, usable products faster. Material Design is an adaptable system—backed by open-source code—that helps teams build high quality digital experiences.

material.io

Material Icons Guide  |  Google Fonts  |  Google Developers       여기로 들어가니 설명이 있다.

 

 

Material Icons Guide  |  Google Fonts  |  Google Developers

Material Icons Guide An overview of material icons—where to get them and how to integrate them with your projects. What are material icons? Material design system icons are simple, modern, friendly, and sometimes quirky. Each icon is created using our de

developers.google.com

 

 

이 태그를 상단 <head></head> 안에 넣어준다.

 

Icons - Google Fonts

 

Google Fonts

Making the web more beautiful, fast, and open through great typography

fonts.google.com

 

위 사이트로 들어가 원하는 모양을 검색한다.

arrow로 검색했을 때 많은 종류의 아이콘들이 나타나는 걸 볼 수 있다.

 

그중 하나를 선택하면 옆에 창이 하나 뜬다

이걸 복사하여 내 프로젝트의 원하는 위치에 넣어준다.

 

그리고 저장하니,, 안나오고 글씨만 나온다.

구글링을 해보니 

 

<link href="https://fonts.googleapis.com/css?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Two+Tone|Material+Icons+Round|Material+Icons+Sharp" rel="stylesheet"

 

이렇게 변경하여 저장하면 나온다고 한다.

 

이렇게 하니 잘 나온다.

 

이 아이콘들은 하나의 글씨로 취급이 되기 때문에 크기를 키우려면

width나 height가 아닌 font-size를 이용하여 크기를 키운다

기본 크기는 24px로 설정되어 있다.

 

'HTML' 카테고리의 다른 글

[HTML] '<input type='file' />' 스타일커스텀 , 파일 확장자 지정  (0) 2022.07.18
Markdown 마크다운  (0) 2022.04.14