design-scss

Standardize SCSS design tokens and reusable mixins for Vue SFC component styles.

3|Updated Jan 14, 2023
One-click install
npx skills add https://github.com/e-xode/vue-ssr --skill design-scss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-scss
Source: https://github.com/e-xode/vue-ssr/tree/main/.claude/skills/design-scss
Command: npx skills add https://github.com/e-xode/vue-ssr --skill design-scss

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It solves inconsistent styling and slow design iteration by providing a single SCSS design system—tokens and mixins—so every component uses the same spacing, radii, shadows, transitions, and responsive rules.

Core Features & Use Cases

  • SCSS design tokens: Standardized spacing, border radii, shadows, transitions, and breakpoints from variables.scss to prevent magic numbers.
  • Reusable mixins (11 total): Layout helpers and typography/behavior utilities like flex-center/flex-between, truncate, multiline-truncate, absolute-center, transition, hover-lift, button-reset, visually-hidden, and respond-to.
  • Vite auto-injection barrel: Ensures variables and mixins are available in every component SCSS without explicit @use statements.
  • Component-scoped SCSS conventions: File naming, external SCSS loading via Vue SFC src, and safe mobile-first responsive patterns.
  • Animations/utilities as inert catalogs: Documents _animations.scss and _utilities.scss patterns, while clearly stating they are not bundled by default, so you don’t accidentally rely on non-rendering classes.

Quick Start

Use the design-scss skill to set up src/views/Profile/ProfileView.scss with token-based spacing and responsive layout by writing SCSS that uses @include flex-col and @include respond-to('md').

Frequently Asked Questions about design-scss

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize SCSS design tokens and mixins in Vue 3 components?

Standardize SCSS design tokens by defining spacing, radii, shadows, and breakpoints in variables.scss, then use a Vite auto-injection barrel to make them available in every Vue 3 component SCSS without explicit @use statements, ensuring consistent styling.

How do I apply responsive styling and hover effects in Vue SFC component styles?

Apply responsive styling and hover effects in Vue SFC component styles by using reusable mixins like respond-to for mobile-first breakpoints, hover-lift for interactions, and transition for smooth state changes, all driven by standardized SCSS design tokens.

Why do I need a Vite auto-injection barrel for SCSS mixins and design tokens?

You need a Vite auto-injection barrel to automatically expose SCSS design tokens and mixins in every component SCSS file, eliminating the need for repetitive explicit @use statements and preventing hardcoded values across your Vue SSR starter kit.

What are the limitations of using SCSS animations and utilities catalogs in Vue?

The limitation is that SCSS animations and utilities catalogs are treated as inert patterns and are not bundled by default, meaning you must explicitly wire them into your component SCSS to avoid accidentally relying on non-rendering classes.

Can I use hardcoded values in SCSS instead of design tokens for Vue components?

No, you cannot use hardcoded values or SCSS code comments; the approach forbids magic numbers and requires using standardized design tokens and reusable mixins to enforce consistent spacing, typography truncation, and accessible hiding across the Vue SSR starter kit.