Skip to content

ryutah/google-icons-for-plantuml

Repository files navigation

google-icons-for-plantuml

Google icon sprite for PlantUML.

Inspired from tupadr3/plantuml-icon-font-sprites.

Icons of this repository are able to use with plantuml-stdlib/C4-PlantUML.

Getting Start

import google cloud sprite

!define GICONURL https://raw.githubusercontent.com/ryutah/google-icons-for-plantuml/master/google-cloud
' include sprite that you want
!include GICONURL/cloud_run.puml

import google workspace sprite

!define GWSICONURL https://raw.githubusercontent.com/ryutah/google-icons-for-plantuml/master/google-workspace
' include sprite that you want
!include GWSICONURL/gmail.puml

import firebase sprite

!define FICONURL https://raw.githubusercontent.com/ryutah/google-icons-for-plantuml/master/firebase
' include sprite that you want
!include FICONURL/cloud_firestore.puml

If you want to use sprite macro like tupadr3/plantuml-icon-font-sprites, you should import common.puml of tupadr3/plantuml-icon-font-sprites.

!define ICONURL https://raw.githubusercontent.com/tupadr3/plantuml-icon-font-sprites/v2.4.0
!includeurl ICONURL/common.puml

' Then, include sprites
!define GICONURL https://raw.githubusercontent.com/ryutah/google-icons-for-plantuml/master/google-cloud
!include GICONURL/cloud_run.puml

Example

with c4 model

@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml

!define GICONURL https://raw.githubusercontent.com/ryutah/google-icons-for-plantuml/master/google-cloud
!include GICONURL/cloud_run.puml
!include GICONURL/app_engine.puml
!include GICONURL/datastore.puml
!include GICONURL/cloud_storage.puml

!define GWSICONURL https://raw.githubusercontent.com/ryutah/google-icons-for-plantuml/master/google-workspace
!include GWSICONURL/calendar.puml
!include GWSICONURL/gmail.puml

System(cloud_run, "Cloud Run", "webapp", $sprite="cloud_run")
System(app_engine, "App Engine", "webapp", $sprite="app_engine")
SystemDb(datastore, "Datastore", "database", $sprite="datastore")
SystemDb(cloud_storage, "Cloud Storage", "storage", $sprite="cloud_storage")

System(calendar, "Calendar", "calendar", $sprite="calendar")
System(gmail, "Gmail", "gmail", $sprite="gmail")
@enduml

image

with macro

@startuml
!define ICONURL https://raw.githubusercontent.com/tupadr3/plantuml-icon-font-sprites/v2.4.0
!includeurl ICONURL/common.puml

!define GICONURL https://raw.githubusercontent.com/ryutah/google-icons-for-plantuml/master/google-cloud
!include GICONURL/cloud_run.puml

skinparam defaultTextAlignment center

DEV_CLOUD_RUN(cloud_run)
DEV_CLOUD_RUN(cloud_run2,label of cloud_run2)
DEV_CLOUD_RUN(cloud_run3,label of cloud_run3,database)
DEV_CLOUD_RUN(cloud_run4,label of cloud_run4,database,red) #DeepSkyBlue
@enduml

image

How to builds

Required tools

  1. Inkscape
  2. ImageMagick
  3. PluntUML jar file
  4. python 3.x

Steps

  1. Install dependencies

    pip install -r requirements.txt
  2. Build sprites

    make build

Builds Google Workspace icon

Prerequired

  1. Downlaods icons from here
  2. set environment variable GOOGLE_WORKSPACE_ICON_ZIP_FILE_PATH to location of download file path
  3. run make build

About

PlantUML sprites, macros, and other includes for Google logos. (Google Cloud and Google Workspace)

Topics

Resources

License

Stars

3 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors