跳到内容

SASS Compiler

v1.0

WebMaestro.Fr · 2014年10月19日 上架

SASS compiler for WordPress. Allows you to write and compile SASS, and to edit style variables straight into your WordPress dashboard.

正在使用
10+
评分
暂无
累计下载
2,736
最近更新
2014年10月19日
需要 WordPress 4.0+已测试到 4.0.38

贡献者

截图

The 'Compiler' page
The 'Compiler' page
The 'Variables' page after configuration
The 'Variables' page after configuration

Write SASS, edit your variables and compile your stylesheet from your dashboard.

Read the documentation

  • Register and enqueue your SASS sheets the same way you would do for your CSS.

    `
    

    wp_enqueue_style( ‘my-sass-handle’, ‘http://example.com/css/mystyle.scss’, $deps, $ver, $media );
    `

  • Configure the plugin with the sass_configuration filter.

    Configuration of the plugin is optional, but you should at least register your variables if you are using a CSS framework.

  • Set a SASS variable value

    `
    

    sass_set( $variable, $value );
    `

  • Get a SASS variable value

    `
    

    sass_get( $variable );
    `

You will most likely use these functions in your theme’s functions.php.

The plugin uses the scssphp Compiler.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums