Skip to content
Agentmart
Submit a tool

scss-modules

Styles React components with SCSS CSS Modules and the Tackl design system.

Skill by 12-Studio

IndexedMIT★ 10
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/12-studio-scss-modules

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Styles React components with SCSS CSS Modules and the Tackl design system. Use when the user mentions styling, styles.module.scss, SCSS, CSS modules, design tokens, CSS variables, breakpoints (bp / bpd / mq), typography (t-* classes, type mixins), spacing (data-pad / data-mar), the Waffl grid (Grid / Col), or theming in this project.

Use cases: design, frontend, data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/scss-modules

What's inside

Skill name
scss-modules
Description
Styles React components with SCSS CSS Modules and the Tackl design system. Use when the user mentions styling, styles.module.scss, SCSS, CSS modules, design tokens, CSS variables, breakpoints (bp / bpd / mq), typography (t-* classes, type mixins), spacing (data-pad / data-mar), the Waffl grid (Grid / Col), or theming in this project.
License
MIT
Instructions
147 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# SCSS Modules (Tackl)

Tackl styles with **SCSS CSS Modules** — static CSS, no runtime. There is no
styled-components, no `Div`, no theme getters and no `@tackl/type`. Never recreate them.

## File structure

```
src/components/Example/
  index.tsx            # logic + markup
  styles.module.scss   # ALL styles
  interface.ts         # prop types
```

```tsx
// index.tsx
import { cx } from '@utils/cx';
import type * as I from './interface';
import s from './styles.module.scss';

const Example = ({ isOpen, className }: I.ExampleProps) => (
	<section className={cx(s.jacket, className)} data-state={isOpen ? 'open' : 'closed'} data-pad>
		<h2 className={cx(s.title, 't-headlineL')}>Title</h2>
	</section>
);
```

```scss
// styles.module.scss — no imports: the Tackl layer is injected
.jacket {
	display: grid;
	gap: var(--gap-m);
	background: alpha(--brand-c3, 40);
	transition: background var(--time-m) var(--easing-bezzy);

	@include bp(l) {
		gap: var(--gap-xl);
	}

	&[data-state='open'] {
		background: var(--brand-c1);
	}
}

.title {
	color: var(--global-white);
}
```

## Rules

1. Outermost class is `.jacket`; others are descriptive camelCase (`s.removeButton`).
2. Write the HTML tag in JSX. State → `data-*` attributes; dynamic values → CSS custom
   properties via `style={{ '--progress': value }}` (typed — `CSSProperties` accepts `--*`).
3. Tokens are CSS variables — always `var(--…)`, never hard-coded values:
   `--brand-c1…c5`, `--global-white|black`, `--feedback-*`, `--space-s|m|l|xl|col`,
   `--gap-xxs…uber`, `--br-xs|s|m|l|round`, `--easing-bezzy*`, `--time-s|m|l`,
   `--font-heading|body|mono|script|serif`, `--weight-light…black`.
4. Mobile-first: base styles, then `@include bp(m) { … }`, `bp(l)`, … (min-width).
   `@include bpd(m) { … }` only for the rare max-width case.
5. Module rules must sit under a local class. Bare top-level tag selectors go in
   `src/css/global.scss`.
6. `'use client'` only for hooks/events/browser APIs — never for styling.
7. Lint with `bun run lint` (Biome + Stylelint). Stylelint rejects unknown `var(--…)` names.

## The injected layer (`src/css/tackl`, available in every .scss file)

| Need | SCSS |
| --- | --- |
| Breakpoint up / down | `@include bp(m) { … }` · `@include bpd(m) { … }` |
| Type style | `@include displayL;` … `@include captionS;` |
| Section spacing | `@include pad;` `@include pad(top);` `@include mar(bottom);` |
| Translucent colour | `alpha(--brand-c1, 20)` — opacity 0–100, `20%` also accepted (same as `alpha()` in JS) |
| px → vw | `vw(48)` (desktop 1440) · `vw(24, mobile)` · `vw(32, tablet)` |
| Hide scrollbars | `@include noscrollbars;` |
| Grid values | `$breakpoints`, `$columns`, `$gutters`, `$grid-max`, `$design-widths` |

The layer emits **no CSS** — only mixins, functions and variables. Keep it that way: any
rule added there is duplicated into every module.

## Global utilities (HTML, any element)

- Type: `className='t-captionL'` or `data-type='captionL'`
- Spacing: `data-pad` (top + bottom), `data-pad='top'`, `data-pad='bottom'`,
  `data-mar='top bottom'` (values combine)

They live in `@layer utilities`; modules are unlayered, so a module always overrides them.

## Typography

Hand-written in `src/css/tackl/_type.scss`, straight from the Figma file:

```scss
@mixin captionL {
	font-family: var(--font-body);
	font-weight: var(--weight-regular);
	font-size: 1.4rem;
	line-height: 1.5;

	@include bp(xl) {
		font-size: 1.6rem;
	}
}
```

Adding a style: write the mixin, then add its name to `$type-styles` at the bottom of the
file so the `.t-*` class and `[data-type]` selector are generated.

## Grid

```tsx
import Grid, { Col } from '@waffl';

<Grid $isFixed>
	<Col as='article' $m='2/6' $l='3/9'>Spans by breakpoint</Col>
	<figure>Full width by default — no component needed</figure>
</Grid>
```

From 12-Studio/Tackl, MIT.

More from 12-Studio/Tackl

Signals

Stars
10
Forks
2
Open issues
0
Last commit (this folder)
Oct 11, 2026 (18 days ago)
Last release
Oct 11, 2026 (17 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from 12-Studio

Cite this page

scss-modules skill. Agent Mart. https://agentmart.dev/skills/12-studio-scss-modules (last updated 2026-10-24)