material icons and symbols lister

About This Space

Optionally downloads the Material Icons and Material Symbols font files, @fontface rules files, and a JSON object for use with Profound UI's `pui.customIconList` configuration.


Last updated on November 1, 2022

Forked from: /megan_bond/material-icons-lister/

Public Permissions:   View   Open/Fork   Run   Comment  

Material Icons Lister

Description

Optionally generates and downloads the Material Icons and Material Symbols font files, @fontface rules files, and a JSON object for use with Profound UI's pui.customIconList configuration.

Configurations

// ---- CONFIGURATIONS ---- //
var conf = {
  // downloadFontFiles (true/false): Do you want to download the sets related font files?
  downloadFontFiles: false,
  // ** File names for download font files cannot be customized. ** //

  // downloadFontFaces (true/false): Do you want to download the sets related @fontface rules file?
  // ** This considered true if downloadFontFiles is `true` because the file names and `src` property of the @fontface rules must match. ** //
  downloadFontFaces: false,

  // File name for the @fontface rules.
  fileNameFontFaces: 'MasterMaterialIcons.css',

  // downloadIconsList (true/false): Do you want to download the sets related icon list json file?
  downloadIconsList: true,

  // File name for the icon list json file.
  fileNameIconsList: 'MasterMaterialIcons.json',
  // ** The icons list JSON object saved in the icons list json file is to be added to pui.customIconList.icons[] array. ** //

  // Set the type name for the icon set. This is prepended to the icon name (i.e. "material:search") so that it can be handled by the icon handler function.
  // ** Unsupported names may require custom icon handler function. ** //
  iconsFontTypeName: 'material',

  // This is the title of the icon set list name to be shown in the dropdown selection.
  iconsFontListName: 'Material Icons Complete',

  // Name of Material Icons Set. This is referenced for URL building.
  MaterialIcons: 'Material Icons',

  // Name of Material Symbols Set. This is referenced for URL building.
  MaterialSymbs: 'Material Symbols',

  // Extension for codepoints files.
  cpt: '.codepoints',

  // Separator used between the Icon Font Name and the Icon Font Set Name of class names. (i.e. "--" => .pui-material-icons--outlined)
  sep: '--',

  // Replacement character for spaces in a Icon Font Set Name. (i.e. "-" => "Two Tone" to "Two-Tone")
  spc: '-',

  // Base URL to retrieve raw files from GitHub Repositories.
  GitHubRawFileURL: 'https://raw.githubusercontent.com/',

  // Base URL to Google's Material Icons codepoints.
  MaterialIconsURL: conf.GitHubRawFileURL + 'google/material-design-icons/master/font/MaterialIcons',

  // Base URL to Google's Material Symbols codepoints.
  MaterialSymbsURL: conf.GitHubRawFileURL + 'google/material-design-icons/master/variablefont/',

  // Base URL to Google's @fontface rules.
  GoogleFontCSSURL: 'https://fonts.googleapis.com/css2?family=',

  // Path to folder where fonts will be stored, absolute or relative to the folder containing the @fontface rules file.
  Path2FontsFolder: '../font/',

  // Material Icons sets to retrieve. Comment out unwanted sets.
  MaterialIconsSets: [
    // Material Icons
    'Regular',
    // Material Icons Sharp
    'Sharp',
    // Material Icons Round
    'Round',
    // Material Icons Two Tone
    'Two Tone',
    // Material Icons Outlined
    'Outlined',
  ],

  // Name where {XXX} is replaced with the Material Symbols set name.
  symbsSetCodepointsName: 'MaterialSymbols{XXX}[FILL,GRAD,opsz,wght]',

  // Material Symbols sets to retrieve. Comment out unwanted sets.
  MaterialSymbsSets: [
    // Material Symbols Outlined
    'Outlined',
    // Material Symbols Rounded
    'Rounded',
    // Material Symbols Sharp
    'Sharp',
  ],

  // Prefix to be used for generating class names for each of the Material Icons sets. (i.e. "pui-material-symbs" => "pui-material-symbs--outlined")
  materialIconsClassNamePrefix: 'pui-material-icons',

  // Prefix to be used for generating class names for each of the Material Symbols sets. (i.e. "pui-material-symbs" => "pui-material-symbs--outlined")
  materialSymbsClassNamePrefix: 'pui-material-symbs',
};

App Information

Author: Megan A. Bond

Last Update: October 28th, 2022

Be the first to comment:      

Comments

Write Preview Markdown: bold italic code link
Post

Filters:

Popular Recent

Empty template with the basics set up for a quick display.

18377

0

0

Empty template with the basics set up for a quick display.

21906

0

0

Save the row the user was on before the screen was submitted. Then, refocus that row when the user has returned to the page, even if they went to other pages in the meantime.

26158

0

1

A simple dashboard example that uses responsive design

26066

0

0

Empty template with the basics set up for a quick display.

23888

0

0

An example of how to retrieve the grid data and work with it for comparisons and manipulations.

29920

0

0

A demo of how to build Rich Displays in the Visual Designer that integrate with external CSS and JavaScript file

26517

0

0

A demo of how to build Rich Displays in the Visual Designer that integrate with external CSS and JavaScript file

25874

0

0

A demo of how to build Rich Displays in the Visual Designer that integrate with external CSS and JavaScript file

25267

0

0

A Hello World app with both dynamic output and input fields. It also illustrates the basics of screen transition animation.

25858

0

0

A Hello World app with both dynamic output and input fields. It also illustrates the basics of screen transition animation.

26020

0

0

A Hello World app with both dynamic output and input fields

25947

0

0