0.8.4 • Published 4 months ago

@aleph-alpha/ds-icons v0.8.4

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
4 months ago

Aleph Alpha Design System Icons

@aleph-alpha/ds-icons

This package provides the Aleph Alpha Design System Icons preset for UnoCSS, including custom icons from the design system. It uses the Icons preset for UnoCSS and adds Aleph Alpha specific icons.

To use the Aleph Alpha Design System Icons preset, install the package and add it to your UnoCSS configuration.

npm install @aleph-alpha/ds-icons
import { presetAlephAlphaIcons } from '@aleph-alpha/ds-icons'

export default defineConfig({
  presets: [presetAlephAlphaIcons()],
})

The preset icons are taken from the material symbols, one can use them like so

<span class="i-material-symbols-{$SYMBOL_NAME}" />, e.g.
<span class="i-material-symbols-translate" />

Available icons can be found in https://icones.js.org/collection/material-symbols

To add custom icons that are used locally in your project, you can follow the guide at https://unocss.dev/presets/icons#filesystemiconloader

import { presetAlephAlphaIcons } from '@aleph-alpha/ds-icons'
import { FileSystemIconLoader } from '@iconify/utils/lib/loader/node-loaders'

export default defineConfig({
  presets: [presetAlephAlphaIcons({ collections: {
    'studio' : FileSystemIconLoader(
          './assets/icons',
          svg => svg.replace(/#fff/, 'currentColor')
      )
  } })],
})

For more information about the Icons preset, see UnoCSS Icons Preset.

0.8.4

4 months ago

0.8.3

4 months ago

0.8.2

4 months ago

0.8.1

5 months ago

0.8.0

5 months ago

0.7.16

5 months ago

0.7.15

5 months ago

0.7.14

5 months ago

0.7.13

5 months ago

0.7.12

5 months ago

0.7.11

5 months ago

0.7.10

5 months ago

0.7.9

6 months ago

0.7.8

6 months ago

0.7.7

6 months ago

0.7.6

6 months ago

0.7.5

7 months ago

0.7.4

7 months ago

0.7.3

7 months ago

0.7.2

7 months ago

0.7.1

7 months ago

0.7.0

7 months ago

0.6.299

7 months ago