Module styles
User stylesheets
This module provides support for Mozilla-format user stylesheets, as a
replacement for the old domain_props
-based user_stylesheet_uri
method
(which is no longer supported). User stylesheets from https://userstyles.org
are supported, giving access to a wide variety of already-made themes.
User stylesheets are automatically detected and loaded when luakit starts up. In addition, user stylesheets can be enabled/disabled instantly, without refreshing the web pages they affect, and it is possible to reload external changes to stylesheets into luakit, without restarting the browser.
Functions
styles.load_file (path)
Load the contents of a file as a stylesheet for a given domain.
Parameters
-
pathType: stringThe path of the file to load.
styles.detect_files ()
Detect all files in the stylesheets directory and automatically load them.
Attribution
Authors
Copyright
- 2016 Aidan Holm