You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a centralized STYLE-GUIDE.md that documents the global visual styling system used across the Arbellar-Frontend application.
The style guide should serve as the single contributor reference for Arbellar's global theme, colors, typography, visual effects, dark/light mode behavior, Tailwind theme tokens, and styling conventions.
Arbellar is a user-funded, non-custodial atomic arbitrage platform built on Stellar. Its interface should communicate trust, security, transparency, automation, and futuristic DeFi infrastructure through a professional dark-first visual system.
The style guide must remain consistent with the existing Arbellar-Frontend project architecture and should document where global styling, theme initialization, theme state, reusable UI components, and Tailwind configuration are implemented.
Scope
Create:
STYLE-GUIDE.md
at the project root.
The document should cover:
Global light/dark theme behavior
Theme initialization and persistence
Global CSS and Tailwind configuration
Arbellar color tokens
Typography and text hierarchy
Backgrounds and surfaces
Borders and radius conventions
Glow and shadow effects
Buttons and interactive states
Cards and panels
Responsive styling conventions
Accessibility requirements
Animation and reduced-motion behavior
Contributor styling rules
Relevant project files and directories
The style guide should document the existing project structure rather than introduce a new architecture.
Light/Dark Mode
Source of Truth
Theme state should be applied to the root <html> element using:
class="dark" for Tailwind's dark: variant
data-theme="dark" | "light" as an auxiliary theme indicator
Theme persistence should use an Arbellar-specific localStorage key:
localStorage["arbellar-theme"]
Supported values:
"dark"
"light"
Do not use StellarProof-specific theme keys or references.
Default Theme
The default experience should be dark mode.
If:
localStorage["arbellar-theme"] === "light"
the application should load in light mode.
If no theme preference exists, the application should default to dark mode.
Files & Directories
The style guide should document the project's existing styling responsibilities using the following structure where applicable.
Theme Initialization
app/layout.tsx
Responsible for:
Setting the default theme on <html> for the initial render
Preventing an unnecessary flash between themes
Synchronizing the root HTML theme attributes with localStorage
Global Theme State
app/context/ThemeContext.tsx
Responsible for exposing:
{theme,toggleTheme}
The context should:
Read the persisted Arbellar theme preference
Write theme changes to localStorage["arbellar-theme"]
Toggle the .dark class
Update the data-theme attribute
Theme Toggle
components/ThemeToggle.tsx
Responsible for:
Calling toggleTheme()
Providing a clear visual theme toggle
Using appropriate sun/moon icons
Remaining keyboard accessible
Global CSS
app/globals.css
Responsible for:
Tailwind CSS entrypoint
Global CSS variables
Arbellar theme tokens
Light and dark theme overrides
Global base styles
Tailwind v4 dark-mode configuration
The following Tailwind v4 custom variant must not be removed if the project uses this approach:
@custom-variant dark (&:where(.dark, .dark*));
Removing the custom dark variant can break existing dark: utility styling.
Tailwind Configuration
Document the relevant Tailwind configuration file used by the project, such as:
tailwind.config.ts
or:
tailwind.config.js
The configuration should remain aligned with the tokens documented in STYLE-GUIDE.md.
Arbellar Visual Direction
Arbellar's visual identity should combine:
Dark futuristic DeFi aesthetics
Stellar ecosystem influence
Professional financial interfaces
Subtle neon illumination
High contrast
Clean information hierarchy
Secure and trustworthy presentation
Teal-based technology accents
Stellar yellow highlights
The interface should feel advanced and automated without becoming visually noisy.
Avoid excessive gradients, excessive glow, overly bright surfaces, or decorative effects that reduce readability.
Global Theme Tokens
These tokens should be defined centrally through the project's global CSS/Tailwind theme system.
Primary Colors
Medium-Dark Teal
primary: #0D9488
Used for:
Primary buttons
Navigation elements
Interactive controls
Cards and panels
Borders
Main Arbellar brand elements
Light Glow Teal
accent: #2FF3E0
Used for:
Neon highlights
Hover states
Active states
Glowing borders
Icons
Futuristic accents
Important interactive indicators
Stellar Yellow
stellar-yellow: #FDDA24
Used selectively for:
Stellar ecosystem references
Important highlights
Status indicators
Accent graphics
Brand-adjacent visual elements
The yellow should complement the Arbellar teal rather than replace the primary teal identity.
Supporting Colors
Dark Background
background: #0B1020
Alternative Dark Surface
surface: #111827
Primary Foreground
foreground: #F6F7F8
Muted Foreground
Use a subdued neutral tone for:
Secondary descriptions
Supporting information
Metadata
Less important labels
Dark Teal
primary-dark: #0F766E
Light Teal
primary-light: #14B8A6
Yellow Hover
stellar-yellow-light: #FFE45C
Dark Yellow
stellar-yellow-dark: #D9B800
Color Usage Rules
Use:
#0D9488
as the primary Arbellar brand color.
Use:
#2FF3E0
for futuristic highlights and controlled glow effects.
Use:
#FDDA24
sparingly as a Stellar ecosystem accent.
Use dark navy/near-black surfaces such as:
#0B1020
#111827
as the primary application environment.
Do not use bright colors for large surfaces unless there is a clear accessibility or semantic reason.
Avoid using glow effects on every element. Glow should establish hierarchy and emphasize important interactive or system states.
Description
Create a centralized
STYLE-GUIDE.mdthat documents the global visual styling system used across the Arbellar-Frontend application.The style guide should serve as the single contributor reference for Arbellar's global theme, colors, typography, visual effects, dark/light mode behavior, Tailwind theme tokens, and styling conventions.
Arbellar is a user-funded, non-custodial atomic arbitrage platform built on Stellar. Its interface should communicate trust, security, transparency, automation, and futuristic DeFi infrastructure through a professional dark-first visual system.
The style guide must remain consistent with the existing Arbellar-Frontend project architecture and should document where global styling, theme initialization, theme state, reusable UI components, and Tailwind configuration are implemented.
Scope
Create:
at the project root.
The document should cover:
The style guide should document the existing project structure rather than introduce a new architecture.
Light/Dark Mode
Source of Truth
Theme state should be applied to the root
<html>element using:class="dark"for Tailwind'sdark:variantdata-theme="dark" | "light"as an auxiliary theme indicatorTheme persistence should use an Arbellar-specific localStorage key:
Supported values:
Do not use StellarProof-specific theme keys or references.
Default Theme
The default experience should be dark mode.
If:
the application should load in light mode.
If no theme preference exists, the application should default to dark mode.
Files & Directories
The style guide should document the project's existing styling responsibilities using the following structure where applicable.
Theme Initialization
Responsible for:
<html>for the initial renderGlobal Theme State
Responsible for exposing:
The context should:
localStorage["arbellar-theme"].darkclassdata-themeattributeTheme Toggle
Responsible for:
toggleTheme()Global CSS
Responsible for:
The following Tailwind v4 custom variant must not be removed if the project uses this approach:
Removing the custom dark variant can break existing
dark:utility styling.Tailwind Configuration
Document the relevant Tailwind configuration file used by the project, such as:
or:
The configuration should remain aligned with the tokens documented in
STYLE-GUIDE.md.Arbellar Visual Direction
Arbellar's visual identity should combine:
The interface should feel advanced and automated without becoming visually noisy.
Avoid excessive gradients, excessive glow, overly bright surfaces, or decorative effects that reduce readability.
Global Theme Tokens
These tokens should be defined centrally through the project's global CSS/Tailwind theme system.
Primary Colors
Medium-Dark Teal
Used for:
Light Glow Teal
Used for:
Stellar Yellow
Used selectively for:
The yellow should complement the Arbellar teal rather than replace the primary teal identity.
Supporting Colors
Dark Background
Alternative Dark Surface
Primary Foreground
Muted Foreground
Use a subdued neutral tone for:
Dark Teal
Light Teal
Yellow Hover
Dark Yellow
Color Usage Rules
Use:
as the primary Arbellar brand color.
Use:
for futuristic highlights and controlled glow effects.
Use:
sparingly as a Stellar ecosystem accent.
Use dark navy/near-black surfaces such as:
as the primary application environment.
Do not use bright colors for large surfaces unless there is a clear accessibility or semantic reason.
Avoid using glow effects on every element. Glow should establish hierarchy and emphasize important interactive or system states.
Glow Effects
The light teal may use a controlled neon glow:
Recommended reusable shadow tokens include:
Glow effects should be subtle enough to preserve readability and performance.
Typography
Typography should prioritize:
Recommended hierarchy:
Avoid excessive font weights and decorative typography that makes financial or transaction information difficult to scan.
Backgrounds & Surfaces
The primary application environment should use dark backgrounds.
Recommended hierarchy:
Surfaces should have enough contrast to distinguish cards, panels, navigation, and content areas without relying exclusively on shadows or glow.
Subtle atmospheric effects may be used, including:
These effects must remain secondary to the interface content.
Buttons & Interactive Elements
Primary actions should use the Arbellar teal:
Hover and active states may transition toward:
Buttons should provide clear visual feedback for:
Interactive controls must maintain sufficient contrast and visible keyboard focus indicators.
Do not use animation or glow as the only indication of interaction state.
Cards & Panels
Cards should use dark surfaces with subtle borders.
Recommended visual characteristics:
Cards displaying financial or arbitrage information should prioritize information clarity over decorative styling.
Status & Financial Indicators
The interface should clearly distinguish states such as:
Color should not be the only method of communicating status.
This is particularly important for:
Avoid styling profitable outcomes in a way that implies guaranteed returns.
Responsive Design
Arbellar-Frontend follows a mobile-first approach.
Styles should be tested across:
Components should avoid:
Financial and transaction interfaces should remain usable on smaller screens.
Accessibility
The style system must support WCAG 2.1 AA principles.
Contributors should ensure:
Teal glow and Stellar yellow should never be relied upon as the only method of communicating meaning.
Animation & Motion
Animations should reinforce the futuristic and automated nature of Arbellar without distracting from core financial information.
Appropriate uses include:
Animations should remain short and purposeful.
Respect:
When reduced motion is enabled, unnecessary transitions and decorative animations should be minimized or disabled.
Contributor Rules
1. Use centralized theme tokens
Prefer project-defined theme tokens instead of repeatedly introducing arbitrary colors.
Example:
2. Use
dark:for theme-specific stylingWhen a component needs different styling between themes:
Prefer semantic theme tokens when available instead of hardcoding values throughout components.
3. Access theme through the theme context
Client components that need theme state should use the project's theme context:
4. Avoid arbitrary visual styles
Do not introduce new colors, shadows, gradients, or typography systems without considering whether the style belongs in the global design system.
5. Preserve visual consistency
New components should follow the established:
Security & Trust Visual Principles
Because Arbellar handles user-funded DeFi interactions, visual design must reinforce trust.
The UI should clearly communicate:
The design must never visually imply guaranteed profits or risk-free returns.
Marketing and dashboard components should distinguish between:
Acceptance Criteria
STYLE-GUIDE.mdis created at the project root.arbellar-themeis used as the documented persistence key.#FDDA24is documented as a supporting ecosystem accent.Verification
Review the final
STYLE-GUIDE.mdagainst the current Arbellar-Frontend repository structure.Verify that:
continue to pass if these scripts are available in the project.
Confirm that all documented file paths, theme tokens, naming conventions, and implementation references match the actual project structure.
Suggested Branch
Suggested Commit