electron-gtk-theme

Inspects the system GTK theme and builds browser-compatible CSS

Usage no npm install needed!

<script type="module">
  import electronGtkTheme from 'https://cdn.skypack.dev/electron-gtk-theme';
</script>

README

electron-gtk-theme

This module inspects the system GTK theme, icon theme, and builds browser-compatible CSS. It is based on postcss-gtk and @jakejarrett/gtk-theme. This is alpha-quality software and a work-in-progress.

Options

  • outputPath (string): The directory that the generated CSS, and the fallback CSS resides in.

Fallback

If a theme is in a resource:// path, electron-gtk-theme will fallback to a file named gtk.css in a directory configured by outputPath.