Claude-skill-registry dart-sass
Provides comprehensive guidance for Dart Sass including Sass syntax, compilation, mixins, functions, and best practices. Use when the user asks about Dart Sass, needs to compile Sass to CSS, use Sass features, or work with Sass in projects.
git clone https://github.com/majiayu000/claude-skill-registry
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/dart-sass" ~/.claude/skills/majiayu000-claude-skill-registry-dart-sass && rm -rf "$T"
skills/data/dart-sass/SKILL.mdWhen to use this skill
Use this skill whenever the user wants to:
- Install and configure Dart Sass
- Compile Sass/SCSS files to CSS
- Use Sass syntax features (variables, nesting, mixins, functions, etc.)
- Work with Sass modules and imports
- Integrate Sass into build tools or workflows
- Use Sass CLI commands
- Configure Sass compilation options
- Use Sass in JavaScript or Dart projects
- Optimize Sass compilation performance
- Handle Sass source maps
How to use this skill
To use Dart Sass:
-
Install Dart Sass:
- Load
for installation instructionsexamples/getting-started/installation.md - Load
for basic usage examplesexamples/getting-started/basic-usage.md - Load
for different compilation modesexamples/getting-started/compiling-modes.md
- Load
-
Learn Sass syntax:
- Load
for variable usageexamples/syntax/variables.md - Load
for nesting syntaxexamples/syntax/nesting.md - Load
for mixinsexamples/syntax/mixins.md - Load
for functionsexamples/syntax/functions.md - Load
for operatorsexamples/syntax/operators.md - Load
for at-rulesexamples/syntax/at-rules.md
- Load
-
Use advanced features:
- Load
for module systemexamples/features/modules.md - Load
for importsexamples/features/imports.md - Load
for control flowexamples/features/control-flow.md - Load
for built-in modulesexamples/features/built-in-modules.md - Load
for source mapsexamples/features/source-maps.md - Load
for custom functionsexamples/features/custom-functions.md
- Load
-
Reference the API documentation when needed:
- JavaScript API referenceapi/js-api.md
- Dart API referenceapi/dart-api.md
- CLI command referenceapi/cli-api.md
-
Use templates for quick start:
- Basic Sass project templatetemplates/basic-project.md
- Modular Sass project templatetemplates/modular-project.md
- Build tool integration templatetemplates/build-integration.md
Doc mapping (one-to-one with official documentation)
→ https://sass-lang.com/documentation/examples/
Examples and Templates
This skill includes detailed examples organized to match the official documentation structure. All examples are in the
examples/ directory (see mapping above).
To use examples:
- Identify the topic from the user's request
- Load the appropriate example file from the mapping above
- Follow the instructions, syntax, and best practices in that file
- Adapt the code examples to your specific use case
To use templates:
- Reference templates in
directory for common scaffoldingtemplates/ - Adapt templates to your specific needs and coding style
API Reference
- JavaScript API:
- JavaScript API for compiling Sass (compile, compileString, etc.)api/js-api.md - Dart API:
- Dart API for compiling Sassapi/dart-api.md - CLI API:
- Command-line interface options and usageapi/cli-api.md
Best Practices
- Use @use instead of @import: The @import rule is deprecated, use @use and @forward instead
- Organize with modules: Use the module system to organize and share code
- Optimize compilation: Use appropriate output style (compressed for production)
- Source maps: Enable source maps for development, disable for production
- Watch mode: Use --watch for development to automatically recompile on changes
- Load paths: Use --load-path to simplify import paths
- Performance: Use Dart Sass for best performance (faster than Ruby Sass)
- Version control: Don't commit compiled CSS files, only commit Sass source files
Resources
- Official Website: https://sass-lang.com/dart-sass/
- Installation Guide: https://sass-lang.com/install/
- Documentation: https://sass-lang.com/documentation/
- GitHub Repository: https://github.com/sass/dart-sass
- npm Package: https://www.npmjs.com/package/sass
- pub.dev Package: https://pub.dev/packages/sass
Keywords
dart-sass, sass, scss, css preprocessor, sass compiler, sass syntax, sass modules, sass mixins, sass functions, sass variables, sass nesting, @use, @forward, @import, @include, @mixin, @function, sass:math, sass:color, sass:string, source maps, sass cli, sass api, 样式预处理器, Sass 编译器, Sass 语法, Sass 模块, Sass 混合, Sass 函数