javierms / native_material
Google Material Symbols Outlined and Material Icons fonts hosted 100% locally with zero-FOUT optimization and native HTML head preloading.
Package info
github.com/Javier-Macia/native_material
Language:CSS
Type:drupal-module
pkg:composer/javierms/native_material
1.0.0
2026-09-29 13:05 UTC
Requires
- drupal/core: ^10 || ^11 || ^12
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A standalone Drupal module that serves Google Material Symbols Outlined and the classic Material Icons family 100% locally from your own web server with zero external dependencies.
Features
- 100% Self-Hosted: No requests made to
fonts.googleapis.comorfonts.gstatic.com. Fully compliant with GDPR / European privacy regulations. - Zero FOUT (Flash of Unstyled Text): Configured with
font-display: blockso ligature names (settings,home,calendar_month) never flash as plain text while fonts load. - Native Resource Preloading: Automatically preloads
MaterialSymbolsOutlined.woff2via<link rel="preload">in the HTML<head>, achieving optimal Core Web Vitals and instant rendering. - Modular Libraries:
native_material/symbols: Material Symbols Outlined variable font.native_material/icons: Classic Material Icons (Regular, Outlined, Round, Sharp, Two-Tone).native_material/all: Complete bundle.
Requirements
- Drupal 10, 11 or 12.
Installation
Using Composer:
composer require javierms/native_material drush en native_material -y
Usage
In your custom theme or module *.libraries.yml:
my_library: dependencies: - native_material/symbols
In your Twig templates or HTML:
<!-- Material Symbols Outlined --> <span class="material-symbols-outlined">settings</span> <!-- Material Icons --> <span class="material-icons">home</span>
License
- Module code: GNU General Public License v2.0 or later (GPL-2.0-or-later).
- Font assets: Apache License 2.0 (Google LLC).