Back to Skills

dart-sass

majiayu000
Updated Today
1 views
58
9
58
View on GitHub
Designdesign

About

This skill provides comprehensive guidance for working with Dart Sass, including syntax, compilation, and features like mixins and functions. Use it when developers need to compile Sass to CSS, integrate Sass into projects, or utilize Sass-specific capabilities. It covers installation, configuration, CLI usage, and optimization for build workflows.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/majiayu000/claude-skill-registry
Git CloneAlternative
git clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/dart-sass

Copy and paste this command in Claude Code to install this skill

Documentation

When 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:

  1. Install Dart Sass:

    • Load examples/getting-started/installation.md for installation instructions
    • Load examples/getting-started/basic-usage.md for basic usage examples
    • Load examples/getting-started/compiling-modes.md for different compilation modes
  2. Learn Sass syntax:

    • Load examples/syntax/variables.md for variable usage
    • Load examples/syntax/nesting.md for nesting syntax
    • Load examples/syntax/mixins.md for mixins
    • Load examples/syntax/functions.md for functions
    • Load examples/syntax/operators.md for operators
    • Load examples/syntax/at-rules.md for at-rules
  3. Use advanced features:

    • Load examples/features/modules.md for module system
    • Load examples/features/imports.md for imports
    • Load examples/features/control-flow.md for control flow
    • Load examples/features/built-in-modules.md for built-in modules
    • Load examples/features/source-maps.md for source maps
    • Load examples/features/custom-functions.md for custom functions
  4. Reference the API documentation when needed:

    • api/js-api.md - JavaScript API reference
    • api/dart-api.md - Dart API reference
    • api/cli-api.md - CLI command reference
  5. Use templates for quick start:

    • templates/basic-project.md - Basic Sass project template
    • templates/modular-project.md - Modular Sass project template
    • templates/build-integration.md - Build tool integration template

Doc mapping (one-to-one with official documentation)

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 templates/ directory for common scaffolding
  • Adapt templates to your specific needs and coding style

API Reference

  • JavaScript API: api/js-api.md - JavaScript API for compiling Sass (compile, compileString, etc.)
  • Dart API: api/dart-api.md - Dart API for compiling Sass
  • CLI API: api/cli-api.md - Command-line interface options and usage

Best Practices

  1. Use @use instead of @import: The @import rule is deprecated, use @use and @forward instead
  2. Organize with modules: Use the module system to organize and share code
  3. Optimize compilation: Use appropriate output style (compressed for production)
  4. Source maps: Enable source maps for development, disable for production
  5. Watch mode: Use --watch for development to automatically recompile on changes
  6. Load paths: Use --load-path to simplify import paths
  7. Performance: Use Dart Sass for best performance (faster than Ruby Sass)
  8. Version control: Don't commit compiled CSS files, only commit Sass source files

Resources

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 函数

GitHub Repository

majiayu000/claude-skill-registry
Path: skills/dart-sass

Related Skills

content-collections

Meta

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

View skill

creating-opencode-plugins

Meta

This skill provides the structure and API specifications for creating OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It offers implementation patterns for JavaScript/TypeScript modules that intercept and extend the AI assistant's lifecycle. Use it when you need to build event-driven plugins for monitoring, custom handling, or extending OpenCode's capabilities.

View skill

langchain

Meta

LangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.

View skill

Algorithmic Art Generation

Meta

This skill helps developers create algorithmic art using p5.js, focusing on generative art, computational aesthetics, and interactive visualizations. It automatically activates for topics like "generative art" or "p5.js visualization" and guides you through creating unique algorithms with features like seeded randomness, flow fields, and particle systems. Use it when you need to build reproducible, code-driven artistic patterns.

View skill