https://github.com/craftcms/sass
Sass mixins for the Craft CMS control panel.
https://github.com/craftcms/sass
craftcms sass
Last synced: about 1 year ago
JSON representation
Sass mixins for the Craft CMS control panel.
- Host: GitHub
- URL: https://github.com/craftcms/sass
- Owner: craftcms
- License: mit
- Created: 2017-09-27T20:44:57.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2022-03-10T05:00:24.000Z (over 4 years ago)
- Last Synced: 2025-03-25T13:11:25.010Z (over 1 year ago)
- Topics: craftcms, sass
- Language: SCSS
- Homepage:
- Size: 64.5 KB
- Stars: 7
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Sass Mixins for Craft CMS
Plugins that need to extend the Craft CMS Control Panel can use this library and import `_mixins.sass` from their Sass files, giving them the same mixins and variables used by core Control Panel templates.
## Installation
Installation via npm is recommended.
npm install craftcms-sass --save-dev
## Usage
Import the mixins into your Sass files with the `@import` directive:
```scss
@import "../node_modules/craftcms-sass/mixins";
```
(The exact path will vary depending on where your `node_modules` folder is in relation to your Sass file.)