RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/NoDeskAI/browser-pilot

Cursor rule

.cursor/rules/ux-ui-daynight.mdc

Guidelines for implementing Day/Night (Light/Dark) mode and UI/UX design.

Cursor rules

Quality

54/100

Scores the file, not the repository.

Length

339 words

6 headings · 3 code blocks

Repository

34

— · pushed 25 days ago

Last changed

3 days ago

First indexed 3 days ago.
NoDeskAI/browser-pilot/.cursor/rules/ux-ui-daynight.mdcRawGitHub
1---
2description: "Guidelines for implementing Day/Night (Light/Dark) mode and UI/UX design."
3globs: "*.vue, *.ts, *.tsx, *.css"
4---
5 
6# UX/UI Day/Night Mode Guidelines
7 
8This project supports both Day (Light) and Night (Dark) modes. All new UI components and pages must be designed to adapt seamlessly to both modes.
9 
10## Core Principles
11 
121. **Mandatory Dual-Mode Support**
13 - Never assume the app will only be viewed in dark mode or light mode.
14 - Every new component, page, or feature must look good and function correctly in both modes.
15 - Test your UI changes by toggling the theme in the header.
16 
172. **Strict Use of Semantic Colors**
18 - **DO NOT** hardcode absolute color values in your Tailwind classes or CSS unless absolutely necessary (e.g., `bg-white`, `text-black`, `bg-gray-900`, `#ffffff`, `#000000`).
19 - **DO** use the semantic CSS variables defined in `src/style.css` via Tailwind utility classes.
20 - Backgrounds: `bg-background`, `bg-card`, `bg-popover`, `bg-muted`
21 - Text: `text-foreground`, `text-muted-foreground`, `text-primary-foreground`
22 - Borders: `border-border`, `border-input`
23 - Action/States: `bg-primary`, `bg-secondary`, `bg-destructive`, `bg-accent`
24 
253. **Component Adaptation**
26 - **Shadows and Borders**: Dark mode often relies more on subtle borders (`border-border`) rather than shadows (`shadow-sm`, `shadow-md`) to distinguish elevation, whereas light mode often uses shadows. Ensure elements have clear boundaries in both modes.
27 - **Third-Party Components**: When integrating charts, code editors, terminal emulators, or other complex components, ensure their themes are linked to the current app theme (using `isDark` from `@vueuse/core` or CSS variables).
28 
294. **Opacity and Alpha Channels**
30 - Use Tailwind's opacity modifiers with semantic colors when you need a lighter version of a color (e.g., `bg-primary/10`, `text-muted-foreground/80`). This ensures the alpha blending looks correct on both light and dark backgrounds.
31 
32## Implementation Example
33 
34### ❌ Bad (Hardcoded Colors)
35```vue
36<div class="bg-white border border-gray-200 text-gray-900 shadow-sm">
37 <h2 class="text-black">Title</h2>
38 <p class="text-gray-500">Description</p>
39</div>
40```
41 
42### ✅ Good (Semantic Colors)
43```vue
44<div class="bg-card border border-border text-card-foreground">
45 <h2 class="text-foreground">Title</h2>
46 <p class="text-muted-foreground">Description</p>
47</div>
48```
49 
50## Using Theme State in Logic
51If you need to programmatically access the current theme (e.g., to pass a "theme" prop to a chart library), use `@vueuse/core`:
52 
53```typescript
54import { useDark } from '@vueuse/core'
55 
56const isDark = useDark()
57 
58// isDark.value will be true in Night mode, false in Day mode
59```

Sections

  • UX/UI Day/Night Mode Guidelines
  • Core Principles
  • Implementation Example
  • ❌ Bad (Hardcoded Colors)
  • ✅ Good (Semantic Colors)
  • Using Theme State in Logic

What it covers

lint-formatui

Stack — with the evidence

docker

(1.00)

python

(0.80)

node

(0.70)

vue

(0.70)

fastapi

(0.70)

postgres

(0.70)

tailwind

(0.70)

vite

(0.70)

aws

(0.70)

typescript

(0.60)

javascript

(0.50)

Glob targeting

  • *.vue
  • *.ts
  • *.tsx
  • *.css

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
NoDeskAI
Language
—
License
—
Archived
no

All configs in this repo

Also in NoDeskAI/browser-pilot

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
NoDeskAI/browser-pilot.cursor/rules/build-from-user-perspective.mdc · 34Cursor rulesdockernode+9buildsecurity51/1003 days ago
NoDeskAI/browser-pilot.cursor/rules/debug-container.mdc · 34Cursor rulesdockerpython+9api65/1003 days ago
NoDeskAI/browser-pilot.cursor/rules/deploy.mdc · 34Cursor rulesdockerpython+9no sections38/1003 days ago
NoDeskAI/browser-pilot.cursor/rules/env-vars.mdc · 34Cursor rulesdockerpython+9setup63/1003 days ago
NoDeskAI/browser-pilot.cursor/rules/fingerprint-popover-sync.mdc · 34Cursor rulesdockerpython+9no sections25/1003 days ago
NoDeskAI/browser-pilot.cursor/rules/keyboard-shortcuts-ux.mdc · 34Cursor rulesdockerpython+9ui31/1003 days ago
NoDeskAI/browser-pilot.cursor/rules/plan-ui-summary.mdc · 34Cursor rulesdockerpython+9ui54/1003 days ago
NoDeskAI/browser-pilot.cursor/rules/tailwind-css-color-mix.mdc · 34Cursor rulesdockerpython+9ui50/1003 days ago
NoDeskAI/browser-pilot.cursor/rules/verify-before-claim.mdc · 34Cursor rulesdockerpython+9no sections50/1003 days ago
Diff against .cursor/rules/build-from-user-perspective.mdc Diff against .cursor/rules/debug-container.mdc Diff against .cursor/rules/deploy.mdc Diff against .cursor/rules/env-vars.mdc Diff against .cursor/rules/fingerprint-popover-sync.mdc Diff against .cursor/rules/keyboard-shortcuts-ux.mdc Diff against .cursor/rules/plan-ui-summary.mdc Diff against .cursor/rules/tailwind-css-color-mix.mdc Diff against .cursor/rules/verify-before-claim.mdc

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+13setuptestlint-formatstyle+799/1003 days ago
deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1Cursor rulestypescriptnextjs+5setuptestlint-formatstyle+799/1003 days ago
markstev/mark-starter.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+14setuptestlint-formatstyle+699/1003 days ago
dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+15setuptestlint-formatstyle+799/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack