shredbx logo
shredbx shredbx shredbx shredbx Personal
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
AClaude
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
Andrei Solovev
Packages
Search packages... ⌘K
  • Data & Persistence
    • Databases 3
    • Object Storage 1
    • File Formats 2
    • Enumerations 2
    • Content 1
    • Codegen 2
  • System Integration
    • Secrets 1
    • CLI Tools 5
    • Media Processing 2
    • Adapters 2
  • UI & Components
    • Primitives 1
    • Blocks 1
    • Sections & Layouts 1
    • Entities 1
    • Media 1
    • Utilities 1
    • State & Presenter 1
    • Branding & Style 1
  • Game Engine
    • Framework 1
    • Engine 2
    • Presets 1
    • Vendor 1
Packages/ UI & Components/ Branding & Style/ Core Ui Branding
SvelteKit Package

core-ui-branding

Branding & style system — brand config, CSS custom properties, contrast validation

SvelteKit Ready UI
Brand Configuration typescript
1
2
3
4
5
6
7
8
9
10
11
12
import { shredbxBrand, contrastValidator } from '@sbx/core-ui/branding';
import { styleStore } from '@sbx/core-ui/style';

// Apply brand — generates CSS custom properties
styleStore.setBrand(shredbxBrand);

// Validate accessibility
const result = contrastValidator('#00ff88', '#0a0a0a');
// { ratio: 12.4, aa: true, aaa: true }

// Brand tokens available as CSS vars:
// var(--color-accent), var(--color-bg), var(--font-sans), etc.

About

Design system infrastructure. The branding module defines typed brand configurations (colors, fonts, spacing) that generate CSS custom properties at runtime. The style module provides brand-bridge CSS for token cascading, theme presets, and a contrast validator to ensure WCAG-compliant color combinations. Brand configs are defined as TypeScript fixtures (hub-brand, shredbx-brand) and applied via CSS custom properties.

Public API

NameKindSignature
IBrandConfiginterfaceinterface IBrandConfig — colors, fonts, spacing, borders, motion
hubBrandconstconst hubBrand: IBrandConfig
shredbxBrandconstconst shredbxBrand: IBrandConfig
contrastValidatorfunccontrastValidator(fg: string, bg: string): { ratio: number, aa: boolean, aaa: boolean }
IStylePresetinterfaceinterface IStylePreset — name, description, tokens
styleStorefuncstyleStore — $state-based reactive style management

Dependencies

Imported By (3)

core-ui-primitives SvelteKit Ready

Base UI primitives — Button, Input, Modal, Badge, Avatar, Tooltip, Select

svelte-5componentsprimitivesform-inputsdesign-system
13 exports 2 deps
core-ui-blocks SvelteKit Ready

Composite UI blocks — NavRail, CommandPalette, ChatWidget, FileTree, Editors

svelte-5componentsnavigationeditorsdata-displaypresenter-driven
15 exports 2 deps
core-ui-sections SvelteKit Ready

Page sections & layouts — AdminTemplate, ContentSidebar, EntityDetail, Canvas

svelte-5layoutsidebarentity-vieweradmin-templatecanvas
16 exports 2 deps

Related Packages

core-ui-primitives SvelteKit Ready

Base UI primitives — Button, Input, Modal, Badge, Avatar, Tooltip, Select

svelte-5componentsprimitivesform-inputsdesign-system
13 exports 2 deps
core-ui-state SvelteKit Ready

State management & presenter — StateMachine, Flow, presenter registry, view adapters

state-machinepresenterfixturesview-layermotion-tokensasync-flow
7 exports 2 deps

Source

@sbx/core-ui/branding
design-systembrandingcss-custom-propertiesthemingwcagcontraststyle-presets
shredbx logo shredbx shredbx shredbx shredbx Andrei Solovev

Solution Architect & Lead Software Engineer

ExperiencePortfolioResearch & ExperimentsEducationCertificationSkills
GitHub ↗LinkedIn ↗Email ↗
AVAILABLE FOR NEW PROJECTS
// MY LATEST BEATS
Hobby & Interests

Lab

  • The Lab
  • Framework
  • Components
  • Packages
  • Games
  • Process (SDLC)
  • Knowledge
  • Blog

Andrei

  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
  • Lifestyle

Team

  • Team
  • Andrei
  • Claude

Legal

  • Privacy
  • Terms
  • Cookies
© 2026 shredbx.com. All rights reserved. — Andrei Solovev |