hue / rules
cloudera/hue/.cursor/rules/styling-and-design-tokens.mdc
SCSS + BEM rules; forbid hardcoded colors; attach to style files.
Cursor rule1.4k starsChanged 14 months ago
What's in it
- Styling Rules
- Example
---
description: SCSS + BEM rules; forbid hardcoded colors; attach to style files.
globs: ["**/*.scss", "**/*.less"]
alwaysApply: false
---
# Styling Rules
- **Primary:** SCSS with BEM; avoid adding new Less. Do not automigrate when touching unless you can easily migrate the entire file.
- **No hardcoded colors**; use SCSS variables/tokens (cuix/antd) from
- Co-locate `ComponentName.scss` with the component; keep selectors BEM-scoped.
- Prefer BEM modifiers over state classes
- Prefer classes over using HTML element selectors
## Example
```scss
@use 'variables' as vars;
.component-name {
&__title { color: vars.$hue-primary-color-dark;; }
&--disabled { opacity: .5; cursor: not-allowed; }
}
```More agent context in cloudera/hue
10 other files this repository gives its agents.
Cursor rule
- .cursor/rules/accessibility.mdc
- .cursor/rules/build-and-scripts.mdc
- .cursor/rules/code-quality-and-lint.mdc
- .cursor/rules/frontend-conventions.mdc
- .cursor/rules/i18n-and-copy.mdc
- .cursor/rules/integration-bridges.mdc
- .cursor/rules/legacy-migration.mdc
- .cursor/rules/project-overview.mdc
- .cursor/rules/pr-review-checklist.mdc
- .cursor/rules/testing-rtl.mdc
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

