0.5.1 • Published 21 hours ago

@zebra-fed/zeta-icons v0.5.1

Weekly downloads
-
License
MIT
Repository
github
Last release
21 hours ago

zeta-icons

An icon library for the Zeta design system.

Web

🚧 Note: Currently, the only way to use these icons is directly from zeta-icons. This will change in the future with the impending release of zeta-web and zeta-react.

Installation

Zeta Icons is hosted on npm, and can be installed with:

npm i @zebra-fed/zeta-icons

Usage

The zeta-icons fonts can be imported into any web project. There are two variants, zeta-icons-round and zeta-icons-sharp, for round and sharp icons respectively. Either one or both of these need to be imported via css

@font-face {
  font-family: zeta-icons-round;
  font-weight: bold;
  src: url("@zebra-fed/zeta-icons/font/zeta-icons-round.woff2");
}

.icon {
  font-family: "zeta-icons-round";
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga";
}

If you are not using a framework that optimizes node modules imports, you may need to point directly to the font:

src: url("./node_modules/@zebra-fed/zeta-icons/outputs/font/zeta-icons-round.woff2");

Zeta icons use ligatures, which allows for the icons to be rendered by simply entering their name. These icons behave as text characters, and so are styled as such:

<span class="icon" style="font-size: 24px; color: blue;">alarm</span>

Flutter

Zeta Icons for Flutter are part of zeta_flutter.

Installation

Zeta flutter is hosted on pub.dev, and can be installed with:

flutter pub add zeta_flutter

Usage

The ZetaIcons class contains all the zeta icons, in both round and sharp variants. These can be displayed using the Icon class built into Flutter.

  Icon(ZetaIcons.activity_round, color: Colors.red, size: 24)

🚧 Note: This does not work with all versions of node - tested and working with node 18.17.0

  1. Initialize test values:

ts-node --files test/reset-values.ts

  1. Select tests to run. Within test/test.ts, set the values of functionsToTest to true.

  2. Run tests

ts-node -files test/test.ts

0.5.1

21 hours ago

0.5.0

5 days ago

0.4.1

12 days ago

0.4.0

12 days ago

0.3.0

13 days ago

0.3.2

13 days ago

0.3.1

13 days ago

0.2.5

14 days ago

0.2.3

15 days ago

0.2.2

15 days ago

0.2.1

16 days ago

0.1.67

1 month ago

0.1.68

30 days ago

0.1.66

1 month ago

0.1.65

3 months ago

0.1.63

3 months ago

0.1.64

3 months ago

0.1.62

3 months ago

0.1.58

3 months ago

0.1.57

3 months ago

0.1.55

4 months ago

0.1.56

4 months ago

0.1.54

5 months ago

0.1.53

5 months ago

0.1.52

5 months ago

0.1.51

5 months ago

0.1.50

5 months ago

0.1.49

5 months ago

0.1.48

5 months ago

0.1.47

5 months ago

0.1.46

5 months ago

0.1.45

5 months ago

0.1.44

5 months ago

0.1.43

5 months ago

0.1.42

5 months ago

0.1.40

5 months ago

0.1.39

5 months ago

0.1.38

5 months ago

0.1.37

5 months ago

0.1.36

5 months ago

0.1.35

6 months ago

0.1.34

6 months ago

0.1.33

6 months ago

0.1.32

6 months ago

0.1.31

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.0.1

6 months ago